raise.c 508 B

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