diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-31 22:16:38 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-31 22:16:38 +0000 |
commit | fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd (patch) | |
tree | f2d3fe127fb6c3c1d3b919631de6e6ed7cbc1791 /util-linux | |
parent | c2f011aa031b8598422953d5e9a93ca008ad0867 (diff) | |
download | busybox-w32-fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd.tar.gz busybox-w32-fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd.tar.bz2 busybox-w32-fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd.zip |
use "glibc errno" trick not only for ash, but for entire busybox
(add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/ipcs.c | 8 | ||||
-rw-r--r-- | util-linux/setarch.c | 5 |
2 files changed, 1 insertions, 12 deletions
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index 393f94832..d7d901921 100644 --- a/util-linux/ipcs.c +++ b/util-linux/ipcs.c | |||
@@ -8,12 +8,6 @@ | |||
8 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include "libbb.h" | ||
12 | #include <errno.h> | ||
13 | #include <time.h> | ||
14 | #include <pwd.h> | ||
15 | #include <grp.h> | ||
16 | |||
17 | /* X/OPEN tells us to use <sys/{types,ipc,sem}.h> for semctl() */ | 11 | /* X/OPEN tells us to use <sys/{types,ipc,sem}.h> for semctl() */ |
18 | /* X/OPEN tells us to use <sys/{types,ipc,msg}.h> for msgctl() */ | 12 | /* X/OPEN tells us to use <sys/{types,ipc,msg}.h> for msgctl() */ |
19 | /* X/OPEN tells us to use <sys/{types,ipc,shm}.h> for shmctl() */ | 13 | /* X/OPEN tells us to use <sys/{types,ipc,shm}.h> for shmctl() */ |
@@ -23,7 +17,7 @@ | |||
23 | #include <sys/msg.h> | 17 | #include <sys/msg.h> |
24 | #include <sys/shm.h> | 18 | #include <sys/shm.h> |
25 | 19 | ||
26 | 20 | #include "libbb.h" | |
27 | 21 | ||
28 | /*-------------------------------------------------------------------*/ | 22 | /*-------------------------------------------------------------------*/ |
29 | /* SHM_DEST and SHM_LOCKED are defined in kernel headers, | 23 | /* SHM_DEST and SHM_LOCKED are defined in kernel headers, |
diff --git a/util-linux/setarch.c b/util-linux/setarch.c index f6433d6ba..2fb47f9e8 100644 --- a/util-linux/setarch.c +++ b/util-linux/setarch.c | |||
@@ -7,11 +7,6 @@ | |||
7 | * Licensed under GPL v2 or later, see file License for details. | 7 | * Licensed under GPL v2 or later, see file License for details. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <stdlib.h> | ||
11 | #include <unistd.h> | ||
12 | #include <string.h> | ||
13 | #include <errno.h> | ||
14 | #include <stdio.h> | ||
15 | #include <sys/personality.h> | 10 | #include <sys/personality.h> |
16 | 11 | ||
17 | #include "libbb.h" | 12 | #include "libbb.h" |