The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/linux/syscalls.master

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1  $FreeBSD: src/sys/i386/linux/syscalls.master,v 1.2.4.2 1999/09/05 08:14:22 peter Exp $
    2 
    3 ;       @(#)syscalls.master     8.1 (Berkeley) 7/19/93
    4 ; System call name/number master file (or rather, slave, from LINUX).
    5 ; Processed to created linux_sysent.c, linux_syscalls.c and linux_syscall.h.
    6 
    7 ; Columns: number type nargs namespc name alt{name,tag,rtyp}/comments
    8 ;       number  system call number, must be in order
    9 ;       type    one of STD, OBSOL, UNIMPL, COMPAT
   10 ;       namespc one of POSIX, BSD, STD, NOHIDE (I dont care :-) -Peter
   11 ;       name    psuedo-prototype of syscall routine
   12 ;               If one of the following alts is different, then all appear:
   13 ;       altname name of system call if different
   14 ;       alttag  name of args struct tag if different from [o]`name'"_args"
   15 ;       altrtyp return type if not int (bogus - syscalls always return int)
   16 ;               for UNIMPL/OBSOL, name continues with comments
   17 
   18 ; types:
   19 ;       STD     always included
   20 ;       COMPAT  included on COMPAT #ifdef
   21 ;       LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
   22 ;       OBSOL   obsolete, not included in system, only specifies name
   23 ;       UNIMPL  not implemented, placeholder only
   24 
   25 #include <sys/types.h>
   26 #include <sys/param.h>
   27 #include <sys/systm.h>
   28 #include <sys/sysent.h>
   29 #include <sys/sysproto.h>
   30 
   31 #include <i386/linux/linux.h>
   32 #include <i386/linux/linux_proto.h>
   33 
   34 ; #ifdef's, etc. may be included, and are copied to the output files.
   35 
   36 0       STD     LINUX   { int linux_setup(void); }
   37 1       NOPROTO LINUX   { int exit(int rval); }
   38 2       STD     LINUX   { int linux_fork(void); }
   39 3       NOPROTO LINUX   { int read(int fd, char *buf, u_int nbyte); }
   40 4       NOPROTO LINUX   { int write(int fd, char *buf, u_int nbyte); }
   41 5       STD     LINUX   { int linux_open(char *path, int flags, int mode); }
   42 6       NOPROTO LINUX   { int close(int fd); }
   43 7       STD     LINUX   { int linux_waitpid(int pid, int *status, int options);}
   44 8       STD     LINUX   { int linux_creat(char *path, int mode); }
   45 9       NOPROTO LINUX   { int link(char *path, char *link); }
   46 10      STD     LINUX   { int linux_unlink(char *path); }
   47 11      STD     LINUX   { int linux_execve(char *path, char **argp, char **envp); }
   48 12      STD     LINUX   { int linux_chdir(char *path); }
   49 13      STD     LINUX   { int linux_time(linux_time_t *tm); }
   50 14      STD     LINUX   { int linux_mknod(char *path, int mode, int dev); }
   51 15      STD     LINUX   { int linux_chmod(char *path, int mode); }
   52 16      STD     LINUX   { int linux_lchown(char *path, int uid, int gid); }
   53 17      STD     LINUX   { int linux_break(char *nsize); }
   54 18      STD     LINUX   { int linux_stat(char *path, struct ostat *up); }
   55 19      STD     LINUX   { int linux_lseek(int fdes, long off, int whence); }
   56 20      NOPROTO LINUX   { int getpid(void); }
   57 21      STD     LINUX   { int linux_mount(void); }
   58 22      STD     LINUX   { int linux_umount(void); }
   59 23      NOPROTO LINUX   { int setuid(uid_t uid); }
   60 24      NOPROTO LINUX   { int getuid(void); }
   61 25      STD     LINUX   { int linux_stime(void); }
   62 26      STD     LINUX   { int linux_ptrace(void); }
   63 27      STD     LINUX   { int linux_alarm(unsigned int secs); }
   64 28      STD     LINUX   { int linux_fstat(int fd, struct ostat *up); }
   65 29      STD     LINUX   { int linux_pause(void); }
   66 30      STD     LINUX   { int linux_utime(char *fname, struct linux_utimbuf *times); }
   67 31      STD     LINUX   { int linux_stty(void); }
   68 32      STD     LINUX   { int linux_gtty(void); }
   69 33      STD     LINUX   { int linux_access(char *path, int flags); }
   70 34      STD     LINUX   { int linux_nice(int inc); }
   71 35      STD     LINUX   { int linux_ftime(void); }
   72 36      NOPROTO LINUX   { int sync(void); }
   73 37      STD     LINUX   { int linux_kill(int pid, int signum); }
   74 38      STD     LINUX   { int linux_rename(char *from, char *to); }
   75 39      STD     LINUX   { int linux_mkdir(char *path, int mode); }
   76 40      STD     LINUX   { int linux_rmdir(char *path); }
   77 41      NOPROTO LINUX   { int dup(u_int fd); }
   78 42      STD     LINUX   { int linux_pipe(int *pipefds); }
   79 43      STD     LINUX   { int linux_times(struct linux_times_argv *buf); }
   80 44      STD     LINUX   { int linux_prof(void); }
   81 45      STD     LINUX   { int linux_brk(char *dsend); }
   82 46      NOPROTO LINUX   { int setgid(gid_t gid); }
   83 47      NOPROTO LINUX   { int getgid(void); }
   84 48      STD     LINUX   { int linux_signal(int sig, linux_handler_t handler); }
   85 49      NOPROTO LINUX   { int geteuid(void); }
   86 50      NOPROTO LINUX   { int getegid(void); }
   87 51      NOPROTO LINUX   { int acct(char *path); }
   88 52      STD     LINUX   { int linux_phys(void); }
   89 53      STD     LINUX   { int linux_lock(void); }
   90 54      STD     LINUX   { int linux_ioctl(int fd, u_long cmd, int arg); }
   91 55      STD     LINUX   { int linux_fcntl(int fd, int cmd, int arg); }
   92 56      STD     LINUX   { int linux_mpx(void); }
   93 57      NOPROTO LINUX   { int setpgid(int pid, int pgid); }
   94 58      STD     LINUX   { int linux_ulimit(void); }
   95 59      STD     LINUX   { int linux_olduname(struct linux_oldold_utsname *up); }
   96 60      NOPROTO LINUX   { int umask(int newmask); }
   97 61      NOPROTO LINUX   { int chroot(char *path); }
   98 62      STD     LINUX   { int linux_ustat(void); }
   99 63      NOPROTO LINUX   { int dup2(u_int from, u_int to); }
  100 64      NOPROTO LINUX   { int getppid(void); }
  101 65      NOPROTO LINUX   { int getpgrp(void); }
  102 66      NOPROTO LINUX   { int setsid(void); }
  103 67      STD     LINUX   { int linux_sigaction(int sig, \
  104                             struct linux_sigaction *nsa, \
  105                             struct linux_sigaction *osa); }
  106 68      STD     LINUX   { int linux_siggetmask(void); }
  107 69      STD     LINUX   { int linux_sigsetmask(linux_sigset_t mask); }
  108 70      NOPROTO LINUX   { int setreuid(int ruid, int euid); }
  109 71      NOPROTO LINUX   { int setregid(int rgid, int egid); }
  110 72      STD     LINUX   { int linux_sigsuspend(int restart, \
  111                             linux_sigset_t oldmask, linux_sigset_t mask); }
  112 73      STD     LINUX   { int linux_sigpending(linux_sigset_t *mask); }
  113 74      NOPROTO LINUX   { int osethostname(char *hostname, \
  114                             u_int len);}
  115 75      NOPROTO LINUX   { int osetrlimit(u_int which, \
  116                             struct ogetrlimit *rlp); }
  117 76      NOPROTO LINUX   { int ogetrlimit(u_int which, \
  118                             struct ogetrlimit *rlp); }
  119 77      NOPROTO LINUX   { int getrusage(int who, struct rusage *rusage); }
  120 78      NOPROTO LINUX   { int gettimeofday(struct timeval *tp, \
  121                             struct timezone *tzp); }
  122 79      NOPROTO LINUX   { int settimeofday(struct timeval *tp, \
  123                             struct timezone *tzp); }
  124 80      NOPROTO LINUX   { int getgroups(u_int gidsetsize, gid_t *gidset); }
  125 81      NOPROTO LINUX   { int setgroups(u_int gidsetsize, gid_t *gidset); }
  126 82      STD     LINUX   { int linux_select(struct linux_select_argv *ptr); }
  127 83      STD     LINUX   { int linux_symlink(char *path, char *to); }
  128 84      NOPROTO LINUX   { int ostat(char *path, struct ostat *up); }
  129 85      STD     LINUX   { int linux_readlink(char *name, char *buf, \
  130                             int count); }
  131 86      STD     LINUX   { int linux_uselib(char *library); }
  132 87      NOPROTO LINUX   { int swapon(char *name); }
  133 88      NOPROTO LINUX   { int reboot(int opt); }
  134 89      STD     LINUX   { int linux_readdir(int fd, struct linux_dirent *dent, \
  135                             unsigned int count); }
  136 90      STD     LINUX   { int linux_mmap(struct linux_mmap_argv *ptr); }
  137 91      NOPROTO LINUX   { int munmap(caddr_t addr, int len); }
  138 92      STD     LINUX   { int linux_truncate(char *path, long length); }
  139 93      NOPROTO LINUX   { int oftruncate(int fd, long length); }
  140 94      NOPROTO LINUX   { int fchmod(int fd, int mode); }
  141 95      NOPROTO LINUX   { int fchown(int fd, int uid, int gid); }
  142 96      NOPROTO LINUX   { int getpriority(int which, int who); }
  143 97      NOPROTO LINUX   { int setpriority(int which, int who, int prio); }
  144 98      NOPROTO LINUX   { int profil(caddr_t samples, u_int size, \
  145                             u_int offset, u_int scale); }
  146 99      STD     LINUX   { int linux_statfs(char *path, \
  147                             struct linux_statfs_buf *buf); }
  148 100     STD     LINUX   { int linux_fstatfs(int fd, \
  149                             struct linux_statfs_buf *buf); }
  150 101     STD     LINUX   { int linux_ioperm(unsigned int lo, \
  151                             unsigned int hi, int val); }
  152 102     STD     LINUX   { int linux_socketcall(int what, void *args); }
  153 103     STD     LINUX   { int linux_ksyslog(int what); }
  154 104     STD     LINUX   { int linux_setitimer(u_int which, \
  155                             struct itimerval *itv, struct itimerval *oitv); }
  156 105     STD     LINUX   { int linux_getitimer(u_int which, \
  157                             struct itimerval *itv); }
  158 106     STD     LINUX   { int linux_newstat(char *path, \
  159                             struct linux_newstat *buf); }
  160 107     STD     LINUX   { int linux_newlstat(char *path, \
  161                             struct linux_newstat *buf); }
  162 108     STD     LINUX   { int linux_newfstat(int fd, struct linux_newstat *buf); }
  163 109     STD     LINUX   { int linux_uname(struct linux_old_utsname *up); }
  164 110     STD     LINUX   { int linux_iopl(int level); }
  165 111     STD     LINUX   { int linux_vhangup(void); }
  166 112     STD     LINUX   { int linux_idle(void); }
  167 113     STD     LINUX   { int linux_vm86(void); }
  168 114     STD     LINUX   { int linux_wait4(int pid, int *status, \
  169                             int options, struct rusage *rusage); }
  170 115     STD     LINUX   { int linux_swapoff(void); }
  171 116     STD     LINUX   { int linux_sysinfo(void); }
  172 117     STD     LINUX   { int linux_ipc(int what, int arg1, int arg2, int arg3, \
  173                             caddr_t ptr); }
  174 118     NOPROTO LINUX   { int fsync(int fd); }
  175 119     STD     LINUX   { int linux_sigreturn(struct linux_sigcontext *scp); }
  176 120     STD     LINUX   { int linux_clone(void); }
  177 121     NOPROTO LINUX   { int setdomainname(char *name, \
  178                             int len); }
  179 122     STD     LINUX   { int linux_newuname(struct linux_newuname_t *buf); }
  180 123     STD     LINUX   { int linux_modify_ldt(int func, void *ptr, \
  181                             size_t bytecount); }
  182 124     STD     LINUX   { int linux_adjtimex(void); }
  183 125     NOPROTO LINUX   { int mprotect(caddr_t addr, int len, int prot); }
  184 126     STD     LINUX   { int linux_sigprocmask(int how, \
  185                             linux_sigset_t *mask, linux_sigset_t *omask); }
  186 127     STD     LINUX   { int linux_create_module(void); }
  187 128     STD     LINUX   { int linux_init_module(void); }
  188 129     STD     LINUX   { int linux_delete_module(void); }
  189 130     STD     LINUX   { int linux_get_kernel_syms(void); }
  190 131     STD     LINUX   { int linux_quotactl(void); }
  191 132     STD     LINUX   { int linux_getpgid(int pid); }
  192 133     NOPROTO LINUX   { int fchdir(int fd); }
  193 134     STD     LINUX   { int linux_bdflush(void); }
  194 135     UNIMPL  LINUX   sysfs
  195 136     STD     LINUX   { int linux_personality(int per); }
  196 137     UNIMPL  LINUX   afs_syscall
  197 138     UNIMPL  LINUX   setfsuid
  198 139     UNIMPL  LINUX   getfsuid
  199 140     STD     LINUX   { int linux_llseek(int fd, u_int32_t ohigh, \
  200                             u_int32_t olow, caddr_t res, int whence); }
  201 141     STD     LINUX   { int linux_getdents(int fd, void *dent, \
  202                             unsigned count); }
  203 142     STD     LINUX   { int linux_newselect(int nfds, fd_set *readfds, \
  204                             fd_set *writefds, fd_set *exceptfds, \
  205                             struct timeval *timeout); }
  206 143     NOPROTO LINUX   { int flock(int fd, int how); }
  207 144     STD     LINUX   { int linux_msync(caddr_t addr, int len, int fl); }
  208 145     NOPROTO LINUX   { int readv(int fd, struct iovec *iovp, \
  209                                 u_int iovcnt); }
  210 146     NOPROTO LINUX   { int writev(int fd, struct iovec *iovp, \
  211                                 u_int iovcnt); }
  212 
  213 ; Turn on getsid after checking that it matches.
  214 
  215 147     UNIMPL  LINUX   getsid
  216 148     UNIMPL  LINUX   fdatasync
  217 149     UNIMPL  LINUX   _sysctl
  218 
  219 150     NOPROTO BSD     { int mlock(const void *addr, size_t len); }
  220 151     NOPROTO BSD     { int munlock(const void *addr, size_t len); }
  221 152     NOPROTO BSD     { int mlockall(int how); }
  222 153     NOPROTO BSD     { int munlockall(void); }
  223 
  224 154     NOPROTO POSIX   { int sched_setparam (pid_t pid, const struct sched_param *param); }
  225 155     NOPROTO POSIX   { int sched_getparam (pid_t pid, struct sched_param *param); }
  226 
  227 156     NOPROTO POSIX   { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
  228 157     NOPROTO POSIX   { int sched_getscheduler (pid_t pid); }
  229 
  230 158     NOPROTO POSIX   { int sched_yield (void); }
  231 159     NOPROTO POSIX   { int sched_get_priority_max (int policy); }
  232 160     NOPROTO POSIX   { int sched_get_priority_min (int policy); }
  233 161     NOPROTO POSIX   { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
  234 
  235 162     NOPROTO POSIX   { int nanosleep(const struct timespec *rqtp, \
  236                             struct timespec *rmtp); }
  237 
  238 163     STD     LINUX   { int linux_mremap(caddr_t addr, int old_len, \
  239                             int new_len, int flags); }
  240 164     UNIMPL  LINUX   setresuid
  241 165     UNIMPL  LINUX   getresuid
  242 166     UNIMPL  LINUX   new_vm86
  243 167     UNIMPL  LINUX   query_module
  244 168     UNIMPL  LINUX   poll
  245 169     UNIMPL  LINUX   nfsservctl
  246 170     UNIMPL  LINUX   setresgid
  247 171     UNIMPL  LINUX   getresgid
  248 172     UNIMPL  LINUX   prctl
  249 173     UNIMPL  LINUX   rt_sigreturn
  250 174     UNIMPL  LINUX   rt_sigaction
  251 175     UNIMPL  LINUX   rt_sigprocmask
  252 176     UNIMPL  LINUX   rt_sigpending
  253 177     UNIMPL  LINUX   rt_sigtimedwait
  254 178     UNIMPL  LINUX   rt_sigqueueinfo
  255 179     UNIMPL  LINUX   rt_sigsuspend
  256 180     UNIMPL  LINUX   pread
  257 181     UNIMPL  LINUX   pwrite
  258 182     STD     LINUX   { int linux_chown(char *path, int uid, int gid); }

Cache object: 6a85b3258d60b3aaa8a4a0bdd0f36a33


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.