diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-13 12:56:10 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-01-13 12:56:10 +0100 |
commit | c2788f88f430da8ae5fb5f293b13fc2b167ea2fe (patch) | |
tree | 44e3fd94292a3ef13ecdbf14d469459e00be1150 /include | |
parent | 931c55f9e2b41473132683488820c6fb7c47506b (diff) | |
download | busybox-w32-c2788f88f430da8ae5fb5f293b13fc2b167ea2fe.tar.gz busybox-w32-c2788f88f430da8ae5fb5f293b13fc2b167ea2fe.tar.bz2 busybox-w32-c2788f88f430da8ae5fb5f293b13fc2b167ea2fe.zip |
libbb: introduce and use chdir_or_warn()
function old new delta
chdir_or_warn - 37 +37
send_cgi_and_exit 720 711 -9
xchdir 27 15 -12
setup_environment 233 217 -16
fork_job 449 433 -16
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/4 up/down: 37/-53) Total: -16 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 780e9ae7d..91b456915 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -645,6 +645,7 @@ void xsetgid(gid_t gid) FAST_FUNC; | |||
645 | void xsetuid(uid_t uid) FAST_FUNC; | 645 | void xsetuid(uid_t uid) FAST_FUNC; |
646 | void xsetegid(gid_t egid) FAST_FUNC; | 646 | void xsetegid(gid_t egid) FAST_FUNC; |
647 | void xseteuid(uid_t euid) FAST_FUNC; | 647 | void xseteuid(uid_t euid) FAST_FUNC; |
648 | int chdir_or_warn(const char *path) FAST_FUNC; | ||
648 | void xchdir(const char *path) FAST_FUNC; | 649 | void xchdir(const char *path) FAST_FUNC; |
649 | void xfchdir(int fd) FAST_FUNC; | 650 | void xfchdir(int fd) FAST_FUNC; |
650 | void xchroot(const char *path) FAST_FUNC; | 651 | void xchroot(const char *path) FAST_FUNC; |