environ is exported in <unistd.h>.
env.c:29:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
29 | extern char **environ;
| ^~~~~~~
login.c:92:15: warning: redundant redeclaration of ‘environ’ [-Wredundant-decls]
92 | extern char **environ;
| ^~~~~~~
sulogin.c:40:15: warning: redundant redeclaration of ‘environ’ [-Wredundant-decls]
40 | extern char **environ;
| ^~~~~~~
newgrp.c:32:15: warning: redundant redeclaration of ‘environ’ [-Wredundant-decls]
32 | extern char **environ;
| ^~~~~~~
#define NEWENVP_STEP 16
size_t newenvc = 0;
/*@null@*/char **newenvp = NULL;
-extern char **environ;
static const char *const forbid[] = {
"_RLD_=",
extern char **newenvp;
extern size_t newenvc;
-extern char **environ;
#ifndef ALARM
#define ALARM 60
const char *Prog;
extern char **newenvp;
-extern char **environ;
#ifdef HAVE_SETGROUPS
static int ngroups;
extern char **newenvp;
extern size_t newenvc;
-extern char **environ;
-
#ifndef ALARM
#define ALARM 60
#endif