raise.c 482 B

123456789101112131415161718192021
  1. /* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
  2. * This file is part of the Linux-8086 C library and is distributed
  3. * under the GNU Library General Public License.
  4. */
  5. #include <unistd.h>
  6. #include <string.h>
  7. #include <signal.h>
  8. #include <sys/types.h>
  9. libc_hidden_proto(getpid)
  10. libc_hidden_proto(kill)
  11. int attribute_hidden __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)