raise.c 185 B

1234567891011
  1. /* not a posix function, but implemented with posix kill, getpid */
  2. #include <sys/types.h>
  3. #include <signal.h>
  4. #include <unistd.h>
  5. int
  6. raise(int sig)
  7. {
  8. return kill(getpid(), sig);
  9. }