home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
cnews.src.lzh
/
libc
/
standard.c
< prev
next >
Wrap
C/C++ Source or Header
|
1980-01-01
|
295b
|
27 lines
#define NULL 0
extern void closeall();
extern char **environ;
static char *stdenv[] = {
/* =()< "PATH=@<NEWSPATH>@",>()= */
"PATH=/bin:/usr/bin",
"IFS= \t\n",
NULL
};
void
standard()
{
environ = stdenv;
closeall(1);
}
void
safe()
{
setgid(getgid());
setuid(getuid());
closeall(1);
}