raise.c 272 B

123456789101112
  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 <signal.h>
  6. int raise(int signo)
  7. {
  8. return kill(getpid(), signo);
  9. }
  10. libc_hidden_def(raise)