diff options
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -379,7 +379,7 @@ int fullRead(int fd, char *buf, int len) | |||
379 | #endif | 379 | #endif |
380 | 380 | ||
381 | 381 | ||
382 | #if defined (BB_CHOWN) || defined (BB_CP) || defined (BB_FIND) || defined (BB_LS) || defined (BB_INSMOD) | 382 | #if defined (BB_CHMOD_CHOWN_CHGRP) || defined (BB_CP) || defined (BB_FIND) || defined (BB_LS) || defined (BB_INSMOD) |
383 | /* | 383 | /* |
384 | * Walk down all the directories under the specified | 384 | * Walk down all the directories under the specified |
385 | * location, and do something (something specified | 385 | * location, and do something (something specified |
@@ -969,7 +969,7 @@ check_wildcard_match(const char* text, const char* pattern) | |||
969 | 969 | ||
970 | 970 | ||
971 | 971 | ||
972 | #if defined BB_DF | defined BB_MTAB | 972 | #if defined BB_DF || defined BB_MTAB |
973 | /* | 973 | /* |
974 | * Given a block device, find the mount table entry if that block device | 974 | * Given a block device, find the mount table entry if that block device |
975 | * is mounted. | 975 | * is mounted. |
@@ -1008,7 +1008,6 @@ extern struct mntent *findMountPoint(const char *name, const char *table) | |||
1008 | endmntent(mountTable); | 1008 | endmntent(mountTable); |
1009 | return mountEntry; | 1009 | return mountEntry; |
1010 | } | 1010 | } |
1011 | |||
1012 | #endif | 1011 | #endif |
1013 | 1012 | ||
1014 | 1013 | ||
@@ -1111,4 +1110,15 @@ findInitPid() | |||
1111 | } | 1110 | } |
1112 | #endif | 1111 | #endif |
1113 | 1112 | ||
1113 | #if (__GLIBC__ < 2) && (defined BB_SYSLOGD || defined BB_INIT) | ||
1114 | extern int vdprintf(int d, const char *format, va_list ap) | ||
1115 | { | ||
1116 | char buf[BUF_SIZE]; | ||
1117 | int len; | ||
1118 | |||
1119 | len = vsprintf(buf, format, ap); | ||
1120 | return write(d, buf, len); | ||
1121 | } | ||
1122 | #endif | ||
1123 | |||
1114 | /* END CODE */ | 1124 | /* END CODE */ |