getppid.c 286 B

1234567891011121314
  1. /*
  2. * getppid() for uClibc
  3. *
  4. * Copyright (C) 2000-2006 by Erik Andersen <andersen@codepoet.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 <unistd.h>
  10. #ifdef __NR_getppid
  11. _syscall_noerr0(pid_t, getppid)
  12. #endif