_syslist.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* internal use only -- mapping of "system calls" for libraries that lose
  2. and only provide C names, so that we end up in violation of ANSI */
  3. #ifndef __SYSLIST_H
  4. #define __SYSLIST_H
  5. #ifdef MISSING_SYSCALL_NAMES
  6. #define _close close
  7. #define _execve execve
  8. #define _fcntl fcntl
  9. #define _fork fork
  10. #define _fstat fstat
  11. #define _getpid getpid
  12. #define _gettimeofday gettimeofday
  13. #define _isatty isatty
  14. #define _kill kill
  15. #define _link link
  16. #define _lseek lseek
  17. #define _mkdir mkdir
  18. #define _open open
  19. #define _read read
  20. #define _sbrk sbrk
  21. #define _stat stat
  22. #define _times times
  23. #define _unlink unlink
  24. #define _wait wait
  25. #define _write write
  26. #endif /* MISSING_SYSCALL_NAMES */
  27. #if defined MISSING_SYSCALL_NAMES || !defined HAVE_OPENDIR
  28. /* If the system call interface is missing opendir, readdir, and
  29. closedir, there is an implementation of these functions in
  30. libc/posix that is implemented using open, getdents, and close.
  31. Note, these functions are currently not in the libc/syscalls
  32. directory. */
  33. #define _opendir opendir
  34. #define _readdir readdir
  35. #define _closedir closedir
  36. #endif /* MISSING_SYSCALL_NAMES || !HAVE_OPENDIR */
  37. #endif /* !__SYSLIST_H_ */