aboutsummaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utility.c b/utility.c
index 5dbe253a4..879677726 100644
--- a/utility.c
+++ b/utility.c
@@ -142,7 +142,7 @@ extern void perror_msg_and_die(const char *s, ...)
142 exit(EXIT_FAILURE); 142 exit(EXIT_FAILURE);
143} 143}
144 144
145#if defined BB_INIT 145#if defined BB_INIT || defined BB_MKSWAP || defined BB_MOUNT
146/* Returns kernel version encoded as major*65536 + minor*256 + patch, 146/* Returns kernel version encoded as major*65536 + minor*256 + patch,
147 * so, for example, to check if the kernel is greater than 2.2.11: 147 * so, for example, to check if the kernel is greater than 2.2.11:
148 * if (get_kernel_revision() <= 2*65536+2*256+11) { <stuff> } 148 * if (get_kernel_revision() <= 2*65536+2*256+11) { <stuff> }
@@ -536,7 +536,7 @@ const char *time_string(time_t timeVal)
536} 536}
537#endif /* BB_TAR || BB_AR */ 537#endif /* BB_TAR || BB_AR */
538 538
539#if defined BB_TAR || defined BB_CP_MV || defined BB_AR 539#if defined BB_TAR || defined BB_CP_MV || defined BB_AR || defined BB_DD
540/* 540/*
541 * Write all of the supplied buffer out to a file. 541 * Write all of the supplied buffer out to a file.
542 * This does multiple writes as necessary. 542 * This does multiple writes as necessary.
@@ -565,7 +565,7 @@ int full_write(int fd, const char *buf, int len)
565#endif /* BB_TAR || BB_CP_MV || BB_AR */ 565#endif /* BB_TAR || BB_CP_MV || BB_AR */
566 566
567 567
568#if defined BB_TAR || defined BB_TAIL || defined BB_AR || defined BB_SH || defined BB_CP_MV 568#if defined BB_TAR || defined BB_TAIL || defined BB_AR || defined BB_SH || defined BB_CP_MV || defined BB_DD
569/* 569/*
570 * Read all of the supplied buffer from a file. 570 * Read all of the supplied buffer from a file.
571 * This does multiple reads as necessary. 571 * This does multiple reads as necessary.
@@ -866,7 +866,7 @@ extern int parse_mode(const char *s, mode_t * theMode)
866 866
867#if defined BB_CHMOD_CHOWN_CHGRP || defined BB_PS || defined BB_LS \ 867#if defined BB_CHMOD_CHOWN_CHGRP || defined BB_PS || defined BB_LS \
868 || defined BB_TAR || defined BB_ID || defined BB_LOGGER \ 868 || defined BB_TAR || defined BB_ID || defined BB_LOGGER \
869 || defined BB_LOGNAME || defined BB_WHOAMI 869 || defined BB_LOGNAME || defined BB_WHOAMI || defined BB_SH
870 870
871/* This parses entries in /etc/passwd and /etc/group. This is desirable 871/* This parses entries in /etc/passwd and /etc/group. This is desirable
872 * for BusyBox, since we want to avoid using the glibc NSS stuff, which 872 * for BusyBox, since we want to avoid using the glibc NSS stuff, which