diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index ce62f4529..5aa95ea88 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -400,7 +400,11 @@ extern ssize_t safe_read(int fd, void *buf, size_t count); | |||
400 | extern ssize_t full_read(int fd, void *buf, size_t count); | 400 | extern ssize_t full_read(int fd, void *buf, size_t count); |
401 | extern void xread(int fd, void *buf, size_t count); | 401 | extern void xread(int fd, void *buf, size_t count); |
402 | extern unsigned char xread_char(int fd); | 402 | extern unsigned char xread_char(int fd); |
403 | // Read one line a-la fgets. Uses one read(), works only on seekable streams | ||
403 | extern char *reads(int fd, char *buf, size_t count); | 404 | extern char *reads(int fd, char *buf, size_t count); |
405 | // Read one line a-la fgets. Reads byte-by-byte. | ||
406 | // Useful when it is important to not read ahead. | ||
407 | extern char *xmalloc_reads(int fd, char *pfx); | ||
404 | extern ssize_t read_close(int fd, void *buf, size_t count); | 408 | extern ssize_t read_close(int fd, void *buf, size_t count); |
405 | extern ssize_t open_read_close(const char *filename, void *buf, size_t count); | 409 | extern ssize_t open_read_close(const char *filename, void *buf, size_t count); |
406 | extern void *xmalloc_open_read_close(const char *filename, size_t *sizep); | 410 | extern void *xmalloc_open_read_close(const char *filename, size_t *sizep); |