home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / posix / unistd / setpgid.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-01  |  254 b   |  16 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <unistd.h>
  3. #include <errno.h>
  4.  
  5. /* ARGSUSED */
  6. int
  7. setpgid(pid_t _pid, pid_t _pgid)
  8. {
  9.   if (_pgid != getpid())
  10.   {
  11.     errno = EPERM;
  12.     return -1;
  13.   }
  14.   return 0;
  15. }
  16.