From 0ca91c8c83d0a399e6e45634fc8fdeca69fae569 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 9 May 2023 00:31:06 +0300 Subject: libps: Port to x86_64 Message-Id: <20230508213136.608575-12-bugaevc@gmail.com> --- libps/ps.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libps/ps.h') diff --git a/libps/ps.h b/libps/ps.h index a3c938e1..192847b5 100644 --- a/libps/ps.h +++ b/libps/ps.h @@ -603,18 +603,19 @@ void ps_stream_free (struct ps_stream *stream); length of STRING, then write all of it; if MAX_LEN == -1, then write all of STRING regardless). */ error_t ps_stream_write (struct ps_stream *stream, - const char *string, int max_len); + const char *string, ssize_t max_len); /* Write NUM spaces to STREAM. NUM may be negative, in which case the same number of adjacent spaces (written by other calls to ps_stream_space) are consumed if possible. If an error occurs, the error code is returned, otherwise 0. */ -error_t ps_stream_space (struct ps_stream *stream, int num); +error_t ps_stream_space (struct ps_stream *stream, ssize_t num); /* Write as many spaces to STREAM as required to make a field of width SOFAR be at least WIDTH characters wide (the absolute value of WIDTH is used). If an error occurs, the error code is returned, otherwise 0. */ -error_t ps_stream_pad (struct ps_stream *stream, int sofar, int width); +error_t ps_stream_pad (struct ps_stream *stream, + ssize_t sofar, ssize_t width); /* Write a newline to STREAM, resetting its position to zero. */ error_t ps_stream_newline (struct ps_stream *stream); -- cgit v1.2.3