aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 888be6e6e..c5821259a 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -82,35 +82,6 @@
82 * $ "export" i=`echo 'aaa bbb'`; echo "$i" 82 * $ "export" i=`echo 'aaa bbb'`; echo "$i"
83 * aaa 83 * aaa
84 */ 84 */
85#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
86 || defined(__APPLE__) \
87 )
88# include <malloc.h> /* for malloc_trim */
89#endif
90#include <glob.h>
91/* #include <dmalloc.h> */
92#if ENABLE_HUSH_CASE
93# include <fnmatch.h>
94#endif
95#include <sys/utsname.h> /* for setting $HOSTNAME */
96
97#include "busybox.h" /* for APPLET_IS_NOFORK/NOEXEC */
98#include "unicode.h"
99#include "shell_common.h"
100#include "math.h"
101#include "match.h"
102#if ENABLE_HUSH_RANDOM_SUPPORT
103# include "random.h"
104#else
105# define CLEAR_RANDOM_T(rnd) ((void)0)
106#endif
107#ifndef F_DUPFD_CLOEXEC
108# define F_DUPFD_CLOEXEC F_DUPFD
109#endif
110#ifndef PIPE_BUF
111# define PIPE_BUF 4096 /* amount of buffering in a pipe */
112#endif
113
114//config:config HUSH 85//config:config HUSH
115//config: bool "hush" 86//config: bool "hush"
116//config: default y 87//config: default y
@@ -277,6 +248,35 @@
277//usage:# define bash_full_usage hush_full_usage 248//usage:# define bash_full_usage hush_full_usage
278//usage:#endif 249//usage:#endif
279 250
251#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
252 || defined(__APPLE__) \
253 )
254# include <malloc.h> /* for malloc_trim */
255#endif
256#include <glob.h>
257/* #include <dmalloc.h> */
258#if ENABLE_HUSH_CASE
259# include <fnmatch.h>
260#endif
261#include <sys/utsname.h> /* for setting $HOSTNAME */
262
263#include "busybox.h" /* for APPLET_IS_NOFORK/NOEXEC */
264#include "unicode.h"
265#include "shell_common.h"
266#include "math.h"
267#include "match.h"
268#if ENABLE_HUSH_RANDOM_SUPPORT
269# include "random.h"
270#else
271# define CLEAR_RANDOM_T(rnd) ((void)0)
272#endif
273#ifndef F_DUPFD_CLOEXEC
274# define F_DUPFD_CLOEXEC F_DUPFD
275#endif
276#ifndef PIPE_BUF
277# define PIPE_BUF 4096 /* amount of buffering in a pipe */
278#endif
279
280 280
281/* Build knobs */ 281/* Build knobs */
282#define LEAK_HUNTING 0 282#define LEAK_HUNTING 0