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/compat/freebsd32/syscalls.master

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1  $FreeBSD: releng/5.4/sys/compat/freebsd32/syscalls.master 142935 2005-03-01 17:51:25Z ps $
    2 ;       from: @(#)syscalls.master       8.2 (Berkeley) 1/13/94
    3 ;       from: src/sys/kern/syscalls.master 1.107
    4 ;
    5 ; System call name/number master file.
    6 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
    7 
    8 ; Columns: number [M]type nargs name alt{name,tag,rtyp}/comments
    9 ;       number  system call number, must be in order
   10 ;       type    one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
   11 ;               [M]LIBCOMPAT, [M]NODEF,  [M]NOARGS,  [M]NOPROTO,  [M]NOIMPL,
   12 ;               [M]NOSTD
   13 ;       name    psuedo-prototype of syscall routine
   14 ;               If one of the following alts is different, then all appear:
   15 ;       altname name of system call if different
   16 ;       alttag  name of args struct tag if different from [o]`name'"_args"
   17 ;       altrtyp return type if not int (bogus - syscalls always return int)
   18 ;               for UNIMPL/OBSOL, name continues with comments
   19 
   20 ; types:
   21 ;       [M]     e.g. like MSTD -- means the system call is MP-safe.  If no
   22 ;               M prefix is used, the syscall wrapper will obtain the Giant
   23 ;               lock for the syscall.
   24 ;       STD     always included
   25 ;       COMPAT  included on COMPAT #ifdef
   26 ;       LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
   27 ;       OBSOL   obsolete, not included in system, only specifies name
   28 ;       UNIMPL  not implemented, placeholder only
   29 ;       NOSTD   implemented but as a lkm that can be statically
   30 ;                       compiled in sysent entry will be filled with lkmsys
   31 ;                       so the SYSCALL_MODULE macro works
   32 
   33 ; #ifdef's, etc. may be included, and are copied to the output files.
   34 
   35 #include <sys/param.h>
   36 #include <sys/sysent.h>
   37 #include <sys/sysproto.h>
   38 #include <sys/mount.h>
   39 #include <compat/freebsd32/freebsd32.h>
   40 #include <compat/freebsd32/freebsd32_proto.h>
   41 
   42 ; Reserved/unimplemented system calls in the range 0-150 inclusive
   43 ; are reserved for use in future Berkeley releases.
   44 ; Additional system calls implemented in vendor and other
   45 ; redistributions should be placed in the reserved range at the end
   46 ; of the current calls.
   47 
   48 0       MNOPROTO { int nosys(void); } syscall nosys_args int
   49 1       MNOPROTO { void sys_exit(int rval); } exit sys_exit_args void
   50 2       MNOPROTO { int fork(void); }
   51 3       MNOPROTO { ssize_t read(int fd, void *buf, size_t nbyte); }
   52 4       MNOPROTO { ssize_t write(int fd, const void *buf, size_t nbyte); }
   53 5       NOPROTO { int open(char *path, int flags, int mode); }
   54 6       MNOPROTO { int close(int fd); }
   55 7       MSTD    { int freebsd32_wait4(int pid, int *status, int options, \
   56                     struct rusage32 *rusage); }
   57 8       OBSOL   old creat
   58 9       NOPROTO { int link(char *path, char *link); }
   59 10      NOPROTO { int unlink(char *path); }
   60 11      OBSOL   execv
   61 12      NOPROTO { int chdir(char *path); }
   62 13      NOPROTO { int fchdir(int fd); }
   63 14      NOPROTO { int mknod(char *path, int mode, int dev); }
   64 15      NOPROTO { int chmod(char *path, int mode); }
   65 16      NOPROTO { int chown(char *path, int uid, int gid); }
   66 17      MNOPROTO { int obreak(char *nsize); } break obreak_args int
   67 18      COMPAT4 { int freebsd32_getfsstat(struct statfs32 *buf, \
   68                     long bufsize, int flags); }
   69 19      OBSOL   olseek
   70 20      MNOPROTO { pid_t getpid(void); }
   71 21      NOPROTO { int mount(char *type, char *path, int flags, \
   72                     caddr_t data); }
   73 22      NOPROTO { int unmount(char *path, int flags); }
   74 23      MNOPROTO { int setuid(uid_t uid); }
   75 24      MNOPROTO { uid_t getuid(void); }
   76 25      MNOPROTO { uid_t geteuid(void); }
   77 26      MNOPROTO { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
   78 ; XXX implement
   79 27      UNIMPL  recvmsg
   80 28      MNOPROTO { int sendmsg(int s, caddr_t msg, int flags); }
   81 29      MNOPROTO { int recvfrom(int s, caddr_t buf, size_t len, int flags, \
   82                     caddr_t from, int *fromlenaddr); }
   83 30      MNOPROTO { int accept(int s, caddr_t name, int *anamelen); }
   84 31      MNOPROTO { int getpeername(int fdes, caddr_t asa, int *alen); }
   85 32      MNOPROTO { int getsockname(int fdes, caddr_t asa, int *alen); }
   86 33      NOPROTO { int access(char *path, int flags); }
   87 34      NOPROTO { int chflags(char *path, int flags); }
   88 35      NOPROTO { int fchflags(int fd, int flags); }
   89 36      NOPROTO { int sync(void); }
   90 37      MNOPROTO { int kill(int pid, int signum); }
   91 38      UNIMPL  ostat
   92 39      MNOPROTO { pid_t getppid(void); }
   93 40      UNIMPL  olstat
   94 41      MNOPROTO { int dup(u_int fd); }
   95 42      MNOPROTO { int pipe(void); }
   96 43      MNOPROTO { gid_t getegid(void); }
   97 44      MNOPROTO { int profil(caddr_t samples, size_t size, size_t offset, \
   98                     u_int scale); }
   99 45      MNOPROTO { int ktrace(const char *fname, int ops, int facs, int pid); }
  100 46      UNIMPL  osigaction
  101 47      MNOPROTO { gid_t getgid(void); }
  102 48      UNIMPL  osigprocmask
  103 49      MNOPROTO { int getlogin(char *namebuf, u_int namelen); }
  104 50      MNOPROTO { int setlogin(char *namebuf); }
  105 51      MNOPROTO { int acct(char *path); }
  106 52      OBSOL   osigpending
  107 53      MSTD    { int freebsd32_sigaltstack(struct sigaltstack32 *ss, \
  108                     struct sigaltstack32 *oss); }
  109 54      MNOPROTO { int ioctl(int fd, u_long com, caddr_t data); }
  110 55      MNOPROTO { int reboot(int opt); }
  111 56      NOPROTO { int revoke(char *path); }
  112 57      NOPROTO { int symlink(char *path, char *link); }
  113 58      NOPROTO { int readlink(char *path, char *buf, int count); }
  114 59      STD      { int freebsd32_execve(char *fname, u_int32_t *argv, \
  115                     u_int32_t *envv); }
  116 60      MNOPROTO { int umask(int newmask); } umask umask_args int
  117 61      NOPROTO { int chroot(char *path); }
  118 62      OBSOL   ofstat
  119 63      OBSOL   ogetkerninfo
  120 64      OBSOL   ogetpagesize
  121 ; XXX implement (not OBSOL at all)
  122 65      MNOPROTO { int msync(void *addr, size_t len, int flags); }
  123 66      MNOPROTO { int vfork(void); }
  124 67      OBSOL   vread
  125 68      OBSOL   vwrite
  126 69      MNOPROTO { int sbrk(int incr); }
  127 70      MNOPROTO { int sstk(int incr); }
  128 71      OBSOL   ommap
  129 72      MNOPROTO { int ovadvise(int anom); } vadvise ovadvise_args int
  130 73      MNOPROTO { int munmap(void *addr, size_t len); }
  131 74      MNOPROTO { int mprotect(const void *addr, size_t len, int prot); }
  132 75      MNOPROTO { int madvise(void *addr, size_t len, int behav); }
  133 76      OBSOL   vhangup
  134 77      OBSOL   vlimit
  135 78      MNOPROTO { int mincore(const void *addr, size_t len, char *vec); }
  136 79      MNOPROTO { int getgroups(u_int gidsetsize, gid_t *gidset); }
  137 80      MNOPROTO { int setgroups(u_int gidsetsize, gid_t *gidset); }
  138 81      MNOPROTO { int getpgrp(void); }
  139 82      MNOPROTO { int setpgid(int pid, int pgid); }
  140 83      STD     { int freebsd32_setitimer(u_int which, \
  141                     struct itimerval32 *itv, struct itimerval32 *oitv); }
  142 84      OBSOL   owait
  143 ; XXX implement
  144 85      OBSOL   oswapon
  145 86      STD     { int freebsd32_getitimer(u_int which, \
  146                     struct itimerval32 *itv); }
  147 87      OBSOL   ogethostname
  148 88      OBSOL   osethostname
  149 89      MNOPROTO { int getdtablesize(void); }
  150 90      MNOPROTO { int dup2(u_int from, u_int to); }
  151 91      UNIMPL  getdopt
  152 92      MNOPROTO { int fcntl(int fd, int cmd, long arg); }
  153 93      STD     { int freebsd32_select(int nd, fd_set *in, fd_set *ou, \
  154                     fd_set *ex, struct timeval32 *tv); }
  155 ; XXX need to override for big-endian - little-endian should work fine.
  156 94      UNIMPL  setdopt
  157 95      NOPROTO { int fsync(int fd); }
  158 96      MNOPROTO { int setpriority(int which, int who, int prio); }
  159 97      MNOPROTO { int socket(int domain, int type, int protocol); }
  160 98      MNOPROTO { int connect(int s, caddr_t name, int namelen); }
  161 99      OBSOL   oaccept
  162 100     MNOPROTO { int getpriority(int which, int who); }
  163 101     OBSOL   osend
  164 102     OBSOL   orecv
  165 103     OBSOL   osigreturn
  166 104     MNOPROTO { int bind(int s, caddr_t name, int namelen); }
  167 105     MNOPROTO { int setsockopt(int s, int level, int name, caddr_t val, \
  168                     int valsize); }
  169 106     MNOPROTO { int listen(int s, int backlog); }
  170 107     OBSOL   vtimes
  171 108     OBSOL   osigvec
  172 109     OBSOL   osigblock
  173 110     OBSOL   osigsetmask
  174 111     OBSOL   osigsuspend
  175 112     OBSOL   osigstack
  176 113     OBSOL   orecvmsg
  177 114     OBSOL   osendmsg
  178 115     OBSOL   vtrace
  179 116     MSTD    { int freebsd32_gettimeofday(struct timeval32 *tp, \
  180                     struct timezone *tzp); }
  181 117     STD     { int freebsd32_getrusage(int who, struct rusage32 *rusage); }
  182 118     MNOPROTO { int getsockopt(int s, int level, int name, caddr_t val, \
  183                     int *avalsize); }
  184 119     UNIMPL  resuba (BSD/OS 2.x)
  185 120     STD     { int freebsd32_readv(int fd, struct iovec32 *iovp, \
  186                     u_int iovcnt); }
  187 121     STD     { int freebsd32_writev(int fd, struct iovec32 *iovp, \
  188                     u_int iovcnt); }
  189 122     STD     { int freebsd32_settimeofday(struct timeval32 *tv, \
  190                     struct timezone *tzp); }
  191 123     NOPROTO { int fchown(int fd, int uid, int gid); }
  192 124     NOPROTO { int fchmod(int fd, int mode); }
  193 125     OBSOL   orecvfrom
  194 126     MNOPROTO { int setreuid(int ruid, int euid); }
  195 127     MNOPROTO { int setregid(int rgid, int egid); }
  196 128     NOPROTO { int rename(char *from, char *to); }
  197 129     OBSOL   otruncate
  198 130     OBSOL   ftruncate
  199 131     MNOPROTO { int flock(int fd, int how); }
  200 132     NOPROTO { int mkfifo(char *path, int mode); }
  201 133     MNOPROTO { int sendto(int s, caddr_t buf, size_t len, int flags, \
  202                     caddr_t to, int tolen); }
  203 134     MNOPROTO { int shutdown(int s, int how); }
  204 135     MNOPROTO { int socketpair(int domain, int type, int protocol, \
  205                     int *rsv); }
  206 136     NOPROTO { int mkdir(char *path, int mode); }
  207 137     NOPROTO { int rmdir(char *path); }
  208 138     STD     { int freebsd32_utimes(char *path, struct timeval32 *tptr); }
  209 139     OBSOL   4.2 sigreturn
  210 140     STD     { int freebsd32_adjtime(struct timeval32 *delta, \
  211                     struct timeval32 *olddelta); }
  212 141     OBSOL   ogetpeername
  213 142     OBSOL   ogethostid
  214 143     OBSOL   sethostid
  215 144     OBSOL   getrlimit
  216 145     OBSOL   setrlimit
  217 146     OBSOL   killpg
  218 147     MNOPROTO { int setsid(void); }
  219 148     NOPROTO { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
  220 149     OBSOL oquota
  221 150     OBSOL ogetsockname
  222 
  223 ; Syscalls 151-180 inclusive are reserved for vendor-specific
  224 ; system calls.  (This includes various calls added for compatibity
  225 ; with other Unix variants.)
  226 ; Some of these calls are now supported by BSD...
  227 151     UNIMPL  sem_lock (BSD/OS 2.x)
  228 152     UNIMPL  sem_wakeup (BSD/OS 2.x)
  229 153     UNIMPL  asyncdaemon (BSD/OS 2.x)
  230 154     UNIMPL  nosys
  231 ; 155 is initialized by the NFS code, if present.
  232 ; XXX this is a problem!!!
  233 155     UNIMPL  nfssvc
  234 156     OBSOL   ogetdirentries
  235 157     COMPAT4 { int freebsd32_statfs(char *path, \
  236                     struct statfs32 *buf); }
  237 158     COMPAT4 { int freebsd32_fstatfs(int fd, struct statfs32 *buf);}
  238 159     UNIMPL  nosys
  239 160     UNIMPL  nosys
  240 161     NOPROTO { int getfh(char *fname, struct fhandle *fhp); }
  241 162     MNOPROTO { int getdomainname(char *domainname, int len); }
  242 163     MNOPROTO { int setdomainname(char *domainname, int len); }
  243 164     MNOPROTO { int uname(struct utsname *name); }
  244 165     MNOPROTO { int sysarch(int op, char *parms); }
  245 166     MNOPROTO { int rtprio(int function, pid_t pid, \
  246                     struct rtprio *rtp); }
  247 167     UNIMPL  nosys
  248 168     UNIMPL  nosys
  249 169     STD     { int freebsd32_semsys(int which, int a2, int a3, int a4, \
  250                     int a5); }
  251 170     STD     { int freebsd32_msgsys(int which, int a2, int a3, int a4, \
  252                     int a5, int a6); }
  253 171     STD     { int freebsd32_shmsys(int which, int a2, int a3, int a4); }
  254 172     UNIMPL  nosys
  255 173     STD { ssize_t freebsd32_pread(int fd, void *buf, size_t nbyte, \
  256                     int pad, u_int32_t offsetlo, u_int32_t offsethi); }
  257 ; XXX note - bigendian is different
  258 174     STD     { ssize_t freebsd32_pwrite(int fd, const void *buf, \
  259                     size_t nbyte, int pad, u_int32_t offsetlo, \
  260                     u_int32_t offsethi); }
  261 ; XXX note - bigendian is different
  262 175     UNIMPL  nosys
  263 176     MNOPROTO { int ntp_adjtime(struct timex *tp); }
  264 177     UNIMPL  sfork (BSD/OS 2.x)
  265 178     UNIMPL  getdescriptor (BSD/OS 2.x)
  266 179     UNIMPL  setdescriptor (BSD/OS 2.x)
  267 180     UNIMPL  nosys
  268 
  269 ; Syscalls 181-199 are used by/reserved for BSD
  270 181     MNOPROTO { int setgid(gid_t gid); }
  271 182     MNOPROTO { int setegid(gid_t egid); }
  272 183     MNOPROTO { int seteuid(uid_t euid); }
  273 184     UNIMPL  lfs_bmapv
  274 185     UNIMPL  lfs_markv
  275 186     UNIMPL  lfs_segclean
  276 187     UNIMPL  lfs_segwait
  277 188     STD     { int freebsd32_stat(char *path, struct stat32 *ub); }
  278 189     MSTD    { int freebsd32_fstat(int fd, struct stat32 *ub); }
  279 190     STD     { int freebsd32_lstat(char *path, struct stat32 *ub); }
  280 191     NOPROTO { int pathconf(char *path, int name); }
  281 192     MNOPROTO { int fpathconf(int fd, int name); }
  282 193     UNIMPL  nosys
  283 194     MNOPROTO { int getrlimit(u_int which, struct rlimit *rlp); } \
  284                     getrlimit __getrlimit_args int
  285 195     MNOPROTO { int setrlimit(u_int which, struct rlimit *rlp); } \
  286                     setrlimit __setrlimit_args int
  287 196     NOPROTO { int getdirentries(int fd, char *buf, u_int count, \
  288                     long *basep); }
  289 197     STD     { caddr_t freebsd32_mmap(caddr_t addr, size_t len, int prot, \
  290                     int flags, int fd, int pad, u_int32_t poslo, \
  291                     u_int32_t poshi); }
  292 198     NOPROTO { int nosys(void); } __syscall __syscall_args int
  293 ; XXX note - bigendian is different
  294 199     STD     { off_t freebsd32_lseek(int fd, int pad, u_int32_t offsetlo, \
  295                     u_int32_t offsethi, int whence); }
  296 ; XXX note - bigendian is different
  297 200     STD     { int freebsd32_truncate(char *path, int pad, \
  298                     u_int32_t lengthlo, u_int32_t lengthhi); }
  299 ; XXX note - bigendian is different
  300 201     STD     { int freebsd32_ftruncate(int fd, int pad, \
  301                     u_int32_t lengthlo, u_int32_t lengthhi); }
  302 202     MSTD { int freebsd32_sysctl(int *name, u_int namelen, void *old, \
  303                     u_int32_t *oldlenp, void *new, u_int32_t newlen); }
  304 203     MNOPROTO { int mlock(const void *addr, size_t len); }
  305 204     MNOPROTO { int munlock(const void *addr, size_t len); }
  306 205     NOPROTO { int undelete(char *path); }
  307 206     NOPROTO { int futimes(int fd, struct timeval *tptr); }
  308 207     MNOPROTO { int getpgid(pid_t pid); }
  309 208     UNIMPL  newreboot (NetBSD)
  310 209     MNOPROTO { int poll(struct pollfd *fds, u_int nfds, int timeout); }
  311 
  312 ;
  313 ; The following are reserved for loadable syscalls
  314 ;
  315 210     UNIMPL
  316 211     UNIMPL
  317 212     UNIMPL
  318 213     UNIMPL
  319 214     UNIMPL
  320 215     UNIMPL
  321 216     UNIMPL
  322 217     UNIMPL
  323 218     UNIMPL
  324 219     UNIMPL
  325 
  326 ;
  327 ; The following were introduced with NetBSD/4.4Lite-2
  328 ; They are initialized by thier respective modules/sysinits
  329 ; XXX PROBLEM!!
  330 220     MNOPROTO { int __semctl(int semid, int semnum, int cmd, \
  331                     union semun *arg); }
  332 221     MNOPROTO { int semget(key_t key, int nsems, int semflg); }
  333 222     MNOPROTO { int semop(int semid, struct sembuf *sops, u_int nsops); }
  334 223     UNIMPL  semconfig
  335 224     MNOPROTO { int msgctl(int msqid, int cmd, struct msqid_ds *buf); }
  336 225     MNOPROTO { int msgget(key_t key, int msgflg); }
  337 226     MNOPROTO { int msgsnd(int msqid, void *msgp, size_t msgsz, \
  338                     int msgflg); }
  339 227     MNOPROTO { int msgrcv(int msqid, void *msgp, size_t msgsz, \
  340                     long msgtyp, int msgflg); }
  341 228     MNOPROTO { int shmat(int shmid, void *shmaddr, int shmflg); }
  342 229     MNOPROTO { int shmctl(int shmid, int cmd, struct shmid_ds *buf); }
  343 230     MNOPROTO { int shmdt(void *shmaddr); }
  344 231     MNOPROTO { int shmget(key_t key, int size, int shmflg); }
  345 ;
  346 232     MNOPROTO { int clock_gettime(clockid_t clock_id, struct timespec *tp); }
  347 233     MNOPROTO { int clock_settime(clockid_t clock_id, \
  348                     const struct timespec *tp); }
  349 234     MNOPROTO { int clock_getres(clockid_t clock_id, struct timespec *tp); }
  350 235     UNIMPL  timer_create
  351 236     UNIMPL  timer_delete
  352 237     UNIMPL  timer_settime
  353 238     UNIMPL  timer_gettime
  354 239     UNIMPL  timer_getoverrun
  355 240     MSTD    { int freebsd32_nanosleep(const struct timespec *rqtp, \
  356                     struct timespec *rmtp); }
  357 241     UNIMPL  nosys
  358 242     UNIMPL  nosys
  359 243     UNIMPL  nosys
  360 244     UNIMPL  nosys
  361 245     UNIMPL  nosys
  362 246     UNIMPL  nosys
  363 247     UNIMPL  nosys
  364 248     UNIMPL  nosys
  365 249     UNIMPL  nosys
  366 ; syscall numbers initially used in OpenBSD
  367 250     MNOPROTO { int minherit(void *addr, size_t len, int inherit); }
  368 251     MNOPROTO { int rfork(int flags); }
  369 252     MNOPROTO { int openbsd_poll(struct pollfd *fds, u_int nfds, \
  370                     int timeout); }
  371 253     MNOPROTO { int issetugid(void); }
  372 254     NOPROTO { int lchown(char *path, int uid, int gid); }
  373 255     UNIMPL  nosys
  374 256     UNIMPL  nosys
  375 257     UNIMPL  nosys
  376 258     UNIMPL  nosys
  377 259     UNIMPL  nosys
  378 260     UNIMPL  nosys
  379 261     UNIMPL  nosys
  380 262     UNIMPL  nosys
  381 263     UNIMPL  nosys
  382 264     UNIMPL  nosys
  383 265     UNIMPL  nosys
  384 266     UNIMPL  nosys
  385 267     UNIMPL  nosys
  386 268     UNIMPL  nosys
  387 269     UNIMPL  nosys
  388 270     UNIMPL  nosys
  389 271     UNIMPL  nosys
  390 272     NOPROTO { int getdents(int fd, char *buf, size_t count); }
  391 273     UNIMPL  nosys
  392 274     NOPROTO { int lchmod(char *path, mode_t mode); }
  393 275     NOPROTO { int lchown(char *path, uid_t uid, gid_t gid); } \
  394                     netbsd_lchown lchown_args int
  395 276     NOPROTO { int lutimes(char *path, struct timeval *tptr); }
  396 277     MNOPROTO { int msync(void *addr, size_t len, int flags); } \
  397                     netbsd_msync msync_args int
  398 278     NOPROTO { int nstat(char *path, struct nstat *ub); }
  399 279     MNOPROTO { int nfstat(int fd, struct nstat *sb); }
  400 280     NOPROTO { int nlstat(char *path, struct nstat *ub); }
  401 281     UNIMPL  nosys
  402 282     UNIMPL  nosys
  403 283     UNIMPL  nosys
  404 284     UNIMPL  nosys
  405 285     UNIMPL  nosys
  406 286     UNIMPL  nosys
  407 287     UNIMPL  nosys
  408 288     UNIMPL  nosys
  409 289     UNIMPL  nosys
  410 290     UNIMPL  nosys
  411 291     UNIMPL  nosys
  412 292     UNIMPL  nosys
  413 293     UNIMPL  nosys
  414 294     UNIMPL  nosys
  415 295     UNIMPL  nosys
  416 296     UNIMPL  nosys
  417 ; XXX 297 is 300 in NetBSD 
  418 297     COMPAT4 { int freebsd32_fhstatfs(const struct fhandle *u_fhp, \
  419                     struct statfs32 *buf); }
  420 298     NOPROTO { int fhopen(const struct fhandle *u_fhp, int flags); }
  421 299     NOPROTO { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
  422 ; syscall numbers for FreeBSD
  423 300     MNOPROTO { int modnext(int modid); }
  424 301     MSTD    { int freebsd32_modstat(int modid, struct module_stat32* stat); }
  425 302     MNOPROTO { int modfnext(int modid); }
  426 303     MNOPROTO { int modfind(const char *name); }
  427 304     MNOPROTO { int kldload(const char *file); }
  428 305     MNOPROTO { int kldunload(int fileid); }
  429 306     MNOPROTO { int kldfind(const char *file); }
  430 307     MNOPROTO { int kldnext(int fileid); }
  431 308     MNOPROTO { int kldstat(int fileid, struct kld_file_stat* stat); }
  432 309     MNOPROTO { int kldfirstmod(int fileid); }
  433 310     MNOPROTO { int getsid(pid_t pid); }
  434 311     MNOPROTO { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
  435 312     MNOPROTO { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
  436 313     OBSOL   signanosleep
  437 314     UNIMPL  aio_return
  438 315     UNIMPL  aio_suspend
  439 316     UNIMPL  aio_cancel
  440 317     UNIMPL  aio_error
  441 318     UNIMPL  aio_read
  442 319     UNIMPL  aio_write
  443 320     UNIMPL  lio_listio
  444 321     MNOPROTO { int yield(void); }
  445 322     OBSOL   thr_sleep
  446 323     OBSOL   thr_wakeup
  447 324     MNOPROTO { int mlockall(int how); }
  448 325     MNOPROTO { int munlockall(void); }
  449 326     NOPROTO { int __getcwd(u_char *buf, u_int buflen); }
  450 
  451 327     MNOPROTO { int sched_setparam (pid_t pid, \
  452                     const struct sched_param *param); }
  453 328     MNOPROTO { int sched_getparam (pid_t pid, struct sched_param *param); }
  454 
  455 329     MNOPROTO { int sched_setscheduler (pid_t pid, int policy, \
  456                     const struct sched_param *param); }
  457 330     MNOPROTO { int sched_getscheduler (pid_t pid); }
  458 
  459 331     MNOPROTO { int sched_yield (void); }
  460 332     MNOPROTO { int sched_get_priority_max (int policy); }
  461 333     MNOPROTO { int sched_get_priority_min (int policy); }
  462 334     MNOPROTO { int sched_rr_get_interval (pid_t pid, \
  463                     struct timespec *interval); }
  464 335     MNOPROTO { int utrace(const void *addr, size_t len); }
  465 ; XXX note - bigendian is different
  466 336     MCOMPAT4 { int freebsd32_sendfile(int fd, int s, u_int32_t offsetlo, \
  467                     u_int32_t offsethi, size_t nbytes, struct sf_hdtr *hdtr, \
  468                     off_t *sbytes, int flags); }
  469 337     NOPROTO { int kldsym(int fileid, int cmd, void *data); }
  470 338     MNOPROTO { int jail(struct jail *jail); }
  471 339     UNIMPL  pioctl
  472 340     MNOPROTO { int sigprocmask(int how, const sigset_t *set, \
  473                     sigset_t *oset); }
  474 341     MNOPROTO { int sigsuspend(const sigset_t *sigmask); }
  475 342     MCOMPAT4 { int freebsd32_sigaction(int sig, struct sigaction32 *act, \
  476                     struct sigaction32 *oact); }
  477 343     MNOPROTO { int sigpending(sigset_t *set); }
  478 344     MCOMPAT4 { int freebsd32_sigreturn( \
  479                     const struct freebsd4_freebsd32_ucontext *sigcntxp); }
  480 ; XXX implement
  481 345     UNIMPL  sigtimedwait
  482 ; XXX implement
  483 346     UNIMPL  sigwaitinfo
  484 347     MNOPROTO { int __acl_get_file(const char *path, acl_type_t type, \
  485                     struct acl *aclp); }
  486 348     MNOPROTO { int __acl_set_file(const char *path, acl_type_t type, \
  487                     struct acl *aclp); }
  488 349     MNOPROTO { int __acl_get_fd(int filedes, acl_type_t type, \
  489                     struct acl *aclp); }
  490 350     MNOPROTO { int __acl_set_fd(int filedes, acl_type_t type, \
  491                     struct acl *aclp); }
  492 351     MNOPROTO { int __acl_delete_file(const char *path, acl_type_t type); }
  493 352     MNOPROTO { int __acl_delete_fd(int filedes, acl_type_t type); }
  494 353     MNOPROTO { int __acl_aclcheck_file(const char *path, acl_type_t type, \
  495                     struct acl *aclp); }
  496 354     MNOPROTO { int __acl_aclcheck_fd(int filedes, acl_type_t type, \
  497                     struct acl *aclp); }
  498 355     NOPROTO { int extattrctl(const char *path, int cmd, \
  499                     const char *filename, int attrnamespace, \
  500                     const char *attrname); }
  501 356     NOPROTO { int extattr_set_file(const char *path, \
  502                     int attrnamespace, const char *attrname, \
  503                     void *data, size_t nbytes); }
  504 357     NOPROTO { ssize_t extattr_get_file(const char *path, \
  505                     int attrnamespace, const char *attrname, \
  506                     void *data, size_t nbytes); }
  507 358     NOPROTO { int extattr_delete_file(const char *path, \
  508                     int attrnamespace, const char *attrname); }
  509 359     UNIMPL  aio_waitcomplete
  510 360     MNOPROTO { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
  511 361     MNOPROTO { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
  512 362     MNOPROTO { int kqueue(void); }
  513 363     MSTD { int freebsd32_kevent(int fd, \
  514                     const struct kevent *changelist, int nchanges, \
  515                     struct kevent *eventlist, int nevents, \
  516                     const struct timespec *timeout); }
  517 364     UNIMPL  __cap_get_proc
  518 365     UNIMPL  __cap_set_proc
  519 366     UNIMPL  __cap_get_fd
  520 367     UNIMPL  __cap_get_file
  521 368     UNIMPL  __cap_set_fd
  522 369     UNIMPL  __cap_set_file
  523 370     UNIMPL  lkmressys
  524 371     NOPROTO { int extattr_set_fd(int fd, int attrnamespace, \
  525                     const char *attrname, void *data, size_t nbytes); }
  526 372     NOPROTO { ssize_t extattr_get_fd(int fd, int attrnamespace, \
  527                     const char *attrname, void *data, size_t nbytes); }
  528 373     NOPROTO { int extattr_delete_fd(int fd, int attrnamespace, \
  529                     const char *attrname); }
  530 374     MNOPROTO { int __setugid(int flag); }
  531 375     UNIMPL  nfsclnt
  532 376     NOPROTO { int eaccess(char *path, int flags); }
  533 377     UNIMPL  afs_syscall
  534 378     NOPROTO { int nmount(struct iovec *iovp, unsigned int iovcnt, \
  535                     int flags); }
  536 379     NOPROTO { int kse_exit(void); }
  537 380     NOPROTO { int kse_wakeup(struct kse_mailbox *mbx); }
  538 381     NOPROTO { int kse_create(struct kse_mailbox *mbx, int newgroup); }
  539 382     NOPROTO { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
  540 383     NOPROTO { int kse_release(void); }
  541 384     UNIMPL  __mac_get_proc
  542 385     UNIMPL  __mac_set_proc
  543 386     UNIMPL  __mac_get_fd
  544 387     UNIMPL  __mac_get_file
  545 388     UNIMPL  __mac_set_fd
  546 389     UNIMPL  __mac_set_file
  547 390     NOPROTO { int kenv(int what, const char *name, char *value, int len); }
  548 391     NOPROTO { int lchflags(const char *path, int flags); }
  549 392     NOPROTO { int uuidgen(struct uuid *store, int count); }
  550 393     MSTD    { int freebsd32_sendfile(int fd, int s, u_int32_t offsetlo, \
  551                     u_int32_t offsethi, size_t nbytes, struct sf_hdtr *hdtr, \
  552                     off_t *sbytes, int flags); }
  553 394     UNIMPL  mac_syscall
  554 395     NOPROTO { int getfsstat(struct statfs *buf, long bufsize, \
  555                     int flags); }
  556 396     NOPROTO { int statfs(char *path, struct statfs *buf); }
  557 397     NOPROTO { int fstatfs(int fd, struct statfs *buf); }
  558 398     NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \
  559                     struct statfs *buf); }
  560 399     UNIMPL  nosys
  561 ; XXX implement these?
  562 400     UNIMPL  ksem_close
  563 401     UNIMPL  ksem_post
  564 402     UNIMPL  ksem_wait
  565 403     UNIMPL  ksem_trywait
  566 404     UNIMPL  ksem_init
  567 405     UNIMPL  ksem_open
  568 406     UNIMPL  ksem_unlink
  569 407     UNIMPL  ksem_getvalue
  570 408     UNIMPL  ksem_destroy
  571 409     UNIMPL  __mac_get_pid
  572 410     UNIMPL  __mac_get_link
  573 411     UNIMPL  __mac_set_link
  574 412     UNIMPL  extattr_set_link
  575 413     UNIMPL  extattr_get_link
  576 414     UNIMPL  extattr_delete_link
  577 415     UNIMPL  __mac_execve
  578 416     STD { int freebsd32_sigaction(int sig, struct sigaction32 *act, \
  579                     struct sigaction32 *oact); }
  580 417     MSTD { int freebsd32_sigreturn( \
  581                     const struct freebsd32_ucontext *sigcntxp); }
  582 418     UNIMPL  __xstat
  583 419     UNIMPL  __xfstat
  584 420     UNIMPL  __xlstat
  585 ; XXX implement
  586 421     UNIMPL  getcontext
  587 ; XXX implement
  588 422     UNIMPL  setcontext
  589 ; XXX implement
  590 423     UNIMPL  swapcontext
  591 424     UNIMPL  swapoff
  592 425     UNIMPL  __acl_get_link
  593 426     UNIMPL  __acl_set_link
  594 427     UNIMPL  __acl_delete_link
  595 428     UNIMPL  __acl_aclcheck_link
  596 ; XXX implement
  597 429     UNIMPL  sigwait
  598 430     MNOPROTO { int thr_create(ucontext_t *ctx, long *id, int flag s); }
  599 431     MNOPROTO { void thr_exit(long *state); }
  600 432     MNOPROTO { int thr_self(long *id); }
  601 433     MNOPROTO { int thr_kill(long id, int sig); }
  602 434     MNOPROTO { int _umtx_lock(struct umtx *umtx); }
  603 435     MNOPROTO { int _umtx_unlock(struct umtx *umtx); }
  604 436     MNOPROTO { int jail_attach(int jid); }
  605 437     UNIMPL  extattr_list_fd
  606 438     UNIMPL  extattr_list_file
  607 439     UNIMPL  extattr_list_link
  608 440     UNIMPL  kse_switchin
  609 441     UNIMPL  ksem_timedwait
  610 442     MNOPROTO { int thr_suspend(const struct timespec *timeout); }
  611 443     MNOPROTO { int thr_wake(long id); }
  612 444     MNOPROTO { int kldunloadf(int fileid, int flags); }

Cache object: a407a6f820289ff237a58c8218bcae2f


[ 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.