kill.c 430 B

1234567891011121314151617181920
  1. /*
  2. * kill() for uClibc
  3. *
  4. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. */
  8. #include <sys/syscall.h>
  9. #include <signal.h>
  10. #define __NR___syscall_kill __NR_kill
  11. static __inline__ _syscall2(int, __syscall_kill, __kernel_pid_t, pid, int, sig)
  12. int kill(pid_t pid, int sig)
  13. {
  14. return (__syscall_kill(pid, sig));
  15. }
  16. libc_hidden_def(kill)