aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h28
1 files changed, 19 insertions, 9 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,
211extern int bb_printf(const char * __restrict format, ...) 207extern 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
215extern void xferror(FILE *fp, const char *fn); 213extern void xferror(FILE *fp, const char *fn);
216extern void xferror_stdout(void); 214extern void xferror_stdout(void);
217extern void xfflush_stdout(void); 215extern void xfflush_stdout(void);
@@ -265,7 +263,9 @@ extern long bb_xgetlarg_bnd_sfx(const char *arg, int base,
265extern long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes); 263extern 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
269extern unsigned long bb_xparse_number(const char *numstr, 269extern 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);
330char *concat_subpath_file(const char *path, const char *filename); 330char *concat_subpath_file(const char *path, const char *filename);
331char *last_char_is(const char *s, int c); 331char *last_char_is(const char *s, int c);
332 332
333//#warning yuk! 333#if ENABLE_NITPICK
334#warning yuk!
335#endif
334char *fgets_str(FILE *file, const char *terminating_string); 336char *fgets_str(FILE *file, const char *terminating_string);
335 337
336extern int uncompress(int fd_in, int fd_out); 338extern int uncompress(int fd_in, int fd_out);
@@ -344,7 +346,9 @@ extern int xconnect(struct sockaddr_in *s_addr);
344extern unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port); 346extern unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port);
345extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host); 347extern 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
348char *dirname (char *path); 352char *dirname (char *path);
349 353
350int bb_make_directory (char *path, long mode, int flags); 354int 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__ */