diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index a91eac466..eb8b2f620 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -475,6 +475,7 @@ extern void *xzalloc(size_t size); | |||
475 | extern void *xrealloc(void *old, size_t size); | 475 | extern void *xrealloc(void *old, size_t size); |
476 | 476 | ||
477 | extern ssize_t safe_read(int fd, void *buf, size_t count); | 477 | extern ssize_t safe_read(int fd, void *buf, size_t count); |
478 | extern ssize_t nonblock_safe_read(int fd, void *buf, size_t count); | ||
478 | extern ssize_t full_read(int fd, void *buf, size_t count); | 479 | extern ssize_t full_read(int fd, void *buf, size_t count); |
479 | extern void xread(int fd, void *buf, size_t count); | 480 | extern void xread(int fd, void *buf, size_t count); |
480 | extern unsigned char xread_char(int fd); | 481 | extern unsigned char xread_char(int fd); |
@@ -482,6 +483,7 @@ extern unsigned char xread_char(int fd); | |||
482 | extern char *reads(int fd, char *buf, size_t count); | 483 | extern char *reads(int fd, char *buf, size_t count); |
483 | // Read one line a-la fgets. Reads byte-by-byte. | 484 | // Read one line a-la fgets. Reads byte-by-byte. |
484 | // Useful when it is important to not read ahead. | 485 | // Useful when it is important to not read ahead. |
486 | // Bytes are appended to pfx (which must be malloced, or NULL). | ||
485 | extern char *xmalloc_reads(int fd, char *pfx); | 487 | extern char *xmalloc_reads(int fd, char *pfx); |
486 | extern ssize_t read_close(int fd, void *buf, size_t count); | 488 | extern ssize_t read_close(int fd, void *buf, size_t count); |
487 | extern ssize_t open_read_close(const char *filename, void *buf, size_t count); | 489 | extern ssize_t open_read_close(const char *filename, void *buf, size_t count); |