setpgrp.c 146 B

1234567891011
  1. #include <syscall.h>
  2. #include <unistd.h>
  3. static inline
  4. _syscall2(int,setpgid,pid_t,pid,pid_t,pgid);
  5. int
  6. setpgrp(void)
  7. {
  8. return setpgid(0,0);
  9. }