#include "busybox.h"
#include <errno.h>
#include <getopt.h> /* struct option */
+extern char **environ;
#if ENABLE_FEATURE_ENV_LONG_OPTIONS
static const struct option env_long_options[] = {
char **ep;
unsigned opt;
llist_t *unset_env = NULL;
- extern char **environ;
opt_complementary = "u::";
#if ENABLE_FEATURE_ENV_LONG_OPTIONS
#include <string.h>
#include <stdlib.h>
#include "busybox.h"
+extern char **environ;
int printenv_main(int argc, char **argv);
int printenv_main(int argc, char **argv)
{
- extern char **environ;
int e = 0;
/* no variables specified, show whole env */
#include "busybox.h"
#include "xregex.h"
#include <math.h>
+extern char **environ;
/* This is a NOEXEC applet. Be very careful! */
/* globals */
-extern char **environ;
-
static var * V[_intvarcount_];
static chain beginseq, mainseq, endseq, *seq;
static int nextrec, nextfile;
#include <rpc/pmap_clnt.h>
#endif
-#define _PATH_INETDPID "/var/run/inetd.pid"
+extern char **environ;
+
+#define _PATH_INETDPID "/var/run/inetd.pid"
#define CNT_INTVL 60 /* servers in CNT_INTVL sec. */
#define RETRYTIME (60*10) /* retry after bind or server fail */
sigset_t omask, wait_mask;
#ifdef INETD_SETPROCTITLE
- extern char **environ;
char **envp = environ;
Argv = argv;
#if JOBS || ENABLE_ASH_READ_NCHARS
#include <termios.h>
#endif
+extern char **environ;
#if defined(__uClinux__)
#error "Do not even bother, ash will not run on uClinux"
static struct redirtab *redirlist;
static int nullredirs;
-extern char **environ;
static int preverrout_fd; /* save fd2 before print debug if xflag is set. */
#define VTABSIZE 39