aboutsummaryrefslogtreecommitdiff
path: root/busybox.h
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.h')
-rw-r--r--busybox.h32
1 files changed, 1 insertions, 31 deletions
diff --git a/busybox.h b/busybox.h
index be6c6f305..5f9425a5b 100644
--- a/busybox.h
+++ b/busybox.h
@@ -26,19 +26,10 @@
26 26
27#include "Config.h" 27#include "Config.h"
28 28
29#include <stdlib.h> 29#include <stdio.h>
30#include <stdarg.h> 30#include <stdarg.h>
31#include <string.h>
32#include <unistd.h>
33#include <errno.h>
34#include <sys/stat.h> 31#include <sys/stat.h>
35#include <sys/param.h>
36#include <sys/types.h> 32#include <sys/types.h>
37#include <mntent.h>
38#include <regex.h>
39/* for the _syscall() macros */
40#include <sys/syscall.h>
41#include <linux/unistd.h>
42 33
43#ifdef DMALLOC 34#ifdef DMALLOC
44#include "dmalloc.h" 35#include "dmalloc.h"
@@ -69,26 +60,6 @@ static inline int is_octal(ch) { return ((ch >= '0') && (ch <= '7')); }
69#endif 60#endif
70 61
71 62
72/* I don't like nested includes, but the string and io functions are used
73 * too often
74 */
75#include <stdio.h>
76#if !defined(NO_STRING_H) || defined(STDC_HEADERS)
77# include <string.h>
78# if !defined(STDC_HEADERS) && !defined(NO_MEMORY_H) && !defined(__GNUC__)
79# include <memory.h>
80# endif
81# define memzero(s, n) memset ((void *)(s), 0, (n))
82#else
83# include <strings.h>
84# define strchr index
85# define strrchr rindex
86# define memcpy(d, s, n) bcopy((s), (d), (n))
87# define memcmp(s1, s2, n) bcmp((s1), (s2), (n))
88# define memzero(s, n) bzero((s), (n))
89#endif
90
91
92enum Location { 63enum Location {
93 _BB_DIR_ROOT = 0, 64 _BB_DIR_ROOT = 0,
94 _BB_DIR_BIN, 65 _BB_DIR_BIN,
@@ -179,7 +150,6 @@ extern void print_file(FILE *file);
179extern int print_file_by_name(char *filename); 150extern int print_file_by_name(char *filename);
180extern char process_escape_sequence(char **ptr); 151extern char process_escape_sequence(char **ptr);
181extern char *get_last_path_component(char *path); 152extern char *get_last_path_component(char *path);
182extern void xregcomp(regex_t *preg, const char *regex, int cflags);
183extern FILE *wfopen(const char *path, const char *mode); 153extern FILE *wfopen(const char *path, const char *mode);
184extern FILE *xfopen(const char *path, const char *mode); 154extern FILE *xfopen(const char *path, const char *mode);
185 155