diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 32e099b54..67fd2af21 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -263,6 +263,13 @@ char *xrealloc_getcwd_or_warn(char *cwd); | |||
263 | char *xmalloc_readlink_or_warn(const char *path); | 263 | char *xmalloc_readlink_or_warn(const char *path); |
264 | char *xmalloc_realpath(const char *path); | 264 | char *xmalloc_realpath(const char *path); |
265 | extern void xstat(const char *filename, struct stat *buf); | 265 | extern void xstat(const char *filename, struct stat *buf); |
266 | /* Unlike waitpid, waits ONLY for one process, | ||
267 | * It's safe to pass negative 'pids' from failed [v]fork - | ||
268 | * wait4pid will return -1 and ECHILD in errno. | ||
269 | * IOW: rc = wait4pid(spawn(argv)); | ||
270 | * if (rc < 0) bb_perror_msg("%s", argv[0]); | ||
271 | * if (rc > 0) bb_error_msg("exit code: %d", rc); | ||
272 | */ | ||
266 | extern int wait4pid(int pid); | 273 | extern int wait4pid(int pid); |
267 | extern void xsetgid(gid_t gid); | 274 | extern void xsetgid(gid_t gid); |
268 | extern void xsetuid(uid_t uid); | 275 | extern void xsetuid(uid_t uid); |