1 /* 2 Copyright (c) 1991, 1993 3 The Regents of the University of California. All rights reserved. 4 c) UNIX System Laboratories, Inc. 5 All or some portions of this file are derived from material licensed 6 to the University of California by American Telephone and Telegraph 7 Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 the permission of UNIX System Laboratories, Inc. 9 10 Redistribution and use in source and binary forms, with or without 11 modification, are permitted provided that the following conditions 12 are met: 13 1. Redistributions of source code must retain the above copyright 14 notice, this list of conditions and the following disclaimer. 15 2. Redistributions in binary form must reproduce the above copyright 16 notice, this list of conditions and the following disclaimer in the 17 documentation and/or other materials provided with the distribution. 18 3. Neither the name of the University nor the names of its contributors 19 may be used to endorse or promote products derived from this software 20 without specific prior written permission. 21 22 THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25 ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 SUCH DAMAGE. 33 */ 34 /* internal use only -- mapping of "system calls" for libraries that lose 35 and only provide C names, so that we end up in violation of ANSI */ 36 #ifndef __SYSLIST_H 37 #define __SYSLIST_H 38 39 #ifdef MISSING_SYSCALL_NAMES 40 #define _close close 41 #define _execve execve 42 #define _fcntl fcntl 43 #define _fork fork 44 #define _fstat fstat 45 #define _getpid getpid 46 #define _gettimeofday gettimeofday 47 #define _isatty isatty 48 #define _kill kill 49 #define _link link 50 #define _lseek lseek 51 #define _mkdir mkdir 52 #define _open open 53 #define _read read 54 #define _sbrk sbrk 55 #define _stat stat 56 #define _times times 57 #define _unlink unlink 58 #define _wait wait 59 #define _write write 60 #define _getentropy getentropy 61 #endif /* MISSING_SYSCALL_NAMES */ 62 63 #if defined MISSING_SYSCALL_NAMES || !defined HAVE_OPENDIR 64 /* If the system call interface is missing opendir, readdir, and 65 closedir, there is an implementation of these functions in 66 libc/posix that is implemented using open, getdents, and close. 67 Note, these functions are currently not in the libc/syscalls 68 directory. */ 69 #define _opendir opendir 70 #define _readdir readdir 71 #define _closedir closedir 72 #endif /* MISSING_SYSCALL_NAMES || !HAVE_OPENDIR */ 73 74 #endif /* !__SYSLIST_H_ */ 75