diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 | ||||
-rw-r--r-- | include/usage.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 48937c4b1..1ea2e35be 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -315,6 +315,7 @@ void kill_myself_with_sig(int sig) ATTRIBUTE_NORETURN; | |||
315 | void xsetgid(gid_t gid); | 315 | void xsetgid(gid_t gid); |
316 | void xsetuid(uid_t uid); | 316 | void xsetuid(uid_t uid); |
317 | void xchdir(const char *path); | 317 | void xchdir(const char *path); |
318 | void xchroot(const char *path); | ||
318 | void xsetenv(const char *key, const char *value); | 319 | void xsetenv(const char *key, const char *value); |
319 | void xunlink(const char *pathname); | 320 | void xunlink(const char *pathname); |
320 | void xstat(const char *pathname, struct stat *buf); | 321 | void xstat(const char *pathname, struct stat *buf); |
@@ -500,6 +501,8 @@ extern void *xrealloc(void *old, size_t size); | |||
500 | 501 | ||
501 | extern ssize_t safe_read(int fd, void *buf, size_t count); | 502 | extern ssize_t safe_read(int fd, void *buf, size_t count); |
502 | extern ssize_t nonblock_safe_read(int fd, void *buf, size_t count); | 503 | extern ssize_t nonblock_safe_read(int fd, void *buf, size_t count); |
504 | // NB: will return short read on error, not -1, | ||
505 | // if some data was read before error occurred | ||
503 | extern ssize_t full_read(int fd, void *buf, size_t count); | 506 | extern ssize_t full_read(int fd, void *buf, size_t count); |
504 | extern void xread(int fd, void *buf, size_t count); | 507 | extern void xread(int fd, void *buf, size_t count); |
505 | extern unsigned char xread_char(int fd); | 508 | extern unsigned char xread_char(int fd); |
@@ -514,6 +517,8 @@ extern ssize_t open_read_close(const char *filename, void *buf, size_t count); | |||
514 | extern void *xmalloc_open_read_close(const char *filename, size_t *sizep); | 517 | extern void *xmalloc_open_read_close(const char *filename, size_t *sizep); |
515 | 518 | ||
516 | extern ssize_t safe_write(int fd, const void *buf, size_t count); | 519 | extern ssize_t safe_write(int fd, const void *buf, size_t count); |
520 | // NB: will return short write on error, not -1, | ||
521 | // if some data was written before error occurred | ||
517 | extern ssize_t full_write(int fd, const void *buf, size_t count); | 522 | extern ssize_t full_write(int fd, const void *buf, size_t count); |
518 | extern void xwrite(int fd, const void *buf, size_t count); | 523 | extern void xwrite(int fd, const void *buf, size_t count); |
519 | 524 | ||
diff --git a/include/usage.h b/include/usage.h index 7c9a90e77..359f88d27 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2055,7 +2055,7 @@ USE_FEATURE_BRCTL_FANCY("\n" \ | |||
2055 | "SPOOLDIR" | 2055 | "SPOOLDIR" |
2056 | #define lpd_full_usage \ | 2056 | #define lpd_full_usage \ |
2057 | "Example:" \ | 2057 | "Example:" \ |
2058 | "\n tcpsvd -E localhost 515 lpd /var/spool" | 2058 | "\n tcpsvd -E 0 515 softlimit -m 99999 lpd /var/spool" |
2059 | 2059 | ||
2060 | #define lpq_trivial_usage \ | 2060 | #define lpq_trivial_usage \ |
2061 | "[-P queue[@host[:port]]] [-U USERNAME] [-d JOBID...] [-fs]" | 2061 | "[-P queue[@host[:port]]] [-U USERNAME] [-d JOBID...] [-fs]" |