raise.c 466 B

123456789101112131415161718192021
  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. libc_hidden_proto(getpid)
  9. libc_hidden_proto(kill)
  10. int __raise (int signo) attribute_hidden;
  11. int __raise(int signo)
  12. {
  13. return kill(getpid(), signo);
  14. }
  15. libc_hidden_proto(raise)
  16. weak_alias(__raise,raise)
  17. libc_hidden_def(raise)