raise.c 315 B

1234567891011121314
  1. /* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
  2. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  3. */
  4. #include <unistd.h>
  5. #include <string.h>
  6. #include <signal.h>
  7. #include <sys/types.h>
  8. int raise(int signo)
  9. {
  10. return kill(getpid(), signo);
  11. }
  12. libc_hidden_def(raise)