diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-01 22:12:44 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-01 22:12:44 +0200 |
| commit | c4199f22d0f7793b70db51c01783f0d45afce3d4 (patch) | |
| tree | d54b8df23749d5ea06dc5effd5ba111b8e2cf52f /include | |
| parent | 29b33b63d49be88200f794d832450a4c71e85a5e (diff) | |
| download | busybox-w32-c4199f22d0f7793b70db51c01783f0d45afce3d4.tar.gz busybox-w32-c4199f22d0f7793b70db51c01783f0d45afce3d4.tar.bz2 busybox-w32-c4199f22d0f7793b70db51c01783f0d45afce3d4.zip | |
libbb: two new functions: wait_for_exitstatus(pid), xfchdir(fd)
Bartosz Golaszewski proposed xfchdir()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -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 98d788402..5b4280e34 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -500,6 +500,7 @@ void xsetuid(uid_t uid) FAST_FUNC; | |||
| 500 | void xsetegid(gid_t egid) FAST_FUNC; | 500 | void xsetegid(gid_t egid) FAST_FUNC; |
| 501 | void xseteuid(uid_t euid) FAST_FUNC; | 501 | void xseteuid(uid_t euid) FAST_FUNC; |
| 502 | void xchdir(const char *path) FAST_FUNC; | 502 | void xchdir(const char *path) FAST_FUNC; |
| 503 | void xfchdir(int fd) FAST_FUNC; | ||
| 503 | void xchroot(const char *path) FAST_FUNC; | 504 | void xchroot(const char *path) FAST_FUNC; |
| 504 | void xsetenv(const char *key, const char *value) FAST_FUNC; | 505 | void xsetenv(const char *key, const char *value) FAST_FUNC; |
| 505 | void bb_unsetenv(const char *key) FAST_FUNC; | 506 | void bb_unsetenv(const char *key) FAST_FUNC; |
| @@ -1021,6 +1022,7 @@ pid_t wait_any_nohang(int *wstat) FAST_FUNC; | |||
| 1021 | * if (rc > 0) bb_error_msg("exit code: %d", rc & 0xff); | 1022 | * if (rc > 0) bb_error_msg("exit code: %d", rc & 0xff); |
| 1022 | */ | 1023 | */ |
| 1023 | int wait4pid(pid_t pid) FAST_FUNC; | 1024 | int wait4pid(pid_t pid) FAST_FUNC; |
| 1025 | int wait_for_exitstatus(pid_t pid) FAST_FUNC; | ||
| 1024 | /* Same as wait4pid(spawn(argv)), but with NOFORK/NOEXEC if configured: */ | 1026 | /* Same as wait4pid(spawn(argv)), but with NOFORK/NOEXEC if configured: */ |
| 1025 | int spawn_and_wait(char **argv) FAST_FUNC; | 1027 | int spawn_and_wait(char **argv) FAST_FUNC; |
| 1026 | /* Does NOT check that applet is NOFORK, just blindly runs it */ | 1028 | /* Does NOT check that applet is NOFORK, just blindly runs it */ |
