syscalls.master revision 1.18
11.18Scgd 	$Id: syscalls.master,v 1.18 1994/05/07 00:39:06 cgd Exp $
21.5Scgd;	from: @(#)syscalls.master	7.26 (Berkeley) 3/25/91
31.1Sglass; System call name/number master file.
41.1Sglass; Processed to created init_sysent.c, syscalls.c and syscall.h.
51.1Sglass
61.1Sglass; Columns: number type nargs name altname/comments
71.1Sglass;	number	system call number, must be in order
81.6Scgd;	type	one of STD, OBSOL, UNIMPL, NODEF, COMPAT
91.1Sglass;	nargs	number of arguments
101.1Sglass;	name	name of syscall routine
111.1Sglass;	altname	name of system call if different
121.1Sglass;		for UNIMPL/OBSOL, name continues with comments
131.1Sglass
141.1Sglass; types:
151.1Sglass;	STD	always included
161.1Sglass;	COMPAT	included on COMPAT #ifdef
171.1Sglass;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
181.1Sglass;	OBSOL	obsolete, not included in system, only specifies name
191.6Scgd;	NODEF	do everything except include in syscall.h
201.1Sglass;	UNIMPL	not implemented, placeholder only
211.1Sglass
221.1Sglass; #ifdef's, etc. may be included, and are copied to the output files.
231.1Sglass
241.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive
251.1Sglass; are reserved for use in future Berkeley releases.
261.1Sglass; Additional system calls implemented in vendor and other
271.1Sglass; redistributions should be placed in the reserved range at the end
281.1Sglass; of the current calls.
291.1Sglass
301.10Sderaadt0	STD	0 nosys syscall
311.16Scgd1	STD	1 exit
321.1Sglass2	STD	0 fork
331.1Sglass3	STD	3 read
341.1Sglass4	STD	3 write
351.1Sglass5	STD	3 open
361.1Sglass6	STD	1 close
371.1Sglass7	STD	4 wait4
381.1Sglass8	COMPAT	2 creat
391.1Sglass9	STD	2 link
401.1Sglass10	STD	1 unlink
411.1Sglass11	OBSOL	2 execv
421.1Sglass12	STD	1 chdir
431.1Sglass13	STD	1 fchdir
441.1Sglass14	STD	3 mknod
451.1Sglass15	STD	2 chmod
461.1Sglass16	STD	3 chown
471.1Sglass17	STD	1 obreak break
481.1Sglass18	STD	3 getfsstat
491.12Scgd19	COMPAT	3 lseek
501.1Sglass20	STD	0 getpid
511.1Sglass21	STD	4 mount
521.1Sglass22	STD	2 unmount
531.1Sglass23	STD	1 setuid
541.1Sglass24	STD	0 getuid
551.1Sglass25	STD	0 geteuid
561.1Sglass26	STD	4 ptrace
571.1Sglass27	STD	3 recvmsg
581.1Sglass28	STD	3 sendmsg
591.1Sglass29	STD	6 recvfrom
601.1Sglass30	STD	3 accept
611.1Sglass31	STD	3 getpeername
621.1Sglass32	STD	3 getsockname
631.16Scgd33	STD	2 access
641.1Sglass34	STD	2 chflags
651.1Sglass35	STD	2 fchflags
661.1Sglass36	STD	0 sync
671.1Sglass37	STD	2 kill
681.12Scgd38	COMPAT	2 stat
691.1Sglass39	STD	0 getppid
701.12Scgd40	COMPAT	2 lstat
711.1Sglass41	STD	2 dup
721.1Sglass42	STD	0 pipe
731.1Sglass43	STD	0 getegid
741.1Sglass44	STD	4 profil
751.1Sglass#ifdef KTRACE
761.1Sglass45	STD	4 ktrace
771.1Sglass#else
781.1Sglass45	UNIMPL	0 ktrace
791.1Sglass#endif
801.1Sglass46	STD	3 sigaction
811.1Sglass47	STD	0 getgid
821.1Sglass48	STD	2 sigprocmask
831.1Sglass49	STD	2 getlogin
841.1Sglass50	STD	1 setlogin
851.16Scgd51	STD	1 acct
861.1Sglass52	STD	0 sigpending
871.18Scgd53	STD	2 sigaltstack
881.1Sglass54	STD	3 ioctl
891.1Sglass55	STD	1 reboot
901.1Sglass56	STD	1 revoke
911.1Sglass57	STD	2 symlink
921.1Sglass58	STD	3 readlink
931.1Sglass59	STD	3 execve
941.1Sglass60	STD	1 umask
951.1Sglass61	STD	1 chroot
961.12Scgd62	COMPAT	2 fstat
971.18Scgd63	COMPAT	4 getkerninfo
981.18Scgd64	COMPAT	0 getpagesize
991.1Sglass65	STD	2 msync
1001.1Sglass66	STD	0 vfork
1011.1Sglass67	OBSOL	0 vread
1021.1Sglass68	OBSOL	0 vwrite
1031.1Sglass69	STD	1 sbrk
1041.1Sglass70	STD	1 sstk
1051.12Scgd71	COMPAT	7 mmap
1061.1Sglass72	STD	1 ovadvise vadvise
1071.1Sglass73	STD	2 munmap
1081.1Sglass74	STD	3 mprotect
1091.1Sglass75	STD	3 madvise
1101.1Sglass76	OBSOL	0 vhangup
1111.1Sglass77	OBSOL	0 vlimit
1121.1Sglass78	STD	3 mincore
1131.1Sglass79	STD	2 getgroups
1141.1Sglass80	STD	2 setgroups
1151.4Scgd81	STD	0 getpgrp
1161.1Sglass82	STD	2 setpgid
1171.1Sglass83	STD	3 setitimer
1181.1Sglass84	COMPAT	0 wait
1191.1Sglass85	STD	1 swapon
1201.1Sglass86	STD	2 getitimer
1211.18Scgd87	COMPAT	2 gethostname
1221.18Scgd88	COMPAT	2 sethostname
1231.1Sglass89	STD	0 getdtablesize
1241.1Sglass90	STD	2 dup2
1251.1Sglass91	UNIMPL	2 getdopt
1261.1Sglass92	STD	3 fcntl
1271.1Sglass93	STD	5 select
1281.1Sglass94	UNIMPL	2 setdopt
1291.1Sglass95	STD	1 fsync
1301.1Sglass96	STD	3 setpriority
1311.1Sglass97	STD	3 socket
1321.1Sglass98	STD	3 connect
1331.1Sglass99	COMPAT	3 accept
1341.1Sglass100	STD	2 getpriority
1351.1Sglass101	COMPAT	4 send
1361.1Sglass102	COMPAT	4 recv
1371.1Sglass103	STD	1 sigreturn
1381.1Sglass104	STD	3 bind
1391.1Sglass105	STD	5 setsockopt
1401.1Sglass106	STD	2 listen
1411.1Sglass107	OBSOL	0 vtimes
1421.1Sglass108	COMPAT	3 sigvec
1431.1Sglass109	COMPAT	1 sigblock
1441.1Sglass110	COMPAT	1 sigsetmask
1451.1Sglass111	STD	1 sigsuspend
1461.18Scgd112	COMPAT	2 sigstack
1471.1Sglass113	COMPAT	3 recvmsg
1481.1Sglass114	COMPAT	3 sendmsg
1491.1Sglass#ifdef TRACE
1501.1Sglass115	STD	2 vtrace
1511.1Sglass#else
1521.1Sglass115	OBSOL	2 vtrace
1531.1Sglass#endif
1541.1Sglass116	STD	2 gettimeofday
1551.1Sglass117	STD	2 getrusage
1561.1Sglass118	STD	5 getsockopt
1571.17Scgd#ifdef vax
1581.17Scgd119	STD	1 resuba
1591.17Scgd#else
1601.1Sglass119	UNIMPL	0 nosys
1611.17Scgd#endif
1621.1Sglass120	STD	3 readv
1631.1Sglass121	STD	3 writev
1641.1Sglass122	STD	2 settimeofday
1651.1Sglass123	STD	3 fchown
1661.1Sglass124	STD	2 fchmod
1671.1Sglass125	COMPAT	6 recvfrom
1681.14Scgd126	COMPAT	2 setreuid
1691.14Scgd127	COMPAT	2 setregid
1701.1Sglass128	STD	2 rename
1711.12Scgd129	COMPAT	2 truncate
1721.12Scgd130	COMPAT	2 ftruncate
1731.1Sglass131	STD	2 flock
1741.1Sglass132	STD	2 mkfifo
1751.1Sglass133	STD	6 sendto
1761.1Sglass134	STD	2 shutdown
1771.1Sglass135	STD	5 socketpair
1781.1Sglass136	STD	2 mkdir
1791.1Sglass137	STD	1 rmdir
1801.1Sglass138	STD	2 utimes
1811.1Sglass139	OBSOL	0 4.2 sigreturn
1821.1Sglass140	STD	2 adjtime
1831.1Sglass141	COMPAT	3 getpeername
1841.18Scgd142	COMPAT	0 gethostid
1851.18Scgd143	COMPAT	1 sethostid
1861.17Scgd144	COMPAT	2 getrlimit
1871.17Scgd145	COMPAT	2 setrlimit
1881.1Sglass146	COMPAT	2 killpg
1891.1Sglass147	STD	0 setsid
1901.1Sglass148	STD	4 quotactl
1911.1Sglass149	COMPAT	4 quota
1921.1Sglass150	COMPAT	3 getsockname
1931.1Sglass
1941.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific
1951.1Sglass; system calls.  (This includes various calls added for compatibity
1961.1Sglass; with other Unix variants.)
1971.1Sglass; Some of these calls are now supported by BSD...
1981.1Sglass151	UNIMPL	0 nosys
1991.1Sglass152	UNIMPL	0 nosys
2001.1Sglass153	UNIMPL	0 nosys
2011.1Sglass154	UNIMPL	0 nosys
2021.18Scgd#if defined(NFSSERVER)
2031.1Sglass155	STD	5 nfssvc
2041.1Sglass#else
2051.1Sglass155	UNIMPL	0 nosys
2061.1Sglass#endif
2071.1Sglass156	STD	4 getdirentries
2081.1Sglass157	STD	2 statfs
2091.1Sglass158	STD	2 fstatfs
2101.1Sglass159	UNIMPL	0 nosys
2111.2Sglass#ifdef NFSCLIENT
2121.1Sglass160	STD	0 async_daemon
2131.1Sglass161	STD	2 getfh
2141.1Sglass#else
2151.1Sglass160	UNIMPL	0 nosys
2161.1Sglass161	UNIMPL	0 nosys
2171.1Sglass#endif
2181.18Scgd162	COMPAT	2 getdomainname
2191.18Scgd163	COMPAT	2 setdomainname
2201.18Scgd164	COMPAT	1 uname
2211.7Sbrezak165	STD	2 sysarch
2221.1Sglass166	UNIMPL	0 nosys
2231.1Sglass167	UNIMPL	0 nosys
2241.1Sglass168	UNIMPL	0 nosys
2251.9Scgd#ifdef SYSVSEM
2261.9Scgd169	STD	5 semsys
2271.9Scgd#else
2281.1Sglass169	UNIMPL	0 nosys
2291.9Scgd#endif
2301.9Scgd#ifdef SYSVMSG
2311.9Scgd170	STD	6 msgsys
2321.9Scgd#else
2331.1Sglass170	UNIMPL	0 nosys
2341.9Scgd#endif
2351.1Sglass#ifdef SYSVSHM
2361.1Sglass171	STD	4 shmsys
2371.1Sglass#else
2381.1Sglass171	UNIMPL	0 nosys
2391.1Sglass#endif
2401.1Sglass172	UNIMPL	0 nosys
2411.1Sglass173	UNIMPL	0 nosys
2421.1Sglass174	UNIMPL	0 nosys
2431.1Sglass175	UNIMPL	0 nosys
2441.1Sglass176	UNIMPL	0 nosys
2451.1Sglass177	UNIMPL	0 nosys
2461.1Sglass178	UNIMPL	0 nosys
2471.1Sglass179	UNIMPL	0 nosys
2481.1Sglass180	UNIMPL	0 nosys
2491.1Sglass
2501.1Sglass; Syscalls 180-199 are used by/reserved for BSD
2511.1Sglass181	STD	1 setgid
2521.1Sglass182	STD	1 setegid
2531.1Sglass183	STD	1 seteuid
2541.17Scgd#ifdef LFS
2551.17Scgd184	STD	3 lfs_bmapv
2561.17Scgd185	STD	3 lfs_markv
2571.17Scgd186	STD	2 lfs_segclean
2581.17Scgd187	STD	2 lfs_segwait
2591.17Scgd#else
2601.1Sglass184	UNIMPL	0 nosys
2611.1Sglass185	UNIMPL	0 nosys
2621.1Sglass186	UNIMPL	0 nosys
2631.1Sglass187	UNIMPL	0 nosys
2641.17Scgd#endif
2651.12Scgd188	STD	2 stat
2661.12Scgd189	STD	2 fstat
2671.12Scgd190	STD	2 lstat
2681.18Scgd191	STD	2 pathconf
2691.18Scgd192	STD	2 fpathconf
2701.6Scgd193	UNIMPL	0 nosys
2711.17Scgd194	STD	2 getrlimit
2721.17Scgd195	STD	2 setrlimit
2731.6Scgd196	UNIMPL	0 nosys
2741.16Scgd197	STD	8 mmap
2751.13Scgd198	STD	0 nosys __syscall
2761.15Scgd199	STD	5 lseek
2771.15Scgd200	STD	4 truncate
2781.15Scgd201	STD	4 ftruncate
2791.18Scgd202	STD	6 __sysctl
2801.18Scgd203	STD	2 mlock
2811.18Scgd204	STD	2 munlock
2821.17Scgd205	UNIMPL	0 nosys
2831.6Scgd206	UNIMPL	0 nosys
2841.6Scgd207	UNIMPL	0 nosys
2851.6Scgd208	UNIMPL	0 nosys
2861.6Scgd209	UNIMPL	0 nosys
2871.11Scgd;
2881.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls
2891.11Scgd;
2901.11Scgd#ifdef LKM
2911.11Scgd210	NODEF	0 lkmnosys
2921.11Scgd211	NODEF	0 lkmnosys
2931.11Scgd212	NODEF	0 lkmnosys
2941.11Scgd213	NODEF	0 lkmnosys
2951.11Scgd214	NODEF	0 lkmnosys
2961.11Scgd215	NODEF	0 lkmnosys
2971.11Scgd216	NODEF	0 lkmnosys
2981.11Scgd217	NODEF	0 lkmnosys
2991.11Scgd218	NODEF	0 lkmnosys
3001.11Scgd219	NODEF	0 lkmnosys
3011.11Scgd#else	/* !LKM */
3021.11Scgd210	UNIMPL	0 nosys
3031.11Scgd211	UNIMPL	0 nosys
3041.11Scgd212	UNIMPL	0 nosys
3051.11Scgd213	UNIMPL	0 nosys
3061.11Scgd214	UNIMPL	0 nosys
3071.11Scgd215	UNIMPL	0 nosys
3081.11Scgd216	UNIMPL	0 nosys
3091.11Scgd217	UNIMPL	0 nosys
3101.11Scgd218	UNIMPL	0 nosys
3111.11Scgd219	UNIMPL	0 nosys
3121.6Scgd#endif	/* !LKM */
313