aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h7
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);
263char *xmalloc_readlink_or_warn(const char *path); 263char *xmalloc_readlink_or_warn(const char *path);
264char *xmalloc_realpath(const char *path); 264char *xmalloc_realpath(const char *path);
265extern void xstat(const char *filename, struct stat *buf); 265extern 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 */
266extern int wait4pid(int pid); 273extern int wait4pid(int pid);
267extern void xsetgid(gid_t gid); 274extern void xsetgid(gid_t gid);
268extern void xsetuid(uid_t uid); 275extern void xsetuid(uid_t uid);