Skip to content
undefineds.h 5.85 KiB
Newer Older
wlott's avatar
wlott committed
/* Routines that must be linked into the core for lisp to work. */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/undefineds.h,v 1.38 2008/02/08 21:17:57 rtoy Exp $ */
/*
 * Do not wrap this inside an #ifndef/#endif!
 *
 * This file is intentionally included multiple times in undefineds.c
 * and is expected to do something useful each time!
 */
wlott's avatar
wlott committed

/* Pick up all the syscalls. */
#if defined(hpux) || defined(SVR4) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
    F(cfgetospeed)
    F(cfsetospeed)
    F(cfgetispeed)
    F(cfsetispeed)
#endif
    F(chdir)
    F(chmod)
    F(chown)
    F(chroot)
    F(close)
    F(connect)
    F(creat)
    F(dup)
    F(dup2)
    F(execve)
    F(exit)
    F(fchmod)
    F(fchown)
    F(fcntl)
#if !defined(hpux) && !defined(SVR4)
    F(fork)
    F(fstat)
    F(fsync)
    F(ftruncate)
#if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25) || defined(irix)
    F(getegid)
    F(geteuid)
    F(getgid)
    F(getgroups)
pw's avatar
pw committed
#if !defined (SOLARIS) || defined(SOLARIS25)
    F(gethostname)
    F(getitimer)
pw's avatar
pw committed
#if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25)
    F(getpeername)
    F(getpgrp)
    F(getpid)
    F(getppid)
pw's avatar
pw committed
#if !defined(SVR4)  ||  defined(SOLARIS25)
pw's avatar
pw committed
#if !defined(SOLARIS) ||  defined(SOLARIS25)
    F(getrusage)
#endif
    F(getsockname)
    F(getsockopt)
    F(gettimeofday)
    F(getuid)
    F(ioctl)
    F(kill)
dtc's avatar
dtc committed
#if !defined(SOLARIS) || defined(SOLARIS25)
    F(killpg)
#endif
    F(link)
    F(listen)
    F(lseek)
    F(lstat)
    F(mkdir)
    F(mknod)
    F(mmap)
    F(mount)
    F(msync)
    F(munmap)
    F(open)
    F(pipe)
    F(profil)
    F(ptrace)
wlott's avatar
wlott committed
#endif
    F(reboot)
#endif
    F(recv)
    F(recvfrom)
    F(recvmsg)
    F(rename)
    F(rmdir)
    F(sbrk)
    F(select)
    F(send)
    F(sendmsg)
    F(sendto)
    F(setgroups)
dtc's avatar
dtc committed
#if !defined(SUNOS) && !(defined(SOLARIS) ||  defined(SOLARIS25))
wlott's avatar
wlott committed
#endif
pw's avatar
pw committed
#if !defined(SVR4) ||  defined(SOLARIS25)
pw's avatar
pw committed
#if !defined(SVR4) ||  defined(SOLARIS25)
#if !defined(mach) && !defined(SOLARIS) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(SUNOS) && !defined(osf1) && !defined(irix) && !defined(hpux) && !(defined(linux) && defined(alpha))
wlott's avatar
wlott committed
#endif
pw's avatar
pw committed
#if !defined(hpux) && !defined(SVR4) ||  defined(SOLARIS25)
    F(setregid)
    F(setreuid)
#endif
    F(setrlimit)
    F(setsockopt)
    F(settimeofday)
    F(setgid)
    F(setuid)
    F(shutdown)
ram's avatar
ram committed
#if !defined(ibmrt) && !defined(hpux) && !defined(SVR4) && !defined(i386)
wlott's avatar
wlott committed
#endif
#if !defined(SVR4) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(DARWIN)
    F(sigsetmask)
    F(sigstack)
    F(sigvec)
    F(socket)
    F(socketpair)
    F(stat)
hallgren's avatar
hallgren committed
#endif
    F(symlink)
    F(sync)
    F(syscall)
pw's avatar
pw committed
#if defined(hpux) || defined(SVR4)
    F(closedir)
    F(opendir)
    F(readdir)
#if defined(hpux) || defined(SVR4) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__linux__)
    F(tcgetattr)
    F(tcsetattr)
    F(tcsendbreak)
    F(tcdrain)
    F(tcflush)
    F(tcflow)
dtc's avatar
dtc committed
#if defined(SOLARIS)
dtc's avatar
dtc committed
#endif
ram's avatar
ram committed
#if !defined(SUNOS) && !defined(parisc) && !defined(SOLARIS) \
  && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) \
  && !defined(DARWIN)
wlott's avatar
wlott committed
#endif
hallgren's avatar
hallgren committed
#ifndef irix
hallgren's avatar
hallgren committed
#endif
#if !defined(osf1) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(DARWIN)
hallgren's avatar
hallgren committed
#endif
pw's avatar
pw committed
#if !defined(SOLARIS) ||  defined(SOLARIS25)
wlott's avatar
wlott committed

/* Math routines. */
    F(cos)
    F(sin)
    F(tan)
    F(acos)
    F(asin)
    F(atan)
    F(atan2)
    F(sinh)
    F(cosh)
    F(tanh)
    F(asinh)
    F(acosh)
    F(atanh)
    F(exp)
ram's avatar
ram committed
#ifndef i386
ram's avatar
ram committed
#endif
wlott's avatar
wlott committed

/* Network support. */
    F(gethostbyname)
    F(gethostbyaddr)
wlott's avatar
wlott committed

/* Other random things. */
#if defined(SVR4)
    F(setpgid)
    F(getpgid)
    D(timezone)
    D(altzone)
    D(daylight)
    D(tzname)
#endif
#if defined(SVR4) || defined(__OpenBSD__)
    F(dlopen)
    F(dlsym)
    F(dlclose)
    F(dlerror)
ram's avatar
ram committed
#endif
pw's avatar
pw committed
#if !defined (SOLARIS) ||  defined(SOLARIS25)
hallgren's avatar
hallgren committed
#ifdef irix
hallgren's avatar
hallgren committed
#endif
pw's avatar
pw committed
#if ( defined(alpha) && defined(linux) )
    F(dlopen)
    F(dlsym)
    F(dlclose)
    F(dlerror)
    F(cfgetospeed)
    F(cfsetospeed)
    F(cfgetispeed)
    F(cfsetispeed)
    F(opendir)
    F(closedir)
    F(readdir)
    F(sched_yield)
    F(setpgid)
    D(tzname)
    D(errno)
    F(open64)
    F(creat64)
    F(lseek64)
    F(truncate64)
    F(ftruncate64)
    F(stat64)
    F(fstat64)
    F(lstat64)
    F(readdir64)
    F(statfs64)
    F(lockf64)
pw's avatar
pw committed
#endif
#if defined(sparc)
    F(dladdr)
    F(open64)
    F(creat64)
    F(lseek64)
    F(truncate64)
    F(ftruncate64)
    F(stat64)
    F(fstat64)
    F(lstat64)
    F(readdir64)
    F(sysinfo)
    F(uname)
    F(getpwent_r)
#endif  
#if defined(sparc) || defined(linux)
    F(getpwnam_r)
    F(getpwuid_r)
    F(getgrnam_r)
    F(getgrgid_r)
#if defined(__NetBSD__) || defined(DARWIN)
    F(getpwnam)
    F(getpwuid)
    F(getgrnam)
    F(getgrgid)
#endif
    F(setpwent)
    F(getpwent)
    F(endpwent)