summaryrefslogtreecommitdiff
path: root/libps/ps.h
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-09 00:31:06 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-10 02:23:41 +0200
commit0ca91c8c83d0a399e6e45634fc8fdeca69fae569 (patch)
tree6c7bb8eef9751413e2c56406e241722aa7c75439 /libps/ps.h
parenta6386eda9c4de125e58985b19b6028c3f868de36 (diff)
libps: Port to x86_64
Message-Id: <20230508213136.608575-12-bugaevc@gmail.com>
Diffstat (limited to 'libps/ps.h')
-rw-r--r--libps/ps.h7
1 files changed, 4 insertions, 3 deletions
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);