raise.c 499 B

1234567891011121314151617181920
  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. #define kill __kill
  6. #include <unistd.h>
  7. #include <string.h>
  8. #include <signal.h>
  9. #include <sys/types.h>
  10. #undef raise
  11. int attribute_hidden __raise(int signo)
  12. {
  13. return kill(__getpid(), signo);
  14. }
  15. /* psm: keep this weak, because the one in libpthread.so could overwrite it */
  16. weak_alias(__raise, raise)