diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 28 | ||||
-rw-r--r-- | include/unarchive.h | 2 | ||||
-rw-r--r-- | include/usage.h | 10 |
3 files changed, 24 insertions, 16 deletions
diff --git a/include/libbb.h b/include/libbb.h index 3c563a96f..b94586165 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -60,10 +60,6 @@ | |||
60 | #define PATH_MAX 256 | 60 | #define PATH_MAX 256 |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #ifdef DMALLOC | ||
64 | #include <dmalloc.h> | ||
65 | #endif | ||
66 | |||
67 | /* Some useful definitions */ | 63 | /* Some useful definitions */ |
68 | #undef FALSE | 64 | #undef FALSE |
69 | #define FALSE ((int) 0) | 65 | #define FALSE ((int) 0) |
@@ -211,7 +207,9 @@ extern int bb_fprintf(FILE * __restrict stream, const char * __restrict format, | |||
211 | extern int bb_printf(const char * __restrict format, ...) | 207 | extern int bb_printf(const char * __restrict format, ...) |
212 | __attribute__ ((format (printf, 1, 2))); | 208 | __attribute__ ((format (printf, 1, 2))); |
213 | 209 | ||
214 | //#warning rename to xferror_filename? | 210 | #if ENABLE_NITPICK |
211 | #warning rename to xferror_filename? | ||
212 | #endif | ||
215 | extern void xferror(FILE *fp, const char *fn); | 213 | extern void xferror(FILE *fp, const char *fn); |
216 | extern void xferror_stdout(void); | 214 | extern void xferror_stdout(void); |
217 | extern void xfflush_stdout(void); | 215 | extern void xfflush_stdout(void); |
@@ -265,7 +263,9 @@ extern long bb_xgetlarg_bnd_sfx(const char *arg, int base, | |||
265 | extern long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes); | 263 | extern long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes); |
266 | 264 | ||
267 | 265 | ||
268 | //#warning pitchable now? | 266 | #if ENABLE_NITPICK |
267 | #warning pitchable now? | ||
268 | #endif | ||
269 | extern unsigned long bb_xparse_number(const char *numstr, | 269 | extern unsigned long bb_xparse_number(const char *numstr, |
270 | const struct suffix_mult *suffixes); | 270 | const struct suffix_mult *suffixes); |
271 | 271 | ||
@@ -330,7 +330,9 @@ char *concat_path_file(const char *path, const char *filename); | |||
330 | char *concat_subpath_file(const char *path, const char *filename); | 330 | char *concat_subpath_file(const char *path, const char *filename); |
331 | char *last_char_is(const char *s, int c); | 331 | char *last_char_is(const char *s, int c); |
332 | 332 | ||
333 | //#warning yuk! | 333 | #if ENABLE_NITPICK |
334 | #warning yuk! | ||
335 | #endif | ||
334 | char *fgets_str(FILE *file, const char *terminating_string); | 336 | char *fgets_str(FILE *file, const char *terminating_string); |
335 | 337 | ||
336 | extern int uncompress(int fd_in, int fd_out); | 338 | extern int uncompress(int fd_in, int fd_out); |
@@ -344,7 +346,9 @@ extern int xconnect(struct sockaddr_in *s_addr); | |||
344 | extern unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port); | 346 | extern unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port); |
345 | extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host); | 347 | extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host); |
346 | 348 | ||
347 | //#warning wrap this? | 349 | #if ENABLE_NITPICK |
350 | #warning wrap this? | ||
351 | #endif | ||
348 | char *dirname (char *path); | 352 | char *dirname (char *path); |
349 | 353 | ||
350 | int bb_make_directory (char *path, long mode, int flags); | 354 | int bb_make_directory (char *path, long mode, int flags); |
@@ -456,8 +460,10 @@ extern int bb_default_error_retval; | |||
456 | # define FB_0 "/dev/fb0" | 460 | # define FB_0 "/dev/fb0" |
457 | #endif | 461 | #endif |
458 | 462 | ||
459 | //#warning put these in .o files | ||
460 | 463 | ||
464 | #if ENABLE_NITPICK | ||
465 | #warning put these in .o files | ||
466 | #endif | ||
461 | /* The following devices are the same on devfs and non-devfs systems. */ | 467 | /* The following devices are the same on devfs and non-devfs systems. */ |
462 | #define CURRENT_TTY "/dev/tty" | 468 | #define CURRENT_TTY "/dev/tty" |
463 | #define CONSOLE_DEV "/dev/console" | 469 | #define CONSOLE_DEV "/dev/console" |
@@ -581,4 +587,8 @@ extern const char BB_BANNER[]; | |||
581 | #undef isupper | 587 | #undef isupper |
582 | #undef isxdigit | 588 | #undef isxdigit |
583 | 589 | ||
590 | #ifdef DMALLOC | ||
591 | #include <dmalloc.h> | ||
592 | #endif | ||
593 | |||
584 | #endif /* __LIBBUSYBOX_H__ */ | 594 | #endif /* __LIBBUSYBOX_H__ */ |
diff --git a/include/unarchive.h b/include/unarchive.h index 05ab0c16a..1dbbc009d 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -10,8 +10,6 @@ | |||
10 | #define ARCHIVE_NOPRESERVE_OWN 32 | 10 | #define ARCHIVE_NOPRESERVE_OWN 32 |
11 | #define ARCHIVE_NOPRESERVE_PERM 64 | 11 | #define ARCHIVE_NOPRESERVE_PERM 64 |
12 | 12 | ||
13 | #include <sys/types.h> | ||
14 | #include <stdio.h> | ||
15 | #include "libbb.h" | 13 | #include "libbb.h" |
16 | 14 | ||
17 | typedef struct file_headers_s { | 15 | typedef struct file_headers_s { |
diff --git a/include/usage.h b/include/usage.h index ced9f68c7..0f95708c5 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1426,12 +1426,12 @@ USE_FEATURE_DATE_ISOFMT( \ | |||
1426 | #define ipcrm_trivial_usage \ | 1426 | #define ipcrm_trivial_usage \ |
1427 | "[-[MQS] key] [-[mqs] id]" | 1427 | "[-[MQS] key] [-[mqs] id]" |
1428 | #define ipcrm_full_usage \ | 1428 | #define ipcrm_full_usage \ |
1429 | "The upper-case options MQS are used to remove a shared memory\n" \ | 1429 | "The upper-case options MQS are used to remove a shared memory segment by a\n" \ |
1430 | "segment by an shmkey value. The lower-case options mqs are used\n" \ | 1430 | "segment by a shmkey value. The lower-case options mqs are used\n" \ |
1431 | "to remove a segment by shmid value.\n" \ | 1431 | "to remove a segment by shmid value.\n" \ |
1432 | "\t-m | -M\tRemove the memory segment after the last detach\n" \ | 1432 | "\t-[mM]\tRemove the memory segment after the last detach\n" \ |
1433 | "\t-q | -Q\tRemove the message queue\n" \ | 1433 | "\t-[qQ]\tRemove the message queue\n" \ |
1434 | "\t-s | -S\tRemove the semaphore" | 1434 | "\t-[sS]\tRemove the semaphore" |
1435 | 1435 | ||
1436 | #define ipcs_trivial_usage \ | 1436 | #define ipcs_trivial_usage \ |
1437 | "[[-smq] -i shmid] | [[-asmq] [-tclup]]" | 1437 | "[[-smq] -i shmid] | [[-asmq] [-tclup]]" |