home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume12
/
cnews
/
part01
/
libc
/
standard.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-10-19
|
223 b
|
21 lines
#define NULL 0
extern char **environ;
static char *stdenv[] = {
"PATH=/bin:/usr/bin",
"IFS= \t\n",
NULL
};
standard()
{
environ = stdenv;
closeall(1);
}
safe()
{
setgid(getgid());
setuid(getuid());
closeall(1);
}