Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / include / _syslist.h
blob2946af5512b90f968ed08c68a78d175c5a3114e0
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
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 _isatty isatty
15 #define _kill kill
16 #define _link link
17 #define _lseek lseek
18 #define _mkdir mkdir
19 #define _open open
20 #define _read read
21 #define _sbrk sbrk
22 #define _stat stat
23 #define _times times
24 #define _unlink unlink
25 #define _wait wait
26 #define _write write
27 #define _getentropy getentropy
28 #endif /* MISSING_SYSCALL_NAMES */
30 #if defined MISSING_SYSCALL_NAMES || !defined HAVE_OPENDIR
31 /* If the system call interface is missing opendir, readdir, and
32 closedir, there is an implementation of these functions in
33 libc/posix that is implemented using open, getdents, and close.
34 Note, these functions are currently not in the libc/syscalls
35 directory. */
36 #define _opendir opendir
37 #define _readdir readdir
38 #define _closedir closedir
39 #endif /* MISSING_SYSCALL_NAMES || !HAVE_OPENDIR */
41 #endif /* !__SYSLIST_H_ */