home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / cnews / part01 / libc / standard.c < prev   
Encoding:
C/C++ Source or Header  |  1987-10-19  |  223 b   |  21 lines

  1. #define    NULL    0
  2. extern char    **environ;
  3. static char    *stdenv[] = {
  4.     "PATH=/bin:/usr/bin",
  5.     "IFS= \t\n",
  6.     NULL
  7. };
  8.  
  9. standard()
  10. {
  11.     environ = stdenv;
  12.     closeall(1);
  13. }
  14.  
  15. safe()
  16. {
  17.     setgid(getgid());
  18.     setuid(getuid());
  19.     closeall(1);
  20. }
  21.