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 6 #ifdef MISSING_SYSCALL_NAMES 7 #define _close close 8 #define _execve execve 9 #define _fcntl fcntl 10 #define _fork fork 11 #define _fstat fstat 12 #define _getpid getpid 13 #define _gettimeofday gettimeofday 14 #define _kill kill 15 #define _link link 16 #define _lseek lseek 17 #define _open open 18 #define _read read 19 #define _sbrk sbrk 20 #define _stat stat 21 #define _times times 22 #define _unlink unlink 23 #define _wait wait 24 #define _write write 25 #endif /* MISSING_SYSCALL_NAMES */ 26 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 38 #endif /* !__SYSLIST_H_ */ 39