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
This commit is contained in:
Denis Vlasenko 2007-05-31 22:16:38 +00:00
parent c2f011aa03
commit fad2b86c9e
16 changed files with 23 additions and 83 deletions

View file

@ -8,12 +8,6 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "libbb.h"
#include <errno.h>
#include <time.h>
#include <pwd.h>
#include <grp.h>
/* X/OPEN tells us to use <sys/{types,ipc,sem}.h> for semctl() */
/* X/OPEN tells us to use <sys/{types,ipc,msg}.h> for msgctl() */
/* X/OPEN tells us to use <sys/{types,ipc,shm}.h> for shmctl() */
@ -23,7 +17,7 @@
#include <sys/msg.h>
#include <sys/shm.h>
#include "libbb.h"
/*-------------------------------------------------------------------*/
/* SHM_DEST and SHM_LOCKED are defined in kernel headers,