head	1.316;
access;
symbols
	netbsd-11-0-RC3:1.316
	netbsd-11-0-RC2:1.316
	netbsd-11-0-RC1:1.316
	perseant-exfatfs-base-20250801:1.316
	netbsd-11:1.316.0.2
	netbsd-11-base:1.316
	netbsd-10-1-RELEASE:1.309
	perseant-exfatfs-base-20240630:1.313
	perseant-exfatfs:1.313.0.2
	perseant-exfatfs-base:1.313
	netbsd-8-3-RELEASE:1.286
	netbsd-9-4-RELEASE:1.295
	netbsd-10-0-RELEASE:1.309
	netbsd-10-0-RC6:1.309
	netbsd-10-0-RC5:1.309
	netbsd-10-0-RC4:1.309
	netbsd-10-0-RC3:1.309
	netbsd-10-0-RC2:1.309
	thorpej-ifq:1.311.0.4
	thorpej-ifq-base:1.311
	thorpej-altq-separation:1.311.0.2
	thorpej-altq-separation-base:1.311
	netbsd-10-0-RC1:1.309
	netbsd-10:1.309.0.4
	netbsd-10-base:1.309
	bouyer-sunxi-drm:1.309.0.2
	bouyer-sunxi-drm-base:1.309
	netbsd-9-3-RELEASE:1.295
	thorpej-i2c-spi-conf2:1.307.0.14
	thorpej-i2c-spi-conf2-base:1.307
	thorpej-futex2:1.307.0.12
	thorpej-futex2-base:1.307
	thorpej-cfargs2:1.307.0.10
	thorpej-cfargs2-base:1.307
	cjep_sun2x-base1:1.307
	cjep_sun2x:1.307.0.8
	cjep_sun2x-base:1.307
	cjep_staticlib_x-base1:1.307
	netbsd-9-2-RELEASE:1.295
	cjep_staticlib_x:1.307.0.6
	cjep_staticlib_x-base:1.307
	thorpej-i2c-spi-conf:1.307.0.4
	thorpej-i2c-spi-conf-base:1.307
	thorpej-cfargs:1.307.0.2
	thorpej-cfargs-base:1.307
	thorpej-futex:1.306.0.2
	thorpej-futex-base:1.307
	netbsd-9-1-RELEASE:1.295
	bouyer-xenpvh-base2:1.302
	phil-wifi-20200421:1.301
	bouyer-xenpvh-base1:1.301
	phil-wifi-20200411:1.298
	bouyer-xenpvh:1.298.0.2
	bouyer-xenpvh-base:1.298
	is-mlppp:1.297.0.2
	is-mlppp-base:1.297
	phil-wifi-20200406:1.298
	netbsd-8-2-RELEASE:1.286
	ad-namecache-base3:1.297
	netbsd-9-0-RELEASE:1.295
	netbsd-9-0-RC2:1.295
	ad-namecache-base2:1.297
	ad-namecache-base1:1.296
	ad-namecache:1.296.0.2
	ad-namecache-base:1.296
	netbsd-9-0-RC1:1.295
	phil-wifi-20191119:1.296
	netbsd-9:1.295.0.2
	netbsd-9-base:1.295
	phil-wifi-20190609:1.294
	netbsd-8-1-RELEASE:1.286
	netbsd-8-1-RC1:1.286
	isaki-audio2:1.294.0.2
	isaki-audio2-base:1.294
	pgoyette-compat-merge-20190127:1.291.2.9
	pgoyette-compat-20190127:1.293
	pgoyette-compat-20190118:1.293
	pgoyette-compat-1226:1.293
	pgoyette-compat-1126:1.293
	pgoyette-compat-1020:1.293
	pgoyette-compat-0930:1.293
	pgoyette-compat-0906:1.293
	netbsd-7-2-RELEASE:1.270.2.1
	pgoyette-compat-0728:1.292
	netbsd-8-0-RELEASE:1.286
	phil-wifi:1.291.0.4
	phil-wifi-base:1.291
	pgoyette-compat-0625:1.291
	netbsd-8-0-RC2:1.286
	pgoyette-compat-0521:1.291
	pgoyette-compat-0502:1.291
	pgoyette-compat-0422:1.291
	netbsd-8-0-RC1:1.286
	pgoyette-compat-0415:1.291
	pgoyette-compat-0407:1.291
	pgoyette-compat-0330:1.291
	pgoyette-compat-0322:1.291
	pgoyette-compat-0315:1.291
	netbsd-7-1-2-RELEASE:1.270.2.1
	pgoyette-compat:1.291.0.2
	pgoyette-compat-base:1.291
	netbsd-7-1-1-RELEASE:1.270.2.1
	tls-maxphys-base-20171202:1.286
	matt-nb8-mediatek:1.286.0.12
	matt-nb8-mediatek-base:1.286
	nick-nhusb-base-20170825:1.286
	perseant-stdc-iso10646:1.286.0.10
	perseant-stdc-iso10646-base:1.286
	netbsd-8:1.286.0.8
	netbsd-8-base:1.286
	prg-localcount2-base3:1.286
	prg-localcount2-base2:1.286
	prg-localcount2-base1:1.286
	prg-localcount2:1.286.0.6
	prg-localcount2-base:1.286
	pgoyette-localcount-20170426:1.286
	bouyer-socketcan-base1:1.286
	jdolecek-ncq:1.286.0.4
	jdolecek-ncq-base:1.286
	pgoyette-localcount-20170320:1.286
	netbsd-7-1:1.270.2.1.0.6
	netbsd-7-1-RELEASE:1.270.2.1
	netbsd-7-1-RC2:1.270.2.1
	nick-nhusb-base-20170204:1.286
	netbsd-7-nhusb-base-20170116:1.270.2.1
	bouyer-socketcan:1.286.0.2
	bouyer-socketcan-base:1.286
	pgoyette-localcount-20170107:1.286
	netbsd-7-1-RC1:1.270.2.1
	nick-nhusb-base-20161204:1.286
	pgoyette-localcount-20161104:1.286
	netbsd-7-0-2-RELEASE:1.270.2.1
	nick-nhusb-base-20161004:1.285
	localcount-20160914:1.285
	netbsd-7-nhusb:1.270.2.1.0.4
	netbsd-7-nhusb-base:1.270.2.1
	pgoyette-localcount-20160806:1.285
	pgoyette-localcount-20160726:1.285
	pgoyette-localcount:1.285.0.2
	pgoyette-localcount-base:1.285
	nick-nhusb-base-20160907:1.285
	nick-nhusb-base-20160529:1.284
	netbsd-7-0-1-RELEASE:1.270.2.1
	nick-nhusb-base-20160422:1.283
	nick-nhusb-base-20160319:1.281
	nick-nhusb-base-20151226:1.281
	netbsd-7-0:1.270.2.1.0.2
	netbsd-7-0-RELEASE:1.270.2.1
	nick-nhusb-base-20150921:1.278
	netbsd-7-0-RC3:1.270.2.1
	netbsd-7-0-RC2:1.270.2.1
	netbsd-7-0-RC1:1.270.2.1
	nick-nhusb-base-20150606:1.277
	nick-nhusb-base-20150406:1.272
	nick-nhusb:1.270.0.4
	nick-nhusb-base:1.270
	netbsd-5-2-3-RELEASE:1.211.4.1
	netbsd-5-1-5-RELEASE:1.211
	netbsd-6-0-6-RELEASE:1.254
	netbsd-6-1-5-RELEASE:1.254
	netbsd-7:1.270.0.2
	netbsd-7-base:1.270
	yamt-pagecache-base9:1.268
	yamt-pagecache-tag8:1.252.2.3
	netbsd-6-1-4-RELEASE:1.254
	netbsd-6-0-5-RELEASE:1.254
	tls-earlyentropy:1.267.0.2
	tls-earlyentropy-base:1.270
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.267
	riastradh-drm2-base3:1.267
	netbsd-6-1-3-RELEASE:1.254
	netbsd-6-0-4-RELEASE:1.254
	netbsd-5-2-2-RELEASE:1.211.4.1
	netbsd-5-1-4-RELEASE:1.211
	netbsd-6-1-2-RELEASE:1.254
	netbsd-6-0-3-RELEASE:1.254
	netbsd-5-2-1-RELEASE:1.211.4.1
	netbsd-5-1-3-RELEASE:1.211
	rmind-smpnet-nbase:1.268
	netbsd-6-1-1-RELEASE:1.254
	riastradh-drm2-base2:1.262
	riastradh-drm2-base1:1.262
	riastradh-drm2:1.262.0.6
	riastradh-drm2-base:1.262
	rmind-smpnet:1.262.0.4
	rmind-smpnet-base:1.268
	netbsd-6-1:1.254.0.8
	netbsd-6-0-2-RELEASE:1.254
	netbsd-6-1-RELEASE:1.254
	khorben-n900:1.262.0.2
	netbsd-6-1-RC4:1.254
	netbsd-6-1-RC3:1.254
	agc-symver:1.261.0.4
	agc-symver-base:1.261
	netbsd-6-1-RC2:1.254
	netbsd-6-1-RC1:1.254
	yamt-pagecache-base8:1.261
	netbsd-5-2:1.211.4.1.0.2
	netbsd-6-0-1-RELEASE:1.254
	yamt-pagecache-base7:1.261
	netbsd-5-2-RELEASE:1.211.4.1
	netbsd-5-2-RC1:1.211.4.1
	matt-nb6-plus-nbase:1.254
	yamt-pagecache-base6:1.261
	netbsd-6-0:1.254.0.6
	netbsd-6-0-RELEASE:1.254
	netbsd-6-0-RC2:1.254
	tls-maxphys:1.260.0.2
	tls-maxphys-base:1.270
	matt-nb6-plus:1.254.0.4
	matt-nb6-plus-base:1.254
	netbsd-6-0-RC1:1.254
	jmcneill-usbmp-base10:1.259
	yamt-pagecache-base5:1.259
	jmcneill-usbmp-base9:1.258
	yamt-pagecache-base4:1.258
	jmcneill-usbmp-base8:1.258
	jmcneill-usbmp-base7:1.258
	jmcneill-usbmp-base6:1.257
	jmcneill-usbmp-base5:1.257
	jmcneill-usbmp-base4:1.257
	jmcneill-usbmp-base3:1.257
	jmcneill-usbmp-pre-base2:1.252
	jmcneill-usbmp-base2:1.254
	netbsd-6:1.254.0.2
	netbsd-6-base:1.254
	netbsd-5-1-2-RELEASE:1.211
	netbsd-5-1-1-RELEASE:1.211
	jmcneill-usbmp:1.252.0.6
	jmcneill-usbmp-base:1.252
	jmcneill-audiomp3:1.252.0.4
	jmcneill-audiomp3-base:1.252
	yamt-pagecache-base3:1.252
	yamt-pagecache-base2:1.252
	yamt-pagecache:1.252.0.2
	yamt-pagecache-base:1.252
	rmind-uvmplock-nbase:1.248
	cherry-xenmp:1.248.0.2
	cherry-xenmp-base:1.248
	bouyer-quota2-nbase:1.245
	bouyer-quota2:1.242.0.2
	bouyer-quota2-base:1.243
	jruoho-x86intr:1.240.0.2
	jruoho-x86intr-base:1.240
	matt-mips64-premerge-20101231:1.239
	matt-nb5-mips64-premerge-20101231:1.211.8.1
	matt-nb5-pq3:1.211.0.12
	matt-nb5-pq3-base:1.211
	netbsd-5-1:1.211.0.10
	netbsd-5-1-RELEASE:1.211
	uebayasi-xip-base4:1.238
	uebayasi-xip-base3:1.238
	yamt-nfs-mp-base11:1.238
	netbsd-5-1-RC4:1.211
	matt-nb5-mips64-k15:1.211.8.1
	uebayasi-xip-base2:1.235
	yamt-nfs-mp-base10:1.235
	netbsd-5-1-RC3:1.211
	netbsd-5-1-RC2:1.211
	uebayasi-xip-base1:1.233
	netbsd-5-1-RC1:1.211
	rmind-uvmplock:1.232.0.2
	rmind-uvmplock-base:1.248
	yamt-nfs-mp-base9:1.232
	uebayasi-xip:1.231.0.2
	uebayasi-xip-base:1.231
	netbsd-5-0-2-RELEASE:1.211
	matt-nb5-mips64-premerge-20091211:1.211
	matt-premerge-20091211:1.231
	yamt-nfs-mp-base8:1.229
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.211
	matt-nb4-mips64-k7-u2a-k9b:1.211
	matt-nb5-mips64-u1-k1-k5:1.211
	yamt-nfs-mp-base7:1.229
	matt-nb5-mips64:1.211.0.8
	netbsd-5-0-1-RELEASE:1.211
	jymxensuspend-base:1.229
	yamt-nfs-mp-base6:1.227
	yamt-nfs-mp-base5:1.227
	yamt-nfs-mp-base4:1.227
	jym-xensuspend-nbase:1.229
	yamt-nfs-mp-base3:1.226
	nick-hppapmap-base4:1.226
	nick-hppapmap-base3:1.226
	netbsd-5-0:1.211.0.6
	netbsd-5-0-RELEASE:1.211
	netbsd-5-0-RC4:1.211
	netbsd-5-0-RC3:1.211
	nick-hppapmap-base2:1.223
	netbsd-5-0-RC2:1.211
	jym-xensuspend:1.222.0.2
	jym-xensuspend-base:1.226
	netbsd-5-0-RC1:1.211
	haad-dm-base2:1.218
	haad-nbase2:1.218
	ad-audiomp2:1.218.0.2
	ad-audiomp2-base:1.218
	christos-time_t-nbase:1.218
	netbsd-5:1.211.0.4
	netbsd-5-base:1.211
	nick-hppapmap:1.211.0.2
	nick-hppapmap-base:1.226
	matt-mips64-base2:1.211
	matt-mips64:1.172.0.2
	haad-dm-base1:1.211
	wrstuden-revivesa-base-4:1.208
	netbsd-4-0-1-RELEASE:1.160
	wrstuden-revivesa-base-3:1.208
	wrstuden-revivesa-base-2:1.208
	wrstuden-fixsa-newbase:1.160
	nick-csl-alignment-base5:1.177
	haad-dm:1.206.0.2
	haad-dm-base:1.218
	wrstuden-revivesa-base-1:1.204
	simonb-wapbl-nbase:1.207
	yamt-pf42-base4:1.203
	simonb-wapbl:1.201.0.2
	simonb-wapbl-base:1.207
	yamt-pf42-base3:1.201
	hpcarm-cleanup-nbase:1.200
	yamt-pf42-baseX:1.196
	yamt-pf42-base2:1.200
	yamt-nfs-mp-base2:1.200
	wrstuden-revivesa:1.200.0.4
	wrstuden-revivesa-base:1.204
	yamt-nfs-mp:1.200.0.2
	yamt-nfs-mp-base:1.200
	yamt-pf42:1.196.0.4
	yamt-pf42-base:1.196
	christos-time_t:1.196.0.2
	christos-time_t-base:1.218
	ad-socklock-base1:1.195
	yamt-lazymbuf-base15:1.193
	yamt-lazymbuf-base14:1.193
	keiichi-mipv6-nbase:1.191
	mjf-devfs2:1.189.0.6
	mjf-devfs2-base:1.221
	nick-net80211-sync:1.189.0.4
	nick-net80211-sync-base:1.189
	keiichi-mipv6:1.189.0.2
	keiichi-mipv6-base:1.191
	bouyer-xeni386-merge1:1.180.6.2
	matt-armv6-prevmlocking:1.176.2.2
	wrstuden-fixsa-base-1:1.160
	vmlocking2-base3:1.181
	netbsd-4-0:1.160.0.8
	netbsd-4-0-RELEASE:1.160
	bouyer-xeni386-nbase:1.185
	yamt-kmem-base3:1.180
	cube-autoconf:1.180.0.8
	cube-autoconf-base:1.180
	yamt-kmem-base2:1.180
	bouyer-xeni386:1.180.0.6
	bouyer-xeni386-base:1.185
	yamt-kmem:1.180.0.4
	yamt-kmem-base:1.180
	vmlocking2-base2:1.180
	reinoud-bufcleanup-nbase:1.180
	vmlocking2:1.180.0.2
	vmlocking2-base1:1.180
	netbsd-4-0-RC5:1.160
	matt-nb4-arm:1.160.0.6
	matt-nb4-arm-base:1.160
	matt-armv6-nbase:1.191
	jmcneill-base:1.177
	netbsd-4-0-RC4:1.160
	mjf-devfs:1.177.0.6
	mjf-devfs-base:1.189
	bouyer-xenamd64-base2:1.180
	vmlocking-nbase:1.180
	yamt-x86pmap-base4:1.177
	bouyer-xenamd64:1.177.0.4
	bouyer-xenamd64-base:1.180
	netbsd-4-0-RC3:1.160
	yamt-x86pmap-base3:1.177
	yamt-x86pmap-base2:1.177
	netbsd-4-0-RC2:1.160
	yamt-x86pmap:1.177.0.2
	yamt-x86pmap-base:1.177
	netbsd-4-0-RC1:1.160
	matt-armv6:1.176.0.2
	matt-armv6-base:1.183
	matt-mips64-base:1.172
	jmcneill-pm:1.171.0.6
	jmcneill-pm-base:1.180
	hpcarm-cleanup:1.171.0.4
	hpcarm-cleanup-base:1.190
	nick-csl-alignment:1.171.0.2
	nick-csl-alignment-base:1.171
	netbsd-3-1-1-RELEASE:1.145
	netbsd-3-0-3-RELEASE:1.145
	yamt-idlelwp-base8:1.169
	wrstuden-fixsa:1.160.0.4
	wrstuden-fixsa-base:1.160
	thorpej-atomic:1.168.0.8
	thorpej-atomic-base:1.168
	reinoud-bufcleanup:1.168.0.6
	reinoud-bufcleanup-base:1.180
	mjf-ufs-trans:1.168.0.4
	mjf-ufs-trans-base:1.169
	vmlocking:1.168.0.2
	vmlocking-base:1.177
	ad-audiomp:1.166.0.2
	ad-audiomp-base:1.166
	yamt-idlelwp:1.165.0.2
	post-newlock2-merge:1.163
	newlock2-nbase:1.162
	yamt-splraiseipl-base5:1.160
	yamt-splraiseipl-base4:1.160
	yamt-splraiseipl-base3:1.160
	abandoned-netbsd-4-base:1.156
	abandoned-netbsd-4:1.156.0.2
	netbsd-3-1:1.145.0.6
	netbsd-3-1-RELEASE:1.145
	netbsd-3-0-2-RELEASE:1.145
	yamt-splraiseipl-base2:1.160
	netbsd-3-1-RC4:1.145
	yamt-splraiseipl:1.159.0.4
	yamt-splraiseipl-base:1.159
	netbsd-3-1-RC3:1.145
	yamt-pdpolicy-base9:1.159
	newlock2:1.159.0.2
	newlock2-base:1.162
	yamt-pdpolicy-base8:1.159
	netbsd-3-1-RC2:1.145
	netbsd-3-1-RC1:1.145
	yamt-pdpolicy-base7:1.156
	netbsd-4:1.160.0.2
	netbsd-4-base:1.160
	yamt-pdpolicy-base6:1.153
	chap-midi-nbase:1.153
	netbsd-3-0-1-RELEASE:1.145
	gdamore-uart:1.153.0.2
	gdamore-uart-base:1.153
	simonb-timcounters-final:1.150.6.2
	yamt-pdpolicy-base5:1.152
	chap-midi:1.152.0.2
	chap-midi-base:1.153
	yamt-pdpolicy-base4:1.151
	yamt-pdpolicy-base3:1.151
	peter-altq-base:1.151
	peter-altq:1.151.0.6
	yamt-pdpolicy-base2:1.151
	elad-kernelauth-base:1.152
	elad-kernelauth:1.151.0.4
	yamt-pdpolicy:1.151.0.2
	yamt-pdpolicy-base:1.151
	yamt-uio_vmspace-base5:1.151
	simonb-timecounters:1.150.0.6
	simonb-timecounters-base:1.153
	rpaulo-netinet-merge-pcb:1.150.0.4
	rpaulo-netinet-merge-pcb-base:1.159
	yamt-uio_vmspace:1.150.0.2
	netbsd-3-0:1.145.0.4
	netbsd-3-0-RELEASE:1.145
	netbsd-3-0-RC6:1.145
	yamt-readahead-base3:1.149
	netbsd-3-0-RC5:1.145
	netbsd-3-0-RC4:1.145
	netbsd-3-0-RC3:1.145
	yamt-readahead-base2:1.149
	netbsd-3-0-RC2:1.145
	yamt-readahead-pervnode:1.149.6.2
	yamt-readahead-perfile:1.149.6.2
	yamt-readahead:1.149.0.6
	yamt-readahead-base:1.149
	netbsd-3-0-RC1:1.145
	yamt-vop-base3:1.149
	netbsd-2-0-3-RELEASE:1.138
	netbsd-2-1:1.138.0.6
	yamt-vop-base2:1.149
	thorpej-vnode-attr:1.149.0.4
	thorpej-vnode-attr-base:1.149
	netbsd-2-1-RELEASE:1.138
	yamt-vop:1.149.0.2
	yamt-vop-base:1.149
	netbsd-2-1-RC6:1.138
	netbsd-2-1-RC5:1.138
	netbsd-2-1-RC4:1.138
	netbsd-2-1-RC3:1.138
	netbsd-2-1-RC2:1.138
	netbsd-2-1-RC1:1.138
	yamt-lazymbuf:1.146.0.2
	yamt-km-base4:1.145
	netbsd-2-0-2-RELEASE:1.138
	yamt-km-base3:1.145
	netbsd-3:1.145.0.2
	netbsd-3-base:1.145
	yamt-km-base2:1.143
	yamt-km:1.143.0.4
	yamt-km-base:1.143
	kent-audio2:1.143.0.2
	kent-audio2-base:1.145
	netbsd-2-0-1-RELEASE:1.138
	kent-audio1-beforemerge:1.143
	netbsd-2:1.138.0.4
	netbsd-2-base:1.138
	kent-audio1:1.142.0.2
	kent-audio1-base:1.142
	netbsd-2-0-RELEASE:1.138
	netbsd-2-0-RC5:1.138
	netbsd-2-0-RC4:1.138
	netbsd-2-0-RC3:1.138
	netbsd-2-0-RC2:1.138
	netbsd-2-0-RC1:1.138
	netbsd-2-0:1.138.0.2
	netbsd-2-0-base:1.138
	netbsd-1-6-PATCH002-RELEASE:1.111
	netbsd-1-6-PATCH002:1.111
	netbsd-1-6-PATCH002-RC4:1.111
	netbsd-1-6-PATCH002-RC3:1.111
	netbsd-1-6-PATCH002-RC2:1.111
	netbsd-1-6-PATCH002-RC1:1.111
	ktrace-lwp:1.128.0.2
	ktrace-lwp-base:1.150
	netbsd-1-6-PATCH001:1.111
	netbsd-1-6-PATCH001-RELEASE:1.111
	netbsd-1-6-PATCH001-RC3:1.111
	netbsd-1-6-PATCH001-RC2:1.111
	netbsd-1-6-PATCH001-RC1:1.111
	nathanw_sa_end:1.108.2.15
	nathanw_sa_before_merge:1.117
	fvdl_fs64_base:1.117
	gmcgarry_ctxsw:1.116.0.4
	gmcgarry_ctxsw_base:1.116
	gmcgarry_ucred:1.116.0.2
	gmcgarry_ucred_base:1.116
	nathanw_sa_base:1.117
	kqueue-aftermerge:1.116
	kqueue-beforemerge:1.115
	netbsd-1-6-RELEASE:1.111
	netbsd-1-6-RC3:1.111
	netbsd-1-6-RC2:1.111
	netbsd-1-6-RC1:1.111
	netbsd-1-6:1.111.0.4
	netbsd-1-6-base:1.111
	gehenna-devsw:1.111.0.2
	gehenna-devsw-base:1.114
	netbsd-1-5-PATCH003:1.101
	eeh-devprop:1.110.0.12
	eeh-devprop-base:1.110
	newlock:1.110.0.10
	newlock-base:1.110
	ifpoll-base:1.110
	thorpej-mips-cache:1.110.0.6
	thorpej-mips-cache-base:1.110
	thorpej-devvp-base3:1.110
	thorpej-devvp-base2:1.110
	post-chs-ubcperf:1.110
	pre-chs-ubcperf:1.110
	thorpej-devvp:1.110.0.4
	thorpej-devvp-base:1.110
	netbsd-1-5-PATCH002:1.101
	kqueue:1.110.0.2
	kqueue-base:1.115
	netbsd-1-5-PATCH001:1.101
	thorpej_scsipi_beforemerge:1.109
	nathanw_sa:1.108.0.2
	thorpej_scsipi_nbase:1.109
	netbsd-1-5-RELEASE:1.101
	netbsd-1-5-BETA2:1.101
	netbsd-1-5-BETA:1.101
	netbsd-1-4-PATCH003:1.90.2.2
	netbsd-1-5-ALPHA2:1.101
	netbsd-1-5:1.101.0.4
	netbsd-1-5-base:1.101
	minoura-xpg4dl-base:1.101
	minoura-xpg4dl:1.101.0.2
	netbsd-1-4-PATCH002:1.90
	chs-ubc2-newbase:1.99
	wrstuden-devbsize-19991221:1.97
	wrstuden-devbsize:1.97.0.8
	wrstuden-devbsize-base:1.97
	kame_141_19991130:1.90
	comdex-fall-1999:1.97.0.6
	comdex-fall-1999-base:1.97
	fvdl-softdep:1.97.0.4
	fvdl-softdep-base:1.97
	thorpej_scsipi:1.97.0.2
	thorpej_scsipi_base:1.109
	netbsd-1-4-PATCH001:1.90
	kame_14_19990705:1.90
	kame_14_19990628:1.90
	kame:1.90.0.6
	chs-ubc2:1.90.0.4
	chs-ubc2-base:1.96
	netbsd-1-4-RELEASE:1.90
	netbsd-1-4:1.90.0.2
	netbsd-1-4-base:1.90
	netbsd-1-3-PATCH003:1.63.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.63.2.1
	kenh-if-detach:1.86.0.2
	kenh-if-detach-base:1.86
	netbsd-1-3-PATCH003-CANDIDATE1:1.63.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.63.2.1
	chs-ubc:1.85.0.2
	chs-ubc-base:1.85
	eeh-paddr_t:1.81.0.2
	eeh-paddr_t-base:1.81
	netbsd-1-3-PATCH002:1.63.2.1
	lite-2:1.1.1.2
	lite-1:1.1.1.1
	CSRG:1.1.1
	netbsd-1-3-PATCH001:1.63.2.1
	netbsd-1-3-RELEASE:1.63.2.1
	netbsd-1-3-BETA:1.63.2.1
	netbsd-1-3:1.63.0.2
	netbsd-1-3-base:1.63
	thorpej-signal:1.53.0.2
	thorpej-signal-base:1.53
	marc-pcmcia:1.52.0.4
	marc-pcmcia-bp:1.52
	marc-pcmcia-base:1.57
	bouyer-scsipi:1.52.0.2
	mrg-vm-swap2:1.48.0.2
	mrg-vm-swap2-base:1.48
	is-newarp-before-merge:1.47
	is-newarp:1.47.0.4
	is-newarp-base:1.47
	netbsd-1-2-PATCH001:1.32.4.1
	mrg-vm-swap:1.47.0.2
	thorpej-setroot:1.46.0.2
	netbsd-1-2-RELEASE:1.32
	netbsd-1-2-BETA:1.32
	netbsd-1-2:1.32.0.4
	netbsd-1-2-base:1.32
	date-03-may-96:1.1.1.1
	netbsd:1.1.1
	netbsd-1-1-PATCH001:1.29
	netbsd-1-1-RELEASE:1.29
	netbsd-1-1:1.29.0.2
	netbsd-1-1-base:1.29
	netbsd-1-0-PATCH06:1.22
	netbsd-1-0-PATCH05:1.22
	netbsd-1-0-PATCH04:1.22
	netbsd-1-0-PATCH03:1.22
	netbsd-1-0-PATCH02:1.22
	netbsd-1-0-PATCH1:1.22
	netbsd-1-0-PATCH0:1.22
	netbsd-1-0-RELEASE:1.22
	netbsd-1-0:1.22.0.2
	netbsd-1-0-base:1.22
	magnum-base:1.7
	magnum:1.6.0.4
	netbsd-0-9-patch-001:1.6
	netbsd-0-9-RELEASE:1.6
	netbsd-0-9-BETA:1.6
	netbsd-0-9-ALPHA2:1.6
	netbsd-0-9-ALPHA:1.6
	netbsd-0-9:1.6.0.2
	netbsd-0-9-base:1.6
	netbsd-0-8:1.2
	netbsd-alpha-1:1.2;
locks; strict;
comment	@# @;


1.316
date	2024.10.09.16.27.28;	author christos;	state Exp;
branches;
next	1.315;
commitid	gljAG6jr0tbJq0tF;

1.315
date	2024.10.05.18.04.53;	author mlelstv;	state Exp;
branches;
next	1.314;
commitid	AqnXeIHnzUU26vsF;

1.314
date	2024.10.03.16.50.52;	author christos;	state Exp;
branches;
next	1.313;
commitid	7J6i3meX6tQAKesF;

1.313
date	2024.05.20.01.30.34;	author christos;	state Exp;
branches
	1.313.2.1;
next	1.312;
commitid	aPmDkMHZjPJC1GaF;

1.312
date	2024.05.19.22.25.48;	author christos;	state Exp;
branches;
next	1.311;
commitid	XqbzQiQAGyYD0FaF;

1.311
date	2023.07.28.18.19.01;	author christos;	state Exp;
branches;
next	1.310;
commitid	v5JxtHEHo0Vx9ByE;

1.310
date	2023.07.10.02.33.04;	author christos;	state Exp;
branches;
next	1.309;
commitid	XRJ6r1SP3zlbvcwE;

1.309
date	2021.11.01.05.07.17;	author thorpej;	state Exp;
branches;
next	1.308;
commitid	0GRFF8e5XJkv93fD;

1.308
date	2021.09.19.15.51.27;	author thorpej;	state Exp;
branches;
next	1.307;
commitid	xdBXxF7c1mSW5A9D;

1.307
date	2020.11.02.18.55.12;	author christos;	state Exp;
branches;
next	1.306;
commitid	scnIt1ZpR1v0rluC;

1.306
date	2020.08.14.00.53.16;	author riastradh;	state Exp;
branches
	1.306.2.1;
next	1.305;
commitid	WrVbm3KoFFQxZXjC;

1.305
date	2020.05.16.18.31.50;	author christos;	state Exp;
branches;
next	1.304;
commitid	AayHkepHy6nSLu8C;

1.304
date	2020.04.26.19.15.55;	author thorpej;	state Exp;
branches;
next	1.303;
commitid	2YzTdzljgOKQEV5C;

1.303
date	2020.04.26.18.53.33;	author thorpej;	state Exp;
branches;
next	1.302;
commitid	xaklHg2Aa3B2wV5C;

1.302
date	2020.04.22.21.22.21;	author thorpej;	state Exp;
branches;
next	1.301;
commitid	E2ZtcBYX1LHluq5C;

1.301
date	2020.04.12.22.06.17;	author christos;	state Exp;
branches;
next	1.300;
commitid	lLMF4KKjW7hj394C;

1.300
date	2020.04.12.13.37.12;	author christos;	state Exp;
branches;
next	1.299;
commitid	jCgSK1qAQK0ze64C;

1.299
date	2020.04.12.13.30.16;	author christos;	state Exp;
branches;
next	1.298;
commitid	ShECqRU0VkUcc64C;

1.298
date	2020.04.04.20.20.12;	author thorpej;	state Exp;
branches
	1.298.2.1;
next	1.297;
commitid	uaVWNOB5KvZNI63C;

1.297
date	2020.01.21.02.37.16;	author pgoyette;	state Exp;
branches;
next	1.296;
commitid	gzRQVRiOBNTedvTB;

1.296
date	2019.09.22.22.59.39;	author christos;	state Exp;
branches
	1.296.2.1;
next	1.295;
commitid	rROHZPwp809xR3EB;

1.295
date	2019.06.18.16.06.45;	author christos;	state Exp;
branches;
next	1.294;
commitid	KlnEhmbeSU1TFGrB;

1.294
date	2019.01.27.02.08.43;	author pgoyette;	state Exp;
branches;
next	1.293;
commitid	ipPva1Pj3xTcBm9B;

1.293
date	2018.07.31.13.00.13;	author rjs;	state Exp;
branches;
next	1.292;
commitid	pm4YULLVBeIuZhMA;

1.292
date	2018.07.12.10.46.48;	author maxv;	state Exp;
branches;
next	1.291;
commitid	zv0Sckxqs4y3RPJA;

1.291
date	2018.01.06.16.41.23;	author kamil;	state Exp;
branches
	1.291.2.1
	1.291.4.1;
next	1.290;
commitid	6DZmNFuKyXIVMPlA;

1.290
date	2017.12.19.19.40.03;	author kamil;	state Exp;
branches;
next	1.289;
commitid	hSKyR6Q7IQ9CnxjA;

1.289
date	2017.12.19.18.34.47;	author kamil;	state Exp;
branches;
next	1.288;
commitid	K83npjyXntIA2xjA;

1.288
date	2017.12.19.08.48.19;	author kamil;	state Exp;
branches;
next	1.287;
commitid	1YYMODWJmlmhNtjA;

1.287
date	2017.12.08.01.19.29;	author christos;	state Exp;
branches;
next	1.286;
commitid	JDplQWyDyLddF1iA;

1.286
date	2016.11.02.00.11.59;	author pgoyette;	state Exp;
branches;
next	1.285;

1.285
date	2016.07.03.14.24.59;	author christos;	state Exp;
branches
	1.285.2.1;
next	1.284;

1.284
date	2016.04.23.23.08.26;	author christos;	state Exp;
branches;
next	1.283;

1.283
date	2016.04.03.01.00.26;	author christos;	state Exp;
branches;
next	1.282;

1.282
date	2016.04.02.21.01.32;	author christos;	state Exp;
branches;
next	1.281;

1.281
date	2015.12.03.02.51.00;	author pgoyette;	state Exp;
branches;
next	1.280;

1.280
date	2015.10.10.03.27.30;	author pgoyette;	state Exp;
branches;
next	1.279;

1.279
date	2015.10.02.19.47.08;	author christos;	state Exp;
branches;
next	1.278;

1.278
date	2015.06.18.15.16.12;	author pooka;	state Exp;
branches;
next	1.277;

1.277
date	2015.05.13.02.10.46;	author pgoyette;	state Exp;
branches;
next	1.276;

1.276
date	2015.05.10.07.41.15;	author pgoyette;	state Exp;
branches;
next	1.275;

1.275
date	2015.05.09.06.04.13;	author pgoyette;	state Exp;
branches;
next	1.274;

1.274
date	2015.05.09.05.51.26;	author pgoyette;	state Exp;
branches;
next	1.273;

1.273
date	2015.04.08.13.24.25;	author justin;	state Exp;
branches;
next	1.272;

1.272
date	2015.02.22.00.50.30;	author christos;	state Exp;
branches;
next	1.271;

1.271
date	2015.02.10.15.07.39;	author martin;	state Exp;
branches;
next	1.270;

1.270
date	2014.07.25.08.25.47;	author dholland;	state Exp;
branches
	1.270.2.1
	1.270.4.1;
next	1.269;

1.269
date	2014.06.12.21.41.33;	author joerg;	state Exp;
branches;
next	1.268;

1.268
date	2014.04.09.23.55.37;	author pooka;	state Exp;
branches;
next	1.267;

1.267
date	2014.03.14.00.52.08;	author pooka;	state Exp;
branches
	1.267.2.1;
next	1.266;

1.266
date	2013.12.11.09.40.56;	author pooka;	state Exp;
branches;
next	1.265;

1.265
date	2013.12.09.17.13.17;	author pooka;	state Exp;
branches;
next	1.264;

1.264
date	2013.10.17.18.01.11;	author njoly;	state Exp;
branches;
next	1.263;

1.263
date	2013.08.30.10.33.10;	author pooka;	state Exp;
branches;
next	1.262;

1.262
date	2013.03.29.01.08.17;	author christos;	state Exp;
branches
	1.262.4.1;
next	1.261;

1.261
date	2012.10.02.01.44.28;	author christos;	state Exp;
branches;
next	1.260;

1.260
date	2012.06.22.18.26.35;	author christos;	state Exp;
branches
	1.260.2.1;
next	1.259;

1.259
date	2012.05.05.19.37.37;	author christos;	state Exp;
branches;
next	1.258;

1.258
date	2012.03.08.21.55.45;	author joerg;	state Exp;
branches;
next	1.257;

1.257
date	2012.02.19.17.50.28;	author matt;	state Exp;
branches;
next	1.256;

1.256
date	2012.02.19.17.22.16;	author matt;	state Exp;
branches;
next	1.255;

1.255
date	2012.02.19.17.08.02;	author rmind;	state Exp;
branches;
next	1.254;

1.254
date	2012.02.11.23.16.17;	author martin;	state Exp;
branches
	1.254.2.1;
next	1.253;

1.253
date	2012.02.01.05.34.41;	author dholland;	state Exp;
branches;
next	1.252;

1.252
date	2011.08.17.07.22.34;	author manu;	state Exp;
branches
	1.252.2.1
	1.252.6.1;
next	1.251;

1.251
date	2011.08.08.12.08.53;	author manu;	state Exp;
branches;
next	1.250;

1.250
date	2011.07.18.11.28.24;	author drochner;	state Exp;
branches;
next	1.249;

1.249
date	2011.06.26.17.05.24;	author christos;	state Exp;
branches;
next	1.248;

1.248
date	2011.03.09.22.12.45;	author pooka;	state Exp;
branches;
next	1.247;

1.247
date	2011.03.09.21.52.31;	author pooka;	state Exp;
branches;
next	1.246;

1.246
date	2011.03.06.17.08.36;	author bouyer;	state Exp;
branches;
next	1.245;

1.245
date	2011.02.21.23.20.19;	author pooka;	state Exp;
branches;
next	1.244;

1.244
date	2011.02.21.12.49.06;	author pooka;	state Exp;
branches;
next	1.243;

1.243
date	2011.01.31.00.05.29;	author christos;	state Exp;
branches;
next	1.242;

1.242
date	2011.01.17.18.24.17;	author pooka;	state Exp;
branches
	1.242.2.1;
next	1.241;

1.241
date	2011.01.17.16.21.40;	author pooka;	state Exp;
branches;
next	1.240;

1.240
date	2011.01.10.04.39.18;	author christos;	state Exp;
branches
	1.240.2.1;
next	1.239;

1.239
date	2010.11.11.14.47.41;	author pooka;	state Exp;
branches;
next	1.238;

1.238
date	2010.09.07.17.10.08;	author pooka;	state Exp;
branches;
next	1.237;

1.237
date	2010.09.06.20.00.09;	author pooka;	state Exp;
branches;
next	1.236;

1.236
date	2010.08.30.10.32.54;	author pooka;	state Exp;
branches;
next	1.235;

1.235
date	2010.06.10.19.09.03;	author pooka;	state Exp;
branches;
next	1.234;

1.234
date	2010.06.04.16.32.00;	author njoly;	state Exp;
branches;
next	1.233;

1.233
date	2010.04.21.16.17.04;	author pooka;	state Exp;
branches;
next	1.232;

1.232
date	2010.03.02.19.34.26;	author pooka;	state Exp;
branches
	1.232.2.1;
next	1.231;

1.231
date	2009.11.26.17.20.20;	author pooka;	state Exp;
branches
	1.231.2.1;
next	1.230;

1.230
date	2009.11.26.09.00.45;	author pooka;	state Exp;
branches;
next	1.229;

1.229
date	2009.07.21.23.59.00;	author pooka;	state Exp;
branches;
next	1.228;

1.228
date	2009.07.19.02.50.44;	author rmind;	state Exp;
branches;
next	1.227;

1.227
date	2009.05.15.15.51.27;	author pooka;	state Exp;
branches;
next	1.226;

1.226
date	2009.03.28.16.33.40;	author pooka;	state Exp;
branches;
next	1.225;

1.225
date	2009.03.19.09.08.35;	author pooka;	state Exp;
branches;
next	1.224;

1.224
date	2009.03.18.17.51.17;	author pooka;	state Exp;
branches;
next	1.223;

1.223
date	2009.02.13.22.41.04;	author apb;	state Exp;
branches;
next	1.222;

1.222
date	2009.01.26.12.20.05;	author pooka;	state Exp;
branches
	1.222.2.1;
next	1.221;

1.221
date	2009.01.13.22.27.44;	author pooka;	state Exp;
branches;
next	1.220;

1.220
date	2009.01.11.19.40.38;	author christos;	state Exp;
branches;
next	1.219;

1.219
date	2009.01.11.02.45.53;	author christos;	state Exp;
branches;
next	1.218;

1.218
date	2008.11.26.15.01.17;	author pooka;	state Exp;
branches;
next	1.217;

1.217
date	2008.11.21.07.34.46;	author pooka;	state Exp;
branches;
next	1.216;

1.216
date	2008.11.19.18.36.07;	author ad;	state Exp;
branches;
next	1.215;

1.215
date	2008.11.14.23.33.45;	author ad;	state Exp;
branches;
next	1.214;

1.214
date	2008.11.14.15.49.21;	author ad;	state Exp;
branches;
next	1.213;

1.213
date	2008.11.12.14.32.34;	author ad;	state Exp;
branches;
next	1.212;

1.212
date	2008.11.12.12.36.16;	author ad;	state Exp;
branches;
next	1.211;

1.211
date	2008.10.16.19.30.49;	author pooka;	state Exp;
branches
	1.211.2.1
	1.211.4.1
	1.211.8.1;
next	1.210;

1.210
date	2008.10.15.13.01.15;	author pooka;	state Exp;
branches;
next	1.209;

1.209
date	2008.10.15.06.51.20;	author wrstuden;	state Exp;
branches;
next	1.208;

1.208
date	2008.08.01.19.32.35;	author pooka;	state Exp;
branches;
next	1.207;

1.207
date	2008.07.16.15.42.54;	author pooka;	state Exp;
branches;
next	1.206;

1.206
date	2008.07.07.09.01.40;	author pooka;	state Exp;
branches
	1.206.2.1;
next	1.205;

1.205
date	2008.07.01.13.03.08;	author pooka;	state Exp;
branches;
next	1.204;

1.204
date	2008.06.17.16.05.23;	author tsutsui;	state Exp;
branches;
next	1.203;

1.203
date	2008.06.16.00.54.10;	author christos;	state Exp;
branches;
next	1.202;

1.202
date	2008.06.16.00.31.17;	author christos;	state Exp;
branches;
next	1.201;

1.201
date	2008.05.29.12.01.37;	author pooka;	state Exp;
branches
	1.201.2.1;
next	1.200;

1.200
date	2008.04.24.11.51.19;	author ad;	state Exp;
branches
	1.200.2.1
	1.200.4.1;
next	1.199;

1.199
date	2008.04.21.12.56.31;	author ad;	state Exp;
branches;
next	1.198;

1.198
date	2008.04.21.11.45.34;	author ad;	state Exp;
branches;
next	1.197;

1.197
date	2008.04.21.00.13.46;	author ad;	state Exp;
branches;
next	1.196;

1.196
date	2008.03.27.17.13.25;	author ad;	state Exp;
branches
	1.196.2.1
	1.196.4.1;
next	1.195;

1.195
date	2008.03.24.23.46.43;	author yamt;	state Exp;
branches;
next	1.194;

1.194
date	2008.03.24.12.24.37;	author yamt;	state Exp;
branches;
next	1.193;

1.193
date	2008.03.22.14.20.09;	author ad;	state Exp;
branches;
next	1.192;

1.192
date	2008.03.21.21.58.57;	author ad;	state Exp;
branches;
next	1.191;

1.191
date	2008.03.11.22.50.10;	author pooka;	state Exp;
branches;
next	1.190;

1.190
date	2008.02.24.12.52.54;	author martin;	state Exp;
branches;
next	1.189;

1.189
date	2008.02.15.13.09.57;	author ad;	state Exp;
branches
	1.189.2.1
	1.189.6.1;
next	1.188;

1.188
date	2008.02.09.16.58.01;	author yamt;	state Exp;
branches;
next	1.187;

1.187
date	2008.01.27.16.13.39;	author martin;	state Exp;
branches;
next	1.186;

1.186
date	2008.01.25.13.38.57;	author ad;	state Exp;
branches;
next	1.185;

1.185
date	2008.01.16.12.34.51;	author ad;	state Exp;
branches;
next	1.184;

1.184
date	2008.01.15.03.37.11;	author rmind;	state Exp;
branches;
next	1.183;

1.183
date	2008.01.07.16.15.36;	author ad;	state Exp;
branches;
next	1.182;

1.182
date	2008.01.02.11.57.13;	author ad;	state Exp;
branches;
next	1.181;

1.181
date	2007.12.20.23.03.12;	author dsl;	state Exp;
branches;
next	1.180;

1.180
date	2007.11.12.23.11.59;	author ad;	state Exp;
branches
	1.180.2.1
	1.180.6.1;
next	1.179;

1.179
date	2007.11.09.14.57.33;	author dsl;	state Exp;
branches;
next	1.178;

1.178
date	2007.11.07.00.37.21;	author ad;	state Exp;
branches;
next	1.177;

1.177
date	2007.09.07.18.56.09;	author rmind;	state Exp;
branches
	1.177.4.1
	1.177.6.1;
next	1.176;

1.176
date	2007.08.15.12.08.38;	author ad;	state Exp;
branches
	1.176.2.1;
next	1.175;

1.175
date	2007.08.07.19.00.42;	author ad;	state Exp;
branches;
next	1.174;

1.174
date	2007.08.07.12.48.30;	author ad;	state Exp;
branches;
next	1.173;

1.173
date	2007.08.07.09.46.24;	author ad;	state Exp;
branches;
next	1.172;

1.172
date	2007.08.04.10.52.58;	author ad;	state Exp;
branches
	1.172.2.1;
next	1.171;

1.171
date	2007.07.17.17.42.07;	author joerg;	state Exp;
branches
	1.171.2.1
	1.171.6.1;
next	1.170;

1.170
date	2007.07.14.15.38.40;	author dsl;	state Exp;
branches;
next	1.169;

1.169
date	2007.04.30.14.44.30;	author rmind;	state Exp;
branches;
next	1.168;

1.168
date	2007.03.06.16.09.21;	author drochner;	state Exp;
branches
	1.168.2.1
	1.168.4.1;
next	1.167;

1.167
date	2007.03.04.06.03.10;	author christos;	state Exp;
branches;
next	1.166;

1.166
date	2007.02.26.12.19.00;	author drochner;	state Exp;
branches;
next	1.165;

1.165
date	2007.02.10.11.32.21;	author ad;	state Exp;
branches
	1.165.2.1;
next	1.164;

1.164
date	2007.02.10.10.24.44;	author ad;	state Exp;
branches;
next	1.163;

1.163
date	2007.02.09.21.55.31;	author ad;	state Exp;
branches;
next	1.162;

1.162
date	2007.01.16.05.28.45;	author ad;	state Exp;
branches;
next	1.161;

1.161
date	2007.01.16.01.30.45;	author ad;	state Exp;
branches;
next	1.160;

1.160
date	2006.10.17.15.06.18;	author christos;	state Exp;
branches;
next	1.159;

1.159
date	2006.09.01.20.58.18;	author matt;	state Exp;
branches
	1.159.2.1
	1.159.4.1;
next	1.158;

1.158
date	2006.08.30.11.34.26;	author matt;	state Exp;
branches;
next	1.157;

1.157
date	2006.08.29.23.34.48;	author matt;	state Exp;
branches;
next	1.156;

1.156
date	2006.07.31.16.32.51;	author martin;	state Exp;
branches;
next	1.155;

1.155
date	2006.07.13.12.00.25;	author martin;	state Exp;
branches;
next	1.154;

1.154
date	2006.06.26.21.23.58;	author mrg;	state Exp;
branches;
next	1.153;

1.153
date	2006.05.29.09.57.55;	author drochner;	state Exp;
branches
	1.153.2.1;
next	1.152;

1.152
date	2006.05.04.17.48.56;	author christos;	state Exp;
branches
	1.152.2.1;
next	1.151;

1.151
date	2006.02.24.19.20.20;	author drochner;	state Exp;
branches
	1.151.2.1
	1.151.4.1
	1.151.6.1;
next	1.150;

1.150
date	2005.11.29.22.52.02;	author yamt;	state Exp;
branches
	1.150.2.1
	1.150.4.1
	1.150.6.1;
next	1.149;

1.149
date	2005.09.26.03.02.19;	author christos;	state Exp;
branches
	1.149.6.1;
next	1.148;

1.148
date	2005.08.19.02.04.03;	author christos;	state Exp;
branches;
next	1.147;

1.147
date	2005.07.10.22.04.20;	author thorpej;	state Exp;
branches;
next	1.146;

1.146
date	2005.05.29.21.07.49;	author christos;	state Exp;
branches
	1.146.2.1;
next	1.145;

1.145
date	2005.02.25.19.53.56;	author matt;	state Exp;
branches;
next	1.144;

1.144
date	2005.02.19.22.15.51;	author matt;	state Exp;
branches;
next	1.143;

1.143
date	2005.01.02.16.08.29;	author thorpej;	state Exp;
branches
	1.143.2.1
	1.143.4.1;
next	1.142;

1.142
date	2004.05.10.22.28.24;	author kleink;	state Exp;
branches;
next	1.141;

1.141
date	2004.04.27.01.12.44;	author kleink;	state Exp;
branches;
next	1.140;

1.140
date	2004.04.25.22.18.08;	author kleink;	state Exp;
branches;
next	1.139;

1.139
date	2004.04.21.01.05.38;	author christos;	state Exp;
branches;
next	1.138;

1.138
date	2004.03.26.15.18.54;	author drochner;	state Exp;
branches;
next	1.137;

1.137
date	2004.03.14.00.45.21;	author cl;	state Exp;
branches;
next	1.136;

1.136
date	2004.01.29.02.00.03;	author tsarna;	state Exp;
branches;
next	1.135;

1.135
date	2004.01.02.18.52.17;	author cl;	state Exp;
branches;
next	1.134;

1.134
date	2003.11.15.01.19.38;	author thorpej;	state Exp;
branches;
next	1.133;

1.133
date	2003.09.30.20.36.10;	author christos;	state Exp;
branches;
next	1.132;

1.132
date	2003.09.26.23.08.24;	author matt;	state Exp;
branches;
next	1.131;

1.131
date	2003.09.23.14.34.07;	author christos;	state Exp;
branches;
next	1.130;

1.130
date	2003.09.16.13.46.25;	author cl;	state Exp;
branches;
next	1.129;

1.129
date	2003.09.10.16.43.35;	author christos;	state Exp;
branches;
next	1.128;

1.128
date	2003.03.18.18.08.49;	author christos;	state Exp;
branches
	1.128.2.1;
next	1.127;

1.127
date	2003.02.15.20.54.39;	author jdolecek;	state Exp;
branches;
next	1.126;

1.126
date	2003.01.24.01.27.21;	author thorpej;	state Exp;
branches;
next	1.125;

1.125
date	2003.01.24.01.23.27;	author thorpej;	state Exp;
branches;
next	1.124;

1.124
date	2003.01.24.01.17.53;	author thorpej;	state Exp;
branches;
next	1.123;

1.123
date	2003.01.23.23.29.46;	author thorpej;	state Exp;
branches;
next	1.122;

1.122
date	2003.01.20.20.24.21;	author christos;	state Exp;
branches;
next	1.121;

1.121
date	2003.01.20.20.04.28;	author christos;	state Exp;
branches;
next	1.120;

1.120
date	2003.01.20.20.03.38;	author christos;	state Exp;
branches;
next	1.119;

1.119
date	2003.01.20.20.02.57;	author christos;	state Exp;
branches;
next	1.118;

1.118
date	2003.01.18.10.06.35;	author thorpej;	state Exp;
branches;
next	1.117;

1.117
date	2002.12.19.23.51.00;	author thorpej;	state Exp;
branches;
next	1.116;

1.116
date	2002.10.23.09.14.24;	author jdolecek;	state Exp;
branches;
next	1.115;

1.115
date	2002.09.04.07.45.41;	author jdolecek;	state Exp;
branches;
next	1.114;

1.114
date	2002.08.28.07.16.39;	author gmcgarry;	state Exp;
branches;
next	1.113;

1.113
date	2002.08.07.04.52.53;	author briggs;	state Exp;
branches;
next	1.112;

1.112
date	2002.07.04.23.32.14;	author thorpej;	state Exp;
branches;
next	1.111;

1.111
date	2002.05.03.00.20.56;	author eeh;	state Exp;
branches
	1.111.2.1;
next	1.110;

1.110
date	2001.07.01.18.06.11;	author thorpej;	state Exp;
branches
	1.110.2.1;
next	1.109;

1.109
date	2001.04.10.11.03.56;	author kleink;	state Exp;
branches;
next	1.108;

1.108
date	2001.01.27.07.47.26;	author thorpej;	state Exp;
branches
	1.108.2.1;
next	1.107;

1.107
date	2001.01.08.18.25.35;	author nathanw;	state Exp;
branches;
next	1.106;

1.106
date	2001.01.05.21.42.08;	author jdolecek;	state Exp;
branches;
next	1.105;

1.105
date	2000.12.28.11.10.15;	author jdolecek;	state Exp;
branches;
next	1.104;

1.104
date	2000.12.09.07.04.48;	author mycroft;	state Exp;
branches;
next	1.103;

1.103
date	2000.12.09.05.27.31;	author mycroft;	state Exp;
branches;
next	1.102;

1.102
date	2000.08.07.17.59.33;	author bjh21;	state Exp;
branches;
next	1.101;

1.101
date	2000.04.21.16.15.39;	author minoura;	state Exp;
branches;
next	1.100;

1.100
date	2000.04.17.14.31.22;	author mrg;	state Exp;
branches;
next	1.99;

1.99
date	2000.01.31.15.12.30;	author christos;	state Exp;
branches;
next	1.98;

1.98
date	2000.01.23.01.01.30;	author mycroft;	state Exp;
branches;
next	1.97;

1.97
date	99.08.25.05.05.48;	author thorpej;	state Exp;
branches
	1.97.2.1;
next	1.96;

1.96
date	99.07.12.23.01.27;	author thorpej;	state Exp;
branches;
next	1.95;

1.95
date	99.07.12.21.55.21;	author kleink;	state Exp;
branches;
next	1.94;

1.94
date	99.06.29.22.15.31;	author wrstuden;	state Exp;
branches;
next	1.93;

1.93
date	99.06.15.23.28.16;	author thorpej;	state Exp;
branches;
next	1.92;

1.92
date	99.06.09.04.25.30;	author christos;	state Exp;
branches;
next	1.91;

1.91
date	99.06.08.03.07.39;	author thorpej;	state Exp;
branches;
next	1.90;

1.90
date	99.03.28.17.29.52;	author kleink;	state Exp;
branches
	1.90.2.1
	1.90.4.1;
next	1.89;

1.89
date	99.03.22.17.01.55;	author sommerfe;	state Exp;
branches;
next	1.88;

1.88
date	99.02.10.18.02.28;	author kleink;	state Exp;
branches;
next	1.87;

1.87
date	98.12.10.15.09.18;	author christos;	state Exp;
branches;
next	1.86;

1.86
date	98.11.26.16.07.05;	author kleink;	state Exp;
branches;
next	1.85;

1.85
date	98.10.19.22.17.41;	author tron;	state Exp;
branches;
next	1.84;

1.84
date	98.09.12.10.48.29;	author mycroft;	state Exp;
branches;
next	1.83;

1.83
date	98.09.12.00.47.13;	author mycroft;	state Exp;
branches;
next	1.82;

1.82
date	98.09.11.12.50.11;	author mycroft;	state Exp;
branches;
next	1.81;

1.81
date	98.07.05.08.49.50;	author jonathan;	state Exp;
branches;
next	1.80;

1.80
date	98.07.02.01.23.33;	author thorpej;	state Exp;
branches;
next	1.79;

1.79
date	98.06.30.19.33.11;	author thorpej;	state Exp;
branches;
next	1.78;

1.78
date	98.06.25.22.16.40;	author thorpej;	state Exp;
branches;
next	1.77;

1.77
date	98.06.25.21.16.03;	author thorpej;	state Exp;
branches;
next	1.76;

1.76
date	98.06.05.20.31.36;	author kleink;	state Exp;
branches;
next	1.75;

1.75
date	98.05.30.22.21.03;	author kleink;	state Exp;
branches;
next	1.74;

1.74
date	98.05.07.17.08.42;	author kleink;	state Exp;
branches;
next	1.73;

1.73
date	98.05.02.18.33.21;	author christos;	state Exp;
branches;
next	1.72;

1.72
date	98.03.27.13.02.21;	author kleink;	state Exp;
branches;
next	1.71;

1.71
date	98.02.25.21.29.45;	author perry;	state Exp;
branches;
next	1.70;

1.70
date	98.02.19.00.52.14;	author thorpej;	state Exp;
branches;
next	1.69;

1.69
date	98.02.14.20.01.05;	author kleink;	state Exp;
branches;
next	1.68;

1.68
date	98.02.14.00.39.33;	author thorpej;	state Exp;
branches;
next	1.67;

1.67
date	98.01.04.03.45.21;	author thorpej;	state Exp;
branches;
next	1.66;

1.66
date	97.11.29.18.38.26;	author kleink;	state Exp;
branches;
next	1.65;

1.65
date	97.11.25.19.32.20;	author kleink;	state Exp;
branches;
next	1.64;

1.64
date	97.11.04.21.24.18;	author thorpej;	state Exp;
branches;
next	1.63;

1.63
date	97.10.20.22.05.06;	author thorpej;	state Exp;
branches
	1.63.2.1;
next	1.62;

1.62
date	97.10.19.03.25.55;	author mycroft;	state Exp;
branches;
next	1.61;

1.61
date	97.10.18.16.35.25;	author christos;	state Exp;
branches;
next	1.60;

1.60
date	97.10.16.23.41.31;	author christos;	state Exp;
branches;
next	1.59;

1.59
date	97.10.15.17.27.53;	author mycroft;	state Exp;
branches;
next	1.58;

1.58
date	97.10.15.17.04.20;	author mycroft;	state Exp;
branches;
next	1.57;

1.57
date	97.10.10.02.03.47;	author fvdl;	state Exp;
branches;
next	1.56;

1.56
date	97.10.03.15.06.18;	author enami;	state Exp;
branches;
next	1.55;

1.55
date	97.09.09.08.05.35;	author veego;	state Exp;
branches;
next	1.54;

1.54
date	97.09.09.08.04.11;	author veego;	state Exp;
branches;
next	1.53;

1.53
date	97.09.08.18.03.32;	author chuck;	state Exp;
branches;
next	1.52;

1.52
date	97.06.12.22.05.37;	author mrg;	state Exp;
branches
	1.52.4.1;
next	1.51;

1.51
date	97.06.12.21.41.56;	author mrg;	state Exp;
branches;
next	1.50;

1.50
date	97.06.12.14.23.46;	author mrg;	state Exp;
branches;
next	1.49;

1.49
date	97.05.18.19.56.48;	author kleink;	state Exp;
branches;
next	1.48;

1.48
date	97.04.16.14.41.31;	author jtc;	state Exp;
branches
	1.48.2.1;
next	1.47;

1.47
date	97.01.31.02.34.53;	author thorpej;	state Exp;
branches
	1.47.2.1;
next	1.46;

1.46
date	96.12.22.08.04.06;	author cgd;	state Exp;
branches
	1.46.2.1;
next	1.45;

1.45
date	96.12.22.07.47.43;	author cgd;	state Exp;
branches;
next	1.44;

1.44
date	96.12.22.07.00.57;	author cgd;	state Exp;
branches;
next	1.43;

1.43
date	96.12.22.06.46.50;	author cgd;	state Exp;
branches;
next	1.42;

1.42
date	96.12.22.06.23.38;	author cgd;	state Exp;
branches;
next	1.41;

1.41
date	96.12.06.20.05.31;	author thorpej;	state Exp;
branches;
next	1.40;

1.40
date	96.12.03.00.28.31;	author thorpej;	state Exp;
branches;
next	1.39;

1.39
date	96.11.15.22.44.28;	author jtc;	state Exp;
branches;
next	1.38;

1.38
date	96.11.14.04.51.11;	author thorpej;	state Exp;
branches;
next	1.37;

1.37
date	96.09.19.04.52.12;	author jtc;	state Exp;
branches;
next	1.36;

1.36
date	96.09.07.14.16.42;	author mycroft;	state Exp;
branches;
next	1.35;

1.35
date	96.09.07.12.41.01;	author mycroft;	state Exp;
branches;
next	1.34;

1.34
date	96.08.09.10.30.23;	author mrg;	state Exp;
branches;
next	1.33;

1.33
date	96.06.23.11.06.54;	author mycroft;	state Exp;
branches;
next	1.32;

1.32
date	96.04.23.10.24.21;	author mycroft;	state Exp;
branches
	1.32.4.1;
next	1.31;

1.31
date	96.02.27.04.20.41;	author jonathan;	state Exp;
branches;
next	1.30;

1.30
date	95.11.22.23.07.29;	author cgd;	state Exp;
branches;
next	1.29;

1.29
date	95.10.10.01.32.53;	author mycroft;	state Exp;
branches;
next	1.28;

1.28
date	95.10.07.06.28.38;	author mycroft;	state Exp;
branches;
next	1.27;

1.27
date	95.03.09.17.28.28;	author mycroft;	state Exp;
branches;
next	1.26;

1.26
date	95.01.06.00.08.17;	author cgd;	state Exp;
branches;
next	1.25;

1.25
date	94.12.14.16.29.57;	author mycroft;	state Exp;
branches;
next	1.24;

1.24
date	94.10.21.00.14.36;	author mycroft;	state Exp;
branches;
next	1.23;

1.23
date	94.10.20.04.23.12;	author cgd;	state Exp;
branches;
next	1.22;

1.22
date	94.06.29.06.33.10;	author cgd;	state Exp;
branches;
next	1.21;

1.21
date	94.06.14.05.18.03;	author cgd;	state Exp;
branches;
next	1.20;

1.20
date	94.06.08.11.28.45;	author mycroft;	state Exp;
branches;
next	1.19;

1.19
date	94.05.17.00.00.46;	author cgd;	state Exp;
branches;
next	1.18;

1.18
date	94.05.07.00.39.06;	author cgd;	state Exp;
branches;
next	1.17;

1.17
date	94.05.01.05.02.24;	author cgd;	state Exp;
branches;
next	1.16;

1.16
date	94.04.29.04.29.14;	author cgd;	state Exp;
branches;
next	1.15;

1.15
date	94.04.16.23.19.06;	author cgd;	state Exp;
branches;
next	1.14;

1.14
date	94.04.07.00.15.29;	author cgd;	state Exp;
branches;
next	1.13;

1.13
date	94.04.02.08.03.17;	author cgd;	state Exp;
branches;
next	1.12;

1.12
date	94.03.27.08.34.59;	author cgd;	state Exp;
branches;
next	1.11;

1.11
date	94.03.08.23.57.00;	author cgd;	state Exp;
branches;
next	1.10;

1.10
date	93.12.12.19.28.21;	author deraadt;	state Exp;
branches;
next	1.9;

1.9
date	93.11.14.13.08.09;	author cgd;	state Exp;
branches;
next	1.8;

1.8
date	93.10.02.09.51.40;	author mycroft;	state Exp;
branches;
next	1.7;

1.7
date	93.09.19.18.55.41;	author brezak;	state Exp;
branches;
next	1.6;

1.6
date	93.06.07.19.52.42;	author cgd;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	93.05.20.02.55.11;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	93.05.16.01.52.39;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	93.05.06.10.48.34;	author cgd;	state Exp;
branches;
next	1.2;

1.2
date	93.04.10.20.27.10;	author glass;	state Exp;
branches;
next	1.1;

1.1
date	93.04.06.10.39.51;	author glass;	state Exp;
branches
	1.1.1.1;
next	;

1.313.2.1
date	2025.08.02.05.57.43;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.306.2.1
date	2020.12.14.14.38.14;	author thorpej;	state Exp;
branches;
next	1.306.2.2;
commitid	S4HwP6n7zzL3FIzC;

1.306.2.2
date	2020.12.14.16.00.51;	author thorpej;	state Exp;
branches;
next	1.306.2.3;
commitid	pgyOelhj0W5C7JzC;

1.306.2.3
date	2020.12.14.16.53.36;	author thorpej;	state Exp;
branches;
next	;
commitid	HZbnsUV4VSkNpJzC;

1.298.2.1
date	2020.04.20.11.29.10;	author bouyer;	state Exp;
branches;
next	1.298.2.2;
commitid	4WLfIgNPymVsg75C;

1.298.2.2
date	2020.04.25.11.24.06;	author bouyer;	state Exp;
branches;
next	;
commitid	d0banFLkg9JL4L5C;

1.296.2.1
date	2020.01.25.22.38.51;	author ad;	state Exp;
branches;
next	;
commitid	ethRERRmx7bMJ7UB;

1.291.2.1
date	2018.03.10.05.09.24;	author pgoyette;	state Exp;
branches;
next	1.291.2.2;
commitid	CbDLZ0QD4lU0ZRtA;

1.291.2.2
date	2018.03.15.23.04.48;	author pgoyette;	state Exp;
branches;
next	1.291.2.3;
commitid	q7DLr6NWtc4LLBuA;

1.291.2.3
date	2018.03.16.00.35.40;	author pgoyette;	state Exp;
branches;
next	1.291.2.4;
commitid	i4vJuXE9UFDdgCuA;

1.291.2.4
date	2018.03.17.06.49.57;	author pgoyette;	state Exp;
branches;
next	1.291.2.5;
commitid	J44NuKNZoLZljMuA;

1.291.2.5
date	2018.03.25.07.19.13;	author pgoyette;	state Exp;
branches;
next	1.291.2.6;
commitid	tXUTGRMAJibodOvA;

1.291.2.6
date	2018.03.27.23.08.44;	author pgoyette;	state Exp;
branches;
next	1.291.2.7;
commitid	FxA0BhJDkMJmp9wA;

1.291.2.7
date	2018.04.17.23.58.48;	author pgoyette;	state Exp;
branches;
next	1.291.2.8;
commitid	hZqO2ZPReccz0RyA;

1.291.2.8
date	2018.07.28.04.38.08;	author pgoyette;	state Exp;
branches;
next	1.291.2.9;
commitid	1UP1xAIUxv1ZgRLA;

1.291.2.9
date	2018.09.06.06.56.42;	author pgoyette;	state Exp;
branches;
next	;
commitid	HCi1bXD317XIK0RA;

1.291.4.1
date	2019.06.10.22.09.03;	author christos;	state Exp;
branches;
next	1.291.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.291.4.2
date	2020.04.13.08.05.04;	author martin;	state Exp;
branches;
next	1.291.4.3;
commitid	X01YhRUPVUDaec4C;

1.291.4.3
date	2020.04.21.18.42.42;	author martin;	state Exp;
branches;
next	;
commitid	86tA4aEmdr3VCh5C;

1.285.2.1
date	2016.11.04.14.49.17;	author pgoyette;	state Exp;
branches;
next	;

1.270.2.1
date	2015.02.24.10.47.17;	author martin;	state Exp;
branches;
next	;

1.270.4.1
date	2015.04.06.15.18.20;	author skrll;	state Exp;
branches;
next	1.270.4.2;

1.270.4.2
date	2015.06.06.14.40.22;	author skrll;	state Exp;
branches;
next	1.270.4.3;

1.270.4.3
date	2015.09.22.12.06.07;	author skrll;	state Exp;
branches;
next	1.270.4.4;

1.270.4.4
date	2015.12.27.12.10.05;	author skrll;	state Exp;
branches;
next	1.270.4.5;

1.270.4.5
date	2016.04.22.15.44.16;	author skrll;	state Exp;
branches;
next	1.270.4.6;

1.270.4.6
date	2016.05.29.08.44.37;	author skrll;	state Exp;
branches;
next	1.270.4.7;

1.270.4.7
date	2016.07.09.20.25.20;	author skrll;	state Exp;
branches;
next	1.270.4.8;

1.270.4.8
date	2016.12.05.10.55.26;	author skrll;	state Exp;
branches;
next	;

1.267.2.1
date	2014.08.10.06.55.58;	author tls;	state Exp;
branches;
next	;

1.262.4.1
date	2014.05.18.17.46.07;	author rmind;	state Exp;
branches;
next	;

1.260.2.1
date	2012.11.20.03.02.44;	author tls;	state Exp;
branches;
next	1.260.2.2;

1.260.2.2
date	2013.06.23.06.18.58;	author tls;	state Exp;
branches;
next	1.260.2.3;

1.260.2.3
date	2014.08.20.00.04.29;	author tls;	state Exp;
branches;
next	1.260.2.4;

1.260.2.4
date	2017.12.03.11.38.45;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.254.2.1
date	2015.04.14.15.03.38;	author msaitoh;	state Exp;
branches;
next	;

1.252.2.1
date	2012.04.17.00.08.29;	author yamt;	state Exp;
branches;
next	1.252.2.2;

1.252.2.2
date	2012.05.23.10.08.12;	author yamt;	state Exp;
branches;
next	1.252.2.3;

1.252.2.3
date	2012.10.30.17.22.35;	author yamt;	state Exp;
branches;
next	1.252.2.4;

1.252.2.4
date	2014.05.22.11.41.03;	author yamt;	state Exp;
branches;
next	;

1.252.6.1
date	2012.02.18.07.35.33;	author mrg;	state Exp;
branches;
next	1.252.6.2;

1.252.6.2
date	2012.02.24.09.11.48;	author mrg;	state Exp;
branches;
next	1.252.6.3;

1.252.6.3
date	2012.03.11.01.52.30;	author mrg;	state Exp;
branches;
next	1.252.6.4;

1.252.6.4
date	2012.06.02.11.09.34;	author mrg;	state Exp;
branches;
next	;

1.242.2.1
date	2011.01.20.14.24.57;	author bouyer;	state Exp;
branches;
next	1.242.2.2;

1.242.2.2
date	2011.02.08.16.19.59;	author bouyer;	state Exp;
branches;
next	1.242.2.3;

1.242.2.3
date	2011.03.05.15.10.40;	author bouyer;	state Exp;
branches;
next	;

1.240.2.1
date	2011.06.06.09.09.37;	author jruoho;	state Exp;
branches;
next	;

1.232.2.1
date	2010.05.30.05.17.58;	author rmind;	state Exp;
branches;
next	1.232.2.2;

1.232.2.2
date	2010.07.03.01.19.55;	author rmind;	state Exp;
branches;
next	1.232.2.3;

1.232.2.3
date	2011.03.05.20.55.23;	author rmind;	state Exp;
branches;
next	1.232.2.4;

1.232.2.4
date	2011.04.21.01.42.10;	author rmind;	state Exp;
branches;
next	;

1.231.2.1
date	2010.04.30.14.44.13;	author uebayasi;	state Exp;
branches;
next	1.231.2.2;

1.231.2.2
date	2010.08.17.06.47.32;	author uebayasi;	state Exp;
branches;
next	1.231.2.3;

1.231.2.3
date	2010.10.22.07.22.29;	author uebayasi;	state Exp;
branches;
next	;

1.222.2.1
date	2009.05.13.17.21.57;	author jym;	state Exp;
branches;
next	1.222.2.2;

1.222.2.2
date	2009.07.23.23.32.35;	author jym;	state Exp;
branches;
next	;

1.211.2.1
date	2009.01.19.13.19.39;	author skrll;	state Exp;
branches;
next	1.211.2.2;

1.211.2.2
date	2009.03.03.18.32.56;	author skrll;	state Exp;
branches;
next	1.211.2.3;

1.211.2.3
date	2009.04.28.07.37.00;	author skrll;	state Exp;
branches;
next	;

1.211.4.1
date	2011.09.17.18.47.46;	author bouyer;	state Exp;
branches;
next	;

1.211.8.1
date	2010.04.21.00.28.18;	author matt;	state Exp;
branches;
next	;

1.206.2.1
date	2008.07.07.09.01.40;	author haad;	state dead;
branches;
next	1.206.2.2;

1.206.2.2
date	2008.10.19.22.17.28;	author haad;	state Exp;
branches;
next	1.206.2.3;

1.206.2.3
date	2008.12.13.01.15.09;	author haad;	state Exp;
branches;
next	;

1.201.2.1
date	2008.06.18.16.33.35;	author simonb;	state Exp;
branches;
next	1.201.2.2;

1.201.2.2
date	2008.07.03.18.38.12;	author simonb;	state Exp;
branches;
next	1.201.2.3;

1.201.2.3
date	2008.07.18.16.37.49;	author simonb;	state Exp;
branches;
next	;

1.200.2.1
date	2009.05.04.08.13.48;	author yamt;	state Exp;
branches;
next	1.200.2.2;

1.200.2.2
date	2009.05.16.10.41.48;	author yamt;	state Exp;
branches;
next	1.200.2.3;

1.200.2.3
date	2009.08.19.18.48.17;	author yamt;	state Exp;
branches;
next	1.200.2.4;

1.200.2.4
date	2010.03.11.15.04.19;	author yamt;	state Exp;
branches;
next	1.200.2.5;

1.200.2.5
date	2010.08.11.22.54.43;	author yamt;	state Exp;
branches;
next	1.200.2.6;

1.200.2.6
date	2010.10.09.03.32.32;	author yamt;	state Exp;
branches;
next	;

1.200.4.1
date	2008.05.10.23.49.05;	author wrstuden;	state Exp;
branches;
next	1.200.4.2;

1.200.4.2
date	2008.05.14.01.35.14;	author wrstuden;	state Exp;
branches;
next	1.200.4.3;

1.200.4.3
date	2008.05.28.15.51.19;	author wrstuden;	state Exp;
branches;
next	1.200.4.4;

1.200.4.4
date	2008.06.23.04.31.51;	author wrstuden;	state Exp;
branches;
next	1.200.4.5;

1.200.4.5
date	2008.09.18.04.31.44;	author wrstuden;	state Exp;
branches;
next	;

1.196.2.1
date	2008.03.29.20.47.01;	author christos;	state Exp;
branches;
next	1.196.2.2;

1.196.2.2
date	2008.11.01.21.22.27;	author christos;	state Exp;
branches;
next	1.196.2.3;

1.196.2.3
date	2008.11.09.01.54.31;	author christos;	state Exp;
branches;
next	1.196.2.4;

1.196.2.4
date	2008.11.09.23.29.58;	author christos;	state Exp;
branches;
next	1.196.2.5;

1.196.2.5
date	2008.11.20.20.45.39;	author christos;	state Exp;
branches;
next	1.196.2.6;

1.196.2.6
date	2008.11.20.22.21.56;	author christos;	state Exp;
branches;
next	1.196.2.7;

1.196.2.7
date	2008.12.27.23.14.24;	author christos;	state Exp;
branches;
next	1.196.2.8;

1.196.2.8
date	2008.12.28.22.18.11;	author christos;	state Exp;
branches;
next	1.196.2.9;

1.196.2.9
date	2008.12.29.00.03.54;	author christos;	state Exp;
branches;
next	;

1.196.4.1
date	2008.05.18.12.35.10;	author yamt;	state Exp;
branches;
next	1.196.4.2;

1.196.4.2
date	2008.06.04.02.05.40;	author yamt;	state Exp;
branches;
next	1.196.4.3;

1.196.4.3
date	2008.06.17.09.15.03;	author yamt;	state Exp;
branches;
next	;

1.189.2.1
date	2008.03.24.07.16.14;	author keiichi;	state Exp;
branches;
next	;

1.189.6.1
date	2008.04.03.12.43.05;	author mjf;	state Exp;
branches;
next	1.189.6.2;

1.189.6.2
date	2008.06.02.13.24.12;	author mjf;	state Exp;
branches;
next	1.189.6.3;

1.189.6.3
date	2008.06.29.09.33.14;	author mjf;	state Exp;
branches;
next	1.189.6.4;

1.189.6.4
date	2008.07.02.19.08.20;	author mjf;	state Exp;
branches;
next	1.189.6.5;

1.189.6.5
date	2008.09.28.10.40.53;	author mjf;	state Exp;
branches;
next	1.189.6.6;

1.189.6.6
date	2009.01.17.13.29.20;	author mjf;	state Exp;
branches;
next	;

1.180.2.1
date	2007.12.04.13.03.18;	author ad;	state Exp;
branches;
next	1.180.2.2;

1.180.2.2
date	2007.12.04.16.59.52;	author ad;	state Exp;
branches;
next	1.180.2.3;

1.180.2.3
date	2007.12.05.21.13.05;	author rmind;	state Exp;
branches;
next	1.180.2.4;

1.180.2.4
date	2007.12.15.01.45.24;	author ad;	state Exp;
branches;
next	1.180.2.5;

1.180.2.5
date	2007.12.15.03.16.58;	author ad;	state Exp;
branches;
next	1.180.2.6;

1.180.2.6
date	2007.12.26.21.39.45;	author ad;	state Exp;
branches;
next	1.180.2.7;

1.180.2.7
date	2007.12.26.23.05.54;	author ad;	state Exp;
branches;
next	1.180.2.8;

1.180.2.8
date	2007.12.27.15.38.18;	author ad;	state Exp;
branches;
next	1.180.2.9;

1.180.2.9
date	2007.12.29.10.20.48;	author yamt;	state Exp;
branches;
next	1.180.2.10;

1.180.2.10
date	2008.01.02.09.35.13;	author ad;	state Exp;
branches;
next	;

1.180.6.1
date	2008.01.02.21.56.16;	author bouyer;	state Exp;
branches;
next	1.180.6.2;

1.180.6.2
date	2008.01.08.22.11.43;	author bouyer;	state Exp;
branches;
next	1.180.6.3;

1.180.6.3
date	2008.01.19.12.15.26;	author bouyer;	state Exp;
branches;
next	;

1.177.4.1
date	2007.11.13.16.02.30;	author bouyer;	state Exp;
branches;
next	;

1.177.6.1
date	2007.11.19.00.48.55;	author mjf;	state Exp;
branches;
next	1.177.6.2;

1.177.6.2
date	2007.12.27.00.46.13;	author mjf;	state Exp;
branches;
next	1.177.6.3;

1.177.6.3
date	2008.02.18.21.06.47;	author mjf;	state Exp;
branches;
next	;

1.176.2.1
date	2007.11.06.23.32.34;	author matt;	state Exp;
branches;
next	1.176.2.2;

1.176.2.2
date	2007.11.08.11.00.08;	author matt;	state Exp;
branches;
next	1.176.2.3;

1.176.2.3
date	2008.01.09.01.56.24;	author matt;	state Exp;
branches;
next	1.176.2.4;

1.176.2.4
date	2008.03.23.02.05.01;	author matt;	state Exp;
branches;
next	;

1.172.2.1
date	2007.08.04.10.52.58;	author ad;	state dead;
branches;
next	1.172.2.2;

1.172.2.2
date	2007.08.04.10.52.59;	author ad;	state Exp;
branches;
next	;

1.171.2.1
date	2007.08.15.13.49.17;	author skrll;	state Exp;
branches;
next	1.171.2.2;

1.171.2.2
date	2007.09.03.10.23.04;	author skrll;	state Exp;
branches;
next	1.171.2.3;

1.171.2.3
date	2007.09.10.10.56.03;	author skrll;	state Exp;
branches;
next	;

1.171.6.1
date	2007.08.04.12.33.15;	author jmcneill;	state Exp;
branches;
next	1.171.6.2;

1.171.6.2
date	2007.08.09.02.37.21;	author jmcneill;	state Exp;
branches;
next	1.171.6.3;

1.171.6.3
date	2007.08.16.11.03.40;	author jmcneill;	state Exp;
branches;
next	1.171.6.4;

1.171.6.4
date	2007.10.02.18.29.05;	author joerg;	state Exp;
branches;
next	1.171.6.5;

1.171.6.5
date	2007.11.11.16.48.14;	author joerg;	state Exp;
branches;
next	1.171.6.6;

1.171.6.6
date	2007.11.14.19.04.46;	author joerg;	state Exp;
branches;
next	;

1.168.2.1
date	2007.03.13.17.51.00;	author ad;	state Exp;
branches;
next	1.168.2.2;

1.168.2.2
date	2007.04.06.12.31.13;	author ad;	state Exp;
branches;
next	1.168.2.3;

1.168.2.3
date	2007.04.10.00.23.02;	author ad;	state Exp;
branches;
next	1.168.2.4;

1.168.2.4
date	2007.04.22.21.43.30;	author ad;	state Exp;
branches;
next	1.168.2.5;

1.168.2.5
date	2007.06.08.14.17.26;	author ad;	state Exp;
branches;
next	1.168.2.6;

1.168.2.6
date	2007.07.15.13.27.46;	author ad;	state Exp;
branches;
next	1.168.2.7;

1.168.2.7
date	2007.08.19.19.22.12;	author ad;	state Exp;
branches;
next	1.168.2.8;

1.168.2.8
date	2007.08.20.21.27.40;	author ad;	state Exp;
branches;
next	1.168.2.9;

1.168.2.9
date	2007.08.26.15.00.03;	author yamt;	state Exp;
branches;
next	1.168.2.10;

1.168.2.10
date	2007.10.09.13.44.31;	author ad;	state Exp;
branches;
next	1.168.2.11;

1.168.2.11
date	2007.11.04.12.09.05;	author rmind;	state Exp;
branches;
next	;

1.168.4.1
date	2007.07.11.20.10.13;	author mjf;	state Exp;
branches;
next	;

1.165.2.1
date	2007.02.27.16.54.32;	author yamt;	state Exp;
branches;
next	1.165.2.2;

1.165.2.2
date	2007.03.12.05.58.42;	author rmind;	state Exp;
branches;
next	1.165.2.3;

1.165.2.3
date	2007.05.07.10.55.47;	author yamt;	state Exp;
branches;
next	;

1.159.2.1
date	2006.10.24.21.37.01;	author ad;	state Exp;
branches;
next	1.159.2.2;

1.159.2.2
date	2006.11.18.21.39.23;	author ad;	state Exp;
branches;
next	1.159.2.3;

1.159.2.3
date	2006.12.29.20.27.44;	author ad;	state Exp;
branches;
next	1.159.2.4;

1.159.2.4
date	2007.01.16.01.28.27;	author ad;	state Exp;
branches;
next	1.159.2.5;

1.159.2.5
date	2007.01.30.13.51.41;	author ad;	state Exp;
branches;
next	1.159.2.6;

1.159.2.6
date	2007.02.01.08.48.38;	author ad;	state Exp;
branches;
next	1.159.2.7;

1.159.2.7
date	2007.02.05.13.22.20;	author ad;	state Exp;
branches;
next	;

1.159.4.1
date	2006.10.22.06.07.11;	author yamt;	state Exp;
branches;
next	;

1.153.2.1
date	2006.07.13.17.49.51;	author gdamore;	state Exp;
branches;
next	;

1.152.2.1
date	2006.06.19.04.07.16;	author chap;	state Exp;
branches;
next	;

1.151.2.1
date	2006.05.24.10.58.41;	author yamt;	state Exp;
branches;
next	1.151.2.2;

1.151.2.2
date	2006.06.26.12.52.57;	author yamt;	state Exp;
branches;
next	1.151.2.3;

1.151.2.3
date	2006.08.11.15.45.47;	author yamt;	state Exp;
branches;
next	;

1.151.4.1
date	2006.05.11.23.30.15;	author elad;	state Exp;
branches;
next	;

1.151.6.1
date	2006.05.24.15.50.41;	author tron;	state Exp;
branches;
next	;

1.150.2.1
date	2006.03.01.09.28.46;	author yamt;	state Exp;
branches;
next	;

1.150.4.1
date	2006.09.09.02.57.17;	author rpaulo;	state Exp;
branches;
next	;

1.150.6.1
date	2006.04.22.11.39.59;	author simonb;	state Exp;
branches;
next	1.150.6.2;

1.150.6.2
date	2006.06.01.22.38.09;	author kardel;	state Exp;
branches;
next	;

1.149.6.1
date	2005.11.15.05.11.50;	author yamt;	state Exp;
branches;
next	1.149.6.2;

1.149.6.2
date	2005.11.16.10.56.00;	author yamt;	state Exp;
branches;
next	;

1.146.2.1
date	2006.06.21.15.09.38;	author yamt;	state Exp;
branches;
next	1.146.2.2;

1.146.2.2
date	2006.12.30.20.50.06;	author yamt;	state Exp;
branches;
next	1.146.2.3;

1.146.2.3
date	2007.02.26.09.11.18;	author yamt;	state Exp;
branches;
next	1.146.2.4;

1.146.2.4
date	2007.09.03.14.41.11;	author yamt;	state Exp;
branches;
next	1.146.2.5;

1.146.2.5
date	2007.10.27.11.35.37;	author yamt;	state Exp;
branches;
next	1.146.2.6;

1.146.2.6
date	2007.11.15.11.44.53;	author yamt;	state Exp;
branches;
next	1.146.2.7;

1.146.2.7
date	2008.01.21.09.46.26;	author yamt;	state Exp;
branches;
next	1.146.2.8;

1.146.2.8
date	2008.02.04.09.24.20;	author yamt;	state Exp;
branches;
next	1.146.2.9;

1.146.2.9
date	2008.02.11.14.44.03;	author yamt;	state Exp;
branches;
next	1.146.2.10;

1.146.2.10
date	2008.02.11.14.59.58;	author yamt;	state Exp;
branches;
next	1.146.2.11;

1.146.2.11
date	2008.02.27.08.36.56;	author yamt;	state Exp;
branches;
next	1.146.2.12;

1.146.2.12
date	2008.03.17.09.15.34;	author yamt;	state Exp;
branches;
next	1.146.2.13;

1.146.2.13
date	2008.03.24.09.39.02;	author yamt;	state Exp;
branches;
next	;

1.143.2.1
date	2005.04.29.11.29.24;	author kent;	state Exp;
branches;
next	;

1.143.4.1
date	2005.03.19.08.36.12;	author yamt;	state Exp;
branches;
next	;

1.128.2.1
date	2004.08.03.10.52.55;	author skrll;	state Exp;
branches;
next	1.128.2.2;

1.128.2.2
date	2004.09.18.14.53.03;	author skrll;	state Exp;
branches;
next	1.128.2.3;

1.128.2.3
date	2004.09.21.13.35.14;	author skrll;	state Exp;
branches;
next	1.128.2.4;

1.128.2.4
date	2005.01.17.19.32.26;	author skrll;	state Exp;
branches;
next	1.128.2.5;

1.128.2.5
date	2005.03.04.16.52.01;	author skrll;	state Exp;
branches;
next	1.128.2.6;

1.128.2.6
date	2005.11.10.14.09.45;	author skrll;	state Exp;
branches;
next	1.128.2.7;

1.128.2.7
date	2005.12.11.10.29.12;	author christos;	state Exp;
branches;
next	;

1.111.2.1
date	2002.07.15.10.36.40;	author gehenna;	state Exp;
branches;
next	1.111.2.2;

1.111.2.2
date	2002.08.29.05.23.13;	author gehenna;	state Exp;
branches;
next	;

1.110.2.1
date	2001.07.10.13.45.49;	author lukem;	state Exp;
branches;
next	1.110.2.2;

1.110.2.2
date	2002.06.07.08.22.36;	author jdolecek;	state Exp;
branches;
next	1.110.2.3;

1.110.2.3
date	2002.06.23.17.49.37;	author jdolecek;	state Exp;
branches;
next	1.110.2.4;

1.110.2.4
date	2002.09.06.08.48.12;	author jdolecek;	state Exp;
branches;
next	1.110.2.5;

1.110.2.5
date	2002.10.10.18.43.16;	author jdolecek;	state Exp;
branches;
next	;

1.108.2.1
date	2001.03.05.22.49.45;	author nathanw;	state Exp;
branches;
next	1.108.2.2;

1.108.2.2
date	2001.06.21.20.07.05;	author nathanw;	state Exp;
branches;
next	1.108.2.3;

1.108.2.3
date	2001.08.24.00.11.40;	author nathanw;	state Exp;
branches;
next	1.108.2.4;

1.108.2.4
date	2001.11.17.01.10.17;	author nathanw;	state Exp;
branches;
next	1.108.2.5;

1.108.2.5
date	2002.01.28.18.29.52;	author nathanw;	state Exp;
branches;
next	1.108.2.6;

1.108.2.6
date	2002.02.25.00.37.34;	author nathanw;	state Exp;
branches;
next	1.108.2.7;

1.108.2.7
date	2002.05.29.21.33.15;	author nathanw;	state Exp;
branches;
next	1.108.2.8;

1.108.2.8
date	2002.06.20.03.47.23;	author nathanw;	state Exp;
branches;
next	1.108.2.9;

1.108.2.9
date	2002.08.01.02.46.25;	author nathanw;	state Exp;
branches;
next	1.108.2.10;

1.108.2.10
date	2002.08.13.02.20.08;	author nathanw;	state Exp;
branches;
next	1.108.2.11;

1.108.2.11
date	2002.08.31.00.00.14;	author nathanw;	state Exp;
branches;
next	1.108.2.12;

1.108.2.12
date	2002.09.17.21.22.21;	author nathanw;	state Exp;
branches;
next	1.108.2.13;

1.108.2.13
date	2002.11.11.22.14.03;	author nathanw;	state Exp;
branches;
next	1.108.2.14;

1.108.2.14
date	2002.12.19.23.57.19;	author thorpej;	state Exp;
branches;
next	1.108.2.15;

1.108.2.15
date	2003.01.17.03.07.04;	author thorpej;	state Exp;
branches;
next	;

1.97.2.1
date	2000.11.20.18.09.10;	author bouyer;	state Exp;
branches;
next	1.97.2.2;

1.97.2.2
date	2000.12.13.15.50.22;	author bouyer;	state Exp;
branches;
next	1.97.2.3;

1.97.2.3
date	2001.01.05.17.36.40;	author bouyer;	state Exp;
branches;
next	1.97.2.4;

1.97.2.4
date	2001.01.18.09.23.45;	author bouyer;	state Exp;
branches;
next	1.97.2.5;

1.97.2.5
date	2001.02.11.19.16.49;	author bouyer;	state Exp;
branches;
next	1.97.2.6;

1.97.2.6
date	2001.04.21.17.46.29;	author bouyer;	state Exp;
branches;
next	;

1.90.2.1
date	2000.10.06.15.37.27;	author he;	state Exp;
branches;
next	1.90.2.2;

1.90.2.2
date	2000.10.06.15.46.29;	author he;	state Exp;
branches;
next	;

1.90.4.1
date	99.06.21.01.24.04;	author thorpej;	state Exp;
branches;
next	1.90.4.2;

1.90.4.2
date	99.07.01.23.43.21;	author thorpej;	state Exp;
branches;
next	1.90.4.3;

1.90.4.3
date	99.08.02.22.16.51;	author thorpej;	state Exp;
branches;
next	;

1.63.2.1
date	97.11.04.21.27.05;	author thorpej;	state Exp;
branches;
next	;

1.52.4.1
date	97.09.16.03.51.06;	author thorpej;	state Exp;
branches;
next	1.52.4.2;

1.52.4.2
date	97.10.14.10.26.12;	author thorpej;	state Exp;
branches;
next	;

1.48.2.1
date	97.05.04.15.20.08;	author mrg;	state Exp;
branches;
next	1.48.2.2;

1.48.2.2
date	97.06.01.09.22.56;	author mrg;	state Exp;
branches;
next	1.48.2.3;

1.48.2.3
date	97.06.01.10.23.26;	author mrg;	state Exp;
branches;
next	;

1.47.2.1
date	97.02.12.12.26.16;	author mrg;	state Exp;
branches;
next	1.47.2.2;

1.47.2.2
date	97.02.14.23.17.17;	author mrg;	state Exp;
branches;
next	;

1.46.2.1
date	97.01.14.21.10.26;	author thorpej;	state Exp;
branches;
next	;

1.32.4.1
date	96.12.10.08.04.31;	author mycroft;	state Exp;
branches;
next	;

1.6.4.1
date	93.09.24.08.51.40;	author mycroft;	state Exp;
branches;
next	1.6.4.2;

1.6.4.2
date	93.11.10.00.52.35;	author deraadt;	state Exp;
branches;
next	1.6.4.3;

1.6.4.3
date	93.11.14.14.37.49;	author cgd;	state Exp;
branches;
next	;

1.1.1.1
date	98.03.01.02.09.47;	author fvdl;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	98.03.01.02.13.06;	author fvdl;	state Exp;
branches;
next	;


desc
@@


1.316
log
@Make semtimedop modular.
@
text
@	$NetBSD: syscalls.master,v 1.315 2024/10/05 18:04:53 mlelstv Exp $

;	@@(#)syscalls.master	8.2 (Berkeley) 1/13/94

; NetBSD system call name/number "master" file.
; (See syscalls.conf to see what it is processed into.)
;
; Fields: number type [type-dependent ...]
;	number	system call number, must be in order
;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
;		the compatibility options defined in syscalls.conf.
;
; Optional fields are specified after the type field
; (NOTE! they *must* be specified in this order):
;	MODULAR modname :attempt to autoload system call module if not present
;	RUMP:	generate rump syscall entry point
;
; types:
;	STD	always included
;	OBSOL	obsolete, not included in system
;	IGNORED	syscall is a null op, but always succeeds
;	UNIMPL	unimplemented, not included in system
;	EXCL	implemented, but not included in system
;	NODEF	included, but don't define the syscall number
;	NOARGS	included, but don't define the syscall args structure
;	INDIR	included, but don't define the syscall args structure,
;		and allow it to be "really" varargs.
;	NOERR	included, syscall does not set errno
;	EXTERN	implemented, but as 3rd party module
;
; arguments:
;	PAD	argument not part of the C interface, used only for padding
;
; The compat options are defined in the syscalls.conf file, and the
; compat option name is prefixed to the syscall name.  Other than
; that, they're like NODEF (for 'compat' options), or STD (for
; 'libcompat' options).
;
; The type-dependent arguments are as follows:
; For STD, NODEF, NOARGS, and compat syscalls:
;	{ return_type|prefix|compat(optional)|basename(pseudo-proto); } [alias]
; For other syscalls:
;	[comment]
;
; #ifdef's, etc. may be included, and are copied to the output files.
; #include's are copied to the syscall names and switch definition files only.

#ifdef _KERNEL_OPT
#include "opt_modular.h"
#include "opt_ntp.h"
#include "opt_sysv.h"
#endif

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/socket.h>
#include <sys/mount.h>
#include <sys/sched.h>
#include <sys/idtype.h>
#include <sys/syscallargs.h>
#include <sys/acl.h>

%%

; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.

0	INDIR		{ int|sys||syscall(int code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
1	STD		{ void|sys||exit(int rval); }
2	STD		{ int|sys||fork(void); }
3	STD	RUMP	{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
4	STD	RUMP	{ ssize_t|sys||write(int fd, const void *buf, \
			    size_t nbyte); }
5	STD	RUMP	{ int|sys||open(const char *path, \
			    int flags, ... mode_t mode); }
6	STD	RUMP	{ int|sys||close(int fd); }
7	COMPAT_50 MODULAR compat_50 { int|sys||wait4(pid_t pid, int *status, \
			    int options, struct rusage50 *rusage); }
8	COMPAT_43 MODULAR compat_43	\
		{ int|sys||creat(const char *path, mode_t mode); } ocreat
9	STD	RUMP	{ int|sys||link(const char *path, const char *link); }
10	STD	RUMP	{ int|sys||unlink(const char *path); }
11	OBSOL		execv
12	STD	RUMP	{ int|sys||chdir(const char *path); }
13	STD	RUMP	{ int|sys||fchdir(int fd); }
14	COMPAT_50 MODULAR compat_50 RUMP	\
		{ int|sys||mknod(const char *path, mode_t mode, uint32_t dev); }
15	STD	RUMP	{ int|sys||chmod(const char *path, mode_t mode); }
16	STD	RUMP	{ int|sys||chown(const char *path, uid_t uid, \
			    gid_t gid); }
17	STD		{ int|sys||obreak(char *nsize); } break
18	COMPAT_20 MODULAR compat_20 { int|sys||getfsstat(struct statfs12 *buf, \
			    long bufsize, int flags); }
19	COMPAT_43 MODULAR compat_43	\
		{ long|sys||lseek(int fd, long offset, int whence); }\
			    olseek
20	NOERR	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
21	COMPAT_40 MODULAR compat_40	\
		{ int|sys||mount(const char *type, const char *path, \
			    int flags, void *data); }
22	STD	RUMP	{ int|sys||unmount(const char *path, int flags); }
23	STD	RUMP	{ int|sys||setuid(uid_t uid); }
24	NOERR	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	NOERR	RUMP	{ uid_t|sys||geteuid(void); }
26	STD	MODULAR ptrace	\
			{ int|sys||ptrace(int req, pid_t pid, void *addr, \
			    int data); }
27	STD	RUMP	{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
			    int flags); }
28	STD	RUMP	{ ssize_t|sys||sendmsg(int s, \
			    const struct msghdr *msg, int flags); }
29	STD	RUMP	{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
			    int flags, struct sockaddr *from, \
			    socklen_t *fromlenaddr); }
30	STD	RUMP	{ int|sys||accept(int s, struct sockaddr *name, \
			    socklen_t *anamelen); }
31	STD	RUMP	{ int|sys||getpeername(int fdes, struct sockaddr *asa, \
			    socklen_t *alen); }
32	STD	RUMP	{ int|sys||getsockname(int fdes, struct sockaddr *asa, \
			    socklen_t *alen); }
33	STD	RUMP	{ int|sys||access(const char *path, int flags); }
34	STD	RUMP	{ int|sys||chflags(const char *path, u_long flags); }
35	STD	RUMP	{ int|sys||fchflags(int fd, u_long flags); }
36	NOERR	RUMP	{ void|sys||sync(void); }
37	STD		{ int|sys||kill(pid_t pid, int signum); }
38	COMPAT_43 MODULAR compat_43	\
		{ int|sys||stat(const char *path, struct stat43 *ub); } stat43
39	NOERR	RUMP	{ pid_t|sys||getppid(void); }
40	COMPAT_43 MODULAR compat_43	\
		{ int|sys||lstat(const char *path, \
			    struct stat43 *ub); } lstat43
41	STD	RUMP	{ int|sys||dup(int fd); }
42	STD	RUMP	{ int|sys||pipe(void); }
43	NOERR	RUMP	{ gid_t|sys||getegid(void); }
44	STD		{ int|sys||profil(char *samples, size_t size, \
			    u_long offset, u_int scale); }
45	STD	RUMP	{ int|sys||ktrace(const char *fname, int ops, \
			    int facs, pid_t pid); }
46	COMPAT_13 MODULAR compat_13 { int|sys||sigaction(int signum, \
			    const struct sigaction13 *nsa, \
			    struct sigaction13 *osa); } sigaction13
47	NOERR	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
48	COMPAT_13 MODULAR compat_13 { int|sys||sigprocmask(int how, \
			    int mask); } sigprocmask13
49	STD	RUMP	{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD	RUMP	{ int|sys||__setlogin(const char *namebuf); }
51	STD		{ int|sys||acct(const char *path); }
52	COMPAT_13 MODULAR compat_13 { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR compat_13 { int|sys||sigaltstack( \
			    const struct sigaltstack13 *nss, \
			    struct sigaltstack13 *oss); } sigaltstack13
54	STD	RUMP	{ int|sys||ioctl(int fd, \
			    u_long com, ... void *data); }
55	COMPAT_12 MODULAR compat_12 { int|sys||reboot(int opt); } oreboot
56	STD	RUMP	{ int|sys||revoke(const char *path); }
57	STD	RUMP	{ int|sys||symlink(const char *path, \
			    const char *link); }
58	STD	RUMP	{ ssize_t|sys||readlink(const char *path, char *buf, \
			    size_t count); }
59	STD		{ int|sys||execve(const char *path, \
			    char * const *argp, char * const *envp); }
60	STD	RUMP	{ mode_t|sys||umask(mode_t newmask); }
61	STD	RUMP	{ int|sys||chroot(const char *path); }
62	COMPAT_43 MODULAR compat_43	\
		{ int|sys||fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR compat_43	\
		{ int|sys||getkerninfo(int op, char *where, int *size, \
			    int arg); } ogetkerninfo
64	COMPAT_43 MODULAR compat_43	\
		{ int|sys||getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR compat_12 { int|sys||msync(void *addr, size_t len); }
; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
66	STD		{ int|sys||vfork(void); }
67	OBSOL		vread
68	OBSOL		vwrite
69	OBSOL		sbrk
70	OBSOL		sstk
71	COMPAT_43 MODULAR compat_43	\
		{ int|sys||mmap(void *addr, size_t len, int prot, \
			    int flags, int fd, long pos); } ommap
72	STD		{ int|sys||ovadvise(int anom); } vadvise
73	STD		{ int|sys||munmap(void *addr, size_t len); }
74	STD		{ int|sys||mprotect(void *addr, size_t len, \
			    int prot); }
75	STD		{ int|sys||madvise(void *addr, size_t len, \
			    int behav); }
76	OBSOL		vhangup
77	OBSOL		vlimit
78	STD		{ int|sys||mincore(void *addr, size_t len, \
			    char *vec); }
79	STD	RUMP	{ int|sys||getgroups(int gidsetsize, \
			    gid_t *gidset); }
80	STD	RUMP	{ int|sys||setgroups(int gidsetsize, \
			    const gid_t *gidset); }
81	STD	RUMP	{ int|sys||getpgrp(void); }
82	STD	RUMP	{ int|sys||setpgid(pid_t pid, pid_t pgid); }
83	COMPAT_50 MODULAR compat_50 { int|sys||setitimer(int which, \
			    const struct itimerval50 *itv, \
			    struct itimerval50 *oitv); }
84	COMPAT_43 MODULAR compat_43 { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR compat_12 { int|sys||swapon(const char *name); } \
			    oswapon
86	COMPAT_50 MODULAR compat_50 { int|sys||getitimer(int which, \
			    struct itimerval50 *itv); }
87	COMPAT_43 MODULAR compat_43	\
		{ int|sys||gethostname(char *hostname, u_int len); } \
			    ogethostname
88	COMPAT_43 MODULAR compat_43	\
		{ int|sys||sethostname(char *hostname, u_int len); } \
			    osethostname
89	COMPAT_43 MODULAR compat_43	\
		{ int|sys||getdtablesize(void); } ogetdtablesize
90	STD	RUMP	{ int|sys||dup2(int from, int to); }
91	STD	RUMP	{ ssize_t|sys||getrandom(void *buf, size_t buflen, \
			    unsigned int flags); }
92	STD	RUMP	{ int|sys||fcntl(int fd, int cmd, ... void *arg); }
93	COMPAT_50 MODULAR compat_50 RUMP	\
		{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
94	UNIMPL		setdopt
95	STD	RUMP	{ int|sys||fsync(int fd); }
96	STD		{ int|sys||setpriority(int which, id_t who, int prio); }
97	COMPAT_30 MODULAR compat_30	\
		{ int|sys||socket(int domain, int type, int protocol); }
98	STD	RUMP	{ int|sys||connect(int s, const struct sockaddr *name, \
			    socklen_t namelen); }
99	COMPAT_43 MODULAR compat_43	\
		{ int|sys||accept(int s, void *name, \
			    socklen_t *anamelen); } oaccept
100	STD		{ int|sys||getpriority(int which, id_t who); }
101	COMPAT_43 MODULAR compat_43 { int|sys||send(int s, void *buf, int len, \
			    int flags); } osend
102	COMPAT_43 MODULAR compat_43 { int|sys||recv(int s, void *buf, int len, \
			    int flags); } orecv
103	COMPAT_13 MODULAR compat_13	\
		{ int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \
			    sigreturn13
104	STD	RUMP	{ int|sys||bind(int s, const struct sockaddr *name, \
			    socklen_t namelen); }
105	STD	RUMP	{ int|sys||setsockopt(int s, int level, int name, \
			    const void *val, socklen_t valsize); }
106	STD	RUMP	{ int|sys||listen(int s, int backlog); }
107	OBSOL		vtimes
108	COMPAT_43 MODULAR compat_43	\
		{ int|sys||sigvec(int signum, struct sigvec *nsv, \
			    struct sigvec *osv); } osigvec
109	COMPAT_43 MODULAR compat { int|sys||sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR compat { int|sys||sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR compat { int|sys||sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR compat_43 { int|sys||sigstack(struct sigstack *nss, \
			    struct sigstack *oss); } osigstack
113	COMPAT_43 MODULAR compat_43	\
		{ int|sys||recvmsg(int s, struct omsghdr *msg, \
			    int flags); } orecvmsg
114	COMPAT_43 MODULAR compat_43	\
		{ int|sys||sendmsg(int s, void *msg, int flags); } osendmsg
115	OBSOL		vtrace
116	COMPAT_50 MODULAR compat_50	\
		{ int|sys||gettimeofday(struct timeval50 *tp, void *tzp); }
117	COMPAT_50 MODULAR compat_50	\
		{ int|sys||getrusage(int who, struct rusage50 *rusage); }
118	STD	RUMP	{ int|sys||getsockopt(int s, int level, int name, \
			    void *val, socklen_t *avalsize); }
119	OBSOL		resuba
120	STD	RUMP	{ ssize_t|sys||readv(int fd, \
			    const struct iovec *iovp, int iovcnt); }
121	STD	RUMP	{ ssize_t|sys||writev(int fd, \
			    const struct iovec *iovp, int iovcnt); }
122	COMPAT_50 MODULAR compat_50	\
		{ int|sys||settimeofday(const struct timeval50 *tv, \
			    const void *tzp); }
123	STD	RUMP	{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD	RUMP	{ int|sys||fchmod(int fd, mode_t mode); }
125	COMPAT_43 MODULAR compat_43	\
		{ int|sys||recvfrom(int s, void *buf, size_t len, \
			    int flags, void *from, socklen_t *fromlenaddr); } \
			    orecvfrom
126	STD	RUMP	{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD	RUMP	{ int|sys||setregid(gid_t rgid, gid_t egid); }
128	STD	RUMP	{ int|sys||rename(const char *from, const char *to); }
129	COMPAT_43 MODULAR compat_43	\
		{ int|sys||truncate(const char *path, long length); } otruncate
130	COMPAT_43 MODULAR compat_43	\
		{ int|sys||ftruncate(int fd, long length); } oftruncate
131	STD	RUMP	{ int|sys||flock(int fd, int how); }
132	STD	RUMP	{ int|sys||mkfifo(const char *path, mode_t mode); }
133	STD	RUMP	{ ssize_t|sys||sendto(int s, const void *buf, \
			    size_t len, int flags, const struct sockaddr *to, \
			    socklen_t tolen); }
134	STD	RUMP	{ int|sys||shutdown(int s, int how); }
135	STD	RUMP	{ int|sys||socketpair(int domain, int type, \
			    int protocol, int *rsv); }
136	STD	RUMP	{ int|sys||mkdir(const char *path, mode_t mode); }
137	STD	RUMP	{ int|sys||rmdir(const char *path); }
138	COMPAT_50 MODULAR compat_50 RUMP { int|sys||utimes(const char *path, \
			    const struct timeval50 *tptr); }
139	OBSOL		4.2 sigreturn
140	COMPAT_50 MODULAR compat_50	\
		{ int|sys||adjtime(const struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
141	COMPAT_43 MODULAR compat_43	\
		{ int|sys||getpeername(int fdes, void *asa, \
			    socklen_t *alen); } ogetpeername
142	COMPAT_43 MODULAR compat_43	\
		{ int32_t|sys||gethostid(void); } ogethostid
143	COMPAT_43 MODULAR compat_43	\
		{ int|sys||sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR compat_43	\
		{ int|sys||getrlimit(int which, \
			    struct orlimit *rlp); } ogetrlimit
145	COMPAT_43 MODULAR compat_43 { int|sys||setrlimit(int which, \
			    const struct orlimit *rlp); } osetrlimit
146	COMPAT_43 MODULAR compat_43	\
		{ int|sys||killpg(int pgid, int signum); } okillpg
147	STD	RUMP	{ int|sys||setsid(void); }
148	COMPAT_50 MODULAR compat_50_quota	\
		{ int|sys||quotactl(const char *path, \
			  int cmd, int uid, void *arg); }
149	COMPAT_43 MODULAR compat_43 { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR compat_43 { int|sys||getsockname(int fdec,	\
			    void *asa, socklen_t *alen); } ogetsockname

; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls.  (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD...
151	UNIMPL
152	UNIMPL
153	UNIMPL
154	UNIMPL
155	STD MODULAR nfsserver RUMP  { int|sys||nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR compat_43	\
		{ int|sys||getdirentries(int fd, char *buf, \
			    u_int count, long *basep); } ogetdirentries
157	COMPAT_20 MODULAR compat_20 { int|sys||statfs(const char *path, \
			    struct statfs12 *buf); }
158	COMPAT_20 MODULAR compat_20	\
		{ int|sys||fstatfs(int fd, struct statfs12 *buf); }
159	UNIMPL
160	UNIMPL
161	COMPAT_30 MODULAR compat_30 { int|sys||getfh(const char *fname, \
			    struct compat_30_fhandle *fhp); }
162	COMPAT_09 MODULAR compat_09	\
		{ int|sys||getdomainname(char *domainname, int len); } \
			    ogetdomainname
163	COMPAT_09 MODULAR compat_09	\
		{ int|sys||setdomainname(char *domainname, int len); } \
			    osetdomainname
164	COMPAT_09 MODULAR compat	\
		{ int|sys||uname(struct outsname *name); } ouname
165	STD		{ int|sys||sysarch(int op, void *parms); }
166	STD		{ int|sys||__futex(int *uaddr, int op, int val, \
			    const struct timespec *timeout, \
			    int *uaddr2, int val2, int val3); }
167	STD		{ int|sys||__futex_set_robust_list(void *head, \
			    size_t len); }
168	STD		{ int|sys||__futex_get_robust_list(lwpid_t lwpid, \
			    void **headp, size_t *lenp); }
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if !defined(_LP64)
169	COMPAT_10 MODULAR compat_sysv_10	\
		{ int|sys||semsys(int which, int a2, int a3, int a4, \
			    int a5); } osemsys
#else
169	EXCL		1.0 semsys
#endif
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if !defined(_LP64)
170	COMPAT_10 MODULAR compat_sysv_10	\
		{ int|sys||msgsys(int which, int a2, int a3, int a4, \
			    int a5, int a6); } omsgsys
#else
170	EXCL		1.0 msgsys
#endif
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if !defined(_LP64)
171	COMPAT_10 MODULAR compat_sysv_10	\
		{ int|sys||shmsys(int which, int a2, int a3, int a4); } \
			    oshmsys
#else
171	EXCL		1.0 shmsys
#endif
172	UNIMPL
173	STD	RUMP	{ ssize_t|sys||pread(int fd, void *buf, \
			    size_t nbyte, int PAD, off_t offset); }
174	STD	RUMP	{ ssize_t|sys||pwrite(int fd, const void *buf, \
			    size_t nbyte, int PAD, off_t offset); }
; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
175	COMPAT_30 MODULAR compat_30	\
			{ int|sys||ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL_OPT)
176	STD		{ int|sys||ntp_adjtime(struct timex *tp); }
#else
176	EXCL		ntp_adjtime
#endif
177	STD		{ int|sys||timerfd_create(clockid_t clock_id, \
			    int flags); }
178	STD		{ int|sys||timerfd_settime(int fd, int flags, \
			    const struct itimerspec *new_value, \
			    struct itimerspec *old_value); }
179	STD		{ int|sys||timerfd_gettime(int fd, \
			    struct itimerspec *curr_value); }
180	UNIMPL

; Syscalls 180-199 are used by/reserved for BSD
181	STD	RUMP	{ int|sys||setgid(gid_t gid); }
182	STD	RUMP	{ int|sys||setegid(gid_t egid); }
183	STD	RUMP	{ int|sys||seteuid(uid_t euid); }
184	STD MODULAR lfs	{ int|sys||lfs_bmapv(fsid_t *fsidp, \
			    struct block_info *blkiov, int blkcnt); }
185	STD MODULAR lfs	{ int|sys||lfs_markv(fsid_t *fsidp, \
			    struct block_info *blkiov, int blkcnt); }
186	STD MODULAR lfs	{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
187	COMPAT_50 MODULAR compat_50 { int|sys||lfs_segwait(fsid_t *fsidp, \
			    struct timeval50 *tv); }
188	COMPAT_12 MODULAR compat_12	\
		{ int|sys||stat(const char *path, struct stat12 *ub); } stat12
189	COMPAT_12 MODULAR compat_12	\
		{ int|sys||fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR compat_12 { int|sys||lstat(const char *path, \
			    struct stat12 *ub); } lstat12
191	STD	RUMP	{ long|sys||pathconf(const char *path, int name); }
192	STD	RUMP	{ long|sys||fpathconf(int fd, int name); }
193	STD	RUMP	{ int|sys||getsockopt2(int s, int level, int name, \
			    void *val, socklen_t *avalsize); }
194	STD	RUMP	{ int|sys||getrlimit(int which, \
			    struct rlimit *rlp); }
195	STD	RUMP	{ int|sys||setrlimit(int which, \
			    const struct rlimit *rlp); }
196	COMPAT_12 MODULAR compat_12	\
		{ int|sys||getdirentries(int fd, char *buf, \
			    u_int count, long *basep); }
197	STD		{ void *|sys||mmap(void *addr, size_t len, int prot, \
			    int flags, int fd, long PAD, off_t pos); }
198	INDIR		{ quad_t|sys||__syscall(quad_t code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
199	STD	RUMP	{ off_t|sys||lseek(int fd, int PAD, off_t offset, \
			    int whence); }
200	STD	RUMP	{ int|sys||truncate(const char *path, int PAD, \
			    off_t length); }
201	STD	RUMP	{ int|sys||ftruncate(int fd, int PAD, off_t length); }
202	STD	RUMP	{ int|sys||__sysctl(const int *name, u_int namelen, \
			    void *oldv, size_t *oldlenp, const void *newv, \
			    size_t newlen); }
203	STD		{ int|sys||mlock(const void *addr, size_t len); }
204	STD		{ int|sys||munlock(const void *addr, size_t len); }
205	STD		{ int|sys||undelete(const char *path); }
206	COMPAT_50 MODULAR compat_50 RUMP { int|sys||futimes(int fd, \
			    const struct timeval50 *tptr); }
207	STD	RUMP	{ pid_t|sys||getpgid(pid_t pid); }
208	STD	RUMP	{ int|sys||reboot(int opt, char *bootstr); }
209	STD	RUMP	{ int|sys||poll(struct pollfd *fds, u_int nfds, \
			    int timeout); }
;
; Syscalls 210-219 are reserved for dynamically loaded syscalls
;
210	EXTERN	MODULAR openafs { int|sys||afssys(long id, long a1, long a2, \
			  long a3, long a4, long a5, long a6); }
211	UNIMPL
212	UNIMPL
213	UNIMPL
214	UNIMPL
215	UNIMPL
216	UNIMPL
217	UNIMPL
218	UNIMPL
219	UNIMPL
; System calls 220-300 are reserved for use by NetBSD
220	COMPAT_14 MODULAR compat_sysv_14	\
		{ int|sys||__semctl(int semid, int semnum, int cmd, \
			    union __semun *arg); }
221	STD MODULAR sysv_ipc { int|sys||semget(key_t key, int nsems, \
			    int semflg); }
222	STD MODULAR sysv_ipc { int|sys||semop(int semid, struct sembuf *sops, \
			    size_t nsops); }
223	STD MODULAR sysv_ipc { int|sys||semconfig(int flag); }
224	COMPAT_14 MODULAR compat_sysv_14 { int|sys||msgctl(int msqid, int cmd, \
			    struct msqid_ds14 *buf); }
225	STD MODULAR sysv_ipc { int|sys||msgget(key_t key, int msgflg); }
226	STD MODULAR sysv_ipc { int|sys||msgsnd(int msqid, const void *msgp, \
			    size_t msgsz, int msgflg); }
227	STD MODULAR sysv_ipc { ssize_t|sys||msgrcv(int msqid, void *msgp, \
			    size_t msgsz, long msgtyp, int msgflg); }
228	STD MODULAR sysv_ipc { void *|sys||shmat(int shmid,	\
			    const void *shmaddr, int shmflg); }
229	COMPAT_14 MODULAR compat_sysv_14 { int|sys||shmctl(int shmid, int cmd, \
			    struct shmid_ds14 *buf); }
230	STD MODULAR sysv_ipc { int|sys||shmdt(const void *shmaddr); }
231	STD MODULAR sysv_ipc { int|sys||shmget(key_t key, size_t size,	\
			    int shmflg); }
232	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_gettime(clockid_t clock_id, \
		    struct timespec50 *tp); }
233	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_settime(clockid_t clock_id, \
		    const struct timespec50 *tp); }
234	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_getres(clockid_t clock_id, \
		    struct timespec50 *tp); }
235	STD	RUMP	{ int|sys||timer_create(clockid_t clock_id, \
			    struct sigevent *evp, timer_t *timerid); }
236	STD	RUMP	{ int|sys||timer_delete(timer_t timerid); }
237	COMPAT_50 MODULAR compat_50 { int|sys||timer_settime(timer_t timerid, \
			    int flags, const struct itimerspec50 *value, \
			    struct itimerspec50 *ovalue); }
238	COMPAT_50 MODULAR compat_50 { int|sys||timer_gettime(timer_t timerid, \
			    struct itimerspec50 *value); }
239	STD	RUMP	{ int|sys||timer_getoverrun(timer_t timerid); }
;
; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
;
240	COMPAT_50 MODULAR compat_50	\
		{ int|sys||nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
241	STD	RUMP	{ int|sys||fdatasync(int fd); }
242	STD		{ int|sys||mlockall(int flags); }
243	STD		{ int|sys||munlockall(void); }
244	COMPAT_50 MODULAR compat_50	\
		{ int|sys||__sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, struct timespec50 *timeout); }
245	STD		{ int|sys||sigqueueinfo(pid_t pid, \
			    const siginfo_t *info); }
246	STD	RUMP	{ int|sys||modctl(int cmd, void *arg); }
247	STD MODULAR ksem RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR ksem RUMP { int|sys||_ksem_open(const char *name, int oflag, \
			    mode_t mode, unsigned int value, intptr_t *idp); }
249	STD MODULAR ksem RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR ksem RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR ksem RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR ksem RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR ksem RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR ksem RUMP { int|sys||_ksem_getvalue(intptr_t id, \
			    unsigned int *value); }
255	STD MODULAR ksem RUMP { int|sys||_ksem_destroy(intptr_t id); }
256	STD MODULAR ksem RUMP { int|sys||_ksem_timedwait(intptr_t id, \
				const struct timespec *abstime); }
257	STD MODULAR mqueue	\
			{ mqd_t|sys||mq_open(const char * name, int oflag, \
			    mode_t mode, struct mq_attr *attr); }
258	STD MODULAR mqueue	{ int|sys||mq_close(mqd_t mqdes); }
259	STD MODULAR mqueue	{ int|sys||mq_unlink(const char *name); }
260	STD MODULAR mqueue	\
			{ int|sys||mq_getattr(mqd_t mqdes, \
			    struct mq_attr *mqstat); }
261	STD MODULAR mqueue	\
			{ int|sys||mq_setattr(mqd_t mqdes, \
			    const struct mq_attr *mqstat, \
			    struct mq_attr *omqstat); }
262	STD MODULAR mqueue	\
			{ int|sys||mq_notify(mqd_t mqdes, \
			    const struct sigevent *notification); }
263	STD MODULAR mqueue	\
			{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
			    size_t msg_len, unsigned msg_prio); }
264	STD MODULAR mqueue	\
			{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
			    size_t msg_len, unsigned *msg_prio); }
265	COMPAT_50 MODULAR compat_50	\
		{ int|sys||mq_timedsend(mqd_t mqdes, \
		    const char *msg_ptr, size_t msg_len, \
		    unsigned msg_prio, \
		    const struct timespec50 *abs_timeout); }
266	COMPAT_50 MODULAR compat_50	\
		{ ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
		    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
		    const struct timespec50 *abs_timeout); }
267	STD		{ int|sys||eventfd(unsigned int val, int flags); }
268	UNIMPL
269	UNIMPL
270	STD	RUMP	{ int|sys||__posix_rename(const char *from, \
			    const char *to); }
271	STD		{ int|sys||swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MODULAR compat_30	\
		{ int|sys||getdents(int fd, char *buf, size_t count); }
273	STD		{ int|sys||minherit(void *addr, size_t len, \
			    int inherit); }
274	STD	RUMP	{ int|sys||lchmod(const char *path, mode_t mode); }
275	STD	RUMP	{ int|sys||lchown(const char *path, uid_t uid, \
			    gid_t gid); }
276	COMPAT_50 MODULAR compat_50 RUMP { int|sys||lutimes(const char *path, \
			    const struct timeval50 *tptr); }
277	STD		{ int|sys|13|msync(void *addr, size_t len, int flags); }
278	COMPAT_30 MODULAR compat_30	\
		{ int|sys|13|stat(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR compat_30	\
		{ int|sys|13|fstat(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR compat_30	\
		{ int|sys|13|lstat(const char *path, struct stat13 *ub); }
281	STD		{ int|sys|14|sigaltstack(const stack_t *nss, \
			    stack_t *oss); }
282	STD		{ int|sys|14|vfork(void); }
283	STD	RUMP	{ int|sys||__posix_chown(const char *path, uid_t uid, \
			    gid_t gid); }
284	STD	RUMP	{ int|sys||__posix_fchown(int fd, uid_t uid, \
			    gid_t gid); }
285	STD	RUMP	{ int|sys||__posix_lchown(const char *path, uid_t uid, \
			    gid_t gid); }
286	STD	RUMP	{ pid_t|sys||getsid(pid_t pid); }
287	STD		{ pid_t|sys||__clone(int flags, void *stack); }
288	STD	RUMP	{ int|sys||fktrace(int fd, int ops, \
			    int facs, pid_t pid); }
289	STD	RUMP	{ ssize_t|sys||preadv(int fd, \
			    const struct iovec *iovp, int iovcnt, \
			    int PAD, off_t offset); }
290	STD	RUMP	{ ssize_t|sys||pwritev(int fd, \
			    const struct iovec *iovp, int iovcnt, \
			    int PAD, off_t offset); }
291	COMPAT_16 MODULAR compat_16 { int|sys|14|sigaction(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa); }
292	STD		{ int|sys|14|sigpending(sigset_t *set); }
293	STD		{ int|sys|14|sigprocmask(int how, \
			    const sigset_t *set, \
			    sigset_t *oset); }
294	STD		{ int|sys|14|sigsuspend(const sigset_t *set); }
295	COMPAT_16 MODULAR compat_16	\
		{ int|sys|14|sigreturn(struct sigcontext *sigcntxp); }
296	STD	RUMP	{ int|sys||__getcwd(char *bufp, size_t length); }
297	STD	RUMP	{ int|sys||fchroot(int fd); }
298	COMPAT_30 MODULAR compat_30	\
		{ int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR compat_30	\
		{ int|sys||fhstat(const struct compat_30_fhandle *fhp, \
			    struct stat13 *sb); }
300	COMPAT_20 MODULAR compat_20	\
		{ int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \
			    struct statfs12 *buf); }
301	COMPAT_50 MODULAR compat_sysv_50	\
		{ int|sys|13|__semctl(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
302	COMPAT_50 MODULAR compat_sysv_50	\
		{ int|sys|13|msgctl(int msqid, int cmd, struct msqid_ds *buf); }
303	COMPAT_50 MODULAR compat_sysv_50	\
		{ int|sys|13|shmctl(int shmid, int cmd, \
			    struct shmid_ds13 *buf); }
304	STD	RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
305	NOERR	RUMP	{ int|sys||issetugid(void); }
306	STD	RUMP	{ int|sys||utrace(const char *label, void *addr, \
				size_t len); }
307	STD		{ int|sys||getcontext(struct __ucontext *ucp); }
308	STD		{ int|sys||setcontext(const struct __ucontext *ucp); }
309	STD		{ int|sys||_lwp_create(const struct __ucontext *ucp, \
				u_long flags, lwpid_t *new_lwp); }
310	STD		{ int|sys||_lwp_exit(void); }
311	STD		{ lwpid_t|sys||_lwp_self(void); }
312	STD		{ int|sys||_lwp_wait(lwpid_t wait_for, \
				lwpid_t *departed); }
313	STD		{ int|sys||_lwp_suspend(lwpid_t target); }
314	STD		{ int|sys||_lwp_continue(lwpid_t target); }
315	STD		{ int|sys||_lwp_wakeup(lwpid_t target); }
316	STD		{ void *|sys||_lwp_getprivate(void); }
317	STD		{ void|sys||_lwp_setprivate(void *ptr); }
318	STD		{ int|sys||_lwp_kill(lwpid_t target, int signo); }
319	STD		{ int|sys||_lwp_detach(lwpid_t target); }
320	COMPAT_50 MODULAR compat_50	\
		{ int|sys||_lwp_park(const struct timespec50 *ts, \
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
321	STD		{ int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
322	STD		{ ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \
				size_t ntargets, const void *hint); }
323	STD		{ int|sys||_lwp_setname(lwpid_t target, \
				const char *name); }
324	STD		{ int|sys||_lwp_getname(lwpid_t target, \
				char *name, size_t len); }
325	STD		{ int|sys||_lwp_ctl(int features, \
				struct lwpctl **address); }
; Syscalls 326-339 reserved for LWP syscalls.
326	UNIMPL
327	UNIMPL
328	UNIMPL
329	UNIMPL
; SA system calls.
330	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_register(void *newv, void **oldv, \
				int flags, ssize_t stackinfo_offset); }
331	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_enable(void); }
333	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_setconcurrency(int concurrency); }
334	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_yield(void); }
335	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_preempt(int sa_id); }
336	OBSOL		sys_sa_unblockyield
;
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
;
337	UNIMPL
338	UNIMPL
339	UNIMPL
340	STD		{ int|sys||__sigaction_sigtramp(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa, \
			    const void *tramp, int vers); }
341	OBSOL		sys_pmc_get_info
342	OBSOL		sys_pmc_control
343	STD		{ int|sys||rasctl(void *addr, size_t len, int op); }
344	STD	RUMP	{ int|sys||kqueue(void); }
345	COMPAT_50 MODULAR compat_50 RUMP { int|sys||kevent(int fd, \
			    const struct kevent100 *changelist, size_t nchanges, \
			    struct kevent100 *eventlist, size_t nevents, \
			    const struct timespec50 *timeout); }

; Scheduling system calls.
346	STD		{ int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \
			    int policy, const struct sched_param *params); }
347	STD		{ int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \
			    int *policy, struct sched_param *params); }
348	STD		{ int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, const cpuset_t *cpuset); }
349	STD		{ int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, cpuset_t *cpuset); }
350	STD		{ int|sys||sched_yield(void); }
351	STD		{ int|sys||_sched_protect(int priority); }	
352	UNIMPL
353	UNIMPL

354	STD	RUMP	{ int|sys||fsync_range(int fd, int flags, off_t start, \
			    off_t length); }
355	STD		{ int|sys||uuidgen(struct uuid *store, int count); }
356	COMPAT_90 MODULAR compat_90 { \
			    int|sys||getvfsstat(struct statvfs90 *buf, \
			    size_t bufsize, int flags); }
357	COMPAT_90 MODULAR compat_90 { int|sys||statvfs1(const char *path, \
			    struct statvfs90 *buf, int flags); }
358	COMPAT_90 MODULAR compat_90 { int|sys||fstatvfs1(int fd, \
			    struct statvfs90 *buf, int flags); }
359	COMPAT_30 MODULAR compat_30 { int|sys||fhstatvfs1( \
			    const struct compat_30_fhandle *fhp, \
			    struct statvfs90 *buf, int flags); }
360	STD	RUMP	{ int|sys||extattrctl(const char *path, int cmd, \
			    const char *filename, int attrnamespace, \
			    const char *attrname); }
361	STD	RUMP	{ int|sys||extattr_set_file(const char *path, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
362	STD	RUMP	{ ssize_t|sys||extattr_get_file(const char *path, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
363	STD	RUMP	{ int|sys||extattr_delete_file(const char *path, \
			    int attrnamespace, const char *attrname); }
364	STD	RUMP	{ int|sys||extattr_set_fd(int fd, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
365	STD	RUMP	{ ssize_t|sys||extattr_get_fd(int fd, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
366	STD	RUMP	{ int|sys||extattr_delete_fd(int fd, \
			    int attrnamespace, const char *attrname); }
367	STD	RUMP	{ int|sys||extattr_set_link(const char *path, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
368	STD	RUMP	{ ssize_t|sys||extattr_get_link(const char *path, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
369	STD	RUMP	{ int|sys||extattr_delete_link(const char *path, \
			    int attrnamespace, const char *attrname); }
370	STD	RUMP	{ ssize_t|sys||extattr_list_fd(int fd, \
			    int attrnamespace, void *data, size_t nbytes); }
371	STD	RUMP	{ ssize_t|sys||extattr_list_file(const char *path, \
			    int attrnamespace, void *data, size_t nbytes); }
372	STD	RUMP	{ ssize_t|sys||extattr_list_link(const char *path, \
			    int attrnamespace, void *data, size_t nbytes); }
373	COMPAT_50 MODULAR compat_50 RUMP	\
		{ int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec50 *ts, \
			    const sigset_t *mask); }
374	COMPAT_50 MODULAR compat_50 RUMP	\
		{ int|sys||pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec50 *ts, const sigset_t *mask); }
375	STD	RUMP	{ int|sys||setxattr(const char *path, \
			    const char *name, const void *value, size_t size, \
			    int flags); }
376	STD	RUMP	{ int|sys||lsetxattr(const char *path, \
			    const char *name, const void *value, size_t size, \
			    int flags); }
377	STD	RUMP	{ int|sys||fsetxattr(int fd, \
			    const char *name, const void *value, size_t size, \
			    int flags); }
378	STD	RUMP	{ int|sys||getxattr(const char *path, \
			    const char *name, void *value, size_t size); }
379	STD	RUMP	{ int|sys||lgetxattr(const char *path, \
			    const char *name, void *value, size_t size); }
380	STD	RUMP	{ int|sys||fgetxattr(int fd, \
			    const char *name, void *value, size_t size); }
381	STD	RUMP	{ int|sys||listxattr(const char *path, \
			    char *list, size_t size); }
382	STD	RUMP	{ int|sys||llistxattr(const char *path, \
			    char *list, size_t size); }
383	STD	RUMP	{ int|sys||flistxattr(int fd, \
			    char *list, size_t size); }
384	STD	RUMP	{ int|sys||removexattr(const char *path, \
			    const char *name); }
385	STD	RUMP	{ int|sys||lremovexattr(const char *path, \
			    const char *name); }
386	STD	RUMP	{ int|sys||fremovexattr(int fd, \
			    const char *name); }
387	COMPAT_50 MODULAR compat_50 RUMP	\
		{ int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR compat_50 RUMP	\
		{ int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR compat_50 RUMP	\
		{ int|sys|30|lstat(const char *path, struct stat30 *ub); }
390	STD	RUMP	{ int|sys|30|getdents(int fd, char *buf, size_t count); }
391	IGNORED		old posix_fadvise
392	COMPAT_30 MODULAR compat_30	\
		{ int|sys|30|fhstat(const struct compat_30_fhandle \
			    *fhp, struct stat30 *sb); }
393	COMPAT_50 MODULAR compat_30	\
		{ int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); }
394	STD	RUMP	{ int|sys|30|socket(int domain, int type, int protocol); }
395	STD	RUMP	{ int|sys|30|getfh(const char *fname, void *fhp, \
			    size_t *fh_size); }
396	STD	RUMP	{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
			    int flags); }
397	COMPAT_90 MODULAR compat_90 { \
			    int|sys||fhstatvfs1(const void *fhp, \
			    size_t fh_size, struct statvfs90 *buf, int flags); }
398	COMPAT_50 MODULAR compat_50 RUMP { int|sys|40|fhstat(const void *fhp, \
			    size_t fh_size, struct stat30 *sb); }

; Asynchronous I/O system calls
399	STD MODULAR aio RUMP	\
		{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR aio RUMP	\
		{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR aio RUMP	\
		{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR aio RUMP	\
		{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR aio RUMP	\
		{ int|sys||aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR compat	\
		{ int|sys||aio_suspend(const struct aiocb *const *list, \
		    int nent, const struct timespec50 *timeout); }
405	STD MODULAR aio RUMP	\
		{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR aio RUMP	\
		{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
		    int nent, struct sigevent *sig); }

407	UNIMPL
408	UNIMPL
409	UNIMPL

410	STD	RUMP	{ int|sys|50|mount(const char *type, \
			    const char *path, int flags, void *data, \
			    size_t data_len); }
411	STD		{ void *|sys||mremap(void *old_address, \
			    size_t old_size, void *new_address, \
			    size_t new_size, int flags); }

; Processor-sets system calls
412	STD		{ int|sys||pset_create(psetid_t *psid); }
413	STD		{ int|sys||pset_destroy(psetid_t psid); }
414	STD		{ int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \
			    psetid_t *opsid); }
415	STD		{ int|sys||_pset_bind(idtype_t idtype, id_t first_id, \
			    id_t second_id, psetid_t psid, psetid_t *opsid); }
416	NOERR	RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
			    off_t offset, off_t len, int advice); }
417	STD	RUMP	{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
418	STD	RUMP	{ int|sys|50|gettimeofday(struct timeval *tp, \
			    void *tzp); }
419	STD	RUMP	{ int|sys|50|settimeofday(const struct timeval *tv, \
			    const void *tzp); }
420	STD	RUMP	{ int|sys|50|utimes(const char *path, \
			    const struct timeval *tptr); }
421	STD	RUMP	{ int|sys|50|adjtime(const struct timeval *delta, \
			    struct timeval *olddelta); }
422	STD  MODULAR lfs { int|sys|50|lfs_segwait(fsid_t *fsidp, \
			    struct timeval *tv); }
423	STD	RUMP	{ int|sys|50|futimes(int fd, \
			    const struct timeval *tptr); }
424	STD	RUMP	{ int|sys|50|lutimes(const char *path, \
			    const struct timeval *tptr); }
425	STD	RUMP	{ int|sys|50|setitimer(int which, \
			    const struct itimerval *itv, \
			    struct itimerval *oitv); }
426	STD	RUMP	{ int|sys|50|getitimer(int which, \
			    struct itimerval *itv); }
427	STD	RUMP	{ int|sys|50|clock_gettime(clockid_t clock_id, \
			    struct timespec *tp); }
428	STD	RUMP	{ int|sys|50|clock_settime(clockid_t clock_id, \
			    const struct timespec *tp); }
429	STD	RUMP	{ int|sys|50|clock_getres(clockid_t clock_id, \
			    struct timespec *tp); }
430	STD	RUMP	{ int|sys|50|nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
431	STD		{ int|sys|50|__sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, \
			    struct timespec *timeout); }
432	STD MODULAR mqueue	\
		{ int|sys|50|mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
433	STD MODULAR mqueue	\
		{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
434	COMPAT_60 MODULAR compat_60 \
		{ int|sys||_lwp_park(const struct timespec *ts, \
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
435     COMPAT_100 MODULAR compat_100 RUMP \
		{ int|sys|50|kevent(int fd, \
			    const struct kevent100 *changelist, size_t nchanges, \
			    struct kevent100 *eventlist, size_t nevents, \
			    const struct timespec *timeout); }
436	STD	RUMP	{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
437	STD	RUMP	{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
438	STD MODULAR aio RUMP { int|sys|50|aio_suspend( \
			    const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
439	STD	RUMP	{ int|sys|50|stat(const char *path, struct stat *ub); }
440	STD	RUMP	{ int|sys|50|fstat(int fd, struct stat *sb); }
441	STD	RUMP	{ int|sys|50|lstat(const char *path, struct stat *ub); }
442	STD MODULAR sysv_ipc { int|sys|50|__semctl(int semid, int semnum, \
			    int cmd, ... union __semun *arg); }
443	STD MODULAR sysv_ipc { int|sys|50|shmctl(int shmid, int cmd, \
			    struct shmid_ds *buf); }
444	STD MODULAR sysv_ipc { int|sys|50|msgctl(int msqid, int cmd, \
			    struct msqid_ds *buf); }
445	STD		{ int|sys|50|getrusage(int who, struct rusage *rusage); }
446	STD	RUMP	{ int|sys|50|timer_settime(timer_t timerid, \
			    int flags, const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
447	STD	RUMP	{ int|sys|50|timer_gettime(timer_t timerid, struct \
			    itimerspec *value); }
#if defined(NTP) || !defined(_KERNEL_OPT)
448	STD		{ int|sys|50|ntp_gettime(struct ntptimeval *ntvp); }
#else
448	EXCL		___ntp_gettime50
#endif
449	STD		{ int|sys|50|wait4(pid_t pid, int *status, \
				    int options, struct rusage *rusage); }
450	STD	RUMP	{ int|sys|50|mknod(const char *path, mode_t mode, \
			    dev_t dev); }
451	STD	RUMP	{ int|sys|50|fhstat(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
; 452 only ever appeared in 5.99.x and can be reused after netbsd-7
452	OBSOL		5.99 quotactl
453	STD	RUMP	{ int|sys||pipe2(int *fildes, int flags); }
454	COMPAT_100 MODULAR compat_100 RUMP \
			{ int|sys||dup3(int from, int to, int flags); }
455	STD	RUMP	{ int|sys||kqueue1(int flags); }
456	STD	RUMP	{ int|sys||paccept(int s, struct sockaddr *name, \
			    socklen_t *anamelen, const sigset_t *mask, \
			    int flags); }
457	STD	RUMP	{ int|sys||linkat(int fd1, const char *name1, \
			    int fd2, const char *name2, int flags); }
458	STD	RUMP	{ int|sys||renameat(int fromfd, const char *from, \
			    int tofd, const char *to); }
459	STD	RUMP	{ int|sys||mkfifoat(int fd, const char *path, \
			    mode_t mode); }
460	STD	RUMP	{ int|sys||mknodat(int fd, const char *path, \
			    mode_t mode, int PAD, dev_t dev); }
461	STD	RUMP	{ int|sys||mkdirat(int fd, const char *path, \
			    mode_t mode); }
462	STD	RUMP	{ int|sys||faccessat(int fd, const char *path, \
			    int amode, int flag); }
463	STD	RUMP	{ int|sys||fchmodat(int fd, const char *path, \
			    mode_t mode, int flag); }
464	STD	RUMP	{ int|sys||fchownat(int fd, const char *path, \
			    uid_t owner, gid_t group, int flag); }
465	STD		{ int|sys||fexecve(int fd, \
			    char * const *argp, char * const *envp); }
466	STD	RUMP	{ int|sys||fstatat(int fd, const char *path, \
			    struct stat *buf, int flag); }
467	STD	RUMP	{ int|sys||utimensat(int fd, const char *path, \
			    const struct timespec *tptr, int flag); }
468	STD	RUMP	{ int|sys||openat(int fd, const char *path, \
			    int oflags, ... mode_t mode); }
469	STD	RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
			    char *buf, size_t bufsize); }
470	STD	RUMP	{ int|sys||symlinkat(const char *path1, int fd, \
			    const char *path2); }
471	STD	RUMP	{ int|sys||unlinkat(int fd, const char *path, \
			    int flag); }
472	STD	RUMP	{ int|sys||futimens(int fd, \
			    const struct timespec *tptr); }
473	STD	RUMP	{ int|sys||__quotactl(const char *path, \
			    struct quotactl_args *args); }
474	NOERR		{ int|sys||posix_spawn(pid_t *pid, const char *path, \
			    const struct posix_spawn_file_actions *file_actions, \
			    const struct posix_spawnattr *attrp, \
			    char *const *argv, char *const *envp); }
475	STD	RUMP	{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
			    unsigned int vlen, unsigned int flags, \
			    struct timespec *timeout); }
476	STD	RUMP	{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
			    unsigned int vlen, unsigned int flags); }
477	NOERR	RUMP	{ int|sys||clock_nanosleep(clockid_t clock_id, \
			    int flags, const struct timespec *rqtp, \
			    struct timespec *rmtp); }
478	STD		{ int|sys|60|_lwp_park(clockid_t clock_id, int flags, \
			    struct timespec *ts, lwpid_t unpark, \
			    const void *hint, const void *unparkhint); }
479	NOERR	RUMP	{ int|sys||posix_fallocate(int fd, int PAD, off_t pos, \
			    off_t len); }
480	STD	RUMP	{ int|sys||fdiscard(int fd, int PAD, off_t pos, \
			    off_t len); }
481	STD		{ int|sys||wait6(idtype_t idtype, id_t id, \
			    int *status, int options, struct wrusage *wru, \
			    siginfo_t *info); }
482	STD	RUMP	{ int|sys||clock_getcpuclockid2(idtype_t idtype, \
			    id_t id, clockid_t *clock_id); }
483	STD	RUMP	{ int|sys|90|getvfsstat(struct statvfs *buf, \
			    size_t bufsize, int flags); }
484	STD	RUMP	{ int|sys|90|statvfs1(const char *path, \
			    struct statvfs *buf, int flags); }
485	STD	RUMP	{ int|sys|90|fstatvfs1(int fd, \
			    struct statvfs *buf, int flags); }
486	STD	RUMP	{ int|sys|90|fhstatvfs1(const void *fhp, \
			    size_t fh_size, struct statvfs *buf, int flags); }
487	STD		{ int|sys||__acl_get_link(const char *path, \
			    acl_type_t type, struct acl *aclp); }
488	STD		{ int|sys||__acl_set_link(const char *path, \
			    acl_type_t type, struct acl *aclp); }
489	STD		{ int|sys||__acl_delete_link(const char *path, \
			    acl_type_t type); }
490	STD		{ int|sys||__acl_aclcheck_link(const char *path, \
			    acl_type_t type, struct acl *aclp); }
491	STD		{ int|sys||__acl_get_file(const char *path, \
			    acl_type_t type, struct acl *aclp); }
492	STD		{ int|sys||__acl_set_file(const char *path, \
			    acl_type_t type, struct acl *aclp); }
493	STD		{ int|sys||__acl_get_fd(int filedes, acl_type_t type, \
			     struct acl *aclp); }
494	STD		{ int|sys||__acl_set_fd(int filedes, acl_type_t type, \
			     struct acl *aclp); }
495	STD		{ int|sys||__acl_delete_file(const char *path, \
			    acl_type_t type); }
496	STD		{ int|sys||__acl_delete_fd(int filedes, \
			    acl_type_t type); }
497	STD		{ int|sys||__acl_aclcheck_file(const char *path, \
			    acl_type_t type, struct acl *aclp); }
498	STD		{ int|sys||__acl_aclcheck_fd(int filedes, \
			    acl_type_t type, struct acl *aclp); }
499	STD	RUMP	{ long|sys||lpathconf(const char *path, int name); }
500	STD		{ int|sys||memfd_create(const char *name, \
			    unsigned int flags); }
501	STD	RUMP	{ int|sys|100|kevent(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
			    const struct timespec *timeout); }
502	STD		{ int|sys||epoll_create1(int flags); }
503	STD		{ int|sys||epoll_ctl(int epfd, int op, int fd, \
			    struct epoll_event *event); }
504	STD		{ int|sys||epoll_pwait2(int epfd, \
			    struct epoll_event *events, int maxevents, \
			    const struct timespec *timeout, \
			    const sigset_t *sigmask); }
505	STD	RUMP	{ int|sys|100|dup3(int from, int to, int flags); }
506	STD MODULAR sysv_ipc { int|sys||semtimedop(int semid, \
			    struct sembuf *sops, size_t nsops, \
			    struct timespec *timeout); }
@


1.315
log
@New syscall requires SYSVSEM build option.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.314 2024/10/03 16:50:52 christos Exp $
d1068 1
a1068 2
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
506	STD 		{ int|sys||semtimedop(int semid, \
a1070 1
#endif
@


1.314
log
@Add semtimedop GSoC 2024 (Shivraj Jamgade)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.313 2024/05/20 01:30:34 christos Exp $
d1068 1
d1072 1
@


1.313
log
@Rename dup3110 to dup3100 to match historical practice for NetBSD-11,
because we already have kevent100. Fix compat_dup3 to belong in compat_100
not compat_110.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.312 2024/05/19 22:25:48 christos Exp $
d1068 3
@


1.313.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.316 2024/10/09 16:27:28 christos Exp $
a1067 3
506	STD MODULAR sysv_ipc { int|sys||semtimedop(int semid, \
			    struct sembuf *sops, size_t nsops, \
			    struct timespec *timeout); }
@


1.312
log
@version dup3
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.311 2023/07/28 18:19:01 christos Exp $
d957 1
a957 1
454	COMPAT_110 MODULAR compat_110 RUMP \
d1067 1
a1067 1
505	STD	RUMP	{ int|sys|110|dup3(int from, int to, int flags); }
@


1.311
log
@Add epoll(2) from Theodore Preduta as part of GSoC 2023
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.310 2023/07/10 02:33:04 christos Exp $
d957 2
a958 1
454	STD	RUMP	{ int|sys||dup3(int from, int to, int flags); }
d1067 1
@


1.310
log
@Add memfd_create(2) from GSoC 2023 by Theodore Preduta
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.309 2021/11/01 05:07:17 thorpej Exp $
d708 2
a709 2
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
d915 4
a918 3
435	STD	RUMP	{ int|sys|50|kevent(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
d1055 11
@


1.309
log
@Use "stack_t" instead of "struct sigaltstack", as the former is the
newer standardized name.  NFC.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.308 2021/09/19 15:51:27 thorpej Exp $
d1052 2
@


1.308
log
@Add native implementations of eventfd(2) and timerfd(2), compatible with
the Linux interfaces of the same name.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp $
d594 2
a595 3
281	STD		{ int|sys|14|sigaltstack( \
			    const struct sigaltstack *nss, \
			    struct sigaltstack *oss); }
@


1.307
log
@PR/55777: Ruslan Nikolaev: Make clock_getcpuclockid2 accessible from rump
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.306 2020/08/14 00:53:16 riastradh Exp $
d401 7
a407 3
177	UNIMPL
178	UNIMPL
179	UNIMPL
d572 1
a572 1
267	UNIMPL
@


1.306
log
@New system call getrandom() compatible with Linux and others.

Three ways to call:

getrandom(p, n, 0)              Blocks at boot until full entropy.
                                Returns up to n bytes at p; guarantees
                                up to 256 bytes even if interrupted
                                after blocking.  getrandom(0,0,0)
                                serves as an entropy barrier: return
                                only after system has full entropy.

getrandom(p, n, GRND_INSECURE)  Never blocks.  Guarantees up to 256
                                bytes even if interrupted.  Equivalent
                                to /dev/urandom.  Safe only after
                                successful getrandom(...,0),
                                getrandom(...,GRND_RANDOM), or read
                                from /dev/random.

getrandom(p, n, GRND_RANDOM)    May block at any time.  Returns up to n
                                bytes at p, but no guarantees about how
                                many -- may return as short as 1 byte.
                                Equivalent to /dev/random.  Legacy.
                                Provided only for source compatibility
                                with Linux.

Can also use flags|GRND_NONBLOCK to fail with EWOULDBLOCK/EAGAIN
without producing any output instead of blocking.

- The combination GRND_INSECURE|GRND_NONBLOCK is the same as
  GRND_INSECURE, since GRND_INSECURE never blocks anyway.

- The combinations GRND_INSECURE|GRND_RANDOM and
  GRND_INSECURE|GRND_RANDOM|GRND_NONBLOCK are nonsensical and fail
  with EINVAL.

As proposed on tech-userlevel, tech-crypto, tech-security, and
tech-kern, and subsequently adopted by core (minus the getentropy part
of the proposal, because other operating systems and participants in
the discussion couldn't come to an agreement about getentropy and
blocking semantics):

https://mail-index.netbsd.org/tech-userlevel/2020/05/02/msg012333.html
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.305 2020/05/16 18:31:50 christos Exp $
d1014 1
a1014 1
482	STD		{ int|sys||clock_getcpuclockid2(idtype_t idtype, \
@


1.306.2.1
log
@Sync w/ HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp $
d1014 1
a1014 1
482	STD	RUMP	{ int|sys||clock_getcpuclockid2(idtype_t idtype, \
@


1.306.2.2
log
@Native implementation of the Linux eventfd(2) API.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.306.2.1 2020/12/14 14:38:14 thorpej Exp $
d568 1
a568 1
267	STD		{ int|sys||eventfd(unsigned int val, int flags); }
@


1.306.2.3
log
@Native implementation of the Linux timerfd API.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp $
d401 3
a403 7
177	STD		{ int|sys||timerfd_create(clockid_t clock_id, \
			    int flags); }
178	STD		{ int|sys||timerfd_settime(int fd, int flags, \
			    const struct itimerspec *new_value, \
			    struct itimerspec *old_value); }
179	STD		{ int|sys||timerfd_gettime(int fd, \
			    struct itimerspec *curr_value); }
@


1.305
log
@Add ACL support for FFS. From FreeBSD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.304 2020/04/26 19:15:55 thorpej Exp $
d219 2
a220 1
91	UNIMPL		getdopt
@


1.304
log
@Due to a collision with another upcoming change, relocate the futex calls
to the 3 free slots at 166-168.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.303 2020/04/26 18:53:33 thorpej Exp $
d62 1
d1023 25
@


1.303
log
@Add a NetBSD native futex implementation, mostly written by riastradh@@.
Map the COMPAT_LINUX futex calls to the native ones.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.302 2020/04/22 21:22:21 thorpej Exp $
d355 7
a361 3
166	UNIMPL
167	UNIMPL
168	UNIMPL
a1021 7
487	STD		{ int|sys||__futex(int *uaddr, int op, int val, \
			    const struct timespec *timeout, \
			    int *uaddr2, int val2, int val3); }
488	STD		{ int|sys||__futex_set_robust_list(void *head, \
			    size_t len); }
489	STD		{ int|sys||__futex_get_robust_list(lwpid_t lwpid, \
			    void **headp, size_t *lenp); }
@


1.302
log
@Remove _lwp_gettid(2) system call.  This problem is going to be solved
another way.  (Note: this call was never exposed in libc, so we can just
recycle the syscall number.)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.301 2020/04/12 22:06:17 christos Exp $
d1018 7
@


1.301
log
@put back the MODULAR attributes accidentally removed.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.300 2020/04/12 13:37:12 christos Exp $
d664 2
a665 2
326	STD		{ lwptid_t|sys||_lwp_gettid(void); }
; Syscalls 327-339 reserved for LWP syscalls.
@


1.300
log
@change ' \t' to '\t'
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.299 2020/04/12 13:30:16 christos Exp $
d334 1
a334 1
155	STD	RUMP  { int|sys||nfssvc(int flag, void *argp); }
d519 2
a520 2
247	STD	RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD	RUMP { int|sys||_ksem_open(const char *name, int oflag, \
d522 6
a527 6
249	STD	RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD	RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD	RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD	RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD	RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD	RUMP { int|sys||_ksem_getvalue(intptr_t id, \
d529 2
a530 2
255	STD	RUMP { int|sys||_ksem_destroy(intptr_t id); }
256	STD	RUMP { int|sys||_ksem_timedwait(intptr_t id, \
d822 1
a822 1
399	STD	RUMP	\
d824 1
a824 1
400	STD	RUMP	\
d826 1
a826 1
401	STD	RUMP	\
d828 1
a828 1
402	STD	RUMP	\
d830 1
a830 1
403	STD	RUMP	\
d835 1
a835 1
405	STD	RUMP	\
d837 1
a837 1
406	STD	RUMP	\
d915 1
a915 1
438	STD	RUMP { int|sys|50|aio_suspend( \
@


1.299
log
@Change STD[:random-whitespace:]RUMP to STD\tRUMP
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.298 2020/04/04 20:20:12 thorpej Exp $
d73 2
a74 2
1	STD 		{ void|sys||exit(int rval); }
2	STD 		{ int|sys||fork(void); }
d95 1
a95 1
17	STD 		{ int|sys||obreak(char *nsize); } break
d101 1
a101 1
20	NOERR 	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d107 3
a109 3
24	NOERR 	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	NOERR 	RUMP	{ uid_t|sys||geteuid(void); }
26	STD 	MODULAR ptrace	\
d128 2
a129 2
36	NOERR 	 RUMP	{ void|sys||sync(void); }
37	STD 		{ int|sys||kill(pid_t pid, int signum); }
d132 1
a132 1
39	NOERR 	RUMP	{ pid_t|sys||getppid(void); }
d138 2
a139 2
43	NOERR 	RUMP	{ gid_t|sys||getegid(void); }
44	STD 		{ int|sys||profil(char *samples, size_t size, \
d146 1
a146 1
47	NOERR 	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d150 2
a151 2
50	STD	RUMP 	{ int|sys||__setlogin(const char *namebuf); }
51	STD 		{ int|sys||acct(const char *path); }
d164 1
a164 1
59	STD 		{ int|sys||execve(const char *path, \
d177 1
a177 1
66	STD 		{ int|sys||vfork(void); }
d180 2
a181 2
69	OBSOL 		sbrk
70	OBSOL 		sstk
d185 3
a187 3
72	STD 		{ int|sys||ovadvise(int anom); } vadvise
73	STD 		{ int|sys||munmap(void *addr, size_t len); }
74	STD 		{ int|sys||mprotect(void *addr, size_t len, \
d189 1
a189 1
75	STD 		{ int|sys||madvise(void *addr, size_t len, \
d193 1
a193 1
78	STD 		{ int|sys||mincore(void *addr, size_t len, \
d224 2
a225 2
95	STD	RUMP 	{ int|sys||fsync(int fd); }
96	STD 		{ int|sys||setpriority(int which, id_t who, int prio); }
d233 1
a233 1
100	STD 		{ int|sys||getpriority(int which, id_t who); }
d318 1
a318 1
147	STD	RUMP 	{ int|sys||setsid(void); }
d354 1
a354 1
165	STD 		{ int|sys||sysarch(int op, void *parms); }
d391 1
a391 1
176	STD 		{ int|sys||ntp_adjtime(struct timex *tp); }
d428 1
a428 1
197	STD 		{ void *|sys||mmap(void *addr, size_t len, int prot, \
d437 1
a437 1
202	STD	RUMP 	{ int|sys||__sysctl(const int *name, u_int namelen, \
d440 3
a442 3
203	STD 		{ int|sys||mlock(const void *addr, size_t len); }
204	STD 		{ int|sys||munlock(const void *addr, size_t len); }
205	STD 		{ int|sys||undelete(const char *path); }
d511 2
a512 2
242	STD 		{ int|sys||mlockall(int flags); }
243	STD 		{ int|sys||munlockall(void); }
d518 1
a518 1
246	STD	RUMP 	{ int|sys||modctl(int cmd, void *arg); }
d567 1
a567 1
271	STD 		{ int|sys||swapctl(int cmd, void *arg, int misc); }
d570 1
a570 1
273	STD 		{ int|sys||minherit(void *addr, size_t len, \
d577 1
a577 1
277	STD 		{ int|sys|13|msync(void *addr, size_t len, int flags); }
d584 1
a584 1
281	STD 		{ int|sys|14|sigaltstack( \
d587 1
a587 1
282	STD 		{ int|sys|14|vfork(void); }
d595 1
a595 1
287	STD 		{ pid_t|sys||__clone(int flags, void *stack); }
d607 2
a608 2
292	STD 		{ int|sys|14|sigpending(sigset_t *set); }
293	STD 		{ int|sys|14|sigprocmask(int how, \
d611 1
a611 1
294	STD 		{ int|sys|14|sigsuspend(const sigset_t *set); }
d633 1
a633 1
305	NOERR 	RUMP	{ int|sys||issetugid(void); }
d636 3
a638 3
307	STD 		{ int|sys||getcontext(struct __ucontext *ucp); }
308	STD 		{ int|sys||setcontext(const struct __ucontext *ucp); }
309	STD 		{ int|sys||_lwp_create(const struct __ucontext *ucp, \
d640 3
a642 3
310	STD 		{ int|sys||_lwp_exit(void); }
311	STD 		{ lwpid_t|sys||_lwp_self(void); }
312	STD 		{ int|sys||_lwp_wait(lwpid_t wait_for, \
d644 7
a650 7
313	STD 		{ int|sys||_lwp_suspend(lwpid_t target); }
314	STD 		{ int|sys||_lwp_continue(lwpid_t target); }
315	STD 		{ int|sys||_lwp_wakeup(lwpid_t target); }
316	STD 		{ void *|sys||_lwp_getprivate(void); }
317	STD 		{ void|sys||_lwp_setprivate(void *ptr); }
318	STD 		{ int|sys||_lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int|sys||_lwp_detach(lwpid_t target); }
d655 2
a656 2
321	STD 		{ int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \
d658 1
a658 1
323	STD 		{ int|sys||_lwp_setname(lwpid_t target, \
d660 1
a660 1
324	STD 		{ int|sys||_lwp_getname(lwpid_t target, \
d662 1
a662 1
325	STD 		{ int|sys||_lwp_ctl(int features, \
d671 1
a671 1
		 	{ int|sys||sa_register(void *newv, void **oldv, \
d683 1
a683 1
336	OBSOL 		sys_sa_unblockyield
d690 1
a690 1
340	STD 		{ int|sys||__sigaction_sigtramp(int signum, \
d696 1
a696 1
343	STD 		{ int|sys||rasctl(void *addr, size_t len, int op); }
d704 1
a704 1
346	STD 		{ int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \
d706 1
a706 1
347	STD 		{ int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \
d708 1
a708 1
348	STD 		{ int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \
d710 1
a710 1
349	STD 		{ int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \
d712 1
a712 1
350	STD 		{ int|sys||sched_yield(void); }
d719 1
a719 1
355	STD 		{ int|sys||uuidgen(struct uuid *store, int count); }
d848 3
a850 2
411	STD 		{ void *|sys||mremap(void *old_address, size_t old_size, \
			    void *new_address, size_t new_size, int flags); }
d853 3
a855 3
412	STD 		{ int|sys||pset_create(psetid_t *psid); }
413	STD 		{ int|sys||pset_destroy(psetid_t psid); }
414	STD 		{ int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \
d857 1
a857 1
415	STD 		{ int|sys||_pset_bind(idtype_t idtype, id_t first_id, \
d859 1
a859 1
416	NOERR RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
d875 1
a875 1
424	STD	RUMP 	{ int|sys|50|lutimes(const char *path, \
d890 1
a890 1
431	STD 		{ int|sys|50|__sigtimedwait(const sigset_t *set, \
d927 1
a927 1
445	STD 		{ int|sys|50|getrusage(int who, struct rusage *rusage); }
d938 1
a938 1
449	STD 		{ int|sys|50|wait4(pid_t pid, int *status, \
d942 1
a942 1
451	STD	RUMP 	{ int|sys|50|fhstat(const void *fhp, \
d968 1
a968 1
465	STD  		{ int|sys||fexecve(int fd, \
d998 1
a998 1
478	STD 		{ int|sys|60|_lwp_park(clockid_t clock_id, int flags, \
d1005 1
a1005 1
481	STD 		{ int|sys||wait6(idtype_t idtype, id_t id, \
@


1.298
log
@Add support for lazily generating a "global thread ID" for a LWP.  This
identifier uniquely identifies an LWP across the entire system, and will
be used in future improvements in user-space synchronization primitives.

(Test disabled and libc stub not included intentionally so as to avoid
multiple libc version bumps.)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.297 2020/01/21 02:37:16 pgoyette Exp $
d75 2
a76 2
3	STD 	 RUMP	{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t|sys||write(int fd, const void *buf, \
d78 1
a78 1
5	STD 	 RUMP	{ int|sys||open(const char *path, \
d80 1
a80 1
6	STD	 RUMP	{ int|sys||close(int fd); }
d85 2
a86 2
9	STD 	 RUMP	{ int|sys||link(const char *path, const char *link); }
10	STD 	 RUMP	{ int|sys||unlink(const char *path); }
d88 2
a89 2
12	STD 	 RUMP	{ int|sys||chdir(const char *path); }
13	STD 	 RUMP	{ int|sys||fchdir(int fd); }
d92 2
a93 2
15	STD 	 RUMP	{ int|sys||chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int|sys||chown(const char *path, uid_t uid, \
d105 2
a106 2
22	STD 	RUMP	{ int|sys||unmount(const char *path, int flags); }
23	STD 	RUMP	{ int|sys||setuid(uid_t uid); }
d112 1
a112 1
27	STD 	RUMP	{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD 	RUMP	{ ssize_t|sys||sendmsg(int s, \
d116 1
a116 1
29	STD 	RUMP	{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
d125 3
a127 3
33	STD 	RUMP	{ int|sys||access(const char *path, int flags); }
34	STD 	 RUMP	{ int|sys||chflags(const char *path, u_long flags); }
35	STD 	RUMP	{ int|sys||fchflags(int fd, u_long flags); }
d136 2
a137 2
41	STD 	RUMP	{ int|sys||dup(int fd); }
42	STD 	RUMP	{ int|sys||pipe(void); }
d141 1
a141 1
45	STD 	RUMP	{ int|sys||ktrace(const char *fname, int ops, \
d149 2
a150 2
49	STD 	RUMP	{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD 	RUMP 	{ int|sys||__setlogin(const char *namebuf); }
d159 2
a160 2
56	STD 	 RUMP	{ int|sys||revoke(const char *path); }
57	STD 	 RUMP	{ int|sys||symlink(const char *path, \
d162 1
a162 1
58	STD 	 RUMP	{ ssize_t|sys||readlink(const char *path, char *buf, \
d166 2
a167 2
60	STD 	 RUMP	{ mode_t|sys||umask(mode_t newmask); }
61	STD 	 RUMP	{ int|sys||chroot(const char *path); }
d195 1
a195 1
79	STD 	RUMP	{ int|sys||getgroups(int gidsetsize, \
d197 1
a197 1
80	STD 	RUMP	{ int|sys||setgroups(int gidsetsize, \
d199 2
a200 2
81	STD 	RUMP	{ int|sys||getpgrp(void); }
82	STD 	RUMP	{ int|sys||setpgid(pid_t pid, pid_t pgid); }
d217 1
a217 1
90	STD 	 RUMP	{ int|sys||dup2(int from, int to); }
d268 1
a268 1
120	STD 	RUMP	{ ssize_t|sys||readv(int fd, \
d270 1
a270 1
121	STD 	RUMP	{ ssize_t|sys||writev(int fd, \
d275 2
a276 2
123	STD 	 RUMP	{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD 	 RUMP	{ int|sys||fchmod(int fd, mode_t mode); }
d281 3
a283 3
126	STD 	RUMP	{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD 	RUMP	{ int|sys||setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int|sys||rename(const char *from, const char *to); }
d288 3
a290 3
131	STD 	 RUMP	{ int|sys||flock(int fd, int how); }
132	STD 	 RUMP	{ int|sys||mkfifo(const char *path, mode_t mode); }
133	STD 	 RUMP	{ ssize_t|sys||sendto(int s, const void *buf, \
d293 2
a294 2
134	STD	 RUMP	{ int|sys||shutdown(int s, int how); }
135	STD	 RUMP	{ int|sys||socketpair(int domain, int type, \
d296 2
a297 2
136	STD 	 RUMP	{ int|sys||mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int|sys||rmdir(const char *path); }
d318 1
a318 1
147	STD 	RUMP 	{ int|sys||setsid(void); }
d334 1
a334 1
155	STD MODULAR nfsserver RUMP  { int|sys||nfssvc(int flag, void *argp); }
d383 1
a383 1
173	STD 	 RUMP	{ ssize_t|sys||pread(int fd, void *buf, \
d385 1
a385 1
174	STD 	 RUMP	{ ssize_t|sys||pwrite(int fd, const void *buf, \
d401 3
a403 3
181	STD 	RUMP	{ int|sys||setgid(gid_t gid); }
182	STD 	RUMP	{ int|sys||setegid(gid_t egid); }
183	STD 	RUMP	{ int|sys||seteuid(uid_t euid); }
d417 2
a418 2
191	STD 	RUMP	{ long|sys||pathconf(const char *path, int name); }
192	STD 	RUMP	{ long|sys||fpathconf(int fd, int name); }
d421 1
a421 1
194	STD 	RUMP	{ int|sys||getrlimit(int which, \
d423 1
a423 1
195	STD 	RUMP	{ int|sys||setrlimit(int which, \
d432 1
a432 1
199	STD 	 RUMP	{ off_t|sys||lseek(int fd, int PAD, off_t offset, \
d434 1
a434 1
200	STD 	 RUMP	{ int|sys||truncate(const char *path, int PAD, \
d436 2
a437 2
201	STD 	 RUMP	{ int|sys||ftruncate(int fd, int PAD, off_t length); }
202	STD	 RUMP 	{ int|sys||__sysctl(const int *name, u_int namelen, \
d445 3
a447 3
207	STD 	 RUMP	{ pid_t|sys||getpgid(pid_t pid); }
208	STD	 RUMP	{ int|sys||reboot(int opt, char *bootstr); }
209	STD 	 RUMP	{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d495 1
a495 1
235	STD  RUMP	{ int|sys||timer_create(clockid_t clock_id, \
d497 1
a497 1
236	STD  RUMP	{ int|sys||timer_delete(timer_t timerid); }
d503 1
a503 1
239	STD  RUMP	{ int|sys||timer_getoverrun(timer_t timerid); }
d510 1
a510 1
241	STD 	 RUMP	{ int|sys||fdatasync(int fd); }
d518 3
a520 3
246	STD RUMP 	{ int|sys||modctl(int cmd, void *arg); }
247	STD MODULAR ksem RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR ksem RUMP { int|sys||_ksem_open(const char *name, int oflag, \
d522 6
a527 6
249	STD MODULAR ksem RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR ksem RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR ksem RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR ksem RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR ksem RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR ksem RUMP { int|sys||_ksem_getvalue(intptr_t id, \
d529 2
a530 2
255	STD MODULAR ksem RUMP { int|sys||_ksem_destroy(intptr_t id); }
256	STD MODULAR ksem RUMP { int|sys||_ksem_timedwait(intptr_t id, \
d565 1
a565 1
270	STD 	 RUMP	{ int|sys||__posix_rename(const char *from, \
d572 2
a573 2
274	STD 	 RUMP	{ int|sys||lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int|sys||lchown(const char *path, uid_t uid, \
d588 1
a588 1
283	STD 	RUMP	{ int|sys||__posix_chown(const char *path, uid_t uid, \
d590 1
a590 1
284	STD 	RUMP	{ int|sys||__posix_fchown(int fd, uid_t uid, \
d592 1
a592 1
285	STD 	RUMP	{ int|sys||__posix_lchown(const char *path, uid_t uid, \
d594 1
a594 1
286	STD 	RUMP	{ pid_t|sys||getsid(pid_t pid); }
d596 1
a596 1
288	STD 	RUMP	{ int|sys||fktrace(int fd, int ops, \
d598 1
a598 1
289	STD 	RUMP	{ ssize_t|sys||preadv(int fd, \
d601 1
a601 1
290	STD 	RUMP	{ ssize_t|sys||pwritev(int fd, \
d614 2
a615 2
296	STD 	 RUMP	{ int|sys||__getcwd(char *bufp, size_t length); }
297	STD 	 RUMP	{ int|sys||fchroot(int fd); }
d632 1
a632 1
304	STD 	RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
d730 1
a730 1
360	STD 	RUMP	{ int|sys||extattrctl(const char *path, int cmd, \
d733 1
a733 1
361	STD 	RUMP	{ int|sys||extattr_set_file(const char *path, \
d736 1
a736 1
362	STD 	RUMP	{ ssize_t|sys||extattr_get_file(const char *path, \
d739 1
a739 1
363	STD 	RUMP	{ int|sys||extattr_delete_file(const char *path, \
d741 1
a741 1
364	STD 	RUMP	{ int|sys||extattr_set_fd(int fd, \
d744 1
a744 1
365	STD 	RUMP	{ ssize_t|sys||extattr_get_fd(int fd, \
d747 1
a747 1
366	STD 	RUMP	{ int|sys||extattr_delete_fd(int fd, \
d749 1
a749 1
367	STD 	RUMP	{ int|sys||extattr_set_link(const char *path, \
d752 1
a752 1
368	STD 	RUMP	{ ssize_t|sys||extattr_get_link(const char *path, \
d755 1
a755 1
369	STD 	RUMP	{ int|sys||extattr_delete_link(const char *path, \
d757 1
a757 1
370	STD 	RUMP	{ ssize_t|sys||extattr_list_fd(int fd, \
d759 1
a759 1
371	STD 	RUMP	{ ssize_t|sys||extattr_list_file(const char *path, \
d761 1
a761 1
372	STD 	RUMP	{ ssize_t|sys||extattr_list_link(const char *path, \
d770 1
a770 1
375	STD 	RUMP	{ int|sys||setxattr(const char *path, \
d773 1
a773 1
376	STD 	RUMP	{ int|sys||lsetxattr(const char *path, \
d776 1
a776 1
377	STD 	RUMP	{ int|sys||fsetxattr(int fd, \
d779 1
a779 1
378	STD 	RUMP	{ int|sys||getxattr(const char *path, \
d781 1
a781 1
379	STD 	RUMP	{ int|sys||lgetxattr(const char *path, \
d783 1
a783 1
380	STD 	RUMP	{ int|sys||fgetxattr(int fd, \
d785 1
a785 1
381	STD 	RUMP	{ int|sys||listxattr(const char *path, \
d787 1
a787 1
382	STD 	RUMP	{ int|sys||llistxattr(const char *path, \
d789 1
a789 1
383	STD 	RUMP	{ int|sys||flistxattr(int fd, \
d791 1
a791 1
384	STD 	RUMP	{ int|sys||removexattr(const char *path, \
d793 1
a793 1
385	STD 	RUMP	{ int|sys||lremovexattr(const char *path, \
d795 1
a795 1
386	STD 	RUMP	{ int|sys||fremovexattr(int fd, \
d803 1
a803 1
390	STD 	RUMP	{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d810 2
a811 2
394	STD	 RUMP	{ int|sys|30|socket(int domain, int type, int protocol); }
395	STD 	 RUMP	{ int|sys|30|getfh(const char *fname, void *fhp, \
d813 1
a813 1
396	STD 	 RUMP	{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d822 1
a822 1
399	STD MODULAR aio RUMP	\
d824 1
a824 1
400	STD MODULAR aio RUMP	\
d826 1
a826 1
401	STD MODULAR aio RUMP	\
d828 1
a828 1
402	STD MODULAR aio RUMP	\
d830 1
a830 1
403	STD MODULAR aio RUMP	\
d835 1
a835 1
405	STD MODULAR aio RUMP	\
d837 1
a837 1
406	STD MODULAR aio RUMP	\
d845 1
a845 1
410	STD  RUMP	{ int|sys|50|mount(const char *type, \
d860 1
a860 1
417	STD  RUMP	{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
d862 1
a862 1
418	STD  RUMP	{ int|sys|50|gettimeofday(struct timeval *tp, \
d864 1
a864 1
419	STD  RUMP	{ int|sys|50|settimeofday(const struct timeval *tv, \
d866 1
a866 1
420	STD  RUMP	{ int|sys|50|utimes(const char *path, \
d868 1
a868 1
421	STD  RUMP	{ int|sys|50|adjtime(const struct timeval *delta, \
d872 1
a872 1
423	STD  RUMP	{ int|sys|50|futimes(int fd, \
d874 1
a874 1
424	STD  RUMP 	{ int|sys|50|lutimes(const char *path, \
d876 1
a876 1
425	STD  RUMP	{ int|sys|50|setitimer(int which, \
d879 1
a879 1
426	STD  RUMP	{ int|sys|50|getitimer(int which, \
d881 1
a881 1
427	STD  RUMP	{ int|sys|50|clock_gettime(clockid_t clock_id, \
d883 1
a883 1
428	STD  RUMP	{ int|sys|50|clock_settime(clockid_t clock_id, \
d885 1
a885 1
429	STD  RUMP	{ int|sys|50|clock_getres(clockid_t clock_id, \
d887 1
a887 1
430	STD  RUMP	{ int|sys|50|nanosleep(const struct timespec *rqtp, \
d909 1
a909 1
436	STD 	RUMP	{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
d912 1
a912 1
437	STD 	RUMP	{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
d914 1
a914 1
438	STD MODULAR aio RUMP { int|sys|50|aio_suspend( \
d917 3
a919 3
439	STD  RUMP	{ int|sys|50|stat(const char *path, struct stat *ub); }
440	STD  RUMP	{ int|sys|50|fstat(int fd, struct stat *sb); }
441	STD  RUMP	{ int|sys|50|lstat(const char *path, struct stat *ub); }
d927 1
a927 1
446	STD  RUMP	{ int|sys|50|timer_settime(timer_t timerid, \
d930 1
a930 1
447	STD  RUMP	{ int|sys|50|timer_gettime(timer_t timerid, struct \
d939 1
a939 1
450	STD  RUMP	{ int|sys|50|mknod(const char *path, mode_t mode, \
d941 1
a941 1
451	STD  RUMP 	{ int|sys|50|fhstat(const void *fhp, \
d945 4
a948 4
453	STD  RUMP	{ int|sys||pipe2(int *fildes, int flags); }
454	STD  RUMP	{ int|sys||dup3(int from, int to, int flags); }
455	STD  RUMP	{ int|sys||kqueue1(int flags); }
456	STD  RUMP	{ int|sys||paccept(int s, struct sockaddr *name, \
d951 1
a951 1
457	STD  RUMP	{ int|sys||linkat(int fd1, const char *name1, \
d953 1
a953 1
458	STD  RUMP	{ int|sys||renameat(int fromfd, const char *from, \
d955 1
a955 1
459	STD  RUMP	{ int|sys||mkfifoat(int fd, const char *path, \
d957 1
a957 1
460	STD  RUMP	{ int|sys||mknodat(int fd, const char *path, \
d959 1
a959 1
461	STD  RUMP	{ int|sys||mkdirat(int fd, const char *path, \
d961 1
a961 1
462	STD  RUMP	{ int|sys||faccessat(int fd, const char *path, \
d963 1
a963 1
463	STD  RUMP	{ int|sys||fchmodat(int fd, const char *path, \
d965 1
a965 1
464	STD  RUMP	{ int|sys||fchownat(int fd, const char *path, \
d969 1
a969 1
466	STD  RUMP	{ int|sys||fstatat(int fd, const char *path, \
d971 1
a971 1
467	STD  RUMP	{ int|sys||utimensat(int fd, const char *path, \
d973 1
a973 1
468	STD  RUMP	{ int|sys||openat(int fd, const char *path, \
d975 1
a975 1
469	STD  RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
d977 1
a977 1
470	STD  RUMP	{ int|sys||symlinkat(const char *path1, int fd, \
d979 1
a979 1
471	STD  RUMP	{ int|sys||unlinkat(int fd, const char *path, \
d981 1
a981 1
472	STD  RUMP	{ int|sys||futimens(int fd, \
d983 1
a983 1
473	STD  RUMP	{ int|sys||__quotactl(const char *path, \
d989 1
a989 1
475	STD  RUMP	{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
d992 1
a992 1
476	STD  RUMP	{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
d1002 1
a1002 1
480	STD  RUMP	{ int|sys||fdiscard(int fd, int PAD, off_t pos, \
d1009 1
a1009 1
483	STD RUMP	{ int|sys|90|getvfsstat(struct statvfs *buf, \
d1011 1
a1011 1
484	STD RUMP	{ int|sys|90|statvfs1(const char *path, \
d1013 1
a1013 1
485	STD RUMP	{ int|sys|90|fstatvfs1(int fd, \
d1015 1
a1015 1
486	STD RUMP	{ int|sys|90|fhstatvfs1(const void *fhp, \
@


1.298.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.301 2020/04/12 22:06:17 christos Exp $
d73 4
a76 4
1	STD		{ void|sys||exit(int rval); }
2	STD		{ int|sys||fork(void); }
3	STD	RUMP	{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
4	STD	RUMP	{ ssize_t|sys||write(int fd, const void *buf, \
d78 1
a78 1
5	STD	RUMP	{ int|sys||open(const char *path, \
d80 1
a80 1
6	STD	RUMP	{ int|sys||close(int fd); }
d85 2
a86 2
9	STD	RUMP	{ int|sys||link(const char *path, const char *link); }
10	STD	RUMP	{ int|sys||unlink(const char *path); }
d88 2
a89 2
12	STD	RUMP	{ int|sys||chdir(const char *path); }
13	STD	RUMP	{ int|sys||fchdir(int fd); }
d92 2
a93 2
15	STD	RUMP	{ int|sys||chmod(const char *path, mode_t mode); }
16	STD	RUMP	{ int|sys||chown(const char *path, uid_t uid, \
d95 1
a95 1
17	STD		{ int|sys||obreak(char *nsize); } break
d101 1
a101 1
20	NOERR	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d105 5
a109 5
22	STD	RUMP	{ int|sys||unmount(const char *path, int flags); }
23	STD	RUMP	{ int|sys||setuid(uid_t uid); }
24	NOERR	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	NOERR	RUMP	{ uid_t|sys||geteuid(void); }
26	STD	MODULAR ptrace	\
d112 1
a112 1
27	STD	RUMP	{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD	RUMP	{ ssize_t|sys||sendmsg(int s, \
d116 1
a116 1
29	STD	RUMP	{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
d125 5
a129 5
33	STD	RUMP	{ int|sys||access(const char *path, int flags); }
34	STD	RUMP	{ int|sys||chflags(const char *path, u_long flags); }
35	STD	RUMP	{ int|sys||fchflags(int fd, u_long flags); }
36	NOERR	RUMP	{ void|sys||sync(void); }
37	STD		{ int|sys||kill(pid_t pid, int signum); }
d132 1
a132 1
39	NOERR	RUMP	{ pid_t|sys||getppid(void); }
d136 4
a139 4
41	STD	RUMP	{ int|sys||dup(int fd); }
42	STD	RUMP	{ int|sys||pipe(void); }
43	NOERR	RUMP	{ gid_t|sys||getegid(void); }
44	STD		{ int|sys||profil(char *samples, size_t size, \
d141 1
a141 1
45	STD	RUMP	{ int|sys||ktrace(const char *fname, int ops, \
d146 1
a146 1
47	NOERR	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d149 3
a151 3
49	STD	RUMP	{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD	RUMP	{ int|sys||__setlogin(const char *namebuf); }
51	STD		{ int|sys||acct(const char *path); }
d159 2
a160 2
56	STD	RUMP	{ int|sys||revoke(const char *path); }
57	STD	RUMP	{ int|sys||symlink(const char *path, \
d162 1
a162 1
58	STD	RUMP	{ ssize_t|sys||readlink(const char *path, char *buf, \
d164 1
a164 1
59	STD		{ int|sys||execve(const char *path, \
d166 2
a167 2
60	STD	RUMP	{ mode_t|sys||umask(mode_t newmask); }
61	STD	RUMP	{ int|sys||chroot(const char *path); }
d177 1
a177 1
66	STD		{ int|sys||vfork(void); }
d180 2
a181 2
69	OBSOL		sbrk
70	OBSOL		sstk
d185 3
a187 3
72	STD		{ int|sys||ovadvise(int anom); } vadvise
73	STD		{ int|sys||munmap(void *addr, size_t len); }
74	STD		{ int|sys||mprotect(void *addr, size_t len, \
d189 1
a189 1
75	STD		{ int|sys||madvise(void *addr, size_t len, \
d193 1
a193 1
78	STD		{ int|sys||mincore(void *addr, size_t len, \
d195 1
a195 1
79	STD	RUMP	{ int|sys||getgroups(int gidsetsize, \
d197 1
a197 1
80	STD	RUMP	{ int|sys||setgroups(int gidsetsize, \
d199 2
a200 2
81	STD	RUMP	{ int|sys||getpgrp(void); }
82	STD	RUMP	{ int|sys||setpgid(pid_t pid, pid_t pgid); }
d217 1
a217 1
90	STD	RUMP	{ int|sys||dup2(int from, int to); }
d224 2
a225 2
95	STD	RUMP	{ int|sys||fsync(int fd); }
96	STD		{ int|sys||setpriority(int which, id_t who, int prio); }
d233 1
a233 1
100	STD		{ int|sys||getpriority(int which, id_t who); }
d268 1
a268 1
120	STD	RUMP	{ ssize_t|sys||readv(int fd, \
d270 1
a270 1
121	STD	RUMP	{ ssize_t|sys||writev(int fd, \
d275 2
a276 2
123	STD	RUMP	{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD	RUMP	{ int|sys||fchmod(int fd, mode_t mode); }
d281 3
a283 3
126	STD	RUMP	{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD	RUMP	{ int|sys||setregid(gid_t rgid, gid_t egid); }
128	STD	RUMP	{ int|sys||rename(const char *from, const char *to); }
d288 3
a290 3
131	STD	RUMP	{ int|sys||flock(int fd, int how); }
132	STD	RUMP	{ int|sys||mkfifo(const char *path, mode_t mode); }
133	STD	RUMP	{ ssize_t|sys||sendto(int s, const void *buf, \
d293 2
a294 2
134	STD	RUMP	{ int|sys||shutdown(int s, int how); }
135	STD	RUMP	{ int|sys||socketpair(int domain, int type, \
d296 2
a297 2
136	STD	RUMP	{ int|sys||mkdir(const char *path, mode_t mode); }
137	STD	RUMP	{ int|sys||rmdir(const char *path); }
d318 1
a318 1
147	STD	RUMP	{ int|sys||setsid(void); }
d354 1
a354 1
165	STD		{ int|sys||sysarch(int op, void *parms); }
d383 1
a383 1
173	STD	RUMP	{ ssize_t|sys||pread(int fd, void *buf, \
d385 1
a385 1
174	STD	RUMP	{ ssize_t|sys||pwrite(int fd, const void *buf, \
d391 1
a391 1
176	STD		{ int|sys||ntp_adjtime(struct timex *tp); }
d401 3
a403 3
181	STD	RUMP	{ int|sys||setgid(gid_t gid); }
182	STD	RUMP	{ int|sys||setegid(gid_t egid); }
183	STD	RUMP	{ int|sys||seteuid(uid_t euid); }
d417 2
a418 2
191	STD	RUMP	{ long|sys||pathconf(const char *path, int name); }
192	STD	RUMP	{ long|sys||fpathconf(int fd, int name); }
d421 1
a421 1
194	STD	RUMP	{ int|sys||getrlimit(int which, \
d423 1
a423 1
195	STD	RUMP	{ int|sys||setrlimit(int which, \
d428 1
a428 1
197	STD		{ void *|sys||mmap(void *addr, size_t len, int prot, \
d432 1
a432 1
199	STD	RUMP	{ off_t|sys||lseek(int fd, int PAD, off_t offset, \
d434 1
a434 1
200	STD	RUMP	{ int|sys||truncate(const char *path, int PAD, \
d436 2
a437 2
201	STD	RUMP	{ int|sys||ftruncate(int fd, int PAD, off_t length); }
202	STD	RUMP	{ int|sys||__sysctl(const int *name, u_int namelen, \
d440 3
a442 3
203	STD		{ int|sys||mlock(const void *addr, size_t len); }
204	STD		{ int|sys||munlock(const void *addr, size_t len); }
205	STD		{ int|sys||undelete(const char *path); }
d445 3
a447 3
207	STD	RUMP	{ pid_t|sys||getpgid(pid_t pid); }
208	STD	RUMP	{ int|sys||reboot(int opt, char *bootstr); }
209	STD	RUMP	{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d495 1
a495 1
235	STD	RUMP	{ int|sys||timer_create(clockid_t clock_id, \
d497 1
a497 1
236	STD	RUMP	{ int|sys||timer_delete(timer_t timerid); }
d503 1
a503 1
239	STD	RUMP	{ int|sys||timer_getoverrun(timer_t timerid); }
d510 3
a512 3
241	STD	RUMP	{ int|sys||fdatasync(int fd); }
242	STD		{ int|sys||mlockall(int flags); }
243	STD		{ int|sys||munlockall(void); }
d518 1
a518 1
246	STD	RUMP	{ int|sys||modctl(int cmd, void *arg); }
d565 1
a565 1
270	STD	RUMP	{ int|sys||__posix_rename(const char *from, \
d567 1
a567 1
271	STD		{ int|sys||swapctl(int cmd, void *arg, int misc); }
d570 1
a570 1
273	STD		{ int|sys||minherit(void *addr, size_t len, \
d572 2
a573 2
274	STD	RUMP	{ int|sys||lchmod(const char *path, mode_t mode); }
275	STD	RUMP	{ int|sys||lchown(const char *path, uid_t uid, \
d577 1
a577 1
277	STD		{ int|sys|13|msync(void *addr, size_t len, int flags); }
d584 1
a584 1
281	STD		{ int|sys|14|sigaltstack( \
d587 2
a588 2
282	STD		{ int|sys|14|vfork(void); }
283	STD	RUMP	{ int|sys||__posix_chown(const char *path, uid_t uid, \
d590 1
a590 1
284	STD	RUMP	{ int|sys||__posix_fchown(int fd, uid_t uid, \
d592 1
a592 1
285	STD	RUMP	{ int|sys||__posix_lchown(const char *path, uid_t uid, \
d594 3
a596 3
286	STD	RUMP	{ pid_t|sys||getsid(pid_t pid); }
287	STD		{ pid_t|sys||__clone(int flags, void *stack); }
288	STD	RUMP	{ int|sys||fktrace(int fd, int ops, \
d598 1
a598 1
289	STD	RUMP	{ ssize_t|sys||preadv(int fd, \
d601 1
a601 1
290	STD	RUMP	{ ssize_t|sys||pwritev(int fd, \
d607 2
a608 2
292	STD		{ int|sys|14|sigpending(sigset_t *set); }
293	STD		{ int|sys|14|sigprocmask(int how, \
d611 1
a611 1
294	STD		{ int|sys|14|sigsuspend(const sigset_t *set); }
d614 2
a615 2
296	STD	RUMP	{ int|sys||__getcwd(char *bufp, size_t length); }
297	STD	RUMP	{ int|sys||fchroot(int fd); }
d632 2
a633 2
304	STD	RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
305	NOERR	RUMP	{ int|sys||issetugid(void); }
d636 3
a638 3
307	STD		{ int|sys||getcontext(struct __ucontext *ucp); }
308	STD		{ int|sys||setcontext(const struct __ucontext *ucp); }
309	STD		{ int|sys||_lwp_create(const struct __ucontext *ucp, \
d640 3
a642 3
310	STD		{ int|sys||_lwp_exit(void); }
311	STD		{ lwpid_t|sys||_lwp_self(void); }
312	STD		{ int|sys||_lwp_wait(lwpid_t wait_for, \
d644 7
a650 7
313	STD		{ int|sys||_lwp_suspend(lwpid_t target); }
314	STD		{ int|sys||_lwp_continue(lwpid_t target); }
315	STD		{ int|sys||_lwp_wakeup(lwpid_t target); }
316	STD		{ void *|sys||_lwp_getprivate(void); }
317	STD		{ void|sys||_lwp_setprivate(void *ptr); }
318	STD		{ int|sys||_lwp_kill(lwpid_t target, int signo); }
319	STD		{ int|sys||_lwp_detach(lwpid_t target); }
d655 2
a656 2
321	STD		{ int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
322	STD		{ ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \
d658 1
a658 1
323	STD		{ int|sys||_lwp_setname(lwpid_t target, \
d660 1
a660 1
324	STD		{ int|sys||_lwp_getname(lwpid_t target, \
d662 1
a662 1
325	STD		{ int|sys||_lwp_ctl(int features, \
d671 1
a671 1
			{ int|sys||sa_register(void *newv, void **oldv, \
d683 1
a683 1
336	OBSOL		sys_sa_unblockyield
d690 1
a690 1
340	STD		{ int|sys||__sigaction_sigtramp(int signum, \
d696 1
a696 1
343	STD		{ int|sys||rasctl(void *addr, size_t len, int op); }
d704 1
a704 1
346	STD		{ int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \
d706 1
a706 1
347	STD		{ int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \
d708 1
a708 1
348	STD		{ int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \
d710 1
a710 1
349	STD		{ int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \
d712 1
a712 1
350	STD		{ int|sys||sched_yield(void); }
d719 1
a719 1
355	STD		{ int|sys||uuidgen(struct uuid *store, int count); }
d730 1
a730 1
360	STD	RUMP	{ int|sys||extattrctl(const char *path, int cmd, \
d733 1
a733 1
361	STD	RUMP	{ int|sys||extattr_set_file(const char *path, \
d736 1
a736 1
362	STD	RUMP	{ ssize_t|sys||extattr_get_file(const char *path, \
d739 1
a739 1
363	STD	RUMP	{ int|sys||extattr_delete_file(const char *path, \
d741 1
a741 1
364	STD	RUMP	{ int|sys||extattr_set_fd(int fd, \
d744 1
a744 1
365	STD	RUMP	{ ssize_t|sys||extattr_get_fd(int fd, \
d747 1
a747 1
366	STD	RUMP	{ int|sys||extattr_delete_fd(int fd, \
d749 1
a749 1
367	STD	RUMP	{ int|sys||extattr_set_link(const char *path, \
d752 1
a752 1
368	STD	RUMP	{ ssize_t|sys||extattr_get_link(const char *path, \
d755 1
a755 1
369	STD	RUMP	{ int|sys||extattr_delete_link(const char *path, \
d757 1
a757 1
370	STD	RUMP	{ ssize_t|sys||extattr_list_fd(int fd, \
d759 1
a759 1
371	STD	RUMP	{ ssize_t|sys||extattr_list_file(const char *path, \
d761 1
a761 1
372	STD	RUMP	{ ssize_t|sys||extattr_list_link(const char *path, \
d770 1
a770 1
375	STD	RUMP	{ int|sys||setxattr(const char *path, \
d773 1
a773 1
376	STD	RUMP	{ int|sys||lsetxattr(const char *path, \
d776 1
a776 1
377	STD	RUMP	{ int|sys||fsetxattr(int fd, \
d779 1
a779 1
378	STD	RUMP	{ int|sys||getxattr(const char *path, \
d781 1
a781 1
379	STD	RUMP	{ int|sys||lgetxattr(const char *path, \
d783 1
a783 1
380	STD	RUMP	{ int|sys||fgetxattr(int fd, \
d785 1
a785 1
381	STD	RUMP	{ int|sys||listxattr(const char *path, \
d787 1
a787 1
382	STD	RUMP	{ int|sys||llistxattr(const char *path, \
d789 1
a789 1
383	STD	RUMP	{ int|sys||flistxattr(int fd, \
d791 1
a791 1
384	STD	RUMP	{ int|sys||removexattr(const char *path, \
d793 1
a793 1
385	STD	RUMP	{ int|sys||lremovexattr(const char *path, \
d795 1
a795 1
386	STD	RUMP	{ int|sys||fremovexattr(int fd, \
d803 1
a803 1
390	STD	RUMP	{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d810 2
a811 2
394	STD	RUMP	{ int|sys|30|socket(int domain, int type, int protocol); }
395	STD	RUMP	{ int|sys|30|getfh(const char *fname, void *fhp, \
d813 1
a813 1
396	STD	RUMP	{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d845 1
a845 1
410	STD	RUMP	{ int|sys|50|mount(const char *type, \
d848 2
a849 3
411	STD		{ void *|sys||mremap(void *old_address, \
			    size_t old_size, void *new_address, \
			    size_t new_size, int flags); }
d852 3
a854 3
412	STD		{ int|sys||pset_create(psetid_t *psid); }
413	STD		{ int|sys||pset_destroy(psetid_t psid); }
414	STD		{ int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \
d856 1
a856 1
415	STD		{ int|sys||_pset_bind(idtype_t idtype, id_t first_id, \
d858 1
a858 1
416	NOERR	RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
d860 1
a860 1
417	STD	RUMP	{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
d862 1
a862 1
418	STD	RUMP	{ int|sys|50|gettimeofday(struct timeval *tp, \
d864 1
a864 1
419	STD	RUMP	{ int|sys|50|settimeofday(const struct timeval *tv, \
d866 1
a866 1
420	STD	RUMP	{ int|sys|50|utimes(const char *path, \
d868 1
a868 1
421	STD	RUMP	{ int|sys|50|adjtime(const struct timeval *delta, \
d872 1
a872 1
423	STD	RUMP	{ int|sys|50|futimes(int fd, \
d874 1
a874 1
424	STD	RUMP	{ int|sys|50|lutimes(const char *path, \
d876 1
a876 1
425	STD	RUMP	{ int|sys|50|setitimer(int which, \
d879 1
a879 1
426	STD	RUMP	{ int|sys|50|getitimer(int which, \
d881 1
a881 1
427	STD	RUMP	{ int|sys|50|clock_gettime(clockid_t clock_id, \
d883 1
a883 1
428	STD	RUMP	{ int|sys|50|clock_settime(clockid_t clock_id, \
d885 1
a885 1
429	STD	RUMP	{ int|sys|50|clock_getres(clockid_t clock_id, \
d887 1
a887 1
430	STD	RUMP	{ int|sys|50|nanosleep(const struct timespec *rqtp, \
d889 1
a889 1
431	STD		{ int|sys|50|__sigtimedwait(const sigset_t *set, \
d909 1
a909 1
436	STD	RUMP	{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
d912 1
a912 1
437	STD	RUMP	{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
d917 3
a919 3
439	STD	RUMP	{ int|sys|50|stat(const char *path, struct stat *ub); }
440	STD	RUMP	{ int|sys|50|fstat(int fd, struct stat *sb); }
441	STD	RUMP	{ int|sys|50|lstat(const char *path, struct stat *ub); }
d926 2
a927 2
445	STD		{ int|sys|50|getrusage(int who, struct rusage *rusage); }
446	STD	RUMP	{ int|sys|50|timer_settime(timer_t timerid, \
d930 1
a930 1
447	STD	RUMP	{ int|sys|50|timer_gettime(timer_t timerid, struct \
d937 1
a937 1
449	STD		{ int|sys|50|wait4(pid_t pid, int *status, \
d939 1
a939 1
450	STD	RUMP	{ int|sys|50|mknod(const char *path, mode_t mode, \
d941 1
a941 1
451	STD	RUMP	{ int|sys|50|fhstat(const void *fhp, \
d945 4
a948 4
453	STD	RUMP	{ int|sys||pipe2(int *fildes, int flags); }
454	STD	RUMP	{ int|sys||dup3(int from, int to, int flags); }
455	STD	RUMP	{ int|sys||kqueue1(int flags); }
456	STD	RUMP	{ int|sys||paccept(int s, struct sockaddr *name, \
d951 1
a951 1
457	STD	RUMP	{ int|sys||linkat(int fd1, const char *name1, \
d953 1
a953 1
458	STD	RUMP	{ int|sys||renameat(int fromfd, const char *from, \
d955 1
a955 1
459	STD	RUMP	{ int|sys||mkfifoat(int fd, const char *path, \
d957 1
a957 1
460	STD	RUMP	{ int|sys||mknodat(int fd, const char *path, \
d959 1
a959 1
461	STD	RUMP	{ int|sys||mkdirat(int fd, const char *path, \
d961 1
a961 1
462	STD	RUMP	{ int|sys||faccessat(int fd, const char *path, \
d963 1
a963 1
463	STD	RUMP	{ int|sys||fchmodat(int fd, const char *path, \
d965 1
a965 1
464	STD	RUMP	{ int|sys||fchownat(int fd, const char *path, \
d967 1
a967 1
465	STD		{ int|sys||fexecve(int fd, \
d969 1
a969 1
466	STD	RUMP	{ int|sys||fstatat(int fd, const char *path, \
d971 1
a971 1
467	STD	RUMP	{ int|sys||utimensat(int fd, const char *path, \
d973 1
a973 1
468	STD	RUMP	{ int|sys||openat(int fd, const char *path, \
d975 1
a975 1
469	STD	RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
d977 1
a977 1
470	STD	RUMP	{ int|sys||symlinkat(const char *path1, int fd, \
d979 1
a979 1
471	STD	RUMP	{ int|sys||unlinkat(int fd, const char *path, \
d981 1
a981 1
472	STD	RUMP	{ int|sys||futimens(int fd, \
d983 1
a983 1
473	STD	RUMP	{ int|sys||__quotactl(const char *path, \
d989 1
a989 1
475	STD	RUMP	{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
d992 1
a992 1
476	STD	RUMP	{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
d997 1
a997 1
478	STD		{ int|sys|60|_lwp_park(clockid_t clock_id, int flags, \
d1002 1
a1002 1
480	STD	RUMP	{ int|sys||fdiscard(int fd, int PAD, off_t pos, \
d1004 1
a1004 1
481	STD		{ int|sys||wait6(idtype_t idtype, id_t id, \
d1009 1
a1009 1
483	STD	RUMP	{ int|sys|90|getvfsstat(struct statvfs *buf, \
d1011 1
a1011 1
484	STD	RUMP	{ int|sys|90|statvfs1(const char *path, \
d1013 1
a1013 1
485	STD	RUMP	{ int|sys|90|fstatvfs1(int fd, \
d1015 1
a1015 1
486	STD	RUMP	{ int|sys|90|fhstatvfs1(const void *fhp, \
@


1.298.2.2
log
@Sync with bouyer-xenpvh-base2 (HEAD)
@
text
@d1 1
a1 1
	$NetBSD$
d664 2
a665 2
; Syscalls 326-339 reserved for LWP syscalls.
326	UNIMPL
@


1.297
log
@Split the compat_50 module into two, separating the QUOTA-related
stuff from the rest of the module.  This allows loading of the
(main) compat_50 module on kernels that don't include ``options
QUOTA''.

Welcome to 9.99.40 !

Addresses PR kern/54875
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.296 2019/09/22 22:59:39 christos Exp $
d664 2
a665 2
; Syscalls 326-339 reserved for LWP syscalls.
326	UNIMPL
@


1.296
log
@Add a new member to struct vfsstat and grow the unused members
The new member is caled f_mntfromlabel and it is the dkw_wname
of the corresponding wedge. This is now used by df -W to display
the mountpoint name as NAME=
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.295 2019/06/18 16:06:45 christos Exp $
d319 2
a320 1
148	COMPAT_50 MODULAR compat_50 { int|sys||quotactl(const char *path, \
@


1.296.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.297 2020/01/21 02:37:16 pgoyette Exp $
d319 1
a319 2
148	COMPAT_50 MODULAR compat_50_quota	\
		{ int|sys||quotactl(const char *path, \
@


1.295
log
@remove XXX from the quota call.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.294 2019/01/27 02:08:43 pgoyette Exp $
d48 1
d52 1
d719 2
a720 1
356	STD 	RUMP	{ int|sys||getvfsstat(struct statvfs *buf, \
d722 7
a728 7
357	STD 	RUMP	{ int|sys||statvfs1(const char *path, \
			    struct statvfs *buf, int flags); }
358	STD 	RUMP	{ int|sys||fstatvfs1(int fd, struct statvfs *buf, \
			    int flags); }
359	COMPAT_30 MODULAR compat_30	\
		{ int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \
			    struct statvfs *buf, int flags); }
d814 3
a816 2
397	STD 	 RUMP	{ int|sys|40|fhstatvfs1(const void *fhp, \
			    size_t fh_size, struct statvfs *buf, int flags); }
d1008 8
@


1.294
log
@Merge the [pgoyette-compat] branch
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.293 2018/07/31 13:00:13 rjs Exp $
d317 2
a318 2
148	COMPAT_50 MODULAR XXX { int|sys||quotactl(const char *path, int cmd, \
			    int uid, void *arg); }
@


1.293
log
@Add getsockopt2() syscall.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.292 2018/07/12 10:46:48 maxv Exp $
d79 1
a79 1
7	COMPAT_50 MODULAR compat { int|sys||wait4(pid_t pid, int *status, \
d81 1
a81 1
8	COMPAT_43 MODULAR compat	\
d88 1
a88 1
14	COMPAT_50 MODULAR compat RUMP	\
d94 1
a94 1
18	COMPAT_20 MODULAR compat { int|sys||getfsstat(struct statfs12 *buf, \
d96 1
a96 1
19	COMPAT_43 MODULAR compat	\
d100 1
a100 1
21	COMPAT_40 MODULAR compat	\
d128 1
a128 1
38	COMPAT_43 MODULAR compat	\
d131 1
a131 1
40	COMPAT_43 MODULAR compat	\
d141 1
a141 1
46	COMPAT_13 MODULAR compat { int|sys||sigaction(int signum, \
d145 1
a145 1
48	COMPAT_13 MODULAR compat { int|sys||sigprocmask(int how, \
d150 2
a151 2
52	COMPAT_13 MODULAR compat { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR compat { int|sys||sigaltstack( \
d156 1
a156 1
55	COMPAT_12 MODULAR compat { int|sys||reboot(int opt); } oreboot
d166 1
a166 1
62	COMPAT_43 MODULAR compat	\
d168 1
a168 1
63	COMPAT_43 MODULAR compat	\
d171 1
a171 1
64	COMPAT_43 MODULAR compat	\
d173 1
a173 1
65	COMPAT_12 MODULAR compat { int|sys||msync(void *addr, size_t len); }
d180 1
a180 1
71	COMPAT_43 MODULAR compat	\
d199 1
a199 1
83	COMPAT_50 MODULAR compat { int|sys||setitimer(int which, \
d202 4
a205 3
84	COMPAT_43 MODULAR compat { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR compat { int|sys||swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR compat { int|sys||getitimer(int which, \
d207 1
a207 1
87	COMPAT_43 MODULAR compat	\
d210 1
a210 1
88	COMPAT_43 MODULAR compat	\
d213 1
a213 1
89	COMPAT_43 MODULAR compat	\
d218 1
a218 1
93	COMPAT_50 MODULAR compat RUMP	\
d224 1
a224 1
97	COMPAT_30 MODULAR compat	\
d228 1
a228 1
99	COMPAT_43 MODULAR compat	\
d232 1
a232 1
101	COMPAT_43 MODULAR compat { int|sys||send(int s, void *buf, int len, \
d234 1
a234 1
102	COMPAT_43 MODULAR compat { int|sys||recv(int s, void *buf, int len, \
d236 1
a236 1
103	COMPAT_13 MODULAR compat	\
d245 1
a245 1
108	COMPAT_43 MODULAR compat	\
d251 1
a251 1
112	COMPAT_43 MODULAR compat { int|sys||sigstack(struct sigstack *nss, \
d253 1
a253 1
113	COMPAT_43 MODULAR compat	\
d256 1
a256 1
114	COMPAT_43 MODULAR compat	\
d259 3
a261 3
116	COMPAT_50 MODULAR compat { int|sys||gettimeofday(struct timeval50 *tp, \
			    void *tzp); }
117	COMPAT_50 MODULAR compat	\
d270 1
a270 1
122	COMPAT_50 MODULAR compat	\
d275 1
a275 1
125	COMPAT_43 MODULAR compat	\
d282 1
a282 1
129	COMPAT_43 MODULAR compat	\
d284 1
a284 1
130	COMPAT_43 MODULAR compat	\
d296 1
a296 1
138	COMPAT_50 MODULAR compat RUMP { int|sys||utimes(const char *path, \
d299 1
a299 1
140	COMPAT_50 MODULAR compat	\
d302 1
a302 1
141	COMPAT_43 MODULAR compat	\
d305 1
a305 1
142	COMPAT_43 MODULAR compat	\
d307 1
a307 1
143	COMPAT_43 MODULAR compat	\
d309 1
a309 1
144	COMPAT_43 MODULAR compat	\
d312 1
a312 1
145	COMPAT_43 MODULAR compat { int|sys||setrlimit(int which, \
d314 1
a314 1
146	COMPAT_43 MODULAR compat	\
d319 3
a321 3
149	COMPAT_43 MODULAR compat { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR compat { int|sys||getsockname(int fdec, void *asa, \
			    socklen_t *alen); } ogetsockname
d332 1
a332 1
156	COMPAT_43 MODULAR compat	\
d335 1
a335 1
157	COMPAT_20 MODULAR compat { int|sys||statfs(const char *path, \
d337 1
a337 1
158	COMPAT_20 MODULAR compat	\
d341 1
a341 1
161	COMPAT_30 MODULAR compat { int|sys||getfh(const char *fname, \
d343 1
a343 1
162	COMPAT_09 MODULAR compat	\
d346 1
a346 1
163	COMPAT_09 MODULAR compat	\
d357 1
a357 1
169	COMPAT_10 MODULAR sysv_ipc	\
d365 1
a365 1
170	COMPAT_10 MODULAR sysv_ipc	\
d373 1
a373 1
171	COMPAT_10 MODULAR sysv_ipc	\
d385 2
a386 1
175	COMPAT_30	{ int|sys||ntp_gettime(struct ntptimeval30 *ntvp); }
d406 1
a406 1
187	COMPAT_50 MODULAR compat { int|sys||lfs_segwait(fsid_t *fsidp, \
d408 1
a408 1
188	COMPAT_12 MODULAR compat	\
d410 1
a410 1
189	COMPAT_12 MODULAR compat	\
d412 1
a412 1
190	COMPAT_12 MODULAR compat { int|sys||lstat(const char *path, \
d422 1
a422 1
196	COMPAT_12 MODULAR compat	\
d440 1
a440 1
206	COMPAT_50 MODULAR compat RUMP { int|sys||futimes(int fd, \
d461 1
a461 1
220	COMPAT_14 MODULAR sysv_ipc	\
d469 1
a469 1
224	COMPAT_14 MODULAR sysv_ipc { int|sys||msgctl(int msqid, int cmd, \
d478 1
a478 1
229	COMPAT_14 MODULAR sysv_ipc { int|sys||shmctl(int shmid, int cmd, \
d483 9
a491 6
232	COMPAT_50 MODULAR compat { int|sys||clock_gettime(clockid_t clock_id, \
			    struct timespec50 *tp); }
233	COMPAT_50 MODULAR compat { int|sys||clock_settime(clockid_t clock_id, \
			    const struct timespec50 *tp); }
234	COMPAT_50 MODULAR compat { int|sys||clock_getres(clockid_t clock_id, \
			    struct timespec50 *tp); }
d495 1
a495 1
237	COMPAT_50 MODULAR compat { int|sys||timer_settime(timer_t timerid, \
d498 1
a498 1
238	COMPAT_50 MODULAR compat { int|sys||timer_gettime(timer_t timerid, \
d504 1
a504 1
240	COMPAT_50 MODULAR compat	\
d510 1
a510 1
244	COMPAT_50 MODULAR compat	\
d550 9
a558 9
265	COMPAT_50 MODULAR compat	\
			{ int|sys||mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec50 *abs_timeout); }
266	COMPAT_50 MODULAR compat	\
			{ ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec50 *abs_timeout); }
d565 2
a566 1
272	COMPAT_30 MODULAR compat { int|sys||getdents(int fd, char *buf, size_t count); }
d572 1
a572 1
276	COMPAT_50 MODULAR compat RUMP { int|sys||lutimes(const char *path, \
d575 1
a575 1
278	COMPAT_30 MODULAR compat	\
d577 1
a577 1
279	COMPAT_30 MODULAR compat	\
d579 1
a579 1
280	COMPAT_30 MODULAR compat	\
d601 1
a601 1
291	COMPAT_16 MODULAR compat { int|sys|14|sigaction(int signum, \
d609 1
a609 1
295	COMPAT_16 MODULAR compat	\
d613 1
a613 1
298	COMPAT_30 MODULAR compat	\
d615 1
a615 1
299	COMPAT_30 MODULAR compat	\
d618 1
a618 1
300	COMPAT_20 MODULAR compat	\
d621 1
a621 1
301	COMPAT_50 MODULAR sysv_ipc	\
d624 4
a627 3
302	COMPAT_50 MODULAR sysv_ipc { int|sys|13|msgctl(int msqid, int cmd, \
			    struct msqid_ds *buf); }
303	COMPAT_50 MODULAR sysv_ipc { int|sys|13|shmctl(int shmid, int cmd, \
d629 1
a629 1
304	STD 	 RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
d648 1
a648 1
320	COMPAT_50 MODULAR compat	\
d667 2
a668 1
330	COMPAT_60 	{ int|sys||sa_register(void *newv, void **oldv, \
d670 10
a679 5
331	COMPAT_60 	{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	COMPAT_60 	{ int|sys||sa_enable(void); }
333	COMPAT_60 	{ int|sys||sa_setconcurrency(int concurrency); }
334	COMPAT_60 	{ int|sys||sa_yield(void); }
335	COMPAT_60 	{ int|sys||sa_preempt(int sa_id); }
d695 1
a695 1
345	COMPAT_50 MODULAR compat RUMP { int|sys||kevent(int fd, \
d723 1
a723 1
359	COMPAT_30 MODULAR compat	\
d759 1
a759 1
373	COMPAT_50 MODULAR compat RUMP	\
d763 1
a763 1
374	COMPAT_50 MODULAR compat RUMP	\
d793 1
a793 1
387	COMPAT_50 MODULAR compat RUMP	\
d795 1
a795 1
388	COMPAT_50 MODULAR compat RUMP	\
d797 1
a797 1
389	COMPAT_50 MODULAR compat RUMP	\
d801 2
a802 1
392	COMPAT_30 MODULAR compat { int|sys|30|fhstat(const struct compat_30_fhandle \
d804 1
a804 1
393	COMPAT_50 MODULAR compat	\
d813 1
a813 1
398	COMPAT_50 MODULAR compat RUMP { int|sys|40|fhstat(const void *fhp, \
d896 1
a896 1
434	COMPAT_60 MODULAR compat \
@


1.292
log
@Remove the kernel PMC code. Sent yesterday on tech-kern@@.

This change:

 * Removes "options PERFCTRS", the associated includes, and the associated
   ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is
   good.

 * Removes the PMC code of ARM XSCALE.

 * Removes all the pmc.h files. They were all empty, except for ARM XSCALE.

 * Reorders the x86 PMC code not to rely on the legacy pmc.h file. The
   definitions are put in sysarch.h.

 * Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control
   and sys_pmc_get_info syscalls. They are marked as OBSOL in kern,
   netbsd32 and rump.

 * Removes the pmc_evid_t and pmc_ctr_t types.

 * Removes all the associated man pages. The sets are marked as obsolete.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.291 2018/01/06 16:41:23 kamil Exp $
d414 2
a415 1
193	UNIMPL
@


1.291
log
@Revert vadvise(2) removal

This system call was used in legacy Lisp code, that was inherited to modern
age and still compiled against supported compat layers (e.g. in clisp,
oaklisp, Franz Lisp).

It used to instruct the kernel about paging policy (G/C aware, flush etc).

Newly compiled code (assuming that it will detect vadvise()) will use the
libc stub for vadvise(). The headers for this interface are gone.

vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix,
sunos or aout68k ABI, don't bother with this.

Requested by <mrg>
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.289 2017/12/19 18:34:47 kamil Exp $
d677 2
a678 2
341	STD		{ int|sys||pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int|sys||pmc_control(int ctr, int op, void *args); }
@


1.291.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.294 2019/01/27 02:08:43 pgoyette Exp $
d79 1
a79 1
7	COMPAT_50 MODULAR compat_50 { int|sys||wait4(pid_t pid, int *status, \
d81 1
a81 1
8	COMPAT_43 MODULAR compat_43	\
d88 1
a88 1
14	COMPAT_50 MODULAR compat_50 RUMP	\
d94 1
a94 1
18	COMPAT_20 MODULAR compat_20 { int|sys||getfsstat(struct statfs12 *buf, \
d96 1
a96 1
19	COMPAT_43 MODULAR compat_43	\
d100 1
a100 1
21	COMPAT_40 MODULAR compat_40	\
d128 1
a128 1
38	COMPAT_43 MODULAR compat_43	\
d131 1
a131 1
40	COMPAT_43 MODULAR compat_43	\
d141 1
a141 1
46	COMPAT_13 MODULAR compat_13 { int|sys||sigaction(int signum, \
d145 1
a145 1
48	COMPAT_13 MODULAR compat_13 { int|sys||sigprocmask(int how, \
d150 2
a151 2
52	COMPAT_13 MODULAR compat_13 { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR compat_13 { int|sys||sigaltstack( \
d156 1
a156 1
55	COMPAT_12 MODULAR compat_12 { int|sys||reboot(int opt); } oreboot
d166 1
a166 1
62	COMPAT_43 MODULAR compat_43	\
d168 1
a168 1
63	COMPAT_43 MODULAR compat_43	\
d171 1
a171 1
64	COMPAT_43 MODULAR compat_43	\
d173 1
a173 1
65	COMPAT_12 MODULAR compat_12 { int|sys||msync(void *addr, size_t len); }
d180 1
a180 1
71	COMPAT_43 MODULAR compat_43	\
d199 1
a199 1
83	COMPAT_50 MODULAR compat_50 { int|sys||setitimer(int which, \
d202 3
a204 4
84	COMPAT_43 MODULAR compat_43 { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR compat_12 { int|sys||swapon(const char *name); } \
			    oswapon
86	COMPAT_50 MODULAR compat_50 { int|sys||getitimer(int which, \
d206 1
a206 1
87	COMPAT_43 MODULAR compat_43	\
d209 1
a209 1
88	COMPAT_43 MODULAR compat_43	\
d212 1
a212 1
89	COMPAT_43 MODULAR compat_43	\
d217 1
a217 1
93	COMPAT_50 MODULAR compat_50 RUMP	\
d223 1
a223 1
97	COMPAT_30 MODULAR compat_30	\
d227 1
a227 1
99	COMPAT_43 MODULAR compat_43	\
d231 1
a231 1
101	COMPAT_43 MODULAR compat_43 { int|sys||send(int s, void *buf, int len, \
d233 1
a233 1
102	COMPAT_43 MODULAR compat_43 { int|sys||recv(int s, void *buf, int len, \
d235 1
a235 1
103	COMPAT_13 MODULAR compat_13	\
d244 1
a244 1
108	COMPAT_43 MODULAR compat_43	\
d250 1
a250 1
112	COMPAT_43 MODULAR compat_43 { int|sys||sigstack(struct sigstack *nss, \
d252 1
a252 1
113	COMPAT_43 MODULAR compat_43	\
d255 1
a255 1
114	COMPAT_43 MODULAR compat_43	\
d258 3
a260 3
116	COMPAT_50 MODULAR compat_50	\
		{ int|sys||gettimeofday(struct timeval50 *tp, void *tzp); }
117	COMPAT_50 MODULAR compat_50	\
d269 1
a269 1
122	COMPAT_50 MODULAR compat_50	\
d274 1
a274 1
125	COMPAT_43 MODULAR compat_43	\
d281 1
a281 1
129	COMPAT_43 MODULAR compat_43	\
d283 1
a283 1
130	COMPAT_43 MODULAR compat_43	\
d295 1
a295 1
138	COMPAT_50 MODULAR compat_50 RUMP { int|sys||utimes(const char *path, \
d298 1
a298 1
140	COMPAT_50 MODULAR compat_50	\
d301 1
a301 1
141	COMPAT_43 MODULAR compat_43	\
d304 1
a304 1
142	COMPAT_43 MODULAR compat_43	\
d306 1
a306 1
143	COMPAT_43 MODULAR compat_43	\
d308 1
a308 1
144	COMPAT_43 MODULAR compat_43	\
d311 1
a311 1
145	COMPAT_43 MODULAR compat_43 { int|sys||setrlimit(int which, \
d313 1
a313 1
146	COMPAT_43 MODULAR compat_43	\
d318 3
a320 3
149	COMPAT_43 MODULAR compat_43 { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR compat_43 { int|sys||getsockname(int fdec,	\
			    void *asa, socklen_t *alen); } ogetsockname
d331 1
a331 1
156	COMPAT_43 MODULAR compat_43	\
d334 1
a334 1
157	COMPAT_20 MODULAR compat_20 { int|sys||statfs(const char *path, \
d336 1
a336 1
158	COMPAT_20 MODULAR compat_20	\
d340 1
a340 1
161	COMPAT_30 MODULAR compat_30 { int|sys||getfh(const char *fname, \
d342 1
a342 1
162	COMPAT_09 MODULAR compat_09	\
d345 1
a345 1
163	COMPAT_09 MODULAR compat_09	\
d356 1
a356 1
169	COMPAT_10 MODULAR compat_sysv_10	\
d364 1
a364 1
170	COMPAT_10 MODULAR compat_sysv_10	\
d372 1
a372 1
171	COMPAT_10 MODULAR compat_sysv_10	\
d384 1
a384 2
175	COMPAT_30 MODULAR compat_30	\
			{ int|sys||ntp_gettime(struct ntptimeval30 *ntvp); }
d404 1
a404 1
187	COMPAT_50 MODULAR compat_50 { int|sys||lfs_segwait(fsid_t *fsidp, \
d406 1
a406 1
188	COMPAT_12 MODULAR compat_12	\
d408 1
a408 1
189	COMPAT_12 MODULAR compat_12	\
d410 1
a410 1
190	COMPAT_12 MODULAR compat_12 { int|sys||lstat(const char *path, \
d414 1
a414 2
193	STD	RUMP	{ int|sys||getsockopt2(int s, int level, int name, \
			    void *val, socklen_t *avalsize); }
d419 1
a419 1
196	COMPAT_12 MODULAR compat_12	\
d437 1
a437 1
206	COMPAT_50 MODULAR compat_50 RUMP { int|sys||futimes(int fd, \
d458 1
a458 1
220	COMPAT_14 MODULAR compat_sysv_14	\
d466 1
a466 1
224	COMPAT_14 MODULAR compat_sysv_14 { int|sys||msgctl(int msqid, int cmd, \
d475 1
a475 1
229	COMPAT_14 MODULAR compat_sysv_14 { int|sys||shmctl(int shmid, int cmd, \
d480 6
a485 9
232	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_gettime(clockid_t clock_id, \
		    struct timespec50 *tp); }
233	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_settime(clockid_t clock_id, \
		    const struct timespec50 *tp); }
234	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_getres(clockid_t clock_id, \
		    struct timespec50 *tp); }
d489 1
a489 1
237	COMPAT_50 MODULAR compat_50 { int|sys||timer_settime(timer_t timerid, \
d492 1
a492 1
238	COMPAT_50 MODULAR compat_50 { int|sys||timer_gettime(timer_t timerid, \
d498 1
a498 1
240	COMPAT_50 MODULAR compat_50	\
d504 1
a504 1
244	COMPAT_50 MODULAR compat_50	\
d544 9
a552 9
265	COMPAT_50 MODULAR compat_50	\
		{ int|sys||mq_timedsend(mqd_t mqdes, \
		    const char *msg_ptr, size_t msg_len, \
		    unsigned msg_prio, \
		    const struct timespec50 *abs_timeout); }
266	COMPAT_50 MODULAR compat_50	\
		{ ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
		    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
		    const struct timespec50 *abs_timeout); }
d559 1
a559 2
272	COMPAT_30 MODULAR compat_30	\
		{ int|sys||getdents(int fd, char *buf, size_t count); }
d565 1
a565 1
276	COMPAT_50 MODULAR compat_50 RUMP { int|sys||lutimes(const char *path, \
d568 1
a568 1
278	COMPAT_30 MODULAR compat_30	\
d570 1
a570 1
279	COMPAT_30 MODULAR compat_30	\
d572 1
a572 1
280	COMPAT_30 MODULAR compat_30	\
d594 1
a594 1
291	COMPAT_16 MODULAR compat_16 { int|sys|14|sigaction(int signum, \
d602 1
a602 1
295	COMPAT_16 MODULAR compat_16	\
d606 1
a606 1
298	COMPAT_30 MODULAR compat_30	\
d608 1
a608 1
299	COMPAT_30 MODULAR compat_30	\
d611 1
a611 1
300	COMPAT_20 MODULAR compat_20	\
d614 1
a614 1
301	COMPAT_50 MODULAR compat_sysv_50	\
d617 3
a619 4
302	COMPAT_50 MODULAR compat_sysv_50	\
		{ int|sys|13|msgctl(int msqid, int cmd, struct msqid_ds *buf); }
303	COMPAT_50 MODULAR compat_sysv_50	\
		{ int|sys|13|shmctl(int shmid, int cmd, \
d621 1
a621 1
304	STD 	RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
d640 1
a640 1
320	COMPAT_50 MODULAR compat_50	\
d659 1
a659 2
330	COMPAT_60 MODULAR compat_60	\
		 	{ int|sys||sa_register(void *newv, void **oldv, \
d661 5
a665 10
331	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_enable(void); }
333	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_setconcurrency(int concurrency); }
334	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_yield(void); }
335	COMPAT_60 MODULAR compat_60	\
			{ int|sys||sa_preempt(int sa_id); }
d677 2
a678 2
341	OBSOL		sys_pmc_get_info
342	OBSOL		sys_pmc_control
d681 1
a681 1
345	COMPAT_50 MODULAR compat_50 RUMP { int|sys||kevent(int fd, \
d709 1
a709 1
359	COMPAT_30 MODULAR compat_30	\
d745 1
a745 1
373	COMPAT_50 MODULAR compat_50 RUMP	\
d749 1
a749 1
374	COMPAT_50 MODULAR compat_50 RUMP	\
d779 1
a779 1
387	COMPAT_50 MODULAR compat_50 RUMP	\
d781 1
a781 1
388	COMPAT_50 MODULAR compat_50 RUMP	\
d783 1
a783 1
389	COMPAT_50 MODULAR compat_50 RUMP	\
d787 1
a787 2
392	COMPAT_30 MODULAR compat_30	\
		{ int|sys|30|fhstat(const struct compat_30_fhandle \
d789 1
a789 1
393	COMPAT_50 MODULAR compat_30	\
d798 1
a798 1
398	COMPAT_50 MODULAR compat_50 RUMP { int|sys|40|fhstat(const void *fhp, \
d881 1
a881 1
434	COMPAT_60 MODULAR compat_60 \
@


1.291.4.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
	$NetBSD$
a47 1
#ifdef _KERNEL_OPT
a50 1
#endif
d317 2
a318 3
148	COMPAT_50 MODULAR compat_50_quota	\
		{ int|sys||quotactl(const char *path, \
			  int cmd, int uid, void *arg); }
d661 2
a662 2
326	STD		{ lwptid_t|sys||_lwp_gettid(void); }
; Syscalls 327-339 reserved for LWP syscalls.
d717 1
a717 2
356	COMPAT_90 MODULAR compat_90 { \
			    int|sys||getvfsstat(struct statvfs90 *buf, \
d719 7
a725 7
357	COMPAT_90 MODULAR compat_90 { int|sys||statvfs1(const char *path, \
			    struct statvfs90 *buf, int flags); }
358	COMPAT_90 MODULAR compat_90 { int|sys||fstatvfs1(int fd, \
			    struct statvfs90 *buf, int flags); }
359	COMPAT_30 MODULAR compat_30 { int|sys||fhstatvfs1( \
			    const struct compat_30_fhandle *fhp, \
			    struct statvfs90 *buf, int flags); }
d811 2
a812 3
397	COMPAT_90 MODULAR compat_90 { \
			    int|sys||fhstatvfs1(const void *fhp, \
			    size_t fh_size, struct statvfs90 *buf, int flags); }
a1003 8
483	STD RUMP	{ int|sys|90|getvfsstat(struct statvfs *buf, \
			    size_t bufsize, int flags); }
484	STD RUMP	{ int|sys|90|statvfs1(const char *path, \
			    struct statvfs *buf, int flags); }
485	STD RUMP	{ int|sys|90|fstatvfs1(int fd, \
			    struct statvfs *buf, int flags); }
486	STD RUMP	{ int|sys|90|fhstatvfs1(const void *fhp, \
			    size_t fh_size, struct statvfs *buf, int flags); }
@


1.291.4.3
log
@Sync with HEAD
@
text
@d73 4
a76 4
1	STD		{ void|sys||exit(int rval); }
2	STD		{ int|sys||fork(void); }
3	STD	RUMP	{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
4	STD	RUMP	{ ssize_t|sys||write(int fd, const void *buf, \
d78 1
a78 1
5	STD	RUMP	{ int|sys||open(const char *path, \
d80 1
a80 1
6	STD	RUMP	{ int|sys||close(int fd); }
d85 2
a86 2
9	STD	RUMP	{ int|sys||link(const char *path, const char *link); }
10	STD	RUMP	{ int|sys||unlink(const char *path); }
d88 2
a89 2
12	STD	RUMP	{ int|sys||chdir(const char *path); }
13	STD	RUMP	{ int|sys||fchdir(int fd); }
d92 2
a93 2
15	STD	RUMP	{ int|sys||chmod(const char *path, mode_t mode); }
16	STD	RUMP	{ int|sys||chown(const char *path, uid_t uid, \
d95 1
a95 1
17	STD		{ int|sys||obreak(char *nsize); } break
d101 1
a101 1
20	NOERR	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d105 5
a109 5
22	STD	RUMP	{ int|sys||unmount(const char *path, int flags); }
23	STD	RUMP	{ int|sys||setuid(uid_t uid); }
24	NOERR	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	NOERR	RUMP	{ uid_t|sys||geteuid(void); }
26	STD	MODULAR ptrace	\
d112 1
a112 1
27	STD	RUMP	{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD	RUMP	{ ssize_t|sys||sendmsg(int s, \
d116 1
a116 1
29	STD	RUMP	{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
d125 5
a129 5
33	STD	RUMP	{ int|sys||access(const char *path, int flags); }
34	STD	RUMP	{ int|sys||chflags(const char *path, u_long flags); }
35	STD	RUMP	{ int|sys||fchflags(int fd, u_long flags); }
36	NOERR	RUMP	{ void|sys||sync(void); }
37	STD		{ int|sys||kill(pid_t pid, int signum); }
d132 1
a132 1
39	NOERR	RUMP	{ pid_t|sys||getppid(void); }
d136 4
a139 4
41	STD	RUMP	{ int|sys||dup(int fd); }
42	STD	RUMP	{ int|sys||pipe(void); }
43	NOERR	RUMP	{ gid_t|sys||getegid(void); }
44	STD		{ int|sys||profil(char *samples, size_t size, \
d141 1
a141 1
45	STD	RUMP	{ int|sys||ktrace(const char *fname, int ops, \
d146 1
a146 1
47	NOERR	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d149 3
a151 3
49	STD	RUMP	{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD	RUMP	{ int|sys||__setlogin(const char *namebuf); }
51	STD		{ int|sys||acct(const char *path); }
d159 2
a160 2
56	STD	RUMP	{ int|sys||revoke(const char *path); }
57	STD	RUMP	{ int|sys||symlink(const char *path, \
d162 1
a162 1
58	STD	RUMP	{ ssize_t|sys||readlink(const char *path, char *buf, \
d164 1
a164 1
59	STD		{ int|sys||execve(const char *path, \
d166 2
a167 2
60	STD	RUMP	{ mode_t|sys||umask(mode_t newmask); }
61	STD	RUMP	{ int|sys||chroot(const char *path); }
d177 1
a177 1
66	STD		{ int|sys||vfork(void); }
d180 2
a181 2
69	OBSOL		sbrk
70	OBSOL		sstk
d185 3
a187 3
72	STD		{ int|sys||ovadvise(int anom); } vadvise
73	STD		{ int|sys||munmap(void *addr, size_t len); }
74	STD		{ int|sys||mprotect(void *addr, size_t len, \
d189 1
a189 1
75	STD		{ int|sys||madvise(void *addr, size_t len, \
d193 1
a193 1
78	STD		{ int|sys||mincore(void *addr, size_t len, \
d195 1
a195 1
79	STD	RUMP	{ int|sys||getgroups(int gidsetsize, \
d197 1
a197 1
80	STD	RUMP	{ int|sys||setgroups(int gidsetsize, \
d199 2
a200 2
81	STD	RUMP	{ int|sys||getpgrp(void); }
82	STD	RUMP	{ int|sys||setpgid(pid_t pid, pid_t pgid); }
d217 1
a217 1
90	STD	RUMP	{ int|sys||dup2(int from, int to); }
d224 2
a225 2
95	STD	RUMP	{ int|sys||fsync(int fd); }
96	STD		{ int|sys||setpriority(int which, id_t who, int prio); }
d233 1
a233 1
100	STD		{ int|sys||getpriority(int which, id_t who); }
d268 1
a268 1
120	STD	RUMP	{ ssize_t|sys||readv(int fd, \
d270 1
a270 1
121	STD	RUMP	{ ssize_t|sys||writev(int fd, \
d275 2
a276 2
123	STD	RUMP	{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD	RUMP	{ int|sys||fchmod(int fd, mode_t mode); }
d281 3
a283 3
126	STD	RUMP	{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD	RUMP	{ int|sys||setregid(gid_t rgid, gid_t egid); }
128	STD	RUMP	{ int|sys||rename(const char *from, const char *to); }
d288 3
a290 3
131	STD	RUMP	{ int|sys||flock(int fd, int how); }
132	STD	RUMP	{ int|sys||mkfifo(const char *path, mode_t mode); }
133	STD	RUMP	{ ssize_t|sys||sendto(int s, const void *buf, \
d293 2
a294 2
134	STD	RUMP	{ int|sys||shutdown(int s, int how); }
135	STD	RUMP	{ int|sys||socketpair(int domain, int type, \
d296 2
a297 2
136	STD	RUMP	{ int|sys||mkdir(const char *path, mode_t mode); }
137	STD	RUMP	{ int|sys||rmdir(const char *path); }
d318 1
a318 1
147	STD	RUMP	{ int|sys||setsid(void); }
d354 1
a354 1
165	STD		{ int|sys||sysarch(int op, void *parms); }
d383 1
a383 1
173	STD	RUMP	{ ssize_t|sys||pread(int fd, void *buf, \
d385 1
a385 1
174	STD	RUMP	{ ssize_t|sys||pwrite(int fd, const void *buf, \
d391 1
a391 1
176	STD		{ int|sys||ntp_adjtime(struct timex *tp); }
d401 3
a403 3
181	STD	RUMP	{ int|sys||setgid(gid_t gid); }
182	STD	RUMP	{ int|sys||setegid(gid_t egid); }
183	STD	RUMP	{ int|sys||seteuid(uid_t euid); }
d417 2
a418 2
191	STD	RUMP	{ long|sys||pathconf(const char *path, int name); }
192	STD	RUMP	{ long|sys||fpathconf(int fd, int name); }
d421 1
a421 1
194	STD	RUMP	{ int|sys||getrlimit(int which, \
d423 1
a423 1
195	STD	RUMP	{ int|sys||setrlimit(int which, \
d428 1
a428 1
197	STD		{ void *|sys||mmap(void *addr, size_t len, int prot, \
d432 1
a432 1
199	STD	RUMP	{ off_t|sys||lseek(int fd, int PAD, off_t offset, \
d434 1
a434 1
200	STD	RUMP	{ int|sys||truncate(const char *path, int PAD, \
d436 2
a437 2
201	STD	RUMP	{ int|sys||ftruncate(int fd, int PAD, off_t length); }
202	STD	RUMP	{ int|sys||__sysctl(const int *name, u_int namelen, \
d440 3
a442 3
203	STD		{ int|sys||mlock(const void *addr, size_t len); }
204	STD		{ int|sys||munlock(const void *addr, size_t len); }
205	STD		{ int|sys||undelete(const char *path); }
d445 3
a447 3
207	STD	RUMP	{ pid_t|sys||getpgid(pid_t pid); }
208	STD	RUMP	{ int|sys||reboot(int opt, char *bootstr); }
209	STD	RUMP	{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d495 1
a495 1
235	STD	RUMP	{ int|sys||timer_create(clockid_t clock_id, \
d497 1
a497 1
236	STD	RUMP	{ int|sys||timer_delete(timer_t timerid); }
d503 1
a503 1
239	STD	RUMP	{ int|sys||timer_getoverrun(timer_t timerid); }
d510 3
a512 3
241	STD	RUMP	{ int|sys||fdatasync(int fd); }
242	STD		{ int|sys||mlockall(int flags); }
243	STD		{ int|sys||munlockall(void); }
d518 1
a518 1
246	STD	RUMP	{ int|sys||modctl(int cmd, void *arg); }
d565 1
a565 1
270	STD	RUMP	{ int|sys||__posix_rename(const char *from, \
d567 1
a567 1
271	STD		{ int|sys||swapctl(int cmd, void *arg, int misc); }
d570 1
a570 1
273	STD		{ int|sys||minherit(void *addr, size_t len, \
d572 2
a573 2
274	STD	RUMP	{ int|sys||lchmod(const char *path, mode_t mode); }
275	STD	RUMP	{ int|sys||lchown(const char *path, uid_t uid, \
d577 1
a577 1
277	STD		{ int|sys|13|msync(void *addr, size_t len, int flags); }
d584 1
a584 1
281	STD		{ int|sys|14|sigaltstack( \
d587 2
a588 2
282	STD		{ int|sys|14|vfork(void); }
283	STD	RUMP	{ int|sys||__posix_chown(const char *path, uid_t uid, \
d590 1
a590 1
284	STD	RUMP	{ int|sys||__posix_fchown(int fd, uid_t uid, \
d592 1
a592 1
285	STD	RUMP	{ int|sys||__posix_lchown(const char *path, uid_t uid, \
d594 3
a596 3
286	STD	RUMP	{ pid_t|sys||getsid(pid_t pid); }
287	STD		{ pid_t|sys||__clone(int flags, void *stack); }
288	STD	RUMP	{ int|sys||fktrace(int fd, int ops, \
d598 1
a598 1
289	STD	RUMP	{ ssize_t|sys||preadv(int fd, \
d601 1
a601 1
290	STD	RUMP	{ ssize_t|sys||pwritev(int fd, \
d607 2
a608 2
292	STD		{ int|sys|14|sigpending(sigset_t *set); }
293	STD		{ int|sys|14|sigprocmask(int how, \
d611 1
a611 1
294	STD		{ int|sys|14|sigsuspend(const sigset_t *set); }
d614 2
a615 2
296	STD	RUMP	{ int|sys||__getcwd(char *bufp, size_t length); }
297	STD	RUMP	{ int|sys||fchroot(int fd); }
d632 2
a633 2
304	STD	RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
305	NOERR	RUMP	{ int|sys||issetugid(void); }
d636 3
a638 3
307	STD		{ int|sys||getcontext(struct __ucontext *ucp); }
308	STD		{ int|sys||setcontext(const struct __ucontext *ucp); }
309	STD		{ int|sys||_lwp_create(const struct __ucontext *ucp, \
d640 3
a642 3
310	STD		{ int|sys||_lwp_exit(void); }
311	STD		{ lwpid_t|sys||_lwp_self(void); }
312	STD		{ int|sys||_lwp_wait(lwpid_t wait_for, \
d644 7
a650 7
313	STD		{ int|sys||_lwp_suspend(lwpid_t target); }
314	STD		{ int|sys||_lwp_continue(lwpid_t target); }
315	STD		{ int|sys||_lwp_wakeup(lwpid_t target); }
316	STD		{ void *|sys||_lwp_getprivate(void); }
317	STD		{ void|sys||_lwp_setprivate(void *ptr); }
318	STD		{ int|sys||_lwp_kill(lwpid_t target, int signo); }
319	STD		{ int|sys||_lwp_detach(lwpid_t target); }
d655 2
a656 2
321	STD		{ int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
322	STD		{ ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \
d658 1
a658 1
323	STD		{ int|sys||_lwp_setname(lwpid_t target, \
d660 1
a660 1
324	STD		{ int|sys||_lwp_getname(lwpid_t target, \
d662 1
a662 1
325	STD		{ int|sys||_lwp_ctl(int features, \
d671 1
a671 1
			{ int|sys||sa_register(void *newv, void **oldv, \
d683 1
a683 1
336	OBSOL		sys_sa_unblockyield
d690 1
a690 1
340	STD		{ int|sys||__sigaction_sigtramp(int signum, \
d696 1
a696 1
343	STD		{ int|sys||rasctl(void *addr, size_t len, int op); }
d704 1
a704 1
346	STD		{ int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \
d706 1
a706 1
347	STD		{ int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \
d708 1
a708 1
348	STD		{ int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \
d710 1
a710 1
349	STD		{ int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \
d712 1
a712 1
350	STD		{ int|sys||sched_yield(void); }
d719 1
a719 1
355	STD		{ int|sys||uuidgen(struct uuid *store, int count); }
d730 1
a730 1
360	STD	RUMP	{ int|sys||extattrctl(const char *path, int cmd, \
d733 1
a733 1
361	STD	RUMP	{ int|sys||extattr_set_file(const char *path, \
d736 1
a736 1
362	STD	RUMP	{ ssize_t|sys||extattr_get_file(const char *path, \
d739 1
a739 1
363	STD	RUMP	{ int|sys||extattr_delete_file(const char *path, \
d741 1
a741 1
364	STD	RUMP	{ int|sys||extattr_set_fd(int fd, \
d744 1
a744 1
365	STD	RUMP	{ ssize_t|sys||extattr_get_fd(int fd, \
d747 1
a747 1
366	STD	RUMP	{ int|sys||extattr_delete_fd(int fd, \
d749 1
a749 1
367	STD	RUMP	{ int|sys||extattr_set_link(const char *path, \
d752 1
a752 1
368	STD	RUMP	{ ssize_t|sys||extattr_get_link(const char *path, \
d755 1
a755 1
369	STD	RUMP	{ int|sys||extattr_delete_link(const char *path, \
d757 1
a757 1
370	STD	RUMP	{ ssize_t|sys||extattr_list_fd(int fd, \
d759 1
a759 1
371	STD	RUMP	{ ssize_t|sys||extattr_list_file(const char *path, \
d761 1
a761 1
372	STD	RUMP	{ ssize_t|sys||extattr_list_link(const char *path, \
d770 1
a770 1
375	STD	RUMP	{ int|sys||setxattr(const char *path, \
d773 1
a773 1
376	STD	RUMP	{ int|sys||lsetxattr(const char *path, \
d776 1
a776 1
377	STD	RUMP	{ int|sys||fsetxattr(int fd, \
d779 1
a779 1
378	STD	RUMP	{ int|sys||getxattr(const char *path, \
d781 1
a781 1
379	STD	RUMP	{ int|sys||lgetxattr(const char *path, \
d783 1
a783 1
380	STD	RUMP	{ int|sys||fgetxattr(int fd, \
d785 1
a785 1
381	STD	RUMP	{ int|sys||listxattr(const char *path, \
d787 1
a787 1
382	STD	RUMP	{ int|sys||llistxattr(const char *path, \
d789 1
a789 1
383	STD	RUMP	{ int|sys||flistxattr(int fd, \
d791 1
a791 1
384	STD	RUMP	{ int|sys||removexattr(const char *path, \
d793 1
a793 1
385	STD	RUMP	{ int|sys||lremovexattr(const char *path, \
d795 1
a795 1
386	STD	RUMP	{ int|sys||fremovexattr(int fd, \
d803 1
a803 1
390	STD	RUMP	{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d810 2
a811 2
394	STD	RUMP	{ int|sys|30|socket(int domain, int type, int protocol); }
395	STD	RUMP	{ int|sys|30|getfh(const char *fname, void *fhp, \
d813 1
a813 1
396	STD	RUMP	{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d845 1
a845 1
410	STD	RUMP	{ int|sys|50|mount(const char *type, \
d848 2
a849 3
411	STD		{ void *|sys||mremap(void *old_address, \
			    size_t old_size, void *new_address, \
			    size_t new_size, int flags); }
d852 3
a854 3
412	STD		{ int|sys||pset_create(psetid_t *psid); }
413	STD		{ int|sys||pset_destroy(psetid_t psid); }
414	STD		{ int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \
d856 1
a856 1
415	STD		{ int|sys||_pset_bind(idtype_t idtype, id_t first_id, \
d858 1
a858 1
416	NOERR	RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
d860 1
a860 1
417	STD	RUMP	{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
d862 1
a862 1
418	STD	RUMP	{ int|sys|50|gettimeofday(struct timeval *tp, \
d864 1
a864 1
419	STD	RUMP	{ int|sys|50|settimeofday(const struct timeval *tv, \
d866 1
a866 1
420	STD	RUMP	{ int|sys|50|utimes(const char *path, \
d868 1
a868 1
421	STD	RUMP	{ int|sys|50|adjtime(const struct timeval *delta, \
d872 1
a872 1
423	STD	RUMP	{ int|sys|50|futimes(int fd, \
d874 1
a874 1
424	STD	RUMP	{ int|sys|50|lutimes(const char *path, \
d876 1
a876 1
425	STD	RUMP	{ int|sys|50|setitimer(int which, \
d879 1
a879 1
426	STD	RUMP	{ int|sys|50|getitimer(int which, \
d881 1
a881 1
427	STD	RUMP	{ int|sys|50|clock_gettime(clockid_t clock_id, \
d883 1
a883 1
428	STD	RUMP	{ int|sys|50|clock_settime(clockid_t clock_id, \
d885 1
a885 1
429	STD	RUMP	{ int|sys|50|clock_getres(clockid_t clock_id, \
d887 1
a887 1
430	STD	RUMP	{ int|sys|50|nanosleep(const struct timespec *rqtp, \
d889 1
a889 1
431	STD		{ int|sys|50|__sigtimedwait(const sigset_t *set, \
d909 1
a909 1
436	STD	RUMP	{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
d912 1
a912 1
437	STD	RUMP	{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
d917 3
a919 3
439	STD	RUMP	{ int|sys|50|stat(const char *path, struct stat *ub); }
440	STD	RUMP	{ int|sys|50|fstat(int fd, struct stat *sb); }
441	STD	RUMP	{ int|sys|50|lstat(const char *path, struct stat *ub); }
d926 2
a927 2
445	STD		{ int|sys|50|getrusage(int who, struct rusage *rusage); }
446	STD	RUMP	{ int|sys|50|timer_settime(timer_t timerid, \
d930 1
a930 1
447	STD	RUMP	{ int|sys|50|timer_gettime(timer_t timerid, struct \
d937 1
a937 1
449	STD		{ int|sys|50|wait4(pid_t pid, int *status, \
d939 1
a939 1
450	STD	RUMP	{ int|sys|50|mknod(const char *path, mode_t mode, \
d941 1
a941 1
451	STD	RUMP	{ int|sys|50|fhstat(const void *fhp, \
d945 4
a948 4
453	STD	RUMP	{ int|sys||pipe2(int *fildes, int flags); }
454	STD	RUMP	{ int|sys||dup3(int from, int to, int flags); }
455	STD	RUMP	{ int|sys||kqueue1(int flags); }
456	STD	RUMP	{ int|sys||paccept(int s, struct sockaddr *name, \
d951 1
a951 1
457	STD	RUMP	{ int|sys||linkat(int fd1, const char *name1, \
d953 1
a953 1
458	STD	RUMP	{ int|sys||renameat(int fromfd, const char *from, \
d955 1
a955 1
459	STD	RUMP	{ int|sys||mkfifoat(int fd, const char *path, \
d957 1
a957 1
460	STD	RUMP	{ int|sys||mknodat(int fd, const char *path, \
d959 1
a959 1
461	STD	RUMP	{ int|sys||mkdirat(int fd, const char *path, \
d961 1
a961 1
462	STD	RUMP	{ int|sys||faccessat(int fd, const char *path, \
d963 1
a963 1
463	STD	RUMP	{ int|sys||fchmodat(int fd, const char *path, \
d965 1
a965 1
464	STD	RUMP	{ int|sys||fchownat(int fd, const char *path, \
d967 1
a967 1
465	STD		{ int|sys||fexecve(int fd, \
d969 1
a969 1
466	STD	RUMP	{ int|sys||fstatat(int fd, const char *path, \
d971 1
a971 1
467	STD	RUMP	{ int|sys||utimensat(int fd, const char *path, \
d973 1
a973 1
468	STD	RUMP	{ int|sys||openat(int fd, const char *path, \
d975 1
a975 1
469	STD	RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
d977 1
a977 1
470	STD	RUMP	{ int|sys||symlinkat(const char *path1, int fd, \
d979 1
a979 1
471	STD	RUMP	{ int|sys||unlinkat(int fd, const char *path, \
d981 1
a981 1
472	STD	RUMP	{ int|sys||futimens(int fd, \
d983 1
a983 1
473	STD	RUMP	{ int|sys||__quotactl(const char *path, \
d989 1
a989 1
475	STD	RUMP	{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
d992 1
a992 1
476	STD	RUMP	{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
d997 1
a997 1
478	STD		{ int|sys|60|_lwp_park(clockid_t clock_id, int flags, \
d1002 1
a1002 1
480	STD	RUMP	{ int|sys||fdiscard(int fd, int PAD, off_t pos, \
d1004 1
a1004 1
481	STD		{ int|sys||wait6(idtype_t idtype, id_t id, \
d1009 1
a1009 1
483	STD	RUMP	{ int|sys|90|getvfsstat(struct statvfs *buf, \
d1011 1
a1011 1
484	STD	RUMP	{ int|sys|90|statvfs1(const char *path, \
d1013 1
a1013 1
485	STD	RUMP	{ int|sys|90|fstatvfs1(int fd, \
d1015 1
a1015 1
486	STD	RUMP	{ int|sys|90|fhstatvfs1(const void *fhp, \
@


1.291.2.1
log
@Update module name for sysv_ipc compat syscalls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.291 2018/01/06 16:41:23 kamil Exp $
d356 1
a356 1
169	COMPAT_10 MODULAR compat_sysv	\
d364 1
a364 1
170	COMPAT_10 MODULAR compat_sysv	\
d372 1
a372 1
171	COMPAT_10 MODULAR compat_sysv	\
d458 1
a458 1
220	COMPAT_14 MODULAR compat_sysv	\
d466 1
a466 1
224	COMPAT_14 MODULAR compat_sysv { int|sys||msgctl(int msqid, int cmd, \
d475 1
a475 1
229	COMPAT_14 MODULAR compat_sysv { int|sys||shmctl(int shmid, int cmd, \
d614 1
a614 1
301	COMPAT_50 MODULAR compat_sysv	\
d617 1
a617 1
302	COMPAT_50 MODULAR compat_sysv { int|sys|13|msgctl(int msqid, int cmd, \
d619 1
a619 1
303	COMPAT_50 MODULAR compat_sysv { int|sys|13|shmctl(int shmid, int cmd, \
@


1.291.2.2
log
@Update the compat_60 entries to reference the compat_60 module.

While here, allow the scheduler-activation syscalls to autoload the
compat_60 module.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.291.2.1 2018/03/10 05:09:24 pgoyette Exp $
d659 1
a659 2
330	COMPAT_60 MODULAR compat_60	\
		 	{ int|sys||sa_register(void *newv, void **oldv, \
d661 5
a665 10
331	COMPAT_60  MODULAR compat_60	\
			{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	COMPAT_60  MODULAR compat_60	\
			{ int|sys||sa_enable(void); }
333	COMPAT_60  MODULAR compat_60	\
			{ int|sys||sa_setconcurrency(int concurrency); }
334	COMPAT_60  MODULAR compat_60	\
			{ int|sys||sa_yield(void); }
335	COMPAT_60  MODULAR compat_60	\
			{ int|sys||sa_preempt(int sa_id); }
d881 1
a881 1
434	COMPAT_60 MODULAR compat_60 \
@


1.291.2.3
log
@Revert changes for the scheduler-activation syscalls.  It's not
needed, as the syscalls are already marked ENOSYS if these sys-calls
are not built-in (ie, option COMPAT_60 is not specified;  if they
are built-in, the stubs in kern_sa_60.c still return ENOSYS, so no
change.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.291.2.2 2018/03/15 23:04:48 pgoyette Exp $
d659 2
a660 1
330	COMPAT_60 	{ int|sys||sa_register(void *newv, void **oldv, \
d662 10
a671 5
331	COMPAT_60 	{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	COMPAT_60 	{ int|sys||sa_enable(void); }
333	COMPAT_60 	{ int|sys||sa_setconcurrency(int concurrency); }
334	COMPAT_60 	{ int|sys||sa_yield(void); }
335	COMPAT_60 	{ int|sys||sa_preempt(int sa_id); }
@


1.291.2.4
log
@Back out changes on the branch related to kernel microcode compat.

Christos didn't like the way it was done, so waiting for a better
approach/implementation.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.291.2.3 2018/03/16 00:35:40 pgoyette Exp $
d881 1
a881 1
434	COMPAT_60 MODULAR compat \
@


1.291.2.5
log
@Since we're including the sa sysscalls in the compat_60 module code (even
if they are all implemented as no-ops), mark the master syscall list
appropriately.  Otherwise we fail to load the module.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.291.2.4 2018/03/17 06:49:57 pgoyette Exp $
d659 1
a659 2
330	COMPAT_60 MODULAR compat	\
		 	{ int|sys||sa_register(void *newv, void **oldv, \
d661 5
a665 10
331	COMPAT_60 MODULAR compat	\
			{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	COMPAT_60 MODULAR compat	\
			{ int|sys||sa_enable(void); }
333	COMPAT_60 MODULAR compat	\
			{ int|sys||sa_setconcurrency(int concurrency); }
334	COMPAT_60 MODULAR compat	\
			{ int|sys||sa_yield(void); }
335	COMPAT_60 MODULAR compat	\
			{ int|sys||sa_preempt(int sa_id); }
@


1.291.2.6
log
@Mark syscall #175 modular, since it is provided by the COMPAT_30 code
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.291.2.5 2018/03/25 07:19:13 pgoyette Exp $
d384 1
a384 2
175	COMPAT_30 MODULAR compat_30	\
			{ int|sys||ntp_gettime(struct ntptimeval30 *ntvp); }
@


1.291.2.7
log
@Update compat module names to reference the version-specific modules.

This way, when we autoload compat code we load only what is needed,
and nothing "older".
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.291.2.6 2018/03/27 23:08:44 pgoyette Exp $
d79 1
a79 1
7	COMPAT_50 MODULAR compat_50 { int|sys||wait4(pid_t pid, int *status, \
d81 1
a81 1
8	COMPAT_43 MODULAR compat_43	\
d88 1
a88 1
14	COMPAT_50 MODULAR compat_50 RUMP	\
d94 1
a94 1
18	COMPAT_20 MODULAR compat_20 { int|sys||getfsstat(struct statfs12 *buf, \
d96 1
a96 1
19	COMPAT_43 MODULAR compat_43	\
d100 1
a100 1
21	COMPAT_40 MODULAR compat_40	\
d128 1
a128 1
38	COMPAT_43 MODULAR compat_43	\
d131 1
a131 1
40	COMPAT_43 MODULAR compat_43	\
d141 1
a141 1
46	COMPAT_13 MODULAR compat_13 { int|sys||sigaction(int signum, \
d145 1
a145 1
48	COMPAT_13 MODULAR compat_13 { int|sys||sigprocmask(int how, \
d150 2
a151 2
52	COMPAT_13 MODULAR compat_13 { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR compat_13 { int|sys||sigaltstack( \
d156 1
a156 1
55	COMPAT_12 MODULAR compat_12 { int|sys||reboot(int opt); } oreboot
d166 1
a166 1
62	COMPAT_43 MODULAR compat_43	\
d168 1
a168 1
63	COMPAT_43 MODULAR compat_43	\
d171 1
a171 1
64	COMPAT_43 MODULAR compat_43	\
d173 1
a173 1
65	COMPAT_12 MODULAR compat_12 { int|sys||msync(void *addr, size_t len); }
d180 1
a180 1
71	COMPAT_43 MODULAR compat_43	\
d199 1
a199 1
83	COMPAT_50 MODULAR compat_50 { int|sys||setitimer(int which, \
d202 3
a204 4
84	COMPAT_43 MODULAR compat_43 { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR compat_12 { int|sys||swapon(const char *name); } \
			    oswapon
86	COMPAT_50 MODULAR compat_50 { int|sys||getitimer(int which, \
d206 1
a206 1
87	COMPAT_43 MODULAR compat_43	\
d209 1
a209 1
88	COMPAT_43 MODULAR compat_43	\
d212 1
a212 1
89	COMPAT_43 MODULAR compat_43	\
d217 1
a217 1
93	COMPAT_50 MODULAR compat_50 RUMP	\
d223 1
a223 1
97	COMPAT_30 MODULAR compat_30	\
d227 1
a227 1
99	COMPAT_43 MODULAR compat_43	\
d231 1
a231 1
101	COMPAT_43 MODULAR compat_43 { int|sys||send(int s, void *buf, int len, \
d233 1
a233 1
102	COMPAT_43 MODULAR compat_43 { int|sys||recv(int s, void *buf, int len, \
d235 1
a235 1
103	COMPAT_13 MODULAR compat_13	\
d244 1
a244 1
108	COMPAT_43 MODULAR compat_43	\
d250 1
a250 1
112	COMPAT_43 MODULAR compat_43 { int|sys||sigstack(struct sigstack *nss, \
d252 1
a252 1
113	COMPAT_43 MODULAR compat_43	\
d255 1
a255 1
114	COMPAT_43 MODULAR compat_43	\
d258 3
a260 3
116	COMPAT_50 MODULAR compat_50	\
		{ int|sys||gettimeofday(struct timeval50 *tp, void *tzp); }
117	COMPAT_50 MODULAR compat_50	\
d269 1
a269 1
122	COMPAT_50 MODULAR compat_50	\
d274 1
a274 1
125	COMPAT_43 MODULAR compat_43	\
d281 1
a281 1
129	COMPAT_43 MODULAR compat_43	\
d283 1
a283 1
130	COMPAT_43 MODULAR compat_43	\
d295 1
a295 1
138	COMPAT_50 MODULAR compat_50 RUMP { int|sys||utimes(const char *path, \
d298 1
a298 1
140	COMPAT_50 MODULAR compat_50	\
d301 1
a301 1
141	COMPAT_43 MODULAR compat_43	\
d304 1
a304 1
142	COMPAT_43 MODULAR compat_43	\
d306 1
a306 1
143	COMPAT_43 MODULAR compat_43	\
d308 1
a308 1
144	COMPAT_43 MODULAR compat_43	\
d311 1
a311 1
145	COMPAT_43 MODULAR compat_43 { int|sys||setrlimit(int which, \
d313 1
a313 1
146	COMPAT_43 MODULAR compat_43	\
d318 3
a320 3
149	COMPAT_43 MODULAR compat_43 { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR compat_43 { int|sys||getsockname(int fdec,	\
			    void *asa, socklen_t *alen); } ogetsockname
d331 1
a331 1
156	COMPAT_43 MODULAR compat_43	\
d334 1
a334 1
157	COMPAT_20 MODULAR compat_20 { int|sys||statfs(const char *path, \
d336 1
a336 1
158	COMPAT_20 MODULAR compat_20	\
d340 1
a340 1
161	COMPAT_30 MODULAR compat_30 { int|sys||getfh(const char *fname, \
d342 1
a342 1
162	COMPAT_09 MODULAR compat_09	\
d345 1
a345 1
163	COMPAT_09 MODULAR compat_09	\
d356 1
a356 1
169	COMPAT_10 MODULAR compat_sysv_10	\
d364 1
a364 1
170	COMPAT_10 MODULAR compat_sysv_10	\
d372 1
a372 1
171	COMPAT_10 MODULAR compat_sysv_10	\
d405 1
a405 1
187	COMPAT_50 MODULAR compat_50 { int|sys||lfs_segwait(fsid_t *fsidp, \
d407 1
a407 1
188	COMPAT_12 MODULAR compat_12	\
d409 1
a409 1
189	COMPAT_12 MODULAR compat_12	\
d411 1
a411 1
190	COMPAT_12 MODULAR compat_12 { int|sys||lstat(const char *path, \
d420 1
a420 1
196	COMPAT_12 MODULAR compat_12	\
d438 1
a438 1
206	COMPAT_50 MODULAR compat_50 RUMP { int|sys||futimes(int fd, \
d459 1
a459 1
220	COMPAT_14 MODULAR compat_sysv_14	\
d467 1
a467 1
224	COMPAT_14 MODULAR compat_sysv_14 { int|sys||msgctl(int msqid, int cmd, \
d476 1
a476 1
229	COMPAT_14 MODULAR compat_sysv_14 { int|sys||shmctl(int shmid, int cmd, \
d481 6
a486 9
232	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_gettime(clockid_t clock_id, \
		    struct timespec50 *tp); }
233	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_settime(clockid_t clock_id, \
		    const struct timespec50 *tp); }
234	COMPAT_50 MODULAR compat_50	\
		{ int|sys||clock_getres(clockid_t clock_id, \
		    struct timespec50 *tp); }
d490 1
a490 1
237	COMPAT_50 MODULAR compat_50 { int|sys||timer_settime(timer_t timerid, \
d493 1
a493 1
238	COMPAT_50 MODULAR compat_50 { int|sys||timer_gettime(timer_t timerid, \
d499 1
a499 1
240	COMPAT_50 MODULAR compat_50	\
d505 1
a505 1
244	COMPAT_50 MODULAR compat_50	\
d545 9
a553 9
265	COMPAT_50 MODULAR compat_50	\
		{ int|sys||mq_timedsend(mqd_t mqdes, \
		    const char *msg_ptr, size_t msg_len, \
		    unsigned msg_prio, \
		    const struct timespec50 *abs_timeout); }
266	COMPAT_50 MODULAR compat_50	\
		{ ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
		    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
		    const struct timespec50 *abs_timeout); }
d560 1
a560 2
272	COMPAT_30 MODULAR compat_30	\
		{ int|sys||getdents(int fd, char *buf, size_t count); }
d566 1
a566 1
276	COMPAT_50 MODULAR compat_50 RUMP { int|sys||lutimes(const char *path, \
d569 1
a569 1
278	COMPAT_30 MODULAR compat_30	\
d571 1
a571 1
279	COMPAT_30 MODULAR compat_30	\
d573 1
a573 1
280	COMPAT_30 MODULAR compat_30	\
d595 1
a595 1
291	COMPAT_16 MODULAR compat_16 { int|sys|14|sigaction(int signum, \
d603 1
a603 1
295	COMPAT_16 MODULAR compat_16	\
d607 1
a607 1
298	COMPAT_30 MODULAR compat_30	\
d609 1
a609 1
299	COMPAT_30 MODULAR compat_30	\
d612 1
a612 1
300	COMPAT_20 MODULAR compat_20	\
d615 1
a615 1
301	COMPAT_50 MODULAR compat_sysv_50	\
d618 3
a620 4
302	COMPAT_50 MODULAR compat_sysv_50	\
		{ int|sys|13|msgctl(int msqid, int cmd, struct msqid_ds *buf); }
303	COMPAT_50 MODULAR compat_sysv_50	\
		{ int|sys|13|shmctl(int shmid, int cmd, \
d622 1
a622 1
304	STD 	RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
d641 1
a641 1
320	COMPAT_50 MODULAR compat_50	\
d660 1
a660 1
330	COMPAT_60 MODULAR compat_60	\
d663 1
a663 1
331	COMPAT_60 MODULAR compat_60	\
d665 1
a665 1
332	COMPAT_60 MODULAR compat_60	\
d667 1
a667 1
333	COMPAT_60 MODULAR compat_60	\
d669 1
a669 1
334	COMPAT_60 MODULAR compat_60	\
d671 1
a671 1
335	COMPAT_60 MODULAR compat_60	\
d688 1
a688 1
345	COMPAT_50 MODULAR compat_50 RUMP { int|sys||kevent(int fd, \
d716 1
a716 1
359	COMPAT_30 MODULAR compat_30	\
d752 1
a752 1
373	COMPAT_50 MODULAR compat_50 RUMP	\
d756 1
a756 1
374	COMPAT_50 MODULAR compat_50 RUMP	\
d786 1
a786 1
387	COMPAT_50 MODULAR compat_50 RUMP	\
d788 1
a788 1
388	COMPAT_50 MODULAR compat_50 RUMP	\
d790 1
a790 1
389	COMPAT_50 MODULAR compat_50 RUMP	\
d794 1
a794 2
392	COMPAT_30 MODULAR compat_30	\
		{ int|sys|30|fhstat(const struct compat_30_fhandle \
d796 1
a796 1
393	COMPAT_50 MODULAR compat_30	\
d805 1
a805 1
398	COMPAT_50 MODULAR compat_50 RUMP { int|sys|40|fhstat(const void *fhp, \
d888 1
a888 1
434	COMPAT_60 MODULAR compat_60 \
@


1.291.2.8
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.292 2018/07/12 10:46:48 maxv Exp $
d690 2
a691 2
341	OBSOL		sys_pmc_get_info
342	OBSOL		sys_pmc_control
@


1.291.2.9
log
@Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.293 2018/07/31 13:00:13 rjs Exp $
d416 1
a416 2
193	STD	RUMP	{ int|sys||getsockopt2(int s, int level, int name, \
			    void *val, socklen_t *avalsize); }
@


1.290
log
@Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

It is an obsolete remnant from the old UNIX.

Sponsored by <The NetBSD Foundation>
@
text
@d183 1
a183 1
72	OBSOL		vadvise
@


1.289
log
@Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project.

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.288 2017/12/19 08:48:19 kamil Exp $
d183 1
a183 1
72	STD 		{ int|sys||ovadvise(int anom); } vadvise
@


1.288
log
@Drop the sstk(2) syscall stub

sstk - change stack section size

This functionality has never been implemented and is a remnant from 16-bit
UNIX. This stub appeared with the first NetBSD commit.

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.287 2017/12/08 01:19:29 christos Exp $
d178 1
a178 1
69	STD 		{ int|sys||sbrk(intptr_t incr); }
@


1.287
log
@make _lwp_park return the remaining time to sleep in the "ts" argument
if it is a relative timestamp, as discussed in tech-kern.
XXX: pullup-8
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.286 2016/11/02 00:11:59 pgoyette Exp $
d179 1
a179 1
70	STD 		{ int|sys||sstk(int incr); }
@


1.286
log
@* Split sys/kern/sys_process.c into three parts:
        1 - ptrace(2) syscall for native emulation
        2 - common ptrace(2) syscall code (shared with compat_netbsd32)
        3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2.  Both modules will be built-in to the
  kernel if "options PTRACE" is included in the config file (this is
  the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
  files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
  option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
    just add a procfs attribute to the sys/kern/sys_process.c file's
    entry in files.kern, and add PROCFS to the "#if defineds" for
    process_domem().  It's really confusing to have two different ways
    of requiring this file.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.285 2016/07/03 14:24:59 christos Exp $
d978 1
a978 1
			    const struct timespec *ts, lwpid_t unpark, \
@


1.285
log
@GSoC 2016 Charles Cui: Implement thread priority protection based on work
by Andy Doran. Also document the get/set pshared thread calls as not
implemented, and add a skeleton implementation that is disabled.
XXX: document _sched_protect(2).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.284 2016/04/23 23:08:26 christos Exp $
d103 1
a103 1
22	STD 	 RUMP	{ int|sys||unmount(const char *path, int flags); }
d107 2
a108 1
26	STD 		{ int|sys||ptrace(int req, pid_t pid, void *addr, \
@


1.285.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.286 2016/11/02 00:11:59 pgoyette Exp $
d103 1
a103 1
22	STD 	RUMP	{ int|sys||unmount(const char *path, int flags); }
d107 1
a107 2
26	STD 	MODULAR ptrace	\
			{ int|sys||ptrace(int req, pid_t pid, void *addr, \
@


1.284
log
@Add clock_getcpuclockid2(2) as well as CLOCK_{PROCESS,THREAD}_CPUTIME_ID.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.283 2016/04/03 01:00:26 christos Exp $
d695 1
a695 1
351	UNIMPL
@


1.283
log
@include <sys/idtype.h>
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.282 2016/04/02 21:01:32 christos Exp $
d986 2
@


1.282
log
@add wait6
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.281 2015/12/03 02:51:00 pgoyette Exp $
d58 1
@


1.281
log
@Merge the compat_sysv module into the sysv_ipc module - it should
never have been a separate module in the first place (my bad).

Adjust dependencies as appropriate.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.280 2015/10/10 03:27:30 pgoyette Exp $
d982 3
@


1.280
log
@Correctly mark syscalls 301, 302, 303 so that they will autoload the
compat_sysv module if not already built-in.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.279 2015/10/02 19:47:08 christos Exp $
d354 1
a354 1
169	COMPAT_10 MODULAR compat_sysv	\
d362 1
a362 1
170	COMPAT_10 MODULAR compat_sysv	\
d370 1
a370 1
171	COMPAT_10 MODULAR compat_sysv	\
d456 1
a456 1
220	COMPAT_14 MODULAR compat_sysv	\
d464 1
a464 1
224	COMPAT_14 MODULAR compat_sysv { int|sys||msgctl(int msqid, int cmd, \
d473 1
a473 1
229	COMPAT_14 MODULAR compat_sysv { int|sys||shmctl(int shmid, int cmd, \
d612 1
a612 1
301	COMPAT_50 MODULAR compat_sysv	\
d615 1
a615 1
302	COMPAT_50 MODULAR compat_sysv { int|sys|13|msgctl(int msqid, int cmd, \
d617 1
a617 1
303	COMPAT_50 MODULAR compat_sysv { int|sys|13|shmctl(int shmid, int cmd, \
@


1.279
log
@PR/50295: clock_nanotime() should not set errno, but return the error.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.278 2015/06/18 15:16:12 pooka Exp $
a611 1
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
a614 4
#else
301	EXCL		____semctl13
#endif
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
a616 4
#else
302	EXCL		__msgctl13
#endif
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
a618 3
#else
303	EXCL		__shmctl13
#endif
@


1.278
log
@+RUMP to __posix_{,f,l}chown.  at least python wants them.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.277 2015/05/13 02:10:46 pgoyette Exp $
d984 1
a984 1
477	STD  RUMP	{ int|sys||clock_nanosleep(clockid_t clock_id, \
@


1.277
log
@Update syscalls to point to the new module. (Regen of dependant
files to follow.)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.276 2015/05/10 07:41:15 pgoyette Exp $
d576 1
a576 1
283	STD 		{ int|sys||__posix_chown(const char *path, uid_t uid, \
d578 1
a578 1
284	STD 		{ int|sys||__posix_fchown(int fd, uid_t uid, \
d580 1
a580 1
285	STD 		{ int|sys||__posix_lchown(const char *path, uid_t uid, \
@


1.276
log
@Split the SYSV* compat code out into a separate compat_sysv module.

For monolithic kernels, both modules will be compiled as "built-ins",
while modular environments will be able to load the SYSVSEM, SYSVSHM,
and SYSVMSG code independant from the rest of compat.

This is a necessary precursor step to making the "STD" SYSV* code
into a separate module.

Tested in both monolithic and modular environments with no errors
seen.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.275 2015/05/09 06:04:13 pgoyette Exp $
d353 1
a353 1
#if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
d361 1
a361 1
#if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
d369 1
a369 1
#if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
a455 1
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
d459 3
a461 2
221	STD 		{ int|sys||semget(key_t key, int nsems, int semflg); }
222	STD 		{ int|sys||semop(int semid, struct sembuf *sops, \
d463 1
a463 8
223	STD 		{ int|sys||semconfig(int flag); }
#else
220	EXCL		compat_14_semctl
221	EXCL		semget
222	EXCL		semop
223	EXCL		semconfig
#endif
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
d466 2
a467 2
225	STD 		{ int|sys||msgget(key_t key, int msgflg); }
226	STD 		{ int|sys||msgsnd(int msqid, const void *msgp, \
d469 1
a469 1
227	STD 		{ ssize_t|sys||msgrcv(int msqid, void *msgp, \
d471 2
a472 9
#else
224	EXCL 		compat_14_msgctl
225	EXCL 		msgget
226	EXCL 		msgsnd
227	EXCL 		msgrcv
#endif
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
228	STD 		{ void *|sys||shmat(int shmid, const void *shmaddr, \
			    int shmflg); }
d475 3
a477 8
230	STD 		{ int|sys||shmdt(const void *shmaddr); }
231	STD 		{ int|sys||shmget(key_t key, size_t size, int shmflg); }
#else
228	EXCL		shmat
229	EXCL		compat_14_shmctl
230	EXCL		shmdt
231	EXCL		shmget
#endif
d910 3
a912 8
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
442	STD 		{ int|sys|50|__semctl(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
#else
442	EXCL		____semctl50
#endif
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
443	STD 		{ int|sys|50|shmctl(int shmid, int cmd, \
d914 1
a914 5
#else
443	EXCL 		____shmctl50
#endif
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
444	STD 		{ int|sys|50|msgctl(int msqid, int cmd, \
a915 3
#else
444	EXCL 		____msgctl50
#endif
@


1.275
log
@Remove extraneous word 'compat' on header line
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.274 2015/05/09 05:51:26 pgoyette Exp $
d354 1
a354 1
169	COMPAT_10 MODULAR compat	\
d362 1
a362 1
170	COMPAT_10 MODULAR compat	\
d370 1
a370 1
171	COMPAT_10 MODULAR compat	\
d457 1
a457 1
220	COMPAT_14 MODULAR compat	\
d471 1
a471 1
224	COMPAT_14 MODULAR compat { int|sys||msgctl(int msqid, int cmd, \
d487 1
a487 1
229	COMPAT_14 MODULAR compat { int|sys||shmctl(int shmid, int cmd, \
d632 1
a632 1
301	COMPAT_50 MODULAR compat	\
d639 1
a639 1
302	COMPAT_50 MODULAR compat { int|sys|13|msgctl(int msqid, int cmd, \
d645 1
a645 1
303	COMPAT_50 MODULAR compat { int|sys|13|shmctl(int shmid, int cmd, \
@


1.274
log
@Teach makesyscalls.sh how to auto-generate the list of syscalls that
can be resolved by module auto-load.

Update syscalls.master to identify the specific module that contains
the auto-loadable code for each syscall.
@
text
@d1 1
a1 1
	compat $NetBSD: syscalls.master,v 1.273 2015/04/08 13:24:25 justin Exp $
@


1.273
log
@Add __posix_rename as a rump syscall
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp $
d15 1
a15 1
;	MODULAR:attempt to autoload system call if not present
d78 1
a78 1
7	COMPAT_50 MODULAR { int|sys||wait4(pid_t pid, int *status, \
d80 2
a81 1
8	COMPAT_43 MODULAR { int|sys||creat(const char *path, mode_t mode); } ocreat
d87 2
a88 2
14	COMPAT_50 MODULAR RUMP { int|sys||mknod(const char *path, mode_t mode, \
			    uint32_t dev); }
d93 1
a93 1
18	COMPAT_20 MODULAR { int|sys||getfsstat(struct statfs12 *buf, \
d95 2
a96 1
19	COMPAT_43 MODULAR { long|sys||lseek(int fd, long offset, int whence); }\
d99 2
a100 1
21	COMPAT_40 MODULAR { int|sys||mount(const char *type, const char *path, \
d126 2
a127 2
38	COMPAT_43 MODULAR { int|sys||stat(const char *path, struct stat43 *ub); } \
			    stat43
d129 2
a130 1
40	COMPAT_43 MODULAR { int|sys||lstat(const char *path, \
d139 1
a139 1
46	COMPAT_13 MODULAR { int|sys||sigaction(int signum, \
d143 1
a143 1
48	COMPAT_13 MODULAR { int|sys||sigprocmask(int how, \
d148 2
a149 2
52	COMPAT_13 MODULAR { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR { int|sys||sigaltstack( \
d154 1
a154 1
55	COMPAT_12 MODULAR { int|sys||reboot(int opt); } oreboot
d164 4
a167 2
62	COMPAT_43 MODULAR { int|sys||fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR { int|sys||getkerninfo(int op, char *where, int *size, \
d169 3
a171 2
64	COMPAT_43 MODULAR { int|sys||getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR { int|sys||msync(void *addr, size_t len); }
d178 2
a179 1
71	COMPAT_43 MODULAR { int|sys||mmap(void *addr, size_t len, int prot, \
d197 1
a197 1
83	COMPAT_50 MODULAR { int|sys||setitimer(int which, \
d200 3
a202 3
84	COMPAT_43 MODULAR { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR { int|sys||swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR { int|sys||getitimer(int which, \
d204 2
a205 1
87	COMPAT_43 MODULAR { int|sys||gethostname(char *hostname, u_int len); } \
d207 2
a208 1
88	COMPAT_43 MODULAR { int|sys||sethostname(char *hostname, u_int len); } \
d210 2
a211 1
89	COMPAT_43 MODULAR { int|sys||getdtablesize(void); } ogetdtablesize
d215 2
a216 1
93	COMPAT_50 MODULAR RUMP	{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
d221 2
a222 1
97	COMPAT_30 MODULAR { int|sys||socket(int domain, int type, int protocol); }
d225 2
a226 1
99	COMPAT_43 MODULAR { int|sys||accept(int s, void *name, \
d229 1
a229 1
101	COMPAT_43 MODULAR { int|sys||send(int s, void *buf, int len, \
d231 1
a231 1
102	COMPAT_43 MODULAR { int|sys||recv(int s, void *buf, int len, \
d233 2
a234 1
103	COMPAT_13 MODULAR { int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \
d242 2
a243 1
108	COMPAT_43 MODULAR { int|sys||sigvec(int signum, struct sigvec *nsv, \
d245 4
a248 4
109	COMPAT_43 MODULAR { int|sys||sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR { int|sys||sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR { int|sys||sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR { int|sys||sigstack(struct sigstack *nss, \
d250 2
a251 1
113	COMPAT_43 MODULAR { int|sys||recvmsg(int s, struct omsghdr *msg, \
d253 2
a254 2
114	COMPAT_43 MODULAR { int|sys||sendmsg(int s, void *msg, int flags); } \
			    osendmsg
d256 1
a256 1
116	COMPAT_50 MODULAR { int|sys||gettimeofday(struct timeval50 *tp, \
d258 2
a259 1
117	COMPAT_50 MODULAR { int|sys||getrusage(int who, struct rusage50 *rusage); }
d267 2
a268 1
122	COMPAT_50 MODULAR { int|sys||settimeofday(const struct timeval50 *tv, \
d272 2
a273 1
125	COMPAT_43 MODULAR { int|sys||recvfrom(int s, void *buf, size_t len, \
d279 4
a282 3
129	COMPAT_43 MODULAR { int|sys||truncate(const char *path, long length); } \
			    otruncate
130	COMPAT_43 MODULAR { int|sys||ftruncate(int fd, long length); } oftruncate
d293 1
a293 1
138	COMPAT_50 MODULAR RUMP { int|sys||utimes(const char *path, \
d296 2
a297 1
140	COMPAT_50 MODULAR { int|sys||adjtime(const struct timeval50 *delta, \
d299 2
a300 1
141	COMPAT_43 MODULAR { int|sys||getpeername(int fdes, void *asa, \
d302 6
a307 3
142	COMPAT_43 MODULAR { int32_t|sys||gethostid(void); } ogethostid
143	COMPAT_43 MODULAR { int|sys||sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR { int|sys||getrlimit(int which, \
d309 1
a309 1
145	COMPAT_43 MODULAR { int|sys||setrlimit(int which, \
d311 2
a312 1
146	COMPAT_43 MODULAR { int|sys||killpg(int pgid, int signum); } okillpg
d314 1
a314 1
148	COMPAT_50 MODULAR { int|sys||quotactl(const char *path, int cmd, \
d316 2
a317 2
149	COMPAT_43 MODULAR { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR { int|sys||getsockname(int fdec, void *asa, \
d328 3
a330 2
155	STD MODULAR RUMP  { int|sys||nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR { int|sys||getdirentries(int fd, char *buf, \
d332 1
a332 1
157	COMPAT_20 MODULAR { int|sys||statfs(const char *path, \
d334 2
a335 1
158	COMPAT_20 MODULAR { int|sys||fstatfs(int fd, struct statfs12 *buf); }
d338 1
a338 1
161	COMPAT_30 MODULAR { int|sys||getfh(const char *fname, \
d340 2
a341 1
162	COMPAT_09 MODULAR { int|sys||getdomainname(char *domainname, int len); } \
d343 2
a344 1
163	COMPAT_09 MODULAR { int|sys||setdomainname(char *domainname, int len); } \
d346 2
a347 1
164	COMPAT_09 MODULAR { int|sys||uname(struct outsname *name); } ouname
d354 2
a355 1
169	COMPAT_10 MODULAR { int|sys||semsys(int which, int a2, int a3, int a4, \
d362 2
a363 1
170	COMPAT_10 MODULAR { int|sys||msgsys(int which, int a2, int a3, int a4, \
d370 2
a371 1
171	COMPAT_10 MODULAR { int|sys||shmsys(int which, int a2, int a3, int a4); } \
d397 1
a397 1
184	STD MODULAR	{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d399 1
a399 1
185	STD MODULAR	{ int|sys||lfs_markv(fsid_t *fsidp, \
d401 2
a402 2
186	STD MODULAR	{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
187	COMPAT_50 MODULAR { int|sys||lfs_segwait(fsid_t *fsidp, \
d404 5
a408 4
188	COMPAT_12 MODULAR { int|sys||stat(const char *path, struct stat12 *ub); } \
			    stat12
189	COMPAT_12 MODULAR { int|sys||fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR { int|sys||lstat(const char *path, \
d417 2
a418 1
196	COMPAT_12 MODULAR { int|sys||getdirentries(int fd, char *buf, \
d435 1
a435 1
206	COMPAT_50 MODULAR RUMP { int|sys||futimes(int fd, \
d444 1
a444 1
210	EXTERN	MODULAR { int|sys||afssys(long id, long a1, long a2, \
d457 2
a458 1
220	COMPAT_14 MODULAR { int|sys||__semctl(int semid, int semnum, int cmd, \
d471 1
a471 1
224	COMPAT_14 MODULAR { int|sys||msgctl(int msqid, int cmd, \
d487 1
a487 1
229	COMPAT_14 MODULAR { int|sys||shmctl(int shmid, int cmd, \
d497 1
a497 1
232	COMPAT_50 MODULAR { int|sys||clock_gettime(clockid_t clock_id, \
d499 1
a499 1
233	COMPAT_50 MODULAR { int|sys||clock_settime(clockid_t clock_id, \
d501 1
a501 1
234	COMPAT_50 MODULAR { int|sys||clock_getres(clockid_t clock_id, \
d506 2
a507 2
237	COMPAT_50 MODULAR { int|sys||timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec50 *value, \
d509 2
a510 2
238	COMPAT_50 MODULAR { int|sys||timer_gettime(timer_t timerid, struct \
			    itimerspec50 *value); }
d515 2
a516 1
240	COMPAT_50 MODULAR { int|sys||nanosleep(const struct timespec50 *rqtp, \
d521 3
a523 3
244	COMPAT_50 MODULAR { int|sys||__sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, \
			    struct timespec50 *timeout); }
d527 2
a528 2
247	STD MODULAR RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR RUMP { int|sys||_ksem_open(const char *name, int oflag, \
d530 6
a535 6
249	STD MODULAR RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR RUMP { int|sys||_ksem_getvalue(intptr_t id, \
d537 2
a538 2
255	STD MODULAR RUMP { int|sys||_ksem_destroy(intptr_t id); }
256	STD MODULAR RUMP { int|sys||_ksem_timedwait(intptr_t id, \
d540 2
a541 1
257	STD MODULAR	{ mqd_t|sys||mq_open(const char * name, int oflag, \
d543 4
a546 3
258	STD MODULAR	{ int|sys||mq_close(mqd_t mqdes); }
259	STD MODULAR	{ int|sys||mq_unlink(const char *name); }
260	STD MODULAR	{ int|sys||mq_getattr(mqd_t mqdes, \
d548 2
a549 1
261	STD MODULAR	{ int|sys||mq_setattr(mqd_t mqdes, \
d552 2
a553 1
262	STD MODULAR	{ int|sys||mq_notify(mqd_t mqdes, \
d555 2
a556 1
263	STD MODULAR	{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d558 2
a559 1
264	STD MODULAR	{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 2
a562 1
265	COMPAT_50 MODULAR { int|sys||mq_timedsend(mqd_t mqdes, \
d566 2
a567 1
266	COMPAT_50 MODULAR { ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
d576 1
a576 1
272	COMPAT_30 MODULAR { int|sys||getdents(int fd, char *buf, size_t count); }
d582 1
a582 1
276	COMPAT_50 MODULAR RUMP { int|sys||lutimes(const char *path, \
d585 6
a590 3
278	COMPAT_30 MODULAR { int|sys|13|stat(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR { int|sys|13|fstat(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR { int|sys|13|lstat(const char *path, struct stat13 *ub); }
d611 1
a611 1
291	COMPAT_16 MODULAR { int|sys|14|sigaction(int signum, \
d619 2
a620 1
295	COMPAT_16 MODULAR { int|sys|14|sigreturn(struct sigcontext *sigcntxp); }
d623 4
a626 2
298	COMPAT_30 MODULAR { int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR { int|sys||fhstat(const struct compat_30_fhandle *fhp, \
d628 2
a629 1
300	COMPAT_20 MODULAR { int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \
d632 2
a633 1
301	COMPAT_50 MODULAR { int|sys|13|__semctl(int semid, int semnum, int cmd, \
d639 1
a639 1
302	COMPAT_50 MODULAR { int|sys|13|msgctl(int msqid, int cmd, \
d645 1
a645 1
303	COMPAT_50 MODULAR { int|sys|13|shmctl(int shmid, int cmd, \
d669 2
a670 1
320	COMPAT_50 MODULAR { int|sys||_lwp_park(const struct timespec50 *ts, \
d710 1
a710 1
345	COMPAT_50 MODULAR RUMP { int|sys||kevent(int fd, \
d738 2
a739 1
359	COMPAT_30 MODULAR { int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \
d774 2
a775 1
373	COMPAT_50 MODULAR RUMP { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
d778 2
a779 1
374	COMPAT_50 MODULAR RUMP { int|sys||pollts(struct pollfd *fds, u_int nfds, \
d808 6
a813 3
387	COMPAT_50 MODULAR RUMP { int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR RUMP { int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR RUMP { int|sys|30|lstat(const char *path, struct stat30 *ub); }
d816 1
a816 1
392	COMPAT_30 MODULAR { int|sys|30|fhstat(const struct compat_30_fhandle \
d818 2
a819 1
393	COMPAT_50 MODULAR { int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); }
d827 1
a827 1
398	COMPAT_50 MODULAR RUMP { int|sys|40|fhstat(const void *fhp, \
d831 18
a848 10
399	STD MODULAR RUMP	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR RUMP	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR RUMP	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR RUMP	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR RUMP	{ int|sys||aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR { int|sys||aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec50 *timeout); }
405	STD MODULAR RUMP	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR RUMP	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
				    int nent, struct sigevent *sig); }
d879 1
a879 1
422	STD  MODULAR	{ int|sys|50|lfs_segwait(fsid_t *fsidp, \
d901 2
a902 1
432	STD MODULAR	{ int|sys|50|mq_timedsend(mqd_t mqdes, \
d906 2
a907 1
433	STD MODULAR	{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
d910 2
a911 1
434	COMPAT_60 MODULAR { int|sys||_lwp_park(const struct timespec *ts, \
d923 1
a923 1
438	STD MODULAR RUMP { int|sys|50|aio_suspend( \
@


1.272
log
@PR/49684: Pierre Pronchery: readlinkat(2) return type is wrong.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.271 2015/02/10 15:07:39 martin Exp $
d526 1
a526 1
270	STD 		{ int|sys||__posix_rename(const char *from, \
@


1.271
log
@Mark posix_fallocate as NOERR
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270 2014/07/25 08:25:47 dholland Exp $
d922 1
a922 1
469	STD  RUMP	{ int|sys||readlinkat(int fd, const char *path, \
@


1.270
log
@Add fdiscard and posix_fallocate syscalls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.269 2014/06/12 21:41:33 joerg Exp $
d947 1
a947 1
479	STD  RUMP	{ int|sys||posix_fallocate(int fd, int PAD, off_t pos, \
@


1.270.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.272 2015/02/22 00:50:30 christos Exp $
d922 1
a922 1
469	STD  RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
d947 1
a947 1
479	NOERR	RUMP	{ int|sys||posix_fallocate(int fd, int PAD, off_t pos, \
@


1.270.4.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270.4.1 2015/04/06 15:18:20 skrll Exp $
d15 1
a15 1
;	MODULAR modname :attempt to autoload system call module if not present
d78 1
a78 1
7	COMPAT_50 MODULAR compat { int|sys||wait4(pid_t pid, int *status, \
d80 1
a80 2
8	COMPAT_43 MODULAR compat	\
		{ int|sys||creat(const char *path, mode_t mode); } ocreat
d86 2
a87 2
14	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys||mknod(const char *path, mode_t mode, uint32_t dev); }
d92 1
a92 1
18	COMPAT_20 MODULAR compat { int|sys||getfsstat(struct statfs12 *buf, \
d94 1
a94 2
19	COMPAT_43 MODULAR compat	\
		{ long|sys||lseek(int fd, long offset, int whence); }\
d97 1
a97 2
21	COMPAT_40 MODULAR compat	\
		{ int|sys||mount(const char *type, const char *path, \
d123 2
a124 2
38	COMPAT_43 MODULAR compat	\
		{ int|sys||stat(const char *path, struct stat43 *ub); } stat43
d126 1
a126 2
40	COMPAT_43 MODULAR compat	\
		{ int|sys||lstat(const char *path, \
d135 1
a135 1
46	COMPAT_13 MODULAR compat { int|sys||sigaction(int signum, \
d139 1
a139 1
48	COMPAT_13 MODULAR compat { int|sys||sigprocmask(int how, \
d144 2
a145 2
52	COMPAT_13 MODULAR compat { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR compat { int|sys||sigaltstack( \
d150 1
a150 1
55	COMPAT_12 MODULAR compat { int|sys||reboot(int opt); } oreboot
d160 2
a161 4
62	COMPAT_43 MODULAR compat	\
		{ int|sys||fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR compat	\
		{ int|sys||getkerninfo(int op, char *where, int *size, \
d163 2
a164 3
64	COMPAT_43 MODULAR compat	\
		{ int|sys||getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR compat { int|sys||msync(void *addr, size_t len); }
d171 1
a171 2
71	COMPAT_43 MODULAR compat	\
		{ int|sys||mmap(void *addr, size_t len, int prot, \
d189 1
a189 1
83	COMPAT_50 MODULAR compat { int|sys||setitimer(int which, \
d192 3
a194 3
84	COMPAT_43 MODULAR compat { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR compat { int|sys||swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR compat { int|sys||getitimer(int which, \
d196 1
a196 2
87	COMPAT_43 MODULAR compat	\
		{ int|sys||gethostname(char *hostname, u_int len); } \
d198 1
a198 2
88	COMPAT_43 MODULAR compat	\
		{ int|sys||sethostname(char *hostname, u_int len); } \
d200 1
a200 2
89	COMPAT_43 MODULAR compat	\
		{ int|sys||getdtablesize(void); } ogetdtablesize
d204 1
a204 2
93	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
d209 1
a209 2
97	COMPAT_30 MODULAR compat	\
		{ int|sys||socket(int domain, int type, int protocol); }
d212 1
a212 2
99	COMPAT_43 MODULAR compat	\
		{ int|sys||accept(int s, void *name, \
d215 1
a215 1
101	COMPAT_43 MODULAR compat { int|sys||send(int s, void *buf, int len, \
d217 1
a217 1
102	COMPAT_43 MODULAR compat { int|sys||recv(int s, void *buf, int len, \
d219 1
a219 2
103	COMPAT_13 MODULAR compat	\
		{ int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \
d227 1
a227 2
108	COMPAT_43 MODULAR compat	\
		{ int|sys||sigvec(int signum, struct sigvec *nsv, \
d229 4
a232 4
109	COMPAT_43 MODULAR compat { int|sys||sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR compat { int|sys||sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR compat { int|sys||sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR compat { int|sys||sigstack(struct sigstack *nss, \
d234 1
a234 2
113	COMPAT_43 MODULAR compat	\
		{ int|sys||recvmsg(int s, struct omsghdr *msg, \
d236 2
a237 2
114	COMPAT_43 MODULAR compat	\
		{ int|sys||sendmsg(int s, void *msg, int flags); } osendmsg
d239 1
a239 1
116	COMPAT_50 MODULAR compat { int|sys||gettimeofday(struct timeval50 *tp, \
d241 1
a241 2
117	COMPAT_50 MODULAR compat	\
		{ int|sys||getrusage(int who, struct rusage50 *rusage); }
d249 1
a249 2
122	COMPAT_50 MODULAR compat	\
		{ int|sys||settimeofday(const struct timeval50 *tv, \
d253 1
a253 2
125	COMPAT_43 MODULAR compat	\
		{ int|sys||recvfrom(int s, void *buf, size_t len, \
d259 3
a261 4
129	COMPAT_43 MODULAR compat	\
		{ int|sys||truncate(const char *path, long length); } otruncate
130	COMPAT_43 MODULAR compat	\
		{ int|sys||ftruncate(int fd, long length); } oftruncate
d272 1
a272 1
138	COMPAT_50 MODULAR compat RUMP { int|sys||utimes(const char *path, \
d275 1
a275 2
140	COMPAT_50 MODULAR compat	\
		{ int|sys||adjtime(const struct timeval50 *delta, \
d277 1
a277 2
141	COMPAT_43 MODULAR compat	\
		{ int|sys||getpeername(int fdes, void *asa, \
d279 3
a281 6
142	COMPAT_43 MODULAR compat	\
		{ int32_t|sys||gethostid(void); } ogethostid
143	COMPAT_43 MODULAR compat	\
		{ int|sys||sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR compat	\
		{ int|sys||getrlimit(int which, \
d283 1
a283 1
145	COMPAT_43 MODULAR compat { int|sys||setrlimit(int which, \
d285 1
a285 2
146	COMPAT_43 MODULAR compat	\
		{ int|sys||killpg(int pgid, int signum); } okillpg
d287 1
a287 1
148	COMPAT_50 MODULAR XXX { int|sys||quotactl(const char *path, int cmd, \
d289 2
a290 2
149	COMPAT_43 MODULAR compat { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR compat { int|sys||getsockname(int fdec, void *asa, \
d301 2
a302 3
155	STD MODULAR nfsserver RUMP  { int|sys||nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR compat	\
		{ int|sys||getdirentries(int fd, char *buf, \
d304 1
a304 1
157	COMPAT_20 MODULAR compat { int|sys||statfs(const char *path, \
d306 1
a306 2
158	COMPAT_20 MODULAR compat	\
		{ int|sys||fstatfs(int fd, struct statfs12 *buf); }
d309 1
a309 1
161	COMPAT_30 MODULAR compat { int|sys||getfh(const char *fname, \
d311 1
a311 2
162	COMPAT_09 MODULAR compat	\
		{ int|sys||getdomainname(char *domainname, int len); } \
d313 1
a313 2
163	COMPAT_09 MODULAR compat	\
		{ int|sys||setdomainname(char *domainname, int len); } \
d315 1
a315 2
164	COMPAT_09 MODULAR compat	\
		{ int|sys||uname(struct outsname *name); } ouname
d321 2
a322 3
#if !defined(_LP64)
169	COMPAT_10 MODULAR compat_sysv	\
		{ int|sys||semsys(int which, int a2, int a3, int a4, \
d328 2
a329 3
#if !defined(_LP64)
170	COMPAT_10 MODULAR compat_sysv	\
		{ int|sys||msgsys(int which, int a2, int a3, int a4, \
d335 2
a336 3
#if !defined(_LP64)
171	COMPAT_10 MODULAR compat_sysv	\
		{ int|sys||shmsys(int which, int a2, int a3, int a4); } \
d362 1
a362 1
184	STD MODULAR lfs	{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d364 1
a364 1
185	STD MODULAR lfs	{ int|sys||lfs_markv(fsid_t *fsidp, \
d366 2
a367 2
186	STD MODULAR lfs	{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
187	COMPAT_50 MODULAR compat { int|sys||lfs_segwait(fsid_t *fsidp, \
d369 4
a372 5
188	COMPAT_12 MODULAR compat	\
		{ int|sys||stat(const char *path, struct stat12 *ub); } stat12
189	COMPAT_12 MODULAR compat	\
		{ int|sys||fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR compat { int|sys||lstat(const char *path, \
d381 1
a381 2
196	COMPAT_12 MODULAR compat	\
		{ int|sys||getdirentries(int fd, char *buf, \
d398 1
a398 1
206	COMPAT_50 MODULAR compat RUMP { int|sys||futimes(int fd, \
d407 1
a407 1
210	EXTERN	MODULAR openafs { int|sys||afssys(long id, long a1, long a2, \
d419 2
a420 2
220	COMPAT_14 MODULAR compat_sysv	\
		{ int|sys||__semctl(int semid, int semnum, int cmd, \
d422 2
a423 3
221	STD MODULAR sysv_ipc { int|sys||semget(key_t key, int nsems, \
			    int semflg); }
222	STD MODULAR sysv_ipc { int|sys||semop(int semid, struct sembuf *sops, \
d425 9
a433 2
223	STD MODULAR sysv_ipc { int|sys||semconfig(int flag); }
224	COMPAT_14 MODULAR compat_sysv { int|sys||msgctl(int msqid, int cmd, \
d435 2
a436 2
225	STD MODULAR sysv_ipc { int|sys||msgget(key_t key, int msgflg); }
226	STD MODULAR sysv_ipc { int|sys||msgsnd(int msqid, const void *msgp, \
d438 1
a438 1
227	STD MODULAR sysv_ipc { ssize_t|sys||msgrcv(int msqid, void *msgp, \
d440 10
a449 3
228	STD MODULAR sysv_ipc { void *|sys||shmat(int shmid,	\
			    const void *shmaddr, int shmflg); }
229	COMPAT_14 MODULAR compat_sysv { int|sys||shmctl(int shmid, int cmd, \
d451 9
a459 4
230	STD MODULAR sysv_ipc { int|sys||shmdt(const void *shmaddr); }
231	STD MODULAR sysv_ipc { int|sys||shmget(key_t key, size_t size,	\
			    int shmflg); }
232	COMPAT_50 MODULAR compat { int|sys||clock_gettime(clockid_t clock_id, \
d461 1
a461 1
233	COMPAT_50 MODULAR compat { int|sys||clock_settime(clockid_t clock_id, \
d463 1
a463 1
234	COMPAT_50 MODULAR compat { int|sys||clock_getres(clockid_t clock_id, \
d468 2
a469 2
237	COMPAT_50 MODULAR compat { int|sys||timer_settime(timer_t timerid, \
			    int flags, const struct itimerspec50 *value, \
d471 2
a472 2
238	COMPAT_50 MODULAR compat { int|sys||timer_gettime(timer_t timerid, \
			    struct itimerspec50 *value); }
d477 1
a477 2
240	COMPAT_50 MODULAR compat	\
		{ int|sys||nanosleep(const struct timespec50 *rqtp, \
d482 3
a484 3
244	COMPAT_50 MODULAR compat	\
		{ int|sys||__sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, struct timespec50 *timeout); }
d488 2
a489 2
247	STD MODULAR ksem RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR ksem RUMP { int|sys||_ksem_open(const char *name, int oflag, \
d491 6
a496 6
249	STD MODULAR ksem RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR ksem RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR ksem RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR ksem RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR ksem RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR ksem RUMP { int|sys||_ksem_getvalue(intptr_t id, \
d498 2
a499 2
255	STD MODULAR ksem RUMP { int|sys||_ksem_destroy(intptr_t id); }
256	STD MODULAR ksem RUMP { int|sys||_ksem_timedwait(intptr_t id, \
d501 1
a501 2
257	STD MODULAR mqueue	\
			{ mqd_t|sys||mq_open(const char * name, int oflag, \
d503 3
a505 4
258	STD MODULAR mqueue	{ int|sys||mq_close(mqd_t mqdes); }
259	STD MODULAR mqueue	{ int|sys||mq_unlink(const char *name); }
260	STD MODULAR mqueue	\
			{ int|sys||mq_getattr(mqd_t mqdes, \
d507 1
a507 2
261	STD MODULAR mqueue	\
			{ int|sys||mq_setattr(mqd_t mqdes, \
d510 1
a510 2
262	STD MODULAR mqueue	\
			{ int|sys||mq_notify(mqd_t mqdes, \
d512 1
a512 2
263	STD MODULAR mqueue	\
			{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d514 1
a514 2
264	STD MODULAR mqueue	\
			{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d516 1
a516 2
265	COMPAT_50 MODULAR compat	\
			{ int|sys||mq_timedsend(mqd_t mqdes, \
d520 1
a520 2
266	COMPAT_50 MODULAR compat	\
			{ ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
d526 1
a526 1
270	STD 	 RUMP	{ int|sys||__posix_rename(const char *from, \
d529 1
a529 1
272	COMPAT_30 MODULAR compat { int|sys||getdents(int fd, char *buf, size_t count); }
d535 1
a535 1
276	COMPAT_50 MODULAR compat RUMP { int|sys||lutimes(const char *path, \
d538 3
a540 6
278	COMPAT_30 MODULAR compat	\
		{ int|sys|13|stat(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR compat	\
		{ int|sys|13|fstat(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR compat	\
		{ int|sys|13|lstat(const char *path, struct stat13 *ub); }
d561 1
a561 1
291	COMPAT_16 MODULAR compat { int|sys|14|sigaction(int signum, \
d569 1
a569 2
295	COMPAT_16 MODULAR compat	\
		{ int|sys|14|sigreturn(struct sigcontext *sigcntxp); }
d572 2
a573 4
298	COMPAT_30 MODULAR compat	\
		{ int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR compat	\
		{ int|sys||fhstat(const struct compat_30_fhandle *fhp, \
d575 1
a575 2
300	COMPAT_20 MODULAR compat	\
		{ int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \
d578 1
a578 2
301	COMPAT_50 MODULAR compat_sysv	\
		{ int|sys|13|__semctl(int semid, int semnum, int cmd, \
d584 1
a584 1
302	COMPAT_50 MODULAR compat_sysv { int|sys|13|msgctl(int msqid, int cmd, \
d590 1
a590 1
303	COMPAT_50 MODULAR compat_sysv { int|sys|13|shmctl(int shmid, int cmd, \
d614 1
a614 2
320	COMPAT_50 MODULAR compat	\
		{ int|sys||_lwp_park(const struct timespec50 *ts, \
d654 1
a654 1
345	COMPAT_50 MODULAR compat RUMP { int|sys||kevent(int fd, \
d682 1
a682 2
359	COMPAT_30 MODULAR compat	\
		{ int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \
d717 1
a717 2
373	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
d720 1
a720 2
374	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys||pollts(struct pollfd *fds, u_int nfds, \
d749 3
a751 6
387	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys|30|lstat(const char *path, struct stat30 *ub); }
d754 1
a754 1
392	COMPAT_30 MODULAR compat { int|sys|30|fhstat(const struct compat_30_fhandle \
d756 1
a756 2
393	COMPAT_50 MODULAR compat	\
		{ int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); }
d764 1
a764 1
398	COMPAT_50 MODULAR compat RUMP { int|sys|40|fhstat(const void *fhp, \
d768 10
a777 18
399	STD MODULAR aio RUMP	\
		{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR aio RUMP	\
		{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR aio RUMP	\
		{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR aio RUMP	\
		{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR aio RUMP	\
		{ int|sys||aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR compat	\
		{ int|sys||aio_suspend(const struct aiocb *const *list, \
		    int nent, const struct timespec50 *timeout); }
405	STD MODULAR aio RUMP	\
		{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR aio RUMP	\
		{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
		    int nent, struct sigevent *sig); }
d808 1
a808 1
422	STD  MODULAR lfs { int|sys|50|lfs_segwait(fsid_t *fsidp, \
d830 1
a830 2
432	STD MODULAR mqueue	\
		{ int|sys|50|mq_timedsend(mqd_t mqdes, \
d834 1
a834 2
433	STD MODULAR mqueue	\
		{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
d837 1
a837 2
434	COMPAT_60 MODULAR compat \
		{ int|sys||_lwp_park(const struct timespec *ts, \
d849 1
a849 1
438	STD MODULAR aio RUMP { int|sys|50|aio_suspend( \
d855 8
a862 3
442	STD MODULAR sysv_ipc { int|sys|50|__semctl(int semid, int semnum, \
			    int cmd, ... union __semun *arg); }
443	STD MODULAR sysv_ipc { int|sys|50|shmctl(int shmid, int cmd, \
d864 5
a868 1
444	STD MODULAR sysv_ipc { int|sys|50|msgctl(int msqid, int cmd, \
d870 3
@


1.270.4.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270.4.2 2015/06/06 14:40:22 skrll Exp $
d576 1
a576 1
283	STD 	RUMP	{ int|sys||__posix_chown(const char *path, uid_t uid, \
d578 1
a578 1
284	STD 	RUMP	{ int|sys||__posix_fchown(int fd, uid_t uid, \
d580 1
a580 1
285	STD 	RUMP	{ int|sys||__posix_lchown(const char *path, uid_t uid, \
@


1.270.4.4
log
@Sync with HEAD (as of 26th Dec)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270.4.3 2015/09/22 12:06:07 skrll Exp $
d354 1
a354 1
169	COMPAT_10 MODULAR sysv_ipc	\
d362 1
a362 1
170	COMPAT_10 MODULAR sysv_ipc	\
d370 1
a370 1
171	COMPAT_10 MODULAR sysv_ipc	\
d456 1
a456 1
220	COMPAT_14 MODULAR sysv_ipc	\
d464 1
a464 1
224	COMPAT_14 MODULAR sysv_ipc { int|sys||msgctl(int msqid, int cmd, \
d473 1
a473 1
229	COMPAT_14 MODULAR sysv_ipc { int|sys||shmctl(int shmid, int cmd, \
d612 2
a613 1
301	COMPAT_50 MODULAR sysv_ipc	\
d616 5
a620 1
302	COMPAT_50 MODULAR sysv_ipc { int|sys|13|msgctl(int msqid, int cmd, \
d622 5
a626 1
303	COMPAT_50 MODULAR sysv_ipc { int|sys|13|shmctl(int shmid, int cmd, \
d628 3
d984 1
a984 1
477	NOERR	RUMP	{ int|sys||clock_nanosleep(clockid_t clock_id, \
@


1.270.4.5
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270.4.4 2015/12/27 12:10:05 skrll Exp $
a57 1
#include <sys/idtype.h>
a981 3
481	STD 		{ int|sys||wait6(idtype_t idtype, id_t id, \
			    int *status, int options, struct wrusage *wru, \
			    siginfo_t *info); }
@


1.270.4.6
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270.4.5 2016/04/22 15:44:16 skrll Exp $
a985 2
482	STD		{ int|sys||clock_getcpuclockid2(idtype_t idtype, \
			    id_t id, clockid_t *clock_id); }
@


1.270.4.7
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270.4.6 2016/05/29 08:44:37 skrll Exp $
d695 1
a695 1
351	STD		{ int|sys||_sched_protect(int priority); }	
@


1.270.4.8
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270.4.7 2016/07/09 20:25:20 skrll Exp $
d103 1
a103 1
22	STD 	RUMP	{ int|sys||unmount(const char *path, int flags); }
d107 1
a107 2
26	STD 	MODULAR ptrace	\
			{ int|sys||ptrace(int req, pid_t pid, void *addr, \
@


1.270.2.1
log
@Pull up following revision(s) (requested by khorben in ticket #547):
	include/unistd.h: revision 1.144
	sys/kern/syscalls.master: revision 1.272

PR/49684: Pierre Pronchery: readlinkat(2) return type is wrong.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270 2014/07/25 08:25:47 dholland Exp $
d922 1
a922 1
469	STD  RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
@


1.269
log
@Avoid using C++ keywords as argument name.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.268 2014/04/09 23:55:37 pooka Exp $
d947 4
@


1.268
log
@rump kernel wrappers for aio syscalls
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.267 2014/03/14 00:52:08 pooka Exp $
d393 1
a393 1
			    void *old, size_t *oldlenp, const void *new, \
d632 1
a632 1
330	COMPAT_60 	{ int|sys||sa_register(void *new, void **old, \
@


1.267
log
@Add rump kernel syscall wrapper flag for a bunch of time-related
syscalls (nanosleep, clock_gettime, etc.).  These are mostly intended
for situations where a rump kernel runs on an OS-less host.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.266 2013/12/11 09:40:56 pooka Exp $
d768 5
a772 5
399	STD MODULAR 	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR 	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR 	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR 	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR 	{ int|sys||aio_return(struct aiocb *aiocbp); }
d775 3
a777 3
405	STD MODULAR 	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR 	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
			    int nent, struct sigevent *sig); }
d849 1
a849 1
438	STD MODULAR	{ int|sys|50|aio_suspend( \
@


1.267.2.1
log
@Rebase.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.270 2014/07/25 08:25:47 dholland Exp $
d393 1
a393 1
			    void *oldv, size_t *oldlenp, const void *newv, \
d632 1
a632 1
330	COMPAT_60 	{ int|sys||sa_register(void *newv, void **oldv, \
d768 5
a772 5
399	STD MODULAR RUMP	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR RUMP	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR RUMP	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR RUMP	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR RUMP	{ int|sys||aio_return(struct aiocb *aiocbp); }
d775 3
a777 3
405	STD MODULAR RUMP	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR RUMP	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
				    int nent, struct sigevent *sig); }
d849 1
a849 1
438	STD MODULAR RUMP { int|sys|50|aio_suspend( \
a946 4
479	STD  RUMP	{ int|sys||posix_fallocate(int fd, int PAD, off_t pos, \
			    off_t len); }
480	STD  RUMP	{ int|sys||fdiscard(int fd, int PAD, off_t pos, \
			    off_t len); }
@


1.266
log
@create rump kernel wrapper for utrace() too
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.265 2013/12/09 17:13:17 pooka Exp $
d465 1
a465 1
235	STD		{ int|sys||timer_create(clockid_t clock_id, \
d467 1
a467 1
236	STD		{ int|sys||timer_delete(timer_t timerid); }
d473 1
a473 1
239	STD		{ int|sys||timer_getoverrun(timer_t timerid); }
d800 1
a800 1
418	STD 		{ int|sys|50|gettimeofday(struct timeval *tp, \
d802 1
a802 1
419	STD 		{ int|sys|50|settimeofday(const struct timeval *tv, \
d806 1
a806 1
421	STD		{ int|sys|50|adjtime(const struct timeval *delta, \
d814 1
a814 1
425	STD		{ int|sys|50|setitimer(int which, \
d817 1
a817 1
426	STD		{ int|sys|50|getitimer(int which, \
d819 1
a819 1
427	STD 		{ int|sys|50|clock_gettime(clockid_t clock_id, \
d821 1
a821 1
428	STD 		{ int|sys|50|clock_settime(clockid_t clock_id, \
d823 1
a823 1
429	STD 		{ int|sys|50|clock_getres(clockid_t clock_id, \
d825 1
a825 1
430	STD 		{ int|sys|50|nanosleep(const struct timespec *rqtp, \
d874 1
a874 1
446	STD		{ int|sys|50|timer_settime(timer_t timerid, \
d877 1
a877 1
447	STD		{ int|sys|50|timer_gettime(timer_t timerid, struct \
d941 1
a941 1
477	STD 		{ int|sys||clock_nanosleep(clockid_t clock_id, \
@


1.265
log
@Create rump kernel wrappers for {f,}ktrace
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.264 2013/10/17 18:01:11 njoly Exp $
d597 1
a597 1
306	STD 		{ int|sys||utrace(const char *label, void *addr, \
@


1.264
log
@Change mknodat(2) device argument type from uint32_t to dev_t.
Adds needed extra PAD argument for 64bit alignment, and libc wrapper.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.263 2013/08/30 10:33:10 pooka Exp $
d133 1
a133 1
45	STD 		{ int|sys||ktrace(const char *fname, int ops, \
d553 1
a553 1
288	STD 		{ int|sys||fktrace(int fd, int ops, \
@


1.263
log
@There is absolutely no way that fexecve() could even theoretically work
in a rump kernel, so don't create a wrapper for that.

recv/sendmmsg(), however, can, so create wrappers for those.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.262 2013/03/29 01:08:17 christos Exp $
d905 1
a905 1
			    mode_t mode, uint32_t dev); }
@


1.262
log
@Centralize the computation of struct timespec to the int timo.
Make lwp_park take the regular arguments for specifying what kind
of timeout we supply like clock_nanosleep(), namely clockid_t and flags.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.261 2012/10/02 01:44:28 christos Exp $
d914 1
a914 1
465	STD  RUMP	{ int|sys||fexecve(int fd, \
d936 1
a936 1
475	STD		{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
d939 1
a939 1
476	STD		{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
@


1.262.4.1
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.262 2013/03/29 01:08:17 christos Exp $
d133 1
a133 1
45	STD 	RUMP	{ int|sys||ktrace(const char *fname, int ops, \
d465 1
a465 1
235	STD  RUMP	{ int|sys||timer_create(clockid_t clock_id, \
d467 1
a467 1
236	STD  RUMP	{ int|sys||timer_delete(timer_t timerid); }
d473 1
a473 1
239	STD  RUMP	{ int|sys||timer_getoverrun(timer_t timerid); }
d553 1
a553 1
288	STD 	RUMP	{ int|sys||fktrace(int fd, int ops, \
d597 1
a597 1
306	STD	RUMP	{ int|sys||utrace(const char *label, void *addr, \
d768 5
a772 5
399	STD MODULAR RUMP	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR RUMP	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR RUMP	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR RUMP	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR RUMP	{ int|sys||aio_return(struct aiocb *aiocbp); }
d775 3
a777 3
405	STD MODULAR RUMP	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR RUMP	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
				    int nent, struct sigevent *sig); }
d800 1
a800 1
418	STD  RUMP	{ int|sys|50|gettimeofday(struct timeval *tp, \
d802 1
a802 1
419	STD  RUMP	{ int|sys|50|settimeofday(const struct timeval *tv, \
d806 1
a806 1
421	STD  RUMP	{ int|sys|50|adjtime(const struct timeval *delta, \
d814 1
a814 1
425	STD  RUMP	{ int|sys|50|setitimer(int which, \
d817 1
a817 1
426	STD  RUMP	{ int|sys|50|getitimer(int which, \
d819 1
a819 1
427	STD  RUMP	{ int|sys|50|clock_gettime(clockid_t clock_id, \
d821 1
a821 1
428	STD  RUMP	{ int|sys|50|clock_settime(clockid_t clock_id, \
d823 1
a823 1
429	STD  RUMP	{ int|sys|50|clock_getres(clockid_t clock_id, \
d825 1
a825 1
430	STD  RUMP	{ int|sys|50|nanosleep(const struct timespec *rqtp, \
d849 1
a849 1
438	STD MODULAR RUMP { int|sys|50|aio_suspend( \
d874 1
a874 1
446	STD  RUMP	{ int|sys|50|timer_settime(timer_t timerid, \
d877 1
a877 1
447	STD  RUMP	{ int|sys|50|timer_gettime(timer_t timerid, struct \
d905 1
a905 1
			    mode_t mode, int PAD, dev_t dev); }
d914 1
a914 1
465	STD  		{ int|sys||fexecve(int fd, \
d936 1
a936 1
475	STD  RUMP	{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
d939 1
a939 1
476	STD  RUMP	{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
d941 1
a941 1
477	STD  RUMP	{ int|sys||clock_nanosleep(clockid_t clock_id, \
@


1.261
log
@kernel portion of clock_nanosleep()
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.260 2012/06/22 18:26:35 christos Exp $
d837 1
a837 1
434	STD 		{ int|sys|50|_lwp_park(const struct timespec *ts, \
d944 3
@


1.260
log
@Add {send,recv}mmsg from Linux
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.259 2012/05/05 19:37:37 christos Exp $
d941 3
@


1.260.2.1
log
@Resync to 2012-11-19 00:00:00 UTC
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.261 2012/10/02 01:44:28 christos Exp $
a940 3
477	STD 		{ int|sys||clock_nanosleep(clockid_t clock_id, \
			    int flags, const struct timespec *rqtp, \
			    struct timespec *rmtp); }
@


1.260.2.2
log
@resync from head
@
text
@d1 1
a1 1
	$NetBSD$
d837 1
a837 1
434	COMPAT_60 MODULAR { int|sys||_lwp_park(const struct timespec *ts, \
a943 3
478	STD 		{ int|sys|60|_lwp_park(clockid_t clock_id, int flags, \
			    const struct timespec *ts, lwpid_t unpark, \
			    const void *hint, const void *unparkhint); }
@


1.260.2.3
log
@Rebase to HEAD as of a few days ago.
@
text
@d133 1
a133 1
45	STD 	RUMP	{ int|sys||ktrace(const char *fname, int ops, \
d393 1
a393 1
			    void *oldv, size_t *oldlenp, const void *newv, \
d465 1
a465 1
235	STD  RUMP	{ int|sys||timer_create(clockid_t clock_id, \
d467 1
a467 1
236	STD  RUMP	{ int|sys||timer_delete(timer_t timerid); }
d473 1
a473 1
239	STD  RUMP	{ int|sys||timer_getoverrun(timer_t timerid); }
d553 1
a553 1
288	STD 	RUMP	{ int|sys||fktrace(int fd, int ops, \
d597 1
a597 1
306	STD	RUMP	{ int|sys||utrace(const char *label, void *addr, \
d632 1
a632 1
330	COMPAT_60 	{ int|sys||sa_register(void *newv, void **oldv, \
d768 5
a772 5
399	STD MODULAR RUMP	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR RUMP	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR RUMP	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR RUMP	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR RUMP	{ int|sys||aio_return(struct aiocb *aiocbp); }
d775 3
a777 3
405	STD MODULAR RUMP	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR RUMP	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
				    int nent, struct sigevent *sig); }
d800 1
a800 1
418	STD  RUMP	{ int|sys|50|gettimeofday(struct timeval *tp, \
d802 1
a802 1
419	STD  RUMP	{ int|sys|50|settimeofday(const struct timeval *tv, \
d806 1
a806 1
421	STD  RUMP	{ int|sys|50|adjtime(const struct timeval *delta, \
d814 1
a814 1
425	STD  RUMP	{ int|sys|50|setitimer(int which, \
d817 1
a817 1
426	STD  RUMP	{ int|sys|50|getitimer(int which, \
d819 1
a819 1
427	STD  RUMP	{ int|sys|50|clock_gettime(clockid_t clock_id, \
d821 1
a821 1
428	STD  RUMP	{ int|sys|50|clock_settime(clockid_t clock_id, \
d823 1
a823 1
429	STD  RUMP	{ int|sys|50|clock_getres(clockid_t clock_id, \
d825 1
a825 1
430	STD  RUMP	{ int|sys|50|nanosleep(const struct timespec *rqtp, \
d849 1
a849 1
438	STD MODULAR RUMP { int|sys|50|aio_suspend( \
d874 1
a874 1
446	STD  RUMP	{ int|sys|50|timer_settime(timer_t timerid, \
d877 1
a877 1
447	STD  RUMP	{ int|sys|50|timer_gettime(timer_t timerid, struct \
d905 1
a905 1
			    mode_t mode, int PAD, dev_t dev); }
d914 1
a914 1
465	STD  		{ int|sys||fexecve(int fd, \
d936 1
a936 1
475	STD  RUMP	{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
d939 1
a939 1
476	STD  RUMP	{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
d941 1
a941 1
477	STD  RUMP	{ int|sys||clock_nanosleep(clockid_t clock_id, \
a946 4
479	STD  RUMP	{ int|sys||posix_fallocate(int fd, int PAD, off_t pos, \
			    off_t len); }
480	STD  RUMP	{ int|sys||fdiscard(int fd, int PAD, off_t pos, \
			    off_t len); }
@


1.260.2.4
log
@update from HEAD
@
text
@d15 1
a15 1
;	MODULAR modname :attempt to autoload system call module if not present
a57 1
#include <sys/idtype.h>
d78 1
a78 1
7	COMPAT_50 MODULAR compat { int|sys||wait4(pid_t pid, int *status, \
d80 1
a80 2
8	COMPAT_43 MODULAR compat	\
		{ int|sys||creat(const char *path, mode_t mode); } ocreat
d86 2
a87 2
14	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys||mknod(const char *path, mode_t mode, uint32_t dev); }
d92 1
a92 1
18	COMPAT_20 MODULAR compat { int|sys||getfsstat(struct statfs12 *buf, \
d94 1
a94 2
19	COMPAT_43 MODULAR compat	\
		{ long|sys||lseek(int fd, long offset, int whence); }\
d97 1
a97 2
21	COMPAT_40 MODULAR compat	\
		{ int|sys||mount(const char *type, const char *path, \
d99 1
a99 1
22	STD 	RUMP	{ int|sys||unmount(const char *path, int flags); }
d103 1
a103 2
26	STD 	MODULAR ptrace	\
			{ int|sys||ptrace(int req, pid_t pid, void *addr, \
d123 2
a124 2
38	COMPAT_43 MODULAR compat	\
		{ int|sys||stat(const char *path, struct stat43 *ub); } stat43
d126 1
a126 2
40	COMPAT_43 MODULAR compat	\
		{ int|sys||lstat(const char *path, \
d135 1
a135 1
46	COMPAT_13 MODULAR compat { int|sys||sigaction(int signum, \
d139 1
a139 1
48	COMPAT_13 MODULAR compat { int|sys||sigprocmask(int how, \
d144 2
a145 2
52	COMPAT_13 MODULAR compat { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR compat { int|sys||sigaltstack( \
d150 1
a150 1
55	COMPAT_12 MODULAR compat { int|sys||reboot(int opt); } oreboot
d160 2
a161 4
62	COMPAT_43 MODULAR compat	\
		{ int|sys||fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR compat	\
		{ int|sys||getkerninfo(int op, char *where, int *size, \
d163 2
a164 3
64	COMPAT_43 MODULAR compat	\
		{ int|sys||getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR compat { int|sys||msync(void *addr, size_t len); }
d171 1
a171 2
71	COMPAT_43 MODULAR compat	\
		{ int|sys||mmap(void *addr, size_t len, int prot, \
d189 1
a189 1
83	COMPAT_50 MODULAR compat { int|sys||setitimer(int which, \
d192 3
a194 3
84	COMPAT_43 MODULAR compat { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR compat { int|sys||swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR compat { int|sys||getitimer(int which, \
d196 1
a196 2
87	COMPAT_43 MODULAR compat	\
		{ int|sys||gethostname(char *hostname, u_int len); } \
d198 1
a198 2
88	COMPAT_43 MODULAR compat	\
		{ int|sys||sethostname(char *hostname, u_int len); } \
d200 1
a200 2
89	COMPAT_43 MODULAR compat	\
		{ int|sys||getdtablesize(void); } ogetdtablesize
d204 1
a204 2
93	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
d209 1
a209 2
97	COMPAT_30 MODULAR compat	\
		{ int|sys||socket(int domain, int type, int protocol); }
d212 1
a212 2
99	COMPAT_43 MODULAR compat	\
		{ int|sys||accept(int s, void *name, \
d215 1
a215 1
101	COMPAT_43 MODULAR compat { int|sys||send(int s, void *buf, int len, \
d217 1
a217 1
102	COMPAT_43 MODULAR compat { int|sys||recv(int s, void *buf, int len, \
d219 1
a219 2
103	COMPAT_13 MODULAR compat	\
		{ int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \
d227 1
a227 2
108	COMPAT_43 MODULAR compat	\
		{ int|sys||sigvec(int signum, struct sigvec *nsv, \
d229 4
a232 4
109	COMPAT_43 MODULAR compat { int|sys||sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR compat { int|sys||sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR compat { int|sys||sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR compat { int|sys||sigstack(struct sigstack *nss, \
d234 1
a234 2
113	COMPAT_43 MODULAR compat	\
		{ int|sys||recvmsg(int s, struct omsghdr *msg, \
d236 2
a237 2
114	COMPAT_43 MODULAR compat	\
		{ int|sys||sendmsg(int s, void *msg, int flags); } osendmsg
d239 1
a239 1
116	COMPAT_50 MODULAR compat { int|sys||gettimeofday(struct timeval50 *tp, \
d241 1
a241 2
117	COMPAT_50 MODULAR compat	\
		{ int|sys||getrusage(int who, struct rusage50 *rusage); }
d249 1
a249 2
122	COMPAT_50 MODULAR compat	\
		{ int|sys||settimeofday(const struct timeval50 *tv, \
d253 1
a253 2
125	COMPAT_43 MODULAR compat	\
		{ int|sys||recvfrom(int s, void *buf, size_t len, \
d259 3
a261 4
129	COMPAT_43 MODULAR compat	\
		{ int|sys||truncate(const char *path, long length); } otruncate
130	COMPAT_43 MODULAR compat	\
		{ int|sys||ftruncate(int fd, long length); } oftruncate
d272 1
a272 1
138	COMPAT_50 MODULAR compat RUMP { int|sys||utimes(const char *path, \
d275 1
a275 2
140	COMPAT_50 MODULAR compat	\
		{ int|sys||adjtime(const struct timeval50 *delta, \
d277 1
a277 2
141	COMPAT_43 MODULAR compat	\
		{ int|sys||getpeername(int fdes, void *asa, \
d279 3
a281 6
142	COMPAT_43 MODULAR compat	\
		{ int32_t|sys||gethostid(void); } ogethostid
143	COMPAT_43 MODULAR compat	\
		{ int|sys||sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR compat	\
		{ int|sys||getrlimit(int which, \
d283 1
a283 1
145	COMPAT_43 MODULAR compat { int|sys||setrlimit(int which, \
d285 1
a285 2
146	COMPAT_43 MODULAR compat	\
		{ int|sys||killpg(int pgid, int signum); } okillpg
d287 1
a287 1
148	COMPAT_50 MODULAR XXX { int|sys||quotactl(const char *path, int cmd, \
d289 2
a290 2
149	COMPAT_43 MODULAR compat { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR compat { int|sys||getsockname(int fdec, void *asa, \
d301 2
a302 3
155	STD MODULAR nfsserver RUMP  { int|sys||nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR compat	\
		{ int|sys||getdirentries(int fd, char *buf, \
d304 1
a304 1
157	COMPAT_20 MODULAR compat { int|sys||statfs(const char *path, \
d306 1
a306 2
158	COMPAT_20 MODULAR compat	\
		{ int|sys||fstatfs(int fd, struct statfs12 *buf); }
d309 1
a309 1
161	COMPAT_30 MODULAR compat { int|sys||getfh(const char *fname, \
d311 1
a311 2
162	COMPAT_09 MODULAR compat	\
		{ int|sys||getdomainname(char *domainname, int len); } \
d313 1
a313 2
163	COMPAT_09 MODULAR compat	\
		{ int|sys||setdomainname(char *domainname, int len); } \
d315 1
a315 2
164	COMPAT_09 MODULAR compat	\
		{ int|sys||uname(struct outsname *name); } ouname
d321 2
a322 3
#if !defined(_LP64)
169	COMPAT_10 MODULAR sysv_ipc	\
		{ int|sys||semsys(int which, int a2, int a3, int a4, \
d328 2
a329 3
#if !defined(_LP64)
170	COMPAT_10 MODULAR sysv_ipc	\
		{ int|sys||msgsys(int which, int a2, int a3, int a4, \
d335 2
a336 3
#if !defined(_LP64)
171	COMPAT_10 MODULAR sysv_ipc	\
		{ int|sys||shmsys(int which, int a2, int a3, int a4); } \
d362 1
a362 1
184	STD MODULAR lfs	{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d364 1
a364 1
185	STD MODULAR lfs	{ int|sys||lfs_markv(fsid_t *fsidp, \
d366 2
a367 2
186	STD MODULAR lfs	{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
187	COMPAT_50 MODULAR compat { int|sys||lfs_segwait(fsid_t *fsidp, \
d369 4
a372 5
188	COMPAT_12 MODULAR compat	\
		{ int|sys||stat(const char *path, struct stat12 *ub); } stat12
189	COMPAT_12 MODULAR compat	\
		{ int|sys||fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR compat { int|sys||lstat(const char *path, \
d381 1
a381 2
196	COMPAT_12 MODULAR compat	\
		{ int|sys||getdirentries(int fd, char *buf, \
d398 1
a398 1
206	COMPAT_50 MODULAR compat RUMP { int|sys||futimes(int fd, \
d407 1
a407 1
210	EXTERN	MODULAR openafs { int|sys||afssys(long id, long a1, long a2, \
d419 2
a420 2
220	COMPAT_14 MODULAR sysv_ipc	\
		{ int|sys||__semctl(int semid, int semnum, int cmd, \
d422 2
a423 3
221	STD MODULAR sysv_ipc { int|sys||semget(key_t key, int nsems, \
			    int semflg); }
222	STD MODULAR sysv_ipc { int|sys||semop(int semid, struct sembuf *sops, \
d425 9
a433 2
223	STD MODULAR sysv_ipc { int|sys||semconfig(int flag); }
224	COMPAT_14 MODULAR sysv_ipc { int|sys||msgctl(int msqid, int cmd, \
d435 2
a436 2
225	STD MODULAR sysv_ipc { int|sys||msgget(key_t key, int msgflg); }
226	STD MODULAR sysv_ipc { int|sys||msgsnd(int msqid, const void *msgp, \
d438 1
a438 1
227	STD MODULAR sysv_ipc { ssize_t|sys||msgrcv(int msqid, void *msgp, \
d440 10
a449 3
228	STD MODULAR sysv_ipc { void *|sys||shmat(int shmid,	\
			    const void *shmaddr, int shmflg); }
229	COMPAT_14 MODULAR sysv_ipc { int|sys||shmctl(int shmid, int cmd, \
d451 9
a459 4
230	STD MODULAR sysv_ipc { int|sys||shmdt(const void *shmaddr); }
231	STD MODULAR sysv_ipc { int|sys||shmget(key_t key, size_t size,	\
			    int shmflg); }
232	COMPAT_50 MODULAR compat { int|sys||clock_gettime(clockid_t clock_id, \
d461 1
a461 1
233	COMPAT_50 MODULAR compat { int|sys||clock_settime(clockid_t clock_id, \
d463 1
a463 1
234	COMPAT_50 MODULAR compat { int|sys||clock_getres(clockid_t clock_id, \
d468 2
a469 2
237	COMPAT_50 MODULAR compat { int|sys||timer_settime(timer_t timerid, \
			    int flags, const struct itimerspec50 *value, \
d471 2
a472 2
238	COMPAT_50 MODULAR compat { int|sys||timer_gettime(timer_t timerid, \
			    struct itimerspec50 *value); }
d477 1
a477 2
240	COMPAT_50 MODULAR compat	\
		{ int|sys||nanosleep(const struct timespec50 *rqtp, \
d482 3
a484 3
244	COMPAT_50 MODULAR compat	\
		{ int|sys||__sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, struct timespec50 *timeout); }
d488 2
a489 2
247	STD MODULAR ksem RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR ksem RUMP { int|sys||_ksem_open(const char *name, int oflag, \
d491 6
a496 6
249	STD MODULAR ksem RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR ksem RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR ksem RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR ksem RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR ksem RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR ksem RUMP { int|sys||_ksem_getvalue(intptr_t id, \
d498 2
a499 2
255	STD MODULAR ksem RUMP { int|sys||_ksem_destroy(intptr_t id); }
256	STD MODULAR ksem RUMP { int|sys||_ksem_timedwait(intptr_t id, \
d501 1
a501 2
257	STD MODULAR mqueue	\
			{ mqd_t|sys||mq_open(const char * name, int oflag, \
d503 3
a505 4
258	STD MODULAR mqueue	{ int|sys||mq_close(mqd_t mqdes); }
259	STD MODULAR mqueue	{ int|sys||mq_unlink(const char *name); }
260	STD MODULAR mqueue	\
			{ int|sys||mq_getattr(mqd_t mqdes, \
d507 1
a507 2
261	STD MODULAR mqueue	\
			{ int|sys||mq_setattr(mqd_t mqdes, \
d510 1
a510 2
262	STD MODULAR mqueue	\
			{ int|sys||mq_notify(mqd_t mqdes, \
d512 1
a512 2
263	STD MODULAR mqueue	\
			{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d514 1
a514 2
264	STD MODULAR mqueue	\
			{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d516 1
a516 2
265	COMPAT_50 MODULAR compat	\
			{ int|sys||mq_timedsend(mqd_t mqdes, \
d520 1
a520 2
266	COMPAT_50 MODULAR compat	\
			{ ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
d526 1
a526 1
270	STD 	 RUMP	{ int|sys||__posix_rename(const char *from, \
d529 1
a529 1
272	COMPAT_30 MODULAR compat { int|sys||getdents(int fd, char *buf, size_t count); }
d535 1
a535 1
276	COMPAT_50 MODULAR compat RUMP { int|sys||lutimes(const char *path, \
d538 3
a540 6
278	COMPAT_30 MODULAR compat	\
		{ int|sys|13|stat(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR compat	\
		{ int|sys|13|fstat(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR compat	\
		{ int|sys|13|lstat(const char *path, struct stat13 *ub); }
d545 1
a545 1
283	STD 	RUMP	{ int|sys||__posix_chown(const char *path, uid_t uid, \
d547 1
a547 1
284	STD 	RUMP	{ int|sys||__posix_fchown(int fd, uid_t uid, \
d549 1
a549 1
285	STD 	RUMP	{ int|sys||__posix_lchown(const char *path, uid_t uid, \
d561 1
a561 1
291	COMPAT_16 MODULAR compat { int|sys|14|sigaction(int signum, \
d569 1
a569 2
295	COMPAT_16 MODULAR compat	\
		{ int|sys|14|sigreturn(struct sigcontext *sigcntxp); }
d572 2
a573 4
298	COMPAT_30 MODULAR compat	\
		{ int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR compat	\
		{ int|sys||fhstat(const struct compat_30_fhandle *fhp, \
d575 1
a575 2
300	COMPAT_20 MODULAR compat	\
		{ int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \
d577 2
a578 2
301	COMPAT_50 MODULAR sysv_ipc	\
		{ int|sys|13|__semctl(int semid, int semnum, int cmd, \
d580 5
a584 1
302	COMPAT_50 MODULAR sysv_ipc { int|sys|13|msgctl(int msqid, int cmd, \
d586 5
a590 1
303	COMPAT_50 MODULAR sysv_ipc { int|sys|13|shmctl(int shmid, int cmd, \
d592 3
d614 1
a614 2
320	COMPAT_50 MODULAR compat	\
		{ int|sys||_lwp_park(const struct timespec50 *ts, \
d654 1
a654 1
345	COMPAT_50 MODULAR compat RUMP { int|sys||kevent(int fd, \
d669 1
a669 1
351	STD		{ int|sys||_sched_protect(int priority); }	
d682 1
a682 2
359	COMPAT_30 MODULAR compat	\
		{ int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \
d717 1
a717 2
373	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
d720 1
a720 2
374	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys||pollts(struct pollfd *fds, u_int nfds, \
d749 3
a751 6
387	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR compat RUMP	\
		{ int|sys|30|lstat(const char *path, struct stat30 *ub); }
d754 1
a754 1
392	COMPAT_30 MODULAR compat { int|sys|30|fhstat(const struct compat_30_fhandle \
d756 1
a756 2
393	COMPAT_50 MODULAR compat	\
		{ int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); }
d764 1
a764 1
398	COMPAT_50 MODULAR compat RUMP { int|sys|40|fhstat(const void *fhp, \
d768 10
a777 18
399	STD MODULAR aio RUMP	\
		{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR aio RUMP	\
		{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR aio RUMP	\
		{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR aio RUMP	\
		{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR aio RUMP	\
		{ int|sys||aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR compat	\
		{ int|sys||aio_suspend(const struct aiocb *const *list, \
		    int nent, const struct timespec50 *timeout); }
405	STD MODULAR aio RUMP	\
		{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR aio RUMP	\
		{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
		    int nent, struct sigevent *sig); }
d808 1
a808 1
422	STD  MODULAR lfs { int|sys|50|lfs_segwait(fsid_t *fsidp, \
d830 1
a830 2
432	STD MODULAR mqueue	\
		{ int|sys|50|mq_timedsend(mqd_t mqdes, \
d834 1
a834 2
433	STD MODULAR mqueue	\
		{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
d837 1
a837 2
434	COMPAT_60 MODULAR compat \
		{ int|sys||_lwp_park(const struct timespec *ts, \
d849 1
a849 1
438	STD MODULAR aio RUMP { int|sys|50|aio_suspend( \
d855 8
a862 3
442	STD MODULAR sysv_ipc { int|sys|50|__semctl(int semid, int semnum, \
			    int cmd, ... union __semun *arg); }
443	STD MODULAR sysv_ipc { int|sys|50|shmctl(int shmid, int cmd, \
d864 5
a868 1
444	STD MODULAR sysv_ipc { int|sys|50|msgctl(int msqid, int cmd, \
d870 3
d922 1
a922 1
469	STD  RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
d941 1
a941 1
477	NOERR	RUMP	{ int|sys||clock_nanosleep(clockid_t clock_id, \
d947 1
a947 1
479	NOERR	RUMP	{ int|sys||posix_fallocate(int fd, int PAD, off_t pos, \
a950 5
481	STD 		{ int|sys||wait6(idtype_t idtype, id_t id, \
			    int *status, int options, struct wrusage *wru, \
			    siginfo_t *info); }
482	STD		{ int|sys||clock_getcpuclockid2(idtype_t idtype, \
			    id_t id, clockid_t *clock_id); }
@


1.259
log
@Add a new type of syscall "EXTERN" which is meant for modules that live
outside the tree (in pkgsrc). Use it to define afssys (210) which has
been reserved for years, and make it autoload the "openafs" module.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.258 2012/03/08 21:55:45 joerg Exp $
d933 8
a940 4
				const struct posix_spawn_file_actions *file_actions, \
				const struct posix_spawnattr *attrp, \
				char *const *argv, char *const *envp); }

@


1.258
log
@Add entry for _ksem_timedwait.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.257 2012/02/19 17:50:28 matt Exp $
d29 1
d407 2
a408 1
210	UNIMPL
@


1.257
log
@Use void * instead of sa_upcall_t for sa_register (since sa_upcall_t is
going away).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.256 2012/02/19 17:22:16 matt Exp $
d497 2
a498 1
256	UNIMPL		sys__ksem_timedwait
@


1.256
log
@Make SA syscalls as COMPAT_60
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.255 2012/02/19 17:08:02 rmind Exp $
d629 2
a630 3
330	COMPAT_60 	{ int|sys||sa_register(sa_upcall_t new, \
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
@


1.255
log
@Make SA calls obsolete (use stubs in kern case, as libc needs them for now).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.254 2012/02/11 23:16:17 martin Exp $
d628 9
a636 7
; Obsolete SA system calls.  Must remain until libc major version is bumped.
330	STD 		{ int|sys||sa_register(void); }
331	STD 		{ int|sys||sa_stacks(void); }
332	STD 		{ int|sys||sa_enable(void); }
333	STD 		{ int|sys||sa_setconcurrency(void); }
334	STD 		{ int|sys||sa_yield(void); }
335	STD 		{ int|sys||sa_preempt(void); }
@


1.254
log
@Add a posix_spawn syscall, as discussed on tech-kern.
Based on the summer of code project by Charles Zhang, heavily reworked
later by me - all bugs are likely mine.
Ok: core, releng.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.253 2012/02/01 05:34:41 dholland Exp $
d628 3
a630 5
; SA system calls.
330	STD 		{ int|sys||sa_register(sa_upcall_t new, \
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
331	STD 		{ int|sys||sa_stacks(int num, stack_t *stacks); }
d632 1
a632 1
333	STD 		{ int|sys||sa_setconcurrency(int concurrency); }
d634 1
a634 1
335	STD 		{ int|sys||sa_preempt(int sa_id); }
@


1.254.2.1
log
@Pull up following revision(s) (requested by khorben in ticket #1264):

include/unistd.h				1.144
sys/kern/init_sysent.c				regen
sys/kern/syscalls.c				regen
sys/kern/syscalls.master			1.272
sys/rump/include/rump/rump_syscalls.h		regen
sys/rump/librump/rumpkern/rump_syscalls.c	regen
sys/sys/syscall.h				regen
sys/sys/syscallargs.h				regen
sys/compat/netbds32/netbsd32_syscall.h		regen
sys/compat/netbds32/netbsd32_syscallargs.h	regen
sys/compat/netbds32/netbsd32_syscalls.c		regen
sys/compat/netbds32/netbsd32_sysent.c		regen
sys/compat/netbsd32/syscalls.master		1.102

	Fix return type of the readlinkat(2) syscall. PR#49684.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.254 2012/02/11 23:16:17 martin Exp $
d920 1
a920 1
469	STD  RUMP	{ ssize_t|sys||readlinkat(int fd, const char *path, \
@


1.253
log
@Change the syscall API for quotas over to the new non-proplib one.

   - struct vfs_quotactl_args -> struct quotactl_args
   - add sys/stdint.h to sys/quotactl.h for clean userland build
   - install sys/quotactl.h in /usr/include
   - update set lists for same
   - add new marshalling code in libquota
   - add new unmarshalling code in vfs_syscalls.c
   - discard proplib interpreter code in vfs_quotactl.c
   - add dispatching code for the 14 quotactl ops in vfs_quotactl.c
   - mark the proplib quotactl syscall obsolete
   - add a new syscall number for the new quotactl syscall
   - change the name of the syscall to __quotactl()
   - remove the decl of the old quotactl from quota/quotaprop.h
   - add a decl of the new quotactl to sys/quotactl.h
   - update the libc build
   - update ktruss
   - remove proplib marshalling code from libquota
   - update copy of syscall table in gdb ppc sources
   - hack rumphijack to accomodate new quotactl name (as I recall,
     pooka wanted such a name change to simplify something, but I
     don't really see what/how)

This change appears to require a kernel version bump for rumpish
reasons.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.252 2011/08/17 07:22:34 manu Exp $
d930 5
@


1.252
log
@Add futimens(2) and part of utimnsat(2)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.251 2011/08/08 12:08:53 manu Exp $
d888 2
a889 2
452	STD  RUMP	{ int|sys|50|quotactl(const char *path, \
			    struct plistref *pref); }
d928 2
@


1.252.2.1
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD$
d497 1
a497 2
256	STD MODULAR RUMP { int|sys||_ksem_timedwait(intptr_t id, \
				const struct timespec *abstime); }
d629 8
a636 7
330	COMPAT_60 	{ int|sys||sa_register(void *new, void **old, \
				int flags, ssize_t stackinfo_offset); }
331	COMPAT_60 	{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	COMPAT_60 	{ int|sys||sa_enable(void); }
333	COMPAT_60 	{ int|sys||sa_setconcurrency(int concurrency); }
334	COMPAT_60 	{ int|sys||sa_yield(void); }
335	COMPAT_60 	{ int|sys||sa_preempt(int sa_id); }
d888 2
a889 2
; 452 only ever appeared in 5.99.x and can be reused after netbsd-7
452	OBSOL		5.99 quotactl
a927 7
473	STD  RUMP	{ int|sys||__quotactl(const char *path, \
			    struct quotactl_args *args); }
474	NOERR		{ int|sys||posix_spawn(pid_t *pid, const char *path, \
				const struct posix_spawn_file_actions *file_actions, \
				const struct posix_spawnattr *attrp, \
				char *const *argv, char *const *envp); }

@


1.252.2.2
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.252.2.1 2012/04/17 00:08:29 yamt Exp $
a28 1
;	EXTERN	implemented, but as 3rd party module
d406 1
a406 2
210	EXTERN	MODULAR { int|sys||afssys(long id, long a1, long a2, \
			  long a3, long a4, long a5, long a6); }
@


1.252.2.3
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.252.2.2 2012/05/23 10:08:12 yamt Exp $
d933 4
a936 11
			    const struct posix_spawn_file_actions *file_actions, \
			    const struct posix_spawnattr *attrp, \
			    char *const *argv, char *const *envp); }
475	STD		{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
			    unsigned int vlen, unsigned int flags, \
			    struct timespec *timeout); }
476	STD		{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
			    unsigned int vlen, unsigned int flags); }
477	STD 		{ int|sys||clock_nanosleep(clockid_t clock_id, \
			    int flags, const struct timespec *rqtp, \
			    struct timespec *rmtp); }
@


1.252.2.4
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.252.2.3 2012/10/30 17:22:35 yamt Exp $
d133 1
a133 1
45	STD 	RUMP	{ int|sys||ktrace(const char *fname, int ops, \
d465 1
a465 1
235	STD  RUMP	{ int|sys||timer_create(clockid_t clock_id, \
d467 1
a467 1
236	STD  RUMP	{ int|sys||timer_delete(timer_t timerid); }
d473 1
a473 1
239	STD  RUMP	{ int|sys||timer_getoverrun(timer_t timerid); }
d553 1
a553 1
288	STD 	RUMP	{ int|sys||fktrace(int fd, int ops, \
d597 1
a597 1
306	STD	RUMP	{ int|sys||utrace(const char *label, void *addr, \
d768 5
a772 5
399	STD MODULAR RUMP	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR RUMP	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR RUMP	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR RUMP	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR RUMP	{ int|sys||aio_return(struct aiocb *aiocbp); }
d775 3
a777 3
405	STD MODULAR RUMP	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR RUMP	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
				    int nent, struct sigevent *sig); }
d800 1
a800 1
418	STD  RUMP	{ int|sys|50|gettimeofday(struct timeval *tp, \
d802 1
a802 1
419	STD  RUMP	{ int|sys|50|settimeofday(const struct timeval *tv, \
d806 1
a806 1
421	STD  RUMP	{ int|sys|50|adjtime(const struct timeval *delta, \
d814 1
a814 1
425	STD  RUMP	{ int|sys|50|setitimer(int which, \
d817 1
a817 1
426	STD  RUMP	{ int|sys|50|getitimer(int which, \
d819 1
a819 1
427	STD  RUMP	{ int|sys|50|clock_gettime(clockid_t clock_id, \
d821 1
a821 1
428	STD  RUMP	{ int|sys|50|clock_settime(clockid_t clock_id, \
d823 1
a823 1
429	STD  RUMP	{ int|sys|50|clock_getres(clockid_t clock_id, \
d825 1
a825 1
430	STD  RUMP	{ int|sys|50|nanosleep(const struct timespec *rqtp, \
d837 1
a837 1
434	COMPAT_60 MODULAR { int|sys||_lwp_park(const struct timespec *ts, \
d849 1
a849 1
438	STD MODULAR RUMP { int|sys|50|aio_suspend( \
d874 1
a874 1
446	STD  RUMP	{ int|sys|50|timer_settime(timer_t timerid, \
d877 1
a877 1
447	STD  RUMP	{ int|sys|50|timer_gettime(timer_t timerid, struct \
d905 1
a905 1
			    mode_t mode, int PAD, dev_t dev); }
d914 1
a914 1
465	STD  		{ int|sys||fexecve(int fd, \
d936 1
a936 1
475	STD  RUMP	{ int|sys||recvmmsg(int s, struct mmsghdr *mmsg, \
d939 1
a939 1
476	STD  RUMP	{ int|sys||sendmmsg(int s, struct mmsghdr *mmsg, \
d941 1
a941 1
477	STD  RUMP	{ int|sys||clock_nanosleep(clockid_t clock_id, \
a943 3
478	STD 		{ int|sys|60|_lwp_park(clockid_t clock_id, int flags, \
			    const struct timespec *ts, lwpid_t unpark, \
			    const void *hint, const void *unparkhint); }
@


1.252.6.1
log
@merge to -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.254 2012/02/11 23:16:17 martin Exp $
d888 2
a889 2
; 452 only ever appeared in 5.99.x and can be reused after netbsd-7
452	OBSOL		5.99 quotactl
a927 7
473	STD  RUMP	{ int|sys||__quotactl(const char *path, \
			    struct quotactl_args *args); }
474	NOERR		{ int|sys||posix_spawn(pid_t *pid, const char *path, \
				const struct posix_spawn_file_actions *file_actions, \
				const struct posix_spawnattr *attrp, \
				char *const *argv, char *const *envp); }

@


1.252.6.2
log
@sync to -current.
@
text
@d1 1
a1 1
	$NetBSD$
d629 8
a636 7
330	COMPAT_60 	{ int|sys||sa_register(void *new, void **old, \
				int flags, ssize_t stackinfo_offset); }
331	COMPAT_60 	{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	COMPAT_60 	{ int|sys||sa_enable(void); }
333	COMPAT_60 	{ int|sys||sa_setconcurrency(int concurrency); }
334	COMPAT_60 	{ int|sys||sa_yield(void); }
335	COMPAT_60 	{ int|sys||sa_preempt(int sa_id); }
@


1.252.6.3
log
@sync to latest -current
@
text
@d497 1
a497 2
256	STD MODULAR RUMP { int|sys||_ksem_timedwait(intptr_t id, \
				const struct timespec *abstime); }
@


1.252.6.4
log
@sync to latest -current.
@
text
@a28 1
;	EXTERN	implemented, but as 3rd party module
d406 1
a406 2
210	EXTERN	MODULAR { int|sys||afssys(long id, long a1, long a2, \
			  long a3, long a4, long a5, long a6); }
@


1.251
log
@First stage of support for Extended API set 2. Most of the think is
unimplemented, except enough of linkat(2) to hardlink to a symlink.

Everything new in headers is guarded #ifdef _INCOMPLETE_XOPEN_C063 since
some software (e.g.: xcvs in our own tree) will assume they can use openat(2)
when AT_FDCWD is defined. _INCOMPLETE_XOPEN_C063 will go away once support
will be completed.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.250 2011/07/18 11:28:24 drochner Exp $
d926 2
@


1.250
log
@make the data arguments of *setxattr(2) const, as in Linux
(is this an official NetBSD API or should it be COMPAT_LINUX only?)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.249 2011/06/26 17:05:24 christos Exp $
d896 30
@


1.249
log
@- syscalls that takes socklen_t arguments should do so.
- add pipe2, dup3, paccept, kqueue1
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.248 2011/03/09 22:12:45 pooka Exp $
d721 1
a721 1
			    const char *name, void *value, size_t size, \
d724 1
a724 1
			    const char *name, void *value, size_t size, \
d727 1
a727 1
			    const char *name, void *value, size_t size, \
@


1.248
log
@actually, revert previous for now.  quotactl doesn't play with the
same rules as all the other compat functions.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.247 2011/03/09 21:52:31 pooka Exp $
d54 1
d110 1
a110 1
			    unsigned int *fromlenaddr); }
d112 1
a112 1
			    unsigned int *anamelen); }
d114 1
a114 1
			    unsigned int *alen); }
d116 1
a116 1
			    unsigned int *alen); }
d210 1
a210 1
			    unsigned int namelen); }
d212 1
a212 1
			    int *anamelen); } oaccept
d221 1
a221 1
			    unsigned int namelen); }
d223 1
a223 1
			    const void *val, unsigned int valsize); }
d242 1
a242 1
			    void *val, unsigned int *avalsize); }
d253 1
a253 1
			    int flags, void *from, int *fromlenaddr); } \
d265 1
a265 1
			    unsigned int tolen); }
d277 1
a277 1
			    int *alen); } ogetpeername
d290 1
a290 1
			    int *alen); } ogetsockname
d890 6
@


1.247
log
@mark old quotactl rump too
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.246 2011/03/06 17:08:36 bouyer Exp $
d285 1
a285 1
148	COMPAT_50 MODULAR RUMP { int|sys||quotactl(const char *path, int cmd, \
@


1.246
log
@merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
@
text
@d1 1
a1 1
	$NetBSD$
d285 1
a285 1
148	COMPAT_50 MODULAR { int|sys||quotactl(const char *path, int cmd, \
@


1.245
log
@Add syscall type NOERR which signals that a system call is STD but
does not return an errno the usual way.  The main use case is to
fix the posix_fadvise() rump stub (yes, posix_fadvise is a bit
special... bologna).

The list of NOERR syscalls currently matches the libc NOERR list
(and the libc Makefile can in the future be autogenerated from this
info).

Problem spotted by, *shocker*, the automated test runs, specifically
the posix_fadvise test.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.244 2011/02/21 12:49:06 pooka Exp $
d285 1
a285 1
148	STD 		{ int|sys||quotactl(const char *path, int cmd, \
d887 2
@


1.244
log
@somehow i've missed preadv/pwritev from rump-relevant syscalls
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.243 2011/01/31 00:05:29 christos Exp $
d16 1
a16 1
;	RUMP:	the system call can be called directly from rumps
d28 1
d94 1
a94 1
20	STD 	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d99 2
a100 2
24	STD 	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	STD 	RUMP	{ uid_t|sys||geteuid(void); }
d119 1
a119 1
36	STD 	 RUMP	{ void|sys||sync(void); }
d123 1
a123 1
39	STD 	RUMP	{ pid_t|sys||getppid(void); }
d128 1
a128 1
43	STD 	RUMP	{ gid_t|sys||getegid(void); }
d136 1
a136 1
47	STD 	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d592 1
a592 1
305	STD 	RUMP	{ int|sys||issetugid(void); }
d793 1
a793 1
416	STD  RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
@


1.243
log
@make syscalls match documentation as far as pid_t goes.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.242 2011/01/17 18:24:17 pooka Exp $
d550 1
a550 1
289	STD 		{ ssize_t|sys||preadv(int fd, \
d553 1
a553 1
290	STD 		{ ssize_t|sys||pwritev(int fd, \
@


1.242
log
@Missed pselect50 in previous (file was open in editor ... d0h).
Add mknod50 and fhstat50 too.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.241 2011/01/17 16:21:40 pooka Exp $
d75 1
a75 1
7	COMPAT_50 MODULAR { int|sys||wait4(int pid, int *status, \
d119 1
a119 1
37	STD 		{ int|sys||kill(int pid, int signum); }
d131 1
a131 1
			    int facs, int pid); }
d185 1
a185 1
82	STD 	RUMP	{ int|sys||setpgid(int pid, int pgid); }
d549 1
a549 1
			    int facs, int pid); }
d880 1
a880 1
449	STD 		{ int|sys|50|wait4(int pid, int *status, \
@


1.242.2.1
log
@Snapshot of work in progress on a modernised disk quota system:
- new quotactl syscall (versionned for backward compat), which takes
  as parameter a path to a mount point, and a prop_dictionary
  (in plistref format) describing commands and arguments.
  For each command, status and data are returned as a prop_dictionary.
  quota commands features will be added to take advantage of this,
  exporting quota data or getting quota commands as plists.

- new on disk-format storage (all 64bit wide), integrated to metadata for
  ffs (and playing nicely with wapbl).
  Quotas are enabled on a ffs filesystem via superblock flags.
  tunefs(8) can enable or disable quotas.
  On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid
  block and inode usages, and will check and update quotas in Pass 6.
  quota usage and limits are stored in unliked files (one for users,
  one for groups)l fsck_ffs(8) will create the files if needed, or
  free them if needed. This means that after enabling or disabling
  quotas on a filesystem; a fsck_ffs(8) run is required.
  quotacheck(8) is not needed any more, on a unclean shutdown
  fsck or journal replay will take care of fixing quotas.
  newfs(8) can create a ready-to-mount quota-enabled filesystem
  (superblock flags are set and quota inodes are created).
  Other new features or semantic changes:
  - default quota datas, applied to users or groups which don't already
    have a quota entry
  - per-user/group grace time (instead of a filesystem global one)
  - 0 really means "nothing allowed at all", not "no limit".
    If you want "no limit", set the limit to UQUAD_MAX (tools will
    understand "unlimited" and "-")

  A quota file is structured as follow:
  it starts with a header, containing a few per-filesystem values,
  and the default quota limits.
  Quota entries are linked together as a simple list, each entry has a
  pointer (as an offset withing the file) to the next.
  The header has a pointer to a list of free quota entries, and
  a hash table of in-use entries. The size of the hash table depends
  on the filesystem block size (header+hash table should fit in the
  first block). The file is not sparse and is a multiple of
  filesystem block size (when the free quota entry list is empty a new
  filesystem block is allocated). quota entries to not cross
  filesystem block boundaries.

  In memory, the kernel keeps a cache of recently used quota entries
  as a reference to the block number, and offset withing the block.
  The quota entry itself is keept in the buf cache.

fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with
related atf tests :)
The kernel can update disk usage and report it via quotactl(2).

Todo: enforce quotas limits (limits are not checked by kernel yet)
      update repquota, edquota and rpc.rquotad to the new world
      implement compat_50_quotactl ioctl.
      update quotactl(2) man page

fsck_ffs required fixes so that allocating new blocks or inodes will
properly update the superblock and cg sumaries. This was not an issue up
to now because superblock and cg sumaries check happened last, but now
allocations or frees can happen in pass 6.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.242 2011/01/17 18:24:17 pooka Exp $
d284 1
a284 1
148	COMPAT_50 MODULAR { int|sys||quotactl(const char *path, int cmd, \
a885 2
452	STD  RUMP	{ int|sys|50|quotactl(const char *path, \
			    struct plistref *pref); }
@


1.242.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.242.2.1 2011/01/20 14:24:57 bouyer Exp $
d75 1
a75 1
7	COMPAT_50 MODULAR { int|sys||wait4(pid_t pid, int *status, \
d119 1
a119 1
37	STD 		{ int|sys||kill(pid_t pid, int signum); }
d131 1
a131 1
			    int facs, pid_t pid); }
d185 1
a185 1
82	STD 	RUMP	{ int|sys||setpgid(pid_t pid, pid_t pgid); }
d549 1
a549 1
			    int facs, pid_t pid); }
d880 1
a880 1
449	STD 		{ int|sys|50|wait4(pid_t pid, int *status, \
@


1.242.2.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD$
d16 1
a16 1
;	RUMP:	generate rump syscall entry point
a27 1
;	NOERR	included, syscall does not set errno
d93 1
a93 1
20	NOERR 	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d98 2
a99 2
24	NOERR 	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	NOERR 	RUMP	{ uid_t|sys||geteuid(void); }
d118 1
a118 1
36	NOERR 	 RUMP	{ void|sys||sync(void); }
d122 1
a122 1
39	NOERR 	RUMP	{ pid_t|sys||getppid(void); }
d127 1
a127 1
43	NOERR 	RUMP	{ gid_t|sys||getegid(void); }
d135 1
a135 1
47	NOERR 	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d550 1
a550 1
289	STD 	RUMP	{ ssize_t|sys||preadv(int fd, \
d553 1
a553 1
290	STD 	RUMP	{ ssize_t|sys||pwritev(int fd, \
d591 1
a591 1
305	NOERR 	RUMP	{ int|sys||issetugid(void); }
d792 1
a792 1
416	NOERR RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
@


1.241
log
@Mark a few 5.0 COMPAT syscalls as RUMP now that it's possible
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.240 2011/01/10 04:39:18 christos Exp $
d83 1
a83 1
14	COMPAT_50 MODULAR { int|sys||mknod(const char *path, mode_t mode, \
d713 1
a713 1
373	COMPAT_50 MODULAR { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
d760 1
a760 1
398	COMPAT_50 MODULAR { int|sys|40|fhstat(const void *fhp, \
@


1.240
log
@implement sigqueueinfo
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.239 2010/11/11 14:47:41 pooka Exp $
d201 1
a201 1
93	COMPAT_50 MODULAR 	{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
d269 1
a269 1
138	COMPAT_50 MODULAR { int|sys||utimes(const char *path, \
d395 1
a395 1
206	COMPAT_50 MODULAR { int|sys||futimes(int fd, \
d530 1
a530 1
276	COMPAT_50 MODULAR { int|sys||lutimes(const char *path, \
d650 1
a650 1
345	COMPAT_50 MODULAR { int|sys||kevent(int fd, \
d716 1
a716 1
374	COMPAT_50 MODULAR { int|sys||pollts(struct pollfd *fds, u_int nfds, \
d745 3
a747 3
387	COMPAT_50 MODULAR { int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR { int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR { int|sys|30|lstat(const char *path, struct stat30 *ub); }
@


1.240.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.248 2011/03/09 22:12:45 pooka Exp $
d16 1
a16 1
;	RUMP:	generate rump syscall entry point
a27 1
;	NOERR	included, syscall does not set errno
d75 1
a75 1
7	COMPAT_50 MODULAR { int|sys||wait4(pid_t pid, int *status, \
d83 1
a83 1
14	COMPAT_50 MODULAR RUMP { int|sys||mknod(const char *path, mode_t mode, \
d93 1
a93 1
20	NOERR 	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d98 2
a99 2
24	NOERR 	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	NOERR 	RUMP	{ uid_t|sys||geteuid(void); }
d118 2
a119 2
36	NOERR 	 RUMP	{ void|sys||sync(void); }
37	STD 		{ int|sys||kill(pid_t pid, int signum); }
d122 1
a122 1
39	NOERR 	RUMP	{ pid_t|sys||getppid(void); }
d127 1
a127 1
43	NOERR 	RUMP	{ gid_t|sys||getegid(void); }
d131 1
a131 1
			    int facs, pid_t pid); }
d135 1
a135 1
47	NOERR 	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d185 1
a185 1
82	STD 	RUMP	{ int|sys||setpgid(pid_t pid, pid_t pgid); }
d201 1
a201 1
93	COMPAT_50 MODULAR RUMP	{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
d269 1
a269 1
138	COMPAT_50 MODULAR RUMP { int|sys||utimes(const char *path, \
d284 1
a284 1
148	COMPAT_50 MODULAR { int|sys||quotactl(const char *path, int cmd, \
d395 1
a395 1
206	COMPAT_50 MODULAR RUMP { int|sys||futimes(int fd, \
d530 1
a530 1
276	COMPAT_50 MODULAR RUMP { int|sys||lutimes(const char *path, \
d549 2
a550 2
			    int facs, pid_t pid); }
289	STD 	RUMP	{ ssize_t|sys||preadv(int fd, \
d553 1
a553 1
290	STD 	RUMP	{ ssize_t|sys||pwritev(int fd, \
d591 1
a591 1
305	NOERR 	RUMP	{ int|sys||issetugid(void); }
d650 1
a650 1
345	COMPAT_50 MODULAR RUMP { int|sys||kevent(int fd, \
d713 1
a713 1
373	COMPAT_50 MODULAR RUMP { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
d716 1
a716 1
374	COMPAT_50 MODULAR RUMP { int|sys||pollts(struct pollfd *fds, u_int nfds, \
d745 3
a747 3
387	COMPAT_50 MODULAR RUMP { int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR RUMP { int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR RUMP { int|sys|30|lstat(const char *path, struct stat30 *ub); }
d760 1
a760 1
398	COMPAT_50 MODULAR RUMP { int|sys|40|fhstat(const void *fhp, \
d792 1
a792 1
416	NOERR RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
d880 1
a880 1
449	STD 		{ int|sys|50|wait4(pid_t pid, int *status, \
a885 2
452	STD  RUMP	{ int|sys|50|quotactl(const char *path, \
			    struct plistref *pref); }
@


1.239
log
@rump posix_fadvise()
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.238 2010/09/07 17:10:08 pooka Exp $
d481 2
a482 1
245	UNIMPL		sys_sigqueue
@


1.238
log
@getcwd for rump
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.237 2010/09/06 20:00:09 pooka Exp $
d791 1
a791 1
416	STD 		{ int|sys|50|posix_fadvise(int fd, int PAD, \
@


1.237
log
@rump umask
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.236 2010/08/30 10:32:54 pooka Exp $
d564 1
a564 1
296	STD 		{ int|sys||__getcwd(char *bufp, size_t length); }
@


1.236
log
@RUMP syscalls for kern_prot.c interfaces
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.235 2010/06/10 19:09:03 pooka Exp $
d155 1
a155 1
60	STD 		{ mode_t|sys||umask(mode_t newmask); }
@


1.235
log
@rump stubs for _ksem*
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.234 2010/06/04 16:32:00 njoly Exp $
d93 1
a93 1
20	STD 		{ pid_t|sys||getpid_with_ppid(void); } getpid
d97 3
a99 3
23	STD 		{ int|sys||setuid(uid_t uid); }
24	STD 		{ uid_t|sys||getuid_with_euid(void); } getuid
25	STD 		{ uid_t|sys||geteuid(void); }
d122 1
a122 1
39	STD 		{ pid_t|sys||getppid(void); }
d127 1
a127 1
43	STD 		{ gid_t|sys||getegid(void); }
d135 1
a135 1
47	STD 		{ gid_t|sys||getgid_with_egid(void); } getgid
d138 2
a139 2
49	STD 		{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int|sys||__setlogin(const char *namebuf); }
d180 1
a180 1
79	STD 		{ int|sys||getgroups(int gidsetsize, \
d182 1
a182 1
80	STD 		{ int|sys||setgroups(int gidsetsize, \
d184 2
a185 2
81	STD 		{ int|sys||getpgrp(void); }
82	STD 		{ int|sys||setpgid(int pid, int pgid); }
d253 2
a254 2
126	STD 		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int|sys||setregid(gid_t rgid, gid_t egid); }
d283 1
a283 1
147	STD 	 	{ int|sys||setsid(void); }
d356 3
a358 3
181	STD 		{ int|sys||setgid(gid_t gid); }
182	STD 		{ int|sys||setegid(gid_t egid); }
183	STD 		{ int|sys||seteuid(uid_t euid); }
d397 1
a397 1
207	STD 		{ pid_t|sys||getpgid(pid_t pid); }
d545 1
a545 1
286	STD 		{ pid_t|sys||getsid(pid_t pid); }
d590 1
a590 1
305	STD 		{ int|sys||issetugid(void); }
@


1.234
log
@Rumpify pathconf(2)/fpathconf(2)

ok from pooka@@
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.233 2010/04/21 16:17:04 pooka Exp $
d483 2
a484 2
247	STD MODULAR 	{ int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR 	{ int|sys||_ksem_open(const char *name, int oflag, \
d486 6
a491 6
249	STD MODULAR 	{ int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR 	{ int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR 	{ int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR 	{ int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR 	{ int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR 	{ int|sys||_ksem_getvalue(intptr_t id, \
d493 1
a493 1
255	STD MODULAR 	{ int|sys||_ksem_destroy(intptr_t id); }
@


1.233
log
@make get/setrlimit as rump-capable
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.232 2010/03/02 19:34:26 pooka Exp $
d371 2
a372 2
191	STD 		{ long|sys||pathconf(const char *path, int name); }
192	STD 		{ long|sys||fpathconf(int fd, int name); }
@


1.232
log
@Make lfs syscalls loadable.  This nukes fs_lfs.h & #ifdef LFS.
(I don't mind if someone wants to go further and OBSOL them).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.231 2009/11/26 17:20:20 pooka Exp $
d374 1
a374 1
194	STD 		{ int|sys||getrlimit(int which, \
d376 1
a376 1
195	STD 		{ int|sys||setrlimit(int which, \
@


1.232.2.1
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.232 2010/03/02 19:34:26 pooka Exp $
d374 1
a374 1
194	STD 	RUMP	{ int|sys||getrlimit(int which, \
d376 1
a376 1
195	STD 	RUMP	{ int|sys||setrlimit(int which, \
@


1.232.2.2
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.232.2.1 2010/05/30 05:17:58 rmind Exp $
d371 2
a372 2
191	STD 	RUMP	{ long|sys||pathconf(const char *path, int name); }
192	STD 	RUMP	{ long|sys||fpathconf(int fd, int name); }
d483 2
a484 2
247	STD MODULAR RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR RUMP { int|sys||_ksem_open(const char *name, int oflag, \
d486 6
a491 6
249	STD MODULAR RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR RUMP { int|sys||_ksem_getvalue(intptr_t id, \
d493 1
a493 1
255	STD MODULAR RUMP { int|sys||_ksem_destroy(intptr_t id); }
@


1.232.2.3
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD$
d16 1
a16 1
;	RUMP:	generate rump syscall entry point
a27 1
;	NOERR	included, syscall does not set errno
d75 1
a75 1
7	COMPAT_50 MODULAR { int|sys||wait4(pid_t pid, int *status, \
d83 1
a83 1
14	COMPAT_50 MODULAR RUMP { int|sys||mknod(const char *path, mode_t mode, \
d93 1
a93 1
20	NOERR 	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d97 3
a99 3
23	STD 	RUMP	{ int|sys||setuid(uid_t uid); }
24	NOERR 	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	NOERR 	RUMP	{ uid_t|sys||geteuid(void); }
d118 2
a119 2
36	NOERR 	 RUMP	{ void|sys||sync(void); }
37	STD 		{ int|sys||kill(pid_t pid, int signum); }
d122 1
a122 1
39	NOERR 	RUMP	{ pid_t|sys||getppid(void); }
d127 1
a127 1
43	NOERR 	RUMP	{ gid_t|sys||getegid(void); }
d131 1
a131 1
			    int facs, pid_t pid); }
d135 1
a135 1
47	NOERR 	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d138 2
a139 2
49	STD 	RUMP	{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD 	RUMP 	{ int|sys||__setlogin(const char *namebuf); }
d155 1
a155 1
60	STD 	 RUMP	{ mode_t|sys||umask(mode_t newmask); }
d180 1
a180 1
79	STD 	RUMP	{ int|sys||getgroups(int gidsetsize, \
d182 1
a182 1
80	STD 	RUMP	{ int|sys||setgroups(int gidsetsize, \
d184 2
a185 2
81	STD 	RUMP	{ int|sys||getpgrp(void); }
82	STD 	RUMP	{ int|sys||setpgid(pid_t pid, pid_t pgid); }
d201 1
a201 1
93	COMPAT_50 MODULAR RUMP	{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
d253 2
a254 2
126	STD 	RUMP	{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD 	RUMP	{ int|sys||setregid(gid_t rgid, gid_t egid); }
d269 1
a269 1
138	COMPAT_50 MODULAR RUMP { int|sys||utimes(const char *path, \
d283 1
a283 1
147	STD 	RUMP 	{ int|sys||setsid(void); }
d356 3
a358 3
181	STD 	RUMP	{ int|sys||setgid(gid_t gid); }
182	STD 	RUMP	{ int|sys||setegid(gid_t egid); }
183	STD 	RUMP	{ int|sys||seteuid(uid_t euid); }
d395 1
a395 1
206	COMPAT_50 MODULAR RUMP { int|sys||futimes(int fd, \
d397 1
a397 1
207	STD 	 RUMP	{ pid_t|sys||getpgid(pid_t pid); }
d481 1
a481 2
245	STD		{ int|sys||sigqueueinfo(pid_t pid, \
			    const siginfo_t *info); }
d529 1
a529 1
276	COMPAT_50 MODULAR RUMP { int|sys||lutimes(const char *path, \
d545 1
a545 1
286	STD 	RUMP	{ pid_t|sys||getsid(pid_t pid); }
d548 2
a549 2
			    int facs, pid_t pid); }
289	STD 	RUMP	{ ssize_t|sys||preadv(int fd, \
d552 1
a552 1
290	STD 	RUMP	{ ssize_t|sys||pwritev(int fd, \
d564 1
a564 1
296	STD 	 RUMP	{ int|sys||__getcwd(char *bufp, size_t length); }
d590 1
a590 1
305	NOERR 	RUMP	{ int|sys||issetugid(void); }
d649 1
a649 1
345	COMPAT_50 MODULAR RUMP { int|sys||kevent(int fd, \
d712 1
a712 1
373	COMPAT_50 MODULAR RUMP { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
d715 1
a715 1
374	COMPAT_50 MODULAR RUMP { int|sys||pollts(struct pollfd *fds, u_int nfds, \
d744 3
a746 3
387	COMPAT_50 MODULAR RUMP { int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR RUMP { int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR RUMP { int|sys|30|lstat(const char *path, struct stat30 *ub); }
d759 1
a759 1
398	COMPAT_50 MODULAR RUMP { int|sys|40|fhstat(const void *fhp, \
d791 1
a791 1
416	NOERR RUMP	{ int|sys|50|posix_fadvise(int fd, int PAD, \
d879 1
a879 1
449	STD 		{ int|sys|50|wait4(pid_t pid, int *status, \
@


1.232.2.4
log
@sync with head
@
text
@d285 1
a285 1
148	COMPAT_50 MODULAR { int|sys||quotactl(const char *path, int cmd, \
a886 2
452	STD  RUMP	{ int|sys|50|quotactl(const char *path, \
			    struct plistref *pref); }
@


1.231
log
@pipe +RUMP
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.230 2009/11/26 09:00:45 pooka Exp $
a49 2
#include "fs_lfs.h"

d359 1
a359 2
#if defined(LFS) || !defined(_KERNEL)
184	STD 		{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d361 1
a361 1
185	STD 		{ int|sys||lfs_markv(fsid_t *fsidp, \
d363 1
a363 1
186	STD		{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
a365 6
#else
184	EXCL		lfs_bmapv
185	EXCL		lfs_markv
186	EXCL		lfs_segclean
187	EXCL		lfs_segwait
#endif
d803 1
a803 2
#if defined(LFS) || !defined(_KERNEL)
422	STD		{ int|sys|50|lfs_segwait(fsid_t *fsidp, \
a804 3
#else
422	EXCL		__lfs_segwait50
#endif
@


1.231.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD$
d50 2
d361 2
a362 1
184	STD MODULAR	{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d364 1
a364 1
185	STD MODULAR	{ int|sys||lfs_markv(fsid_t *fsidp, \
d366 1
a366 1
186	STD MODULAR	{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
d369 6
d383 1
a383 1
194	STD 	RUMP	{ int|sys||getrlimit(int which, \
d385 1
a385 1
195	STD 	RUMP	{ int|sys||setrlimit(int which, \
d812 2
a813 1
422	STD  MODULAR	{ int|sys|50|lfs_segwait(fsid_t *fsidp, \
d815 3
@


1.231.2.2
log
@Sync with HEAD.
@
text
@d371 2
a372 2
191	STD 	RUMP	{ long|sys||pathconf(const char *path, int name); }
192	STD 	RUMP	{ long|sys||fpathconf(int fd, int name); }
d483 2
a484 2
247	STD MODULAR RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR RUMP { int|sys||_ksem_open(const char *name, int oflag, \
d486 6
a491 6
249	STD MODULAR RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR RUMP { int|sys||_ksem_getvalue(intptr_t id, \
d493 1
a493 1
255	STD MODULAR RUMP { int|sys||_ksem_destroy(intptr_t id); }
@


1.231.2.3
log
@Sync with HEAD (-D20101022).
@
text
@d93 1
a93 1
20	STD 	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d97 3
a99 3
23	STD 	RUMP	{ int|sys||setuid(uid_t uid); }
24	STD 	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	STD 	RUMP	{ uid_t|sys||geteuid(void); }
d122 1
a122 1
39	STD 	RUMP	{ pid_t|sys||getppid(void); }
d127 1
a127 1
43	STD 	RUMP	{ gid_t|sys||getegid(void); }
d135 1
a135 1
47	STD 	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d138 2
a139 2
49	STD 	RUMP	{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD 	RUMP 	{ int|sys||__setlogin(const char *namebuf); }
d155 1
a155 1
60	STD 	 RUMP	{ mode_t|sys||umask(mode_t newmask); }
d180 1
a180 1
79	STD 	RUMP	{ int|sys||getgroups(int gidsetsize, \
d182 1
a182 1
80	STD 	RUMP	{ int|sys||setgroups(int gidsetsize, \
d184 2
a185 2
81	STD 	RUMP	{ int|sys||getpgrp(void); }
82	STD 	RUMP	{ int|sys||setpgid(int pid, int pgid); }
d253 2
a254 2
126	STD 	RUMP	{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD 	RUMP	{ int|sys||setregid(gid_t rgid, gid_t egid); }
d283 1
a283 1
147	STD 	RUMP 	{ int|sys||setsid(void); }
d356 3
a358 3
181	STD 	RUMP	{ int|sys||setgid(gid_t gid); }
182	STD 	RUMP	{ int|sys||setegid(gid_t egid); }
183	STD 	RUMP	{ int|sys||seteuid(uid_t euid); }
d397 1
a397 1
207	STD 	 RUMP	{ pid_t|sys||getpgid(pid_t pid); }
d545 1
a545 1
286	STD 	RUMP	{ pid_t|sys||getsid(pid_t pid); }
d564 1
a564 1
296	STD 	 RUMP	{ int|sys||__getcwd(char *bufp, size_t length); }
d590 1
a590 1
305	STD 	RUMP	{ int|sys||issetugid(void); }
@


1.230
log
@modctl +RUMP
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.229 2009/07/21 23:59:00 pooka Exp $
d128 1
a128 1
42	STD 		{ int|sys||pipe(void); }
@


1.229
log
@+fhopen, +fhstatvfs1 RUMP
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.228 2009/07/19 02:50:44 rmind Exp $
d491 1
a491 1
246	STD 	 	{ int|sys||modctl(int cmd, void *arg); }
@


1.228
log
@Make POSIX message queues a kernel module.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.227 2009/05/15 15:51:27 pooka Exp $
d764 1
a764 1
396	STD 		{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d766 1
a766 1
397	STD 		{ int|sys|40|fhstatvfs1(const void *fhp, \
@


1.227
log
@Use argname PAD to signal that an argument is used only for padding
and not part of the C interface.  Use this information for rump
syscalls to generate syscall interfaces without the extra parameter.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.226 2009/03/28 16:33:40 pooka Exp $
d504 1
a504 1
257	STD 		{ mqd_t|sys||mq_open(const char * name, int oflag, \
d506 3
a508 3
258	STD 		{ int|sys||mq_close(mqd_t mqdes); }
259	STD 		{ int|sys||mq_unlink(const char *name); }
260	STD 		{ int|sys||mq_getattr(mqd_t mqdes, \
d510 1
a510 1
261	STD 		{ int|sys||mq_setattr(mqd_t mqdes, \
d513 1
a513 1
262	STD 		{ int|sys||mq_notify(mqd_t mqdes, \
d515 1
a515 1
263	STD 		{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d517 1
a517 1
264	STD 		{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d838 1
a838 1
432	STD 		{ int|sys|50|mq_timedsend(mqd_t mqdes, \
d842 1
a842 1
433	STD 		{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
@


1.226
log
@mark a bunch of syscalls as RUMP
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.223 2009/02/13 22:41:04 apb Exp $
d29 3
d342 1
a342 1
			    size_t nbyte, int pad, off_t offset); }
d344 1
a344 1
			    size_t nbyte, int pad, off_t offset); }
d390 1
a390 1
			    int flags, int fd, long pad, off_t pos); }
d393 1
a393 1
199	STD 	 RUMP	{ off_t|sys||lseek(int fd, int pad, off_t offset, \
d395 1
a395 1
200	STD 	 RUMP	{ int|sys||truncate(const char *path, int pad, \
d397 1
a397 1
201	STD 	 RUMP	{ int|sys||ftruncate(int fd, int pad, off_t length); }
d560 1
a560 1
			    int pad, off_t offset); }
d563 1
a563 1
			    int pad, off_t offset); }
d800 1
a800 1
416	STD 		{ int|sys|50|posix_fadvise(int fd, int pad, \
@


1.225
log
@make mount() a rump call
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.224 2009/03/18 17:51:17 pooka Exp $
d114 1
a114 1
33	STD 		{ int|sys||access(const char *path, int flags); }
d116 1
a116 1
35	STD 		{ int|sys||fchflags(int fd, u_long flags); }
d124 1
a124 1
41	STD 		{ int|sys||dup(int fd); }
d147 1
a147 1
56	STD 		{ int|sys||revoke(const char *path); }
d155 1
a155 1
61	STD 		{ int|sys||chroot(const char *path); }
d197 1
a197 1
90	STD 		{ int|sys||dup2(int from, int to); }
d199 1
a199 1
92	STD 		{ int|sys||fcntl(int fd, int cmd, ... void *arg); }
d241 1
a241 1
120	STD 		{ ssize_t|sys||readv(int fd, \
d243 1
a243 1
121	STD 		{ ssize_t|sys||writev(int fd, \
d247 2
a248 2
123	STD 		{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD 		{ int|sys||fchmod(int fd, mode_t mode); }
d258 1
a258 1
131	STD 		{ int|sys||flock(int fd, int how); }
d390 1
a390 1
199	STD 		{ off_t|sys||lseek(int fd, int pad, off_t offset, \
d394 1
a394 1
201	STD 		{ int|sys||ftruncate(int fd, int pad, off_t length); }
d404 2
a405 2
208	STD		{ int|sys||reboot(int opt, char *bootstr); }
209	STD 		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d481 1
a481 1
241	STD 		{ int|sys||fdatasync(int fd); }
d571 1
a571 1
297	STD 		{ int|sys||fchroot(int fd); }
d674 1
a674 1
354	STD 		{ int|sys||fsync_range(int fd, int flags, off_t start, \
d677 1
a677 1
356	STD 		{ int|sys||getvfsstat(struct statvfs *buf, \
d681 1
a681 1
358	STD 		{ int|sys||fstatvfs1(int fd, struct statvfs *buf, \
d685 1
a685 1
360	STD 		{ int|sys||extattrctl(const char *path, int cmd, \
d688 1
a688 1
361	STD 		{ int|sys||extattr_set_file(const char *path, \
d691 1
a691 1
362	STD 		{ ssize_t|sys||extattr_get_file(const char *path, \
d694 1
a694 1
363	STD 		{ int|sys||extattr_delete_file(const char *path, \
d696 1
a696 1
364	STD 		{ int|sys||extattr_set_fd(int fd, \
d699 1
a699 1
365	STD 		{ ssize_t|sys||extattr_get_fd(int fd, \
d702 1
a702 1
366	STD 		{ int|sys||extattr_delete_fd(int fd, \
d704 1
a704 1
367	STD 		{ int|sys||extattr_set_link(const char *path, \
d707 1
a707 1
368	STD 		{ ssize_t|sys||extattr_get_link(const char *path, \
d710 1
a710 1
369	STD 		{ int|sys||extattr_delete_link(const char *path, \
d712 1
a712 1
370	STD 		{ ssize_t|sys||extattr_list_fd(int fd, \
d714 1
a714 1
371	STD 		{ ssize_t|sys||extattr_list_file(const char *path, \
d716 1
a716 1
372	STD 		{ ssize_t|sys||extattr_list_link(const char *path, \
d723 1
a723 1
375	STD 		{ int|sys||setxattr(const char *path, \
d726 1
a726 1
376	STD 		{ int|sys||lsetxattr(const char *path, \
d729 1
a729 1
377	STD 		{ int|sys||fsetxattr(int fd, \
d732 1
a732 1
378	STD 		{ int|sys||getxattr(const char *path, \
d734 1
a734 1
379	STD 		{ int|sys||lgetxattr(const char *path, \
d736 1
a736 1
380	STD 		{ int|sys||fgetxattr(int fd, \
d738 1
a738 1
381	STD 		{ int|sys||listxattr(const char *path, \
d740 1
a740 1
382	STD 		{ int|sys||llistxattr(const char *path, \
d742 1
a742 1
383	STD 		{ int|sys||flistxattr(int fd, \
d744 1
a744 1
384	STD 		{ int|sys||removexattr(const char *path, \
d746 1
a746 1
385	STD 		{ int|sys||lremovexattr(const char *path, \
d748 1
a748 1
386	STD 		{ int|sys||fremovexattr(int fd, \
d753 1
a753 1
390	STD 		{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d799 1
a799 1
417	STD 		{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
d815 1
a815 1
423	STD 		{ int|sys|50|futimes(int fd, \
d845 1
a845 1
435	STD  RUMP	{ int|sys|50|kevent(int fd, \
d849 1
a849 1
436	STD 		{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
d852 1
a852 1
437	STD 		{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
d858 1
a858 1
440	STD 		{ int|sys|50|fstat(int fd, struct stat *sb); }
d893 1
a893 1
451	STD	 	{ int|sys|50|fhstat(const void *fhp, \
@


1.224
log
@kqueue and kevent for rump
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.223 2009/02/13 22:41:04 apb Exp $
d784 1
a784 1
410	STD 		{ int|sys|50|mount(const char *type, \
@


1.223
log
@Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.222 2009/01/26 12:20:05 pooka Exp $
d654 1
a654 1
344	STD 		{ int|sys||kqueue(void); }
d845 1
a845 1
435	STD 		{ int|sys|50|kevent(int fd, \
@


1.222
log
@Tag a few more socket syscalls with RUMP:
recvmsg, sendmsg, recvfrom, getpeername, getsockname, sendto,
shutdown, socketpair
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.221 2009/01/13 22:27:44 pooka Exp $
d43 1
@


1.222.2.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.226 2009/03/28 16:33:40 pooka Exp $
a42 1
#include "opt_modular.h"
d113 1
a113 1
33	STD 	RUMP	{ int|sys||access(const char *path, int flags); }
d115 1
a115 1
35	STD 	RUMP	{ int|sys||fchflags(int fd, u_long flags); }
d123 1
a123 1
41	STD 	RUMP	{ int|sys||dup(int fd); }
d146 1
a146 1
56	STD 	 RUMP	{ int|sys||revoke(const char *path); }
d154 1
a154 1
61	STD 	 RUMP	{ int|sys||chroot(const char *path); }
d196 1
a196 1
90	STD 	 RUMP	{ int|sys||dup2(int from, int to); }
d198 1
a198 1
92	STD	RUMP	{ int|sys||fcntl(int fd, int cmd, ... void *arg); }
d240 1
a240 1
120	STD 	RUMP	{ ssize_t|sys||readv(int fd, \
d242 1
a242 1
121	STD 	RUMP	{ ssize_t|sys||writev(int fd, \
d246 2
a247 2
123	STD 	 RUMP	{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD 	 RUMP	{ int|sys||fchmod(int fd, mode_t mode); }
d257 1
a257 1
131	STD 	 RUMP	{ int|sys||flock(int fd, int how); }
d389 1
a389 1
199	STD 	 RUMP	{ off_t|sys||lseek(int fd, int pad, off_t offset, \
d393 1
a393 1
201	STD 	 RUMP	{ int|sys||ftruncate(int fd, int pad, off_t length); }
d403 2
a404 2
208	STD	 RUMP	{ int|sys||reboot(int opt, char *bootstr); }
209	STD 	 RUMP	{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d480 1
a480 1
241	STD 	 RUMP	{ int|sys||fdatasync(int fd); }
d570 1
a570 1
297	STD 	 RUMP	{ int|sys||fchroot(int fd); }
d653 1
a653 1
344	STD	RUMP	{ int|sys||kqueue(void); }
d673 1
a673 1
354	STD	RUMP	{ int|sys||fsync_range(int fd, int flags, off_t start, \
d676 1
a676 1
356	STD 	RUMP	{ int|sys||getvfsstat(struct statvfs *buf, \
d680 1
a680 1
358	STD 	RUMP	{ int|sys||fstatvfs1(int fd, struct statvfs *buf, \
d684 1
a684 1
360	STD 	RUMP	{ int|sys||extattrctl(const char *path, int cmd, \
d687 1
a687 1
361	STD 	RUMP	{ int|sys||extattr_set_file(const char *path, \
d690 1
a690 1
362	STD 	RUMP	{ ssize_t|sys||extattr_get_file(const char *path, \
d693 1
a693 1
363	STD 	RUMP	{ int|sys||extattr_delete_file(const char *path, \
d695 1
a695 1
364	STD 	RUMP	{ int|sys||extattr_set_fd(int fd, \
d698 1
a698 1
365	STD 	RUMP	{ ssize_t|sys||extattr_get_fd(int fd, \
d701 1
a701 1
366	STD 	RUMP	{ int|sys||extattr_delete_fd(int fd, \
d703 1
a703 1
367	STD 	RUMP	{ int|sys||extattr_set_link(const char *path, \
d706 1
a706 1
368	STD 	RUMP	{ ssize_t|sys||extattr_get_link(const char *path, \
d709 1
a709 1
369	STD 	RUMP	{ int|sys||extattr_delete_link(const char *path, \
d711 1
a711 1
370	STD 	RUMP	{ ssize_t|sys||extattr_list_fd(int fd, \
d713 1
a713 1
371	STD 	RUMP	{ ssize_t|sys||extattr_list_file(const char *path, \
d715 1
a715 1
372	STD 	RUMP	{ ssize_t|sys||extattr_list_link(const char *path, \
d722 1
a722 1
375	STD 	RUMP	{ int|sys||setxattr(const char *path, \
d725 1
a725 1
376	STD 	RUMP	{ int|sys||lsetxattr(const char *path, \
d728 1
a728 1
377	STD 	RUMP	{ int|sys||fsetxattr(int fd, \
d731 1
a731 1
378	STD 	RUMP	{ int|sys||getxattr(const char *path, \
d733 1
a733 1
379	STD 	RUMP	{ int|sys||lgetxattr(const char *path, \
d735 1
a735 1
380	STD 	RUMP	{ int|sys||fgetxattr(int fd, \
d737 1
a737 1
381	STD 	RUMP	{ int|sys||listxattr(const char *path, \
d739 1
a739 1
382	STD 	RUMP	{ int|sys||llistxattr(const char *path, \
d741 1
a741 1
383	STD 	RUMP	{ int|sys||flistxattr(int fd, \
d743 1
a743 1
384	STD 	RUMP	{ int|sys||removexattr(const char *path, \
d745 1
a745 1
385	STD 	RUMP	{ int|sys||lremovexattr(const char *path, \
d747 1
a747 1
386	STD 	RUMP	{ int|sys||fremovexattr(int fd, \
d752 1
a752 1
390	STD 	RUMP	{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d783 1
a783 1
410	STD  RUMP	{ int|sys|50|mount(const char *type, \
d798 1
a798 1
417	STD  RUMP	{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
d814 1
a814 1
423	STD  RUMP	{ int|sys|50|futimes(int fd, \
d844 1
a844 1
435	STD	RUMP	{ int|sys|50|kevent(int fd, \
d848 1
a848 1
436	STD 	RUMP	{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
d851 1
a851 1
437	STD 	RUMP	{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
d857 1
a857 1
440	STD  RUMP	{ int|sys|50|fstat(int fd, struct stat *sb); }
d892 1
a892 1
451	STD  RUMP 	{ int|sys|50|fhstat(const void *fhp, \
@


1.222.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.229 2009/07/21 23:59:00 pooka Exp $
a28 3
; arguments:
;	PAD	argument not part of the C interface, used only for padding
;
d339 1
a339 1
			    size_t nbyte, int PAD, off_t offset); }
d341 1
a341 1
			    size_t nbyte, int PAD, off_t offset); }
d387 1
a387 1
			    int flags, int fd, long PAD, off_t pos); }
d390 1
a390 1
199	STD 	 RUMP	{ off_t|sys||lseek(int fd, int PAD, off_t offset, \
d392 1
a392 1
200	STD 	 RUMP	{ int|sys||truncate(const char *path, int PAD, \
d394 1
a394 1
201	STD 	 RUMP	{ int|sys||ftruncate(int fd, int PAD, off_t length); }
d501 1
a501 1
257	STD MODULAR	{ mqd_t|sys||mq_open(const char * name, int oflag, \
d503 3
a505 3
258	STD MODULAR	{ int|sys||mq_close(mqd_t mqdes); }
259	STD MODULAR	{ int|sys||mq_unlink(const char *name); }
260	STD MODULAR	{ int|sys||mq_getattr(mqd_t mqdes, \
d507 1
a507 1
261	STD MODULAR	{ int|sys||mq_setattr(mqd_t mqdes, \
d510 1
a510 1
262	STD MODULAR	{ int|sys||mq_notify(mqd_t mqdes, \
d512 1
a512 1
263	STD MODULAR	{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d514 1
a514 1
264	STD MODULAR	{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d557 1
a557 1
			    int PAD, off_t offset); }
d560 1
a560 1
			    int PAD, off_t offset); }
d761 1
a761 1
396	STD 	 RUMP	{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d763 1
a763 1
397	STD 	 RUMP	{ int|sys|40|fhstatvfs1(const void *fhp, \
d797 1
a797 1
416	STD 		{ int|sys|50|posix_fadvise(int fd, int PAD, \
d835 1
a835 1
432	STD MODULAR	{ int|sys|50|mq_timedsend(mqd_t mqdes, \
d839 1
a839 1
433	STD MODULAR	{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
@


1.221
log
@Convert the syscalls.master to a format from which it is easier
to parse and generate the compat name and basename (e.g. __stat50
and stat).  Use this to autogenerate __RENAME()'s to the rump_syscalls
header so that they can be called e.g. rump_sys_socket() instead
of rump_sys___socket30().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.220 2009/01/11 19:40:38 christos Exp $
d100 1
a100 1
27	STD 		{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
d102 1
a102 1
28	STD 		{ ssize_t|sys||sendmsg(int s, \
d104 1
a104 1
29	STD 		{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
d109 1
a109 1
31	STD		{ int|sys||getpeername(int fdes, struct sockaddr *asa, \
d111 1
a111 1
32	STD		{ int|sys||getsockname(int fdes, struct sockaddr *asa, \
d259 1
a259 1
133	STD 		{ ssize_t|sys||sendto(int s, const void *buf, \
d262 2
a263 2
134	STD		{ int|sys||shutdown(int s, int how); }
135	STD		{ int|sys||socketpair(int domain, int type, \
@


1.220
log
@fix lutimes.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.219 2009/01/11 02:45:53 christos Exp $
d36 1
a36 1
;	{ pseudo-proto } [alias]
d63 1
a63 1
0	INDIR		{ int sys_syscall(int code, \
d65 4
a68 4
1	STD 		{ void sys_exit(int rval); }
2	STD 		{ int sys_fork(void); }
3	STD 	 RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d70 1
a70 1
5	STD 	 RUMP	{ int sys_open(const char *path, \
d72 2
a73 2
6	STD	 RUMP	{ int sys_close(int fd); }
7	COMPAT_50 MODULAR { int sys_wait4(int pid, int *status, \
d75 3
a77 3
8	COMPAT_43 MODULAR { int sys_creat(const char *path, mode_t mode); } ocreat
9	STD 	 RUMP	{ int sys_link(const char *path, const char *link); }
10	STD 	 RUMP	{ int sys_unlink(const char *path); }
d79 3
a81 3
12	STD 	 RUMP	{ int sys_chdir(const char *path); }
13	STD 	 RUMP	{ int sys_fchdir(int fd); }
14	COMPAT_50 MODULAR { int sys_mknod(const char *path, mode_t mode, \
d83 2
a84 2
15	STD 	 RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int sys_chown(const char *path, uid_t uid, \
d86 2
a87 2
17	STD 		{ int sys_obreak(char *nsize); } break
18	COMPAT_20 MODULAR { int sys_getfsstat(struct statfs12 *buf, \
d89 1
a89 1
19	COMPAT_43 MODULAR { long sys_lseek(int fd, long offset, int whence); } \
d91 2
a92 2
20	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
21	COMPAT_40 MODULAR { int sys_mount(const char *type, const char *path, \
d94 5
a98 5
22	STD 	 RUMP	{ int sys_unmount(const char *path, int flags); }
23	STD 		{ int sys_setuid(uid_t uid); }
24	STD 		{ uid_t sys_getuid_with_euid(void); } getuid
25	STD 		{ uid_t sys_geteuid(void); }
26	STD 		{ int sys_ptrace(int req, pid_t pid, void *addr, \
d100 1
a100 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d102 1
a102 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d104 1
a104 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d107 1
a107 1
30	STD	RUMP	{ int sys_accept(int s, struct sockaddr *name, \
d109 1
a109 1
31	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
d111 1
a111 1
32	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
d113 6
a118 6
33	STD 		{ int sys_access(const char *path, int flags); }
34	STD 	 RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD 		{ int sys_fchflags(int fd, u_long flags); }
36	STD 	 RUMP	{ void sys_sync(void); }
37	STD 		{ int sys_kill(int pid, int signum); }
38	COMPAT_43 MODULAR { int sys_stat(const char *path, struct stat43 *ub); } \
d120 2
a121 2
39	STD 		{ pid_t sys_getppid(void); }
40	COMPAT_43 MODULAR { int sys_lstat(const char *path, \
d123 4
a126 4
41	STD 		{ int sys_dup(int fd); }
42	STD 		{ int sys_pipe(void); }
43	STD 		{ gid_t sys_getegid(void); }
44	STD 		{ int sys_profil(char *samples, size_t size, \
d128 1
a128 1
45	STD 		{ int sys_ktrace(const char *fname, int ops, \
d130 1
a130 1
46	COMPAT_13 MODULAR { int sys_sigaction(int signum, \
d133 2
a134 2
47	STD 		{ gid_t sys_getgid_with_egid(void); } getgid
48	COMPAT_13 MODULAR { int sys_sigprocmask(int how, \
d136 5
a140 5
49	STD 		{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int sys___setlogin(const char *namebuf); }
51	STD 		{ int sys_acct(const char *path); }
52	COMPAT_13 MODULAR { int sys_sigpending(void); } sigpending13
53	COMPAT_13 MODULAR { int sys_sigaltstack( \
d143 1
a143 1
54	STD	RUMP	{ int sys_ioctl(int fd, \
d145 3
a147 3
55	COMPAT_12 MODULAR { int sys_reboot(int opt); } oreboot
56	STD 		{ int sys_revoke(const char *path); }
57	STD 	 RUMP	{ int sys_symlink(const char *path, \
d149 1
a149 1
58	STD 	 RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d151 1
a151 1
59	STD 		{ int sys_execve(const char *path, \
d153 4
a156 4
60	STD 		{ mode_t sys_umask(mode_t newmask); }
61	STD 		{ int sys_chroot(const char *path); }
62	COMPAT_43 MODULAR { int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR { int sys_getkerninfo(int op, char *where, int *size, \
d158 2
a159 2
64	COMPAT_43 MODULAR { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR { int sys_msync(void *addr, size_t len); }
d161 1
a161 1
66	STD 		{ int sys_vfork(void); }
d164 3
a166 3
69	STD 		{ int sys_sbrk(intptr_t incr); }
70	STD 		{ int sys_sstk(int incr); }
71	COMPAT_43 MODULAR { int sys_mmap(void *addr, size_t len, int prot, \
d168 3
a170 3
72	STD 		{ int sys_ovadvise(int anom); } vadvise
73	STD 		{ int sys_munmap(void *addr, size_t len); }
74	STD 		{ int sys_mprotect(void *addr, size_t len, \
d172 1
a172 1
75	STD 		{ int sys_madvise(void *addr, size_t len, \
d176 1
a176 1
78	STD 		{ int sys_mincore(void *addr, size_t len, \
d178 1
a178 1
79	STD 		{ int sys_getgroups(int gidsetsize, \
d180 1
a180 1
80	STD 		{ int sys_setgroups(int gidsetsize, \
d182 3
a184 3
81	STD 		{ int sys_getpgrp(void); }
82	STD 		{ int sys_setpgid(int pid, int pgid); }
83	COMPAT_50 MODULAR { int sys_setitimer(int which, \
d187 3
a189 3
84	COMPAT_43 MODULAR { int sys_wait(void); } owait
85	COMPAT_12 MODULAR { int sys_swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR { int sys_getitimer(int which, \
d191 1
a191 1
87	COMPAT_43 MODULAR { int sys_gethostname(char *hostname, u_int len); } \
d193 1
a193 1
88	COMPAT_43 MODULAR { int sys_sethostname(char *hostname, u_int len); } \
d195 2
a196 2
89	COMPAT_43 MODULAR { int sys_getdtablesize(void); } ogetdtablesize
90	STD 		{ int sys_dup2(int from, int to); }
d198 2
a199 2
92	STD 		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	COMPAT_50 MODULAR 	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d202 4
a205 4
95	STD	RUMP 	{ int sys_fsync(int fd); }
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
97	COMPAT_30 MODULAR { int sys_socket(int domain, int type, int protocol); }
98	STD	RUMP	{ int sys_connect(int s, const struct sockaddr *name, \
d207 1
a207 1
99	COMPAT_43 MODULAR { int sys_accept(int s, void *name, \
d209 2
a210 2
100	STD 		{ int sys_getpriority(int which, id_t who); }
101	COMPAT_43 MODULAR { int sys_send(int s, void *buf, int len, \
d212 1
a212 1
102	COMPAT_43 MODULAR { int sys_recv(int s, void *buf, int len, \
d214 1
a214 1
103	COMPAT_13 MODULAR { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d216 1
a216 1
104	STD	RUMP	{ int sys_bind(int s, const struct sockaddr *name, \
d218 1
a218 1
105	STD	RUMP	{ int sys_setsockopt(int s, int level, int name, \
d220 1
a220 1
106	STD	RUMP	{ int sys_listen(int s, int backlog); }
d222 1
a222 1
108	COMPAT_43 MODULAR { int sys_sigvec(int signum, struct sigvec *nsv, \
d224 4
a227 4
109	COMPAT_43 MODULAR { int sys_sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR { int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR { int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR { int sys_sigstack(struct sigstack *nss, \
d229 1
a229 1
113	COMPAT_43 MODULAR { int sys_recvmsg(int s, struct omsghdr *msg, \
d231 1
a231 1
114	COMPAT_43 MODULAR { int sys_sendmsg(int s, void *msg, int flags); } \
d234 1
a234 1
116	COMPAT_50 MODULAR { int sys_gettimeofday(struct timeval50 *tp, \
d236 2
a237 2
117	COMPAT_50 MODULAR { int sys_getrusage(int who, struct rusage50 *rusage); }
118	STD	RUMP	{ int sys_getsockopt(int s, int level, int name, \
d240 1
a240 1
120	STD 		{ ssize_t sys_readv(int fd, \
d242 1
a242 1
121	STD 		{ ssize_t sys_writev(int fd, \
d244 1
a244 1
122	COMPAT_50 MODULAR { int sys_settimeofday(const struct timeval50 *tv, \
d246 3
a248 3
123	STD 		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD 		{ int sys_fchmod(int fd, mode_t mode); }
125	COMPAT_43 MODULAR { int sys_recvfrom(int s, void *buf, size_t len, \
d251 4
a254 4
126	STD 		{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 MODULAR { int sys_truncate(const char *path, long length); } \
d256 4
a259 4
130	COMPAT_43 MODULAR { int sys_ftruncate(int fd, long length); } oftruncate
131	STD 		{ int sys_flock(int fd, int how); }
132	STD 	 RUMP	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
d262 2
a263 2
134	STD		{ int sys_shutdown(int s, int how); }
135	STD		{ int sys_socketpair(int domain, int type, \
d265 3
a267 3
136	STD 	 RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int sys_rmdir(const char *path); }
138	COMPAT_50 MODULAR { int sys_utimes(const char *path, \
d270 1
a270 1
140	COMPAT_50 MODULAR { int sys_adjtime(const struct timeval50 *delta, \
d272 1
a272 1
141	COMPAT_43 MODULAR { int sys_getpeername(int fdes, void *asa, \
d274 3
a276 3
142	COMPAT_43 MODULAR { int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MODULAR { int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR { int sys_getrlimit(int which, \
d278 1
a278 1
145	COMPAT_43 MODULAR { int sys_setrlimit(int which, \
d280 3
a282 3
146	COMPAT_43 MODULAR { int sys_killpg(int pgid, int signum); } okillpg
147	STD 	 	{ int sys_setsid(void); }
148	STD 		{ int sys_quotactl(const char *path, int cmd, \
d284 2
a285 2
149	COMPAT_43 MODULAR { int sys_quota(void); } oquota
150	COMPAT_43 MODULAR { int sys_getsockname(int fdec, void *asa, \
d296 2
a297 2
155	STD MODULAR RUMP  { int sys_nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR { int sys_getdirentries(int fd, char *buf, \
d299 1
a299 1
157	COMPAT_20 MODULAR { int sys_statfs(const char *path, \
d301 1
a301 1
158	COMPAT_20 MODULAR { int sys_fstatfs(int fd, struct statfs12 *buf); }
d304 1
a304 1
161	COMPAT_30 MODULAR { int sys_getfh(const char *fname, \
d306 1
a306 1
162	COMPAT_09 MODULAR { int sys_getdomainname(char *domainname, int len); } \
d308 1
a308 1
163	COMPAT_09 MODULAR { int sys_setdomainname(char *domainname, int len); } \
d310 2
a311 2
164	COMPAT_09 MODULAR { int sys_uname(struct outsname *name); } ouname
165	STD 		{ int sys_sysarch(int op, void *parms); }
d317 1
a317 1
169	COMPAT_10 MODULAR { int sys_semsys(int which, int a2, int a3, int a4, \
d324 1
a324 1
170	COMPAT_10 MODULAR { int sys_msgsys(int which, int a2, int a3, int a4, \
d331 1
a331 1
171	COMPAT_10 MODULAR { int sys_shmsys(int which, int a2, int a3, int a4); } \
d337 1
a337 1
173	STD 	 RUMP	{ ssize_t sys_pread(int fd, void *buf, \
d339 1
a339 1
174	STD 	 RUMP	{ ssize_t sys_pwrite(int fd, const void *buf, \
d342 1
a342 1
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d344 1
a344 1
176	STD 		{ int sys_ntp_adjtime(struct timex *tp); }
d354 3
a356 3
181	STD 		{ int sys_setgid(gid_t gid); }
182	STD 		{ int sys_setegid(gid_t egid); }
183	STD 		{ int sys_seteuid(uid_t euid); }
d358 1
a358 1
184	STD 		{ int sys_lfs_bmapv(fsid_t *fsidp, \
d360 1
a360 1
185	STD 		{ int sys_lfs_markv(fsid_t *fsidp, \
d362 2
a363 2
186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	COMPAT_50 MODULAR { int sys_lfs_segwait(fsid_t *fsidp, \
d371 1
a371 1
188	COMPAT_12 MODULAR { int sys_stat(const char *path, struct stat12 *ub); } \
d373 2
a374 2
189	COMPAT_12 MODULAR { int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR { int sys_lstat(const char *path, \
d376 2
a377 2
191	STD 		{ long sys_pathconf(const char *path, int name); }
192	STD 		{ long sys_fpathconf(int fd, int name); }
d379 1
a379 1
194	STD 		{ int sys_getrlimit(int which, \
d381 1
a381 1
195	STD 		{ int sys_setrlimit(int which, \
d383 1
a383 1
196	COMPAT_12 MODULAR { int sys_getdirentries(int fd, char *buf, \
d385 1
a385 1
197	STD 		{ void *sys_mmap(void *addr, size_t len, int prot, \
d387 1
a387 1
198	INDIR		{ quad_t sys___syscall(quad_t code, \
d389 1
a389 1
199	STD 		{ off_t sys_lseek(int fd, int pad, off_t offset, \
d391 1
a391 1
200	STD 	 RUMP	{ int sys_truncate(const char *path, int pad, \
d393 2
a394 2
201	STD 		{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD	 RUMP 	{ int sys___sysctl(const int *name, u_int namelen, \
d397 4
a400 4
203	STD 		{ int sys_mlock(const void *addr, size_t len); }
204	STD 		{ int sys_munlock(const void *addr, size_t len); }
205	STD 		{ int sys_undelete(const char *path); }
206	COMPAT_50 MODULAR { int sys_futimes(int fd, \
d402 3
a404 3
207	STD 		{ pid_t sys_getpgid(pid_t pid); }
208	STD		{ int sys_reboot(int opt, char *bootstr); }
209	STD 		{ int sys_poll(struct pollfd *fds, u_int nfds, \
d421 1
a421 1
220	COMPAT_14 MODULAR { int sys___semctl(int semid, int semnum, int cmd, \
d423 2
a424 2
221	STD 		{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD 		{ int sys_semop(int semid, struct sembuf *sops, \
d426 1
a426 1
223	STD 		{ int sys_semconfig(int flag); }
d434 1
a434 1
224	COMPAT_14 MODULAR { int sys_msgctl(int msqid, int cmd, \
d436 2
a437 2
225	STD 		{ int sys_msgget(key_t key, int msgflg); }
226	STD 		{ int sys_msgsnd(int msqid, const void *msgp, \
d439 1
a439 1
227	STD 		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d448 1
a448 1
228	STD 		{ void *sys_shmat(int shmid, const void *shmaddr, \
d450 1
a450 1
229	COMPAT_14 MODULAR { int sys_shmctl(int shmid, int cmd, \
d452 2
a453 2
230	STD 		{ int sys_shmdt(const void *shmaddr); }
231	STD 		{ int sys_shmget(key_t key, size_t size, int shmflg); }
d460 1
a460 1
232	COMPAT_50 MODULAR { int sys_clock_gettime(clockid_t clock_id, \
d462 1
a462 1
233	COMPAT_50 MODULAR { int sys_clock_settime(clockid_t clock_id, \
d464 1
a464 1
234	COMPAT_50 MODULAR { int sys_clock_getres(clockid_t clock_id, \
d466 1
a466 1
235	STD		{ int sys_timer_create(clockid_t clock_id, \
d468 2
a469 2
236	STD		{ int sys_timer_delete(timer_t timerid); }
237	COMPAT_50 MODULAR { int sys_timer_settime(timer_t timerid, int flags, \
d472 1
a472 1
238	COMPAT_50 MODULAR { int sys_timer_gettime(timer_t timerid, struct \
d474 1
a474 1
239	STD		{ int sys_timer_getoverrun(timer_t timerid); }
d478 1
a478 1
240	COMPAT_50 MODULAR { int sys_nanosleep(const struct timespec50 *rqtp, \
d480 4
a483 4
241	STD 		{ int sys_fdatasync(int fd); }
242	STD 		{ int sys_mlockall(int flags); }
243	STD 		{ int sys_munlockall(void); }
244	COMPAT_50 MODULAR { int sys___sigtimedwait(const sigset_t *set, \
d487 3
a489 3
246	STD 	 	{ int sys_modctl(int cmd, void *arg); }
247	STD MODULAR 	{ int sys__ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR 	{ int sys__ksem_open(const char *name, int oflag, \
d491 6
a496 6
249	STD MODULAR 	{ int sys__ksem_unlink(const char *name); }
250	STD MODULAR 	{ int sys__ksem_close(intptr_t id); }
251	STD MODULAR 	{ int sys__ksem_post(intptr_t id); }
252	STD MODULAR 	{ int sys__ksem_wait(intptr_t id); }
253	STD MODULAR 	{ int sys__ksem_trywait(intptr_t id); }
254	STD MODULAR 	{ int sys__ksem_getvalue(intptr_t id, \
d498 1
a498 1
255	STD MODULAR 	{ int sys__ksem_destroy(intptr_t id); }
d500 1
a500 1
257	STD 		{ mqd_t sys_mq_open(const char * name, int oflag, \
d502 3
a504 3
258	STD 		{ int sys_mq_close(mqd_t mqdes); }
259	STD 		{ int sys_mq_unlink(const char *name); }
260	STD 		{ int sys_mq_getattr(mqd_t mqdes, \
d506 1
a506 1
261	STD 		{ int sys_mq_setattr(mqd_t mqdes, \
d509 1
a509 1
262	STD 		{ int sys_mq_notify(mqd_t mqdes, \
d511 1
a511 1
263	STD 		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d513 1
a513 1
264	STD 		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d515 1
a515 1
265	COMPAT_50 MODULAR { int sys_mq_timedsend(mqd_t mqdes, \
d519 1
a519 1
266	COMPAT_50 MODULAR { ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d525 1
a525 1
270	STD 		{ int sys___posix_rename(const char *from, \
d527 3
a529 3
271	STD 		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MODULAR { int sys_getdents(int fd, char *buf, size_t count); }
273	STD 		{ int sys_minherit(void *addr, size_t len, \
d531 2
a532 2
274	STD 	 RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d534 1
a534 1
276	COMPAT_50 MODULAR { int sys_lutimes(const char *path, \
d536 5
a540 5
277	STD 		{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 MODULAR { int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR { int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR { int sys___lstat13(const char *path, struct stat13 *ub); }
281	STD 		{ int sys___sigaltstack14( \
d543 2
a544 2
282	STD 		{ int sys___vfork14(void); }
283	STD 		{ int sys___posix_chown(const char *path, uid_t uid, \
d546 1
a546 1
284	STD 		{ int sys___posix_fchown(int fd, uid_t uid, \
d548 1
a548 1
285	STD 		{ int sys___posix_lchown(const char *path, uid_t uid, \
d550 3
a552 3
286	STD 		{ pid_t sys_getsid(pid_t pid); }
287	STD 		{ pid_t sys___clone(int flags, void *stack); }
288	STD 		{ int sys_fktrace(int fd, int ops, \
d554 1
a554 1
289	STD 		{ ssize_t sys_preadv(int fd, \
d557 1
a557 1
290	STD 		{ ssize_t sys_pwritev(int fd, \
d560 1
a560 1
291	COMPAT_16 MODULAR { int sys___sigaction14(int signum, \
d563 2
a564 2
292	STD 		{ int sys___sigpending14(sigset_t *set); }
293	STD 		{ int sys___sigprocmask14(int how, \
d567 6
a572 6
294	STD 		{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 MODULAR { int sys___sigreturn14(struct sigcontext *sigcntxp); }
296	STD 		{ int sys___getcwd(char *bufp, size_t length); }
297	STD 		{ int sys_fchroot(int fd); }
298	COMPAT_30 MODULAR { int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR { int sys_fhstat(const struct compat_30_fhandle *fhp, \
d574 1
a574 1
300	COMPAT_20 MODULAR { int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d577 1
a577 1
301	COMPAT_50 MODULAR { int sys_____semctl13(int semid, int semnum, int cmd, \
d583 1
a583 1
302	COMPAT_50 MODULAR { int sys___msgctl13(int msqid, int cmd, \
d589 1
a589 1
303	COMPAT_50 MODULAR { int sys___shmctl13(int shmid, int cmd, \
d594 3
a596 3
304	STD 	 RUMP	{ int sys_lchflags(const char *path, u_long flags); }
305	STD 		{ int sys_issetugid(void); }
306	STD 		{ int sys_utrace(const char *label, void *addr, \
d598 3
a600 3
307	STD 		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD 		{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD 		{ int sys__lwp_create(const struct __ucontext *ucp, \
d602 3
a604 3
310	STD 		{ int sys__lwp_exit(void); }
311	STD 		{ lwpid_t sys__lwp_self(void); }
312	STD 		{ int sys__lwp_wait(lwpid_t wait_for, \
d606 8
a613 8
313	STD 		{ int sys__lwp_suspend(lwpid_t target); }
314	STD 		{ int sys__lwp_continue(lwpid_t target); }
315	STD 		{ int sys__lwp_wakeup(lwpid_t target); }
316	STD 		{ void *sys__lwp_getprivate(void); }
317	STD 		{ void sys__lwp_setprivate(void *ptr); }
318	STD 		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int sys__lwp_detach(lwpid_t target); }
320	COMPAT_50 MODULAR { int sys__lwp_park(const struct timespec50 *ts, \
d616 2
a617 2
321	STD 		{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
d619 1
a619 1
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
d621 1
a621 1
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
d623 1
a623 1
325	STD 		{ int sys__lwp_ctl(int features, \
d631 1
a631 1
330	STD 		{ int sys_sa_register(sa_upcall_t new, \
d634 5
a638 5
331	STD 		{ int sys_sa_stacks(int num, stack_t *stacks); }
332	STD 		{ int sys_sa_enable(void); }
333	STD 		{ int sys_sa_setconcurrency(int concurrency); }
334	STD 		{ int sys_sa_yield(void); }
335	STD 		{ int sys_sa_preempt(int sa_id); }
d646 1
a646 1
340	STD 		{ int sys___sigaction_sigtramp(int signum, \
d650 5
a654 5
341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD 		{ int sys_rasctl(void *addr, size_t len, int op); }
344	STD 		{ int sys_kqueue(void); }
345	COMPAT_50 MODULAR { int sys_kevent(int fd, \
d660 1
a660 1
346	STD 		{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
d662 1
a662 1
347	STD 		{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
d664 1
a664 1
348	STD 		{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
d666 1
a666 1
349	STD 		{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
d668 1
a668 1
350	STD 		{ int sys_sched_yield(void); }
d673 1
a673 1
354	STD 		{ int sys_fsync_range(int fd, int flags, off_t start, \
d675 2
a676 2
355	STD 		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD 		{ int sys_getvfsstat(struct statvfs *buf, \
d678 1
a678 1
357	STD 	RUMP	{ int sys_statvfs1(const char *path, \
d680 1
a680 1
358	STD 		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d682 1
a682 1
359	COMPAT_30 MODULAR { int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d684 1
a684 1
360	STD 		{ int sys_extattrctl(const char *path, int cmd, \
d687 1
a687 1
361	STD 		{ int sys_extattr_set_file(const char *path, \
d690 1
a690 1
362	STD 		{ ssize_t sys_extattr_get_file(const char *path, \
d693 1
a693 1
363	STD 		{ int sys_extattr_delete_file(const char *path, \
d695 1
a695 1
364	STD 		{ int sys_extattr_set_fd(int fd, \
d698 1
a698 1
365	STD 		{ ssize_t sys_extattr_get_fd(int fd, \
d701 1
a701 1
366	STD 		{ int sys_extattr_delete_fd(int fd, \
d703 1
a703 1
367	STD 		{ int sys_extattr_set_link(const char *path, \
d706 1
a706 1
368	STD 		{ ssize_t sys_extattr_get_link(const char *path, \
d709 1
a709 1
369	STD 		{ int sys_extattr_delete_link(const char *path, \
d711 1
a711 1
370	STD 		{ ssize_t sys_extattr_list_fd(int fd, \
d713 1
a713 1
371	STD 		{ ssize_t sys_extattr_list_file(const char *path, \
d715 1
a715 1
372	STD 		{ ssize_t sys_extattr_list_link(const char *path, \
d717 1
a717 1
373	COMPAT_50 MODULAR { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d720 1
a720 1
374	COMPAT_50 MODULAR { int sys_pollts(struct pollfd *fds, u_int nfds, \
d722 1
a722 1
375	STD 		{ int sys_setxattr(const char *path, \
d725 1
a725 1
376	STD 		{ int sys_lsetxattr(const char *path, \
d728 1
a728 1
377	STD 		{ int sys_fsetxattr(int fd, \
d731 1
a731 1
378	STD 		{ int sys_getxattr(const char *path, \
d733 1
a733 1
379	STD 		{ int sys_lgetxattr(const char *path, \
d735 1
a735 1
380	STD 		{ int sys_fgetxattr(int fd, \
d737 1
a737 1
381	STD 		{ int sys_listxattr(const char *path, \
d739 1
a739 1
382	STD 		{ int sys_llistxattr(const char *path, \
d741 1
a741 1
383	STD 		{ int sys_flistxattr(int fd, \
d743 1
a743 1
384	STD 		{ int sys_removexattr(const char *path, \
d745 1
a745 1
385	STD 		{ int sys_lremovexattr(const char *path, \
d747 1
a747 1
386	STD 		{ int sys_fremovexattr(int fd, \
d749 4
a752 4
387	COMPAT_50 MODULAR { int sys___stat30(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR { int sys___fstat30(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR { int sys___lstat30(const char *path, struct stat30 *ub); }
390	STD 		{ int sys___getdents30(int fd, char *buf, size_t count); }
d754 1
a754 1
392	COMPAT_30 MODULAR { int sys___fhstat30(const struct compat_30_fhandle \
d756 3
a758 3
393	COMPAT_50 MODULAR { int sys___ntp_gettime30(struct ntptimeval50 *ntvp); }
394	STD	 RUMP	{ int sys___socket30(int domain, int type, int protocol); }
395	STD 	 RUMP	{ int sys___getfh30(const char *fname, void *fhp, \
d760 1
a760 1
396	STD 		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d762 1
a762 1
397	STD 		{ int sys___fhstatvfs140(const void *fhp, \
d764 1
a764 1
398	COMPAT_50 MODULAR { int sys___fhstat40(const void *fhp, \
d768 6
a773 6
399	STD MODULAR 	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR 	{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR 	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR 	{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD MODULAR 	{ int sys_aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR { int sys_aio_suspend(const struct aiocb *const *list, \
d775 2
a776 2
405	STD MODULAR 	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MODULAR 	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d783 1
a783 1
410	STD 		{ int sys___mount50(const char *type, \
d786 1
a786 1
411	STD 		{ void *sys_mremap(void *old_address, size_t old_size, \
d790 3
a792 3
412	STD 		{ int sys_pset_create(psetid_t *psid); }
413	STD 		{ int sys_pset_destroy(psetid_t psid); }
414	STD 		{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
d794 1
a794 1
415	STD 		{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
d796 1
a796 1
416	STD 		{ int sys___posix_fadvise50(int fd, int pad, \
d798 1
a798 1
417	STD 		{ int sys___select50(int nd, fd_set *in, fd_set *ou, \
d800 1
a800 1
418	STD 		{ int sys___gettimeofday50(struct timeval *tp, \
d802 1
a802 1
419	STD 		{ int sys___settimeofday50(const struct timeval *tv, \
d804 1
a804 1
420	STD  RUMP	{ int sys___utimes50(const char *path, \
d806 1
a806 1
421	STD		{ int sys___adjtime50(const struct timeval *delta, \
d809 1
a809 1
422	STD		{ int sys___lfs_segwait50(fsid_t *fsidp, \
d814 1
a814 1
423	STD 		{ int sys___futimes50(int fd, \
d816 1
a816 1
424	STD  RUMP 	{ int sys___lutimes50(const char *path, \
d818 1
a818 1
425	STD		{ int sys___setitimer50(int which, \
d821 1
a821 1
426	STD		{ int sys___getitimer50(int which, \
d823 1
a823 1
427	STD 		{ int sys___clock_gettime50(clockid_t clock_id, \
d825 1
a825 1
428	STD 		{ int sys___clock_settime50(clockid_t clock_id, \
d827 1
a827 1
429	STD 		{ int sys___clock_getres50(clockid_t clock_id, \
d829 1
a829 1
430	STD 		{ int sys___nanosleep50(const struct timespec *rqtp, \
d831 1
a831 1
431	STD 		{ int sys_____sigtimedwait50(const sigset_t *set, \
d834 1
a834 1
432	STD 		{ int sys___mq_timedsend50(mqd_t mqdes, \
d838 1
a838 1
433	STD 		{ ssize_t sys___mq_timedreceive50(mqd_t mqdes, \
d841 1
a841 1
434	STD 		{ int sys____lwp_park50(const struct timespec *ts, \
d844 1
a844 1
435	STD 		{ int sys___kevent50(int fd, \
d848 1
a848 1
436	STD 		{ int sys___pselect50(int nd, fd_set *in, fd_set *ou, \
d851 1
a851 1
437	STD 		{ int sys___pollts50(struct pollfd *fds, u_int nfds, \
d853 1
a853 1
438	STD MODULAR	{ int sys___aio_suspend50( \
d856 3
a858 3
439	STD  RUMP	{ int sys___stat50(const char *path, struct stat *ub); }
440	STD 		{ int sys___fstat50(int fd, struct stat *sb); }
441	STD  RUMP	{ int sys___lstat50(const char *path, struct stat *ub); }
d860 1
a860 1
442	STD 		{ int sys_____semctl50(int semid, int semnum, int cmd, \
d866 1
a866 1
443	STD 		{ int sys___shmctl50(int shmid, int cmd, \
d872 1
a872 1
444	STD 		{ int sys___msgctl50(int msqid, int cmd, \
d877 2
a878 2
445	STD 		{ int sys___getrusage50(int who, struct rusage *rusage); }
446	STD		{ int sys___timer_settime50(timer_t timerid, \
d881 1
a881 1
447	STD		{ int sys___timer_gettime50(timer_t timerid, struct \
d884 1
a884 1
448	STD		{ int sys___ntp_gettime50(struct ntptimeval *ntvp); }
d888 1
a888 1
449	STD 		{ int sys___wait450(int pid, int *status, \
d890 1
a890 1
450	STD  RUMP	{ int sys___mknod50(const char *path, mode_t mode, \
d892 1
a892 1
451	STD	 	{ int sys___fhstat50(const void *fhp, \
@


1.219
log
@merge christos-time_t
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196.2.9 2008/12/29 00:03:54 christos Exp $
d534 1
a534 1
276	COMPAT_50  	{ int sys_lutimes(const char *path, \
@


1.218
log
@RUMP some syscalls required by nfsd.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.217 2008/11/21 07:34:46 pooka Exp $
d72 3
a74 3
6	STD 	 RUMP	{ int sys_close(int fd); }
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
			    struct rusage *rusage); }
d81 2
a82 2
14	STD 	 RUMP	{ int sys_mknod(const char *path, mode_t mode, \
			    dev_t dev); }
d182 1
a182 1
81	STD 	 	{ int sys_getpgrp(void); }
d184 3
a186 3
83	STD 		{ int sys_setitimer(int which, \
			    const struct itimerval *itv, \
			    struct itimerval *oitv); }
d189 2
a190 2
86	STD 		{ int sys_getitimer(int which, \
			    struct itimerval *itv); }
d199 2
a200 2
93	STD 		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
d234 1
a234 1
116	STD 		{ int sys_gettimeofday(struct timeval *tp, \
d236 1
a236 1
117	STD 		{ int sys_getrusage(int who, struct rusage *rusage); }
d244 1
a244 1
122	STD 		{ int sys_settimeofday(const struct timeval *tv, \
d267 2
a268 2
138	STD 	 RUMP	{ int sys_utimes(const char *path, \
			    const struct timeval *tptr); }
d270 2
a271 2
140	STD 		{ int sys_adjtime(const struct timeval *delta, \
			    struct timeval *olddelta); }
d342 1
a342 1
175	STD		{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d362 3
a364 3
186	STD 		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD 		{ int sys_lfs_segwait(fsid_t *fsidp, \
			    struct timeval *tv); }
d400 2
a401 2
206	STD 		{ int sys_futimes(int fd, \
			    const struct timeval *tptr); }
d403 1
a403 1
208	STD 		{ int sys_reboot(int opt, char *bootstr); }
d460 7
a466 7
232	STD 		{ int sys_clock_gettime(clockid_t clock_id, \
			    struct timespec *tp); }
233	STD 		{ int sys_clock_settime(clockid_t clock_id, \
			    const struct timespec *tp); }
234	STD 		{ int sys_clock_getres(clockid_t clock_id, \
			    struct timespec *tp); }
235	STD 		{ int sys_timer_create(clockid_t clock_id, \
d468 7
a474 7
236	STD 		{ int sys_timer_delete(timer_t timerid); }
237	STD 		{ int sys_timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
238	STD 		{ int sys_timer_gettime(timer_t timerid, struct \
			    itimerspec *value); }
239	STD 		{ int sys_timer_getoverrun(timer_t timerid); }
d478 2
a479 2
240	STD 		{ int sys_nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
d483 1
a483 1
244	STD 		{ int sys___sigtimedwait(const sigset_t *set, \
d485 1
a485 1
			    struct timespec *timeout); }
d515 1
a515 1
265	STD 		{ int sys_mq_timedsend(mqd_t mqdes, \
d518 2
a519 2
			    const struct timespec *abs_timeout); }
266	STD 		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d521 1
a521 1
			    const struct timespec *abs_timeout); }
d534 2
a535 2
276	STD 	 RUMP	{ int sys_lutimes(const char *path, \
			    const struct timeval *tptr); }
d577 1
a577 1
301	STD 		{ int sys_____semctl13(int semid, int semnum, int cmd, \
d583 1
a583 1
302	STD 		{ int sys___msgctl13(int msqid, int cmd, \
d589 2
a590 2
303	STD 		{ int sys___shmctl13(int shmid, int cmd, \
			    struct shmid_ds *buf); }
d613 1
a613 1
320	STD 		{ int sys__lwp_park(const struct timespec *ts, \
d650 2
a651 2
341	STD 		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD 		{ int sys_pmc_control(int ctr, int op, void *args); }
d654 1
a654 1
345	STD 		{ int sys_kevent(int fd, \
d657 1
a657 1
			    const struct timespec *timeout); }
d717 2
a718 2
373	STD 		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
d720 2
a721 2
374	STD 		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
d749 3
a751 3
387	STD 	 RUMP	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD 		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD 	 RUMP	{ int sys___lstat30(const char *path, struct stat *ub); }
d755 2
a756 2
			    *fhp, struct stat *sb); }
393	STD 		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
d764 2
a765 2
398	STD 		{ int sys___fhstat40(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
d768 9
a776 9
399	STD MODULAR	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR	{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR	{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD MODULAR	{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD MODULAR	{ int sys_aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
405	STD MODULAR	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MODULAR	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d798 96
@


1.217
log
@document modular.  no functional change.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.216 2008/11/19 18:36:07 ad Exp $
d107 1
a107 1
30	STD		{ int sys_accept(int s, struct sockaddr *name, \
d216 1
a216 1
104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
d220 1
a220 1
106	STD		{ int sys_listen(int s, int backlog); }
d296 1
a296 1
155	STD MODULAR	{ int sys_nfssvc(int flag, void *argp); }
d678 1
a678 1
357	STD 		{ int sys_statvfs1(const char *path, \
d758 1
a758 1
395	STD 		{ int sys___getfh30(const char *fname, void *fhp, \
@


1.216
log
@Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.215 2008/11/14 23:33:45 ad Exp $
d14 3
a16 2
; (NOTE! they must be specified in this order):
;     RUMP:	the system call can be called directly from rumps
@


1.215
log
@Make POSIX AIO loadable as a module.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.214 2008/11/14 15:49:21 ad Exp $
a41 1
#include "opt_nfsserver.h"
a42 1
#include "opt_compat_netbsd.h"
a43 1
#include "opt_compat_43.h"
a45 1
#include "fs_nfs.h"
d74 1
a74 1
8	COMPAT_43 	{ int sys_creat(const char *path, mode_t mode); } ocreat
d86 1
a86 1
18	COMPAT_20 	{ int sys_getfsstat(struct statfs12 *buf, \
d88 1
a88 1
19	COMPAT_43 	{ long sys_lseek(int fd, long offset, int whence); } \
a89 1
#ifdef COMPAT_43
d91 1
a91 4
#else
20	STD 		{ pid_t sys_getpid(void); }
#endif
21	COMPAT_40 	{ int sys_mount(const char *type, const char *path, \
a94 1
#ifdef COMPAT_43
a95 3
#else
24	STD 		{ uid_t sys_getuid(void); }
#endif
d117 1
a117 1
38	COMPAT_43 	{ int sys_stat(const char *path, struct stat43 *ub); } \
d120 1
a120 1
40	COMPAT_43 	{ int sys_lstat(const char *path, \
d129 1
a129 1
46	COMPAT_13 	{ int sys_sigaction(int signum, \
a131 1
#ifdef COMPAT_43
d133 1
a133 4
#else
47	STD 		{ gid_t sys_getgid(void); }
#endif
48	COMPAT_13 	{ int sys_sigprocmask(int how, \
d138 2
a139 2
52	COMPAT_13 	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 	{ int sys_sigaltstack( \
d144 1
a144 1
55	COMPAT_12 	{ int sys_reboot(int opt); } oreboot
d154 2
a155 2
62	COMPAT_43 	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 	{ int sys_getkerninfo(int op, char *where, int *size, \
d157 2
a158 2
64	COMPAT_43 	 { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 	 { int sys_msync(void *addr, size_t len); }
d165 1
a165 1
71	COMPAT_43 	{ int sys_mmap(void *addr, size_t len, int prot, \
d186 2
a187 2
84	COMPAT_43 	{ int sys_wait(void); } owait
85	COMPAT_12 	{ int sys_swapon(const char *name); } oswapon
d190 1
a190 1
87	COMPAT_43 	{ int sys_gethostname(char *hostname, u_int len); } \
d192 1
a192 1
88	COMPAT_43 	{ int sys_sethostname(char *hostname, u_int len); } \
d194 1
a194 1
89	COMPAT_43 	{ int sys_getdtablesize(void); } ogetdtablesize
d203 1
a203 1
97	COMPAT_30	{ int sys_socket(int domain, int type, int protocol); }
d206 1
a206 1
99	COMPAT_43	{ int sys_accept(int s, void *name, \
d209 1
a209 1
101	COMPAT_43 	{ int sys_send(int s, void *buf, int len, \
d211 1
a211 1
102	COMPAT_43 	{ int sys_recv(int s, void *buf, int len, \
d213 1
a213 1
103	COMPAT_13 	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d221 1
a221 1
108	COMPAT_43 	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d223 4
a226 4
109	COMPAT_43 	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 	{ int sys_sigstack(struct sigstack *nss, \
d228 1
a228 1
113	COMPAT_43 	{ int sys_recvmsg(int s, struct omsghdr *msg, \
d230 1
a230 1
114	COMPAT_43 	{ int sys_sendmsg(int s, void *msg, int flags); } \
d247 1
a247 1
125	COMPAT_43 	{ int sys_recvfrom(int s, void *buf, size_t len, \
d253 1
a253 1
129	COMPAT_43 	{ int sys_truncate(const char *path, long length); } \
d255 1
a255 1
130	COMPAT_43 	{ int sys_ftruncate(int fd, long length); } oftruncate
d271 1
a271 1
141	COMPAT_43	{ int sys_getpeername(int fdes, void *asa, \
d273 3
a275 3
142	COMPAT_43 	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 	{ int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 	{ int sys_getrlimit(int which, \
d277 1
a277 1
145	COMPAT_43 	{ int sys_setrlimit(int which, \
d279 1
a279 1
146	COMPAT_43 	{ int sys_killpg(int pgid, int signum); } okillpg
d283 2
a284 2
149	COMPAT_43 	{ int sys_quota(void); } oquota
150	COMPAT_43	{ int sys_getsockname(int fdec, void *asa, \
d295 2
a296 6
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
155	STD 		{ int sys_nfssvc(int flag, void *argp); }
#else
155	EXCL		nfssvc
#endif
156	COMPAT_43 	 { int sys_getdirentries(int fd, char *buf, \
d298 1
a298 1
157	COMPAT_20 	{ int sys_statfs(const char *path, \
d300 1
a300 1
158	COMPAT_20 	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d303 1
a303 1
161	COMPAT_30 	 { int sys_getfh(const char *fname, \
d305 1
a305 1
162	COMPAT_09 	 { int sys_getdomainname(char *domainname, int len); } \
d307 1
a307 1
163	COMPAT_09 	 { int sys_setdomainname(char *domainname, int len); } \
d309 1
a309 1
164	COMPAT_09 		{ int sys_uname(struct outsname *name); } ouname
d315 2
a316 2
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
169	COMPAT_10 	{ int sys_semsys(int which, int a2, int a3, int a4, \
d322 2
a323 2
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
170	COMPAT_10 	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d329 2
a330 2
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
171	COMPAT_10 		{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d341 2
a342 2
175	COMPAT_30 	 { int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL)
d370 1
a370 1
188	COMPAT_12 	{ int sys_stat(const char *path, struct stat12 *ub); } \
d372 2
a373 2
189	COMPAT_12 	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 	{ int sys_lstat(const char *path, \
d382 1
a382 1
196	COMPAT_12 	{ int sys_getdirentries(int fd, char *buf, \
d419 2
a420 2
#if defined(SYSVSEM) || !defined(_KERNEL)
220	COMPAT_14 	{ int sys___semctl(int semid, int semnum, int cmd, \
d432 2
a433 2
#if defined(SYSVMSG) || !defined(_KERNEL)
224	COMPAT_14 	{ int sys_msgctl(int msqid, int cmd, \
d446 1
a446 1
#if defined(SYSVSHM) || !defined(_KERNEL)
d449 1
a449 1
229	COMPAT_14 	{ int sys_shmctl(int shmid, int cmd, \
d527 1
a527 1
272	COMPAT_30 		{ int sys_getdents(int fd, char *buf, size_t count); }
d536 3
a538 3
278	COMPAT_30 	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d559 1
a559 1
291	COMPAT_16 	{ int sys___sigaction14(int signum, \
d567 1
a567 1
295	COMPAT_16 	{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
d570 2
a571 2
298	COMPAT_30 	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d573 1
a573 1
300	COMPAT_20 	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d575 1
a575 1
#if defined(SYSVSEM) || !defined(_KERNEL)
d581 1
a581 1
#if defined(SYSVMSG) || !defined(_KERNEL)
d587 1
a587 1
#if defined(SYSVSHM) || !defined(_KERNEL)
d681 1
a681 1
359	COMPAT_30 		{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d753 1
a753 1
392	COMPAT_30 	{ int sys___fhstat30(const struct compat_30_fhandle \
@


1.214
log
@Replace semid_t with intptr_t. No function change. This is a libc/kernel
private interface and so the name change should not affect any third
party code.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.213 2008/11/12 14:32:34 ad Exp $
d787 6
a792 6
399	STD 		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD 		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD 		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD 		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD 		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD 		{ int sys_aio_suspend(const struct aiocb *const *list, \
d794 2
a795 2
405	STD 		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD 		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
@


1.213
log
@Allow the POSIX semaphore code to be loaded as a module.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.212 2008/11/12 12:36:16 ad Exp $
d507 1
a507 1
247	STD MODULAR 	{ int sys__ksem_init(unsigned int value, semid_t *idp); }
d509 1
a509 1
			    mode_t mode, unsigned int value, semid_t *idp); }
d511 5
a515 5
250	STD MODULAR 	{ int sys__ksem_close(semid_t id); }
251	STD MODULAR 	{ int sys__ksem_post(semid_t id); }
252	STD MODULAR 	{ int sys__ksem_wait(semid_t id); }
253	STD MODULAR 	{ int sys__ksem_trywait(semid_t id); }
254	STD MODULAR 	{ int sys__ksem_getvalue(semid_t id, \
d517 1
a517 1
255	STD MODULAR 	{ int sys__ksem_destroy(semid_t id); }
@


1.212
log
@Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@@.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.211 2008/10/16 19:30:49 pooka Exp $
a46 1
#include "opt_posix.h"
d506 3
a508 4
246	STD 		{ int sys_modctl(int cmd, void *arg); }
#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
247	STD 		{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD 		{ int sys__ksem_open(const char *name, int oflag, \
d510 6
a515 6
249	STD 		{ int sys__ksem_unlink(const char *name); }
250	STD 		{ int sys__ksem_close(semid_t id); }
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
d517 1
a517 1
255	STD 		{ int sys__ksem_destroy(semid_t id); }
a518 12
#else
247	EXCL		sys__ksem_init
248	EXCL		sys__ksem_open
249	EXCL 		sys__ksem_unlink
250	EXCL		sys__ksem_close
251	EXCL		sys__ksem_post
252	EXCL		sys__ksem_wait
253	EXCL		sys__ksem_trywait
254	EXCL		sys__ksem_getvalue
255	EXCL		sys__ksem_destroy
256	UNIMPL		sys__ksem_timedwait
#endif
@


1.211
log
@One more rump syscall: ioctl (required for interface configuration)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.210 2008/10/15 13:01:15 pooka Exp $
d429 10
a438 23
#if defined(LKM) || !defined(_KERNEL)
210	NODEF		{ int sys_lkmnosys(void); }
211	NODEF		{ int sys_lkmnosys(void); }
212	NODEF		{ int sys_lkmnosys(void); }
213	NODEF		{ int sys_lkmnosys(void); }
214	NODEF		{ int sys_lkmnosys(void); }
215	NODEF		{ int sys_lkmnosys(void); }
216	NODEF		{ int sys_lkmnosys(void); }
217	NODEF		{ int sys_lkmnosys(void); }
218	NODEF		{ int sys_lkmnosys(void); }
219	NODEF		{ int sys_lkmnosys(void); }
#else	/* !LKM */
210	EXCL		lkmnosys
211	EXCL		lkmnosys
212	EXCL		lkmnosys
213	EXCL		lkmnosys
214	EXCL		lkmnosys
215	EXCL		lkmnosys
216	EXCL		lkmnosys
217	EXCL		lkmnosys
218	EXCL		lkmnosys
219	EXCL		lkmnosys
#endif	/* !LKM */
@


1.211.4.1
log
@Pull up following revision(s) (requested by manu in ticket #1658):
	sys/rump/include/rump/rump_syscalls.h: revision 1.52 via patch
	sys/kern/init_sysent.c: revision 1.257 via patch
	sys/rump/include/rump/rumpvnode_if.h: revision 1.12 via patch
	lib/libc/sys/Makefile.inc: revision 1.208 via patch
	sys/sys/syscallargs.h: revision 1.227 via patch
	sys/kern/kern_exec.c: revision 1.317 via patch
	sys/rump/librump/rumpkern/rump_syscalls.c: revision 1.74 via patch
	include/limits.h: revision 1.30 via patch
	sys/kern/syscalls.master: revision 1.251 via patch
	sys/sys/vnode_if.h: revision 1.83 via patch
	sys/sys/fcntl.h: revision 1.40 via patch
	sys/sys/fcntl.h: revision 1.41 via patch
	sys/kern/vfs_syscalls.c: revision 1.433 via patch
	sys/rump/librump/rumpvfs/rumpvnode_if.c: revision 1.11 via patch
	sys/kern/syscalls.c: revision 1.248 via patch
	sys/sys/syscall.h: revision 1.244 via patch
	lib/libc/sys/link.2: revision 1.25 via patch
	include/unistd.h: revision 1.127 via patch
	distrib/sets/lists/comp/mi: revision 1.1659 via patch
	sys/sys/stat.h: revision 1.61 via patch
First stage of support for Extended API set 2. Most of the think is
unimplemented, except enough of linkat(2) to hardlink to a symlink.
Everything new in headers is guarded #ifdef _INCOMPLETE_XOPEN_C063 since
some software (e.g.: xcvs in our own tree) will assume they can use openat(2)
when AT_FDCWD is defined. _INCOMPLETE_XOPEN_C063 will go away once support
will be completed.
regen
improve comment about AT_* defines: they are not only used by linkat(2)
Add macros to hide OpenGroup extened API set 2 from GNU configure. This
is a temporary  workaround until the implementation is completed.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.211 2008/10/16 19:30:49 pooka Exp $
a843 56
417	UNIMPL
418	UNIMPL
419	UNIMPL
420	UNIMPL
421	UNIMPL
422	UNIMPL
423	UNIMPL
424	UNIMPL
425	UNIMPL
426	UNIMPL
427	UNIMPL
428	UNIMPL
429	UNIMPL
430	UNIMPL
431	UNIMPL
432	UNIMPL
433	UNIMPL
434	UNIMPL
435	UNIMPL
436	UNIMPL
437	UNIMPL
438	UNIMPL
439	UNIMPL
440	UNIMPL
441	UNIMPL
442	UNIMPL
443	UNIMPL
444	UNIMPL
445	UNIMPL
446	UNIMPL
447	UNIMPL
448	UNIMPL
449	UNIMPL
450	UNIMPL
451	UNIMPL
452	UNIMPL
453	UNIMPL
454	UNIMPL
455	UNIMPL
456	UNIMPL
457     STD  RUMP       { int sys_linkat(int fd1, const char *name1, \
			    int fd2, const char *name2, int flags); }
458	UNIMPL		renameat
459	UNIMPL		mkfifoat
460	UNIMPL		mknodat
461	UNIMPL		mkdirat
462	UNIMPL		faccessat
463	UNIMPL		fchmodat
464	UNIMPL		fchownat
465	UNIMPL		fexecve
466	UNIMPL		fstatat
467	UNIMPL		utimensat
468	UNIMPL		openat
469	UNIMPL		readlinkat
470	UNIMPL		symlinkat
471	UNIMPL		unlinkat
@


1.211.8.1
log
@sync to netbsd-5
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.211 2008/10/16 19:30:49 pooka Exp $
d69 4
a72 4
1	STD		{ void sys_exit(int rval); }
2	STD		{ int sys_fork(void); }
3	STD	 RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD	 RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d74 1
a74 1
5	STD	 RUMP	{ int sys_open(const char *path, \
d76 2
a77 2
6	STD	 RUMP	{ int sys_close(int fd); }
7	STD		{ int sys_wait4(int pid, int *status, int options, \
d79 3
a81 3
8	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD	 RUMP	{ int sys_link(const char *path, const char *link); }
10	STD	 RUMP	{ int sys_unlink(const char *path); }
d83 3
a85 3
12	STD	 RUMP	{ int sys_chdir(const char *path); }
13	STD	 RUMP	{ int sys_fchdir(int fd); }
14	STD	 RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d87 2
a88 2
15	STD	 RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD	 RUMP	{ int sys_chown(const char *path, uid_t uid, \
d90 2
a91 2
17	STD		{ int sys_obreak(char *nsize); } break
18	COMPAT_20	{ int sys_getfsstat(struct statfs12 *buf, \
d93 1
a93 1
19	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
d96 1
a96 1
20	STD		{ pid_t sys_getpid_with_ppid(void); } getpid
d98 1
a98 1
20	STD		{ pid_t sys_getpid(void); }
d100 1
a100 1
21	COMPAT_40	{ int sys_mount(const char *type, const char *path, \
d102 2
a103 2
22	STD	 RUMP	{ int sys_unmount(const char *path, int flags); }
23	STD		{ int sys_setuid(uid_t uid); }
d105 1
a105 1
24	STD		{ uid_t sys_getuid_with_euid(void); } getuid
d107 1
a107 1
24	STD		{ uid_t sys_getuid(void); }
d109 2
a110 2
25	STD		{ uid_t sys_geteuid(void); }
26	STD		{ int sys_ptrace(int req, pid_t pid, void *addr, \
d112 1
a112 1
27	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD		{ ssize_t sys_sendmsg(int s, \
d116 1
a116 1
29	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d125 6
a130 6
33	STD		{ int sys_access(const char *path, int flags); }
34	STD	 RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD		{ int sys_fchflags(int fd, u_long flags); }
36	STD	 RUMP	{ void sys_sync(void); }
37	STD		{ int sys_kill(int pid, int signum); }
38	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
d132 2
a133 2
39	STD		{ pid_t sys_getppid(void); }
40	COMPAT_43	{ int sys_lstat(const char *path, \
d135 4
a138 4
41	STD		{ int sys_dup(int fd); }
42	STD		{ int sys_pipe(void); }
43	STD		{ gid_t sys_getegid(void); }
44	STD		{ int sys_profil(char *samples, size_t size, \
d140 1
a140 1
45	STD		{ int sys_ktrace(const char *fname, int ops, \
d142 1
a142 1
46	COMPAT_13	{ int sys_sigaction(int signum, \
d146 1
a146 1
47	STD		{ gid_t sys_getgid_with_egid(void); } getgid
d148 1
a148 1
47	STD		{ gid_t sys_getgid(void); }
d150 1
a150 1
48	COMPAT_13	{ int sys_sigprocmask(int how, \
d152 5
a156 5
49	STD		{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD		{ int sys___setlogin(const char *namebuf); }
51	STD		{ int sys_acct(const char *path); }
52	COMPAT_13	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13	{ int sys_sigaltstack( \
d161 3
a163 3
55	COMPAT_12	{ int sys_reboot(int opt); } oreboot
56	STD		{ int sys_revoke(const char *path); }
57	STD	 RUMP	{ int sys_symlink(const char *path, \
d165 1
a165 1
58	STD	 RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d167 1
a167 1
59	STD		{ int sys_execve(const char *path, \
d169 4
a172 4
60	STD		{ mode_t sys_umask(mode_t newmask); }
61	STD		{ int sys_chroot(const char *path); }
62	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
d174 2
a175 2
64	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12	{ int sys_msync(void *addr, size_t len); }
d177 1
a177 1
66	STD		{ int sys_vfork(void); }
d180 3
a182 3
69	STD		{ int sys_sbrk(intptr_t incr); }
70	STD		{ int sys_sstk(int incr); }
71	COMPAT_43	{ int sys_mmap(void *addr, size_t len, int prot, \
d184 3
a186 3
72	STD		{ int sys_ovadvise(int anom); } vadvise
73	STD		{ int sys_munmap(void *addr, size_t len); }
74	STD		{ int sys_mprotect(void *addr, size_t len, \
d188 1
a188 1
75	STD		{ int sys_madvise(void *addr, size_t len, \
d192 1
a192 1
78	STD		{ int sys_mincore(void *addr, size_t len, \
d194 1
a194 1
79	STD		{ int sys_getgroups(int gidsetsize, \
d196 1
a196 1
80	STD		{ int sys_setgroups(int gidsetsize, \
d198 3
a200 3
81	STD		{ int sys_getpgrp(void); }
82	STD		{ int sys_setpgid(int pid, int pgid); }
83	STD		{ int sys_setitimer(int which, \
d203 3
a205 3
84	COMPAT_43	{ int sys_wait(void); } owait
85	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
86	STD		{ int sys_getitimer(int which, \
d207 1
a207 1
87	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
d209 1
a209 1
88	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
d211 2
a212 2
89	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD		{ int sys_dup2(int from, int to); }
d214 2
a215 2
92	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d218 2
a219 2
95	STD	RUMP	{ int sys_fsync(int fd); }
96	STD		{ int sys_setpriority(int which, id_t who, int prio); }
d225 2
a226 2
100	STD		{ int sys_getpriority(int which, id_t who); }
101	COMPAT_43	{ int sys_send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43	{ int sys_recv(int s, void *buf, int len, \
d230 1
a230 1
103	COMPAT_13	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d238 1
a238 1
108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d240 4
a243 4
109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
d245 1
a245 1
113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43	{ int sys_sendmsg(int s, void *msg, int flags); } \
d250 1
a250 1
116	STD		{ int sys_gettimeofday(struct timeval *tp, \
d252 1
a252 1
117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
d256 1
a256 1
120	STD		{ ssize_t sys_readv(int fd, \
d258 1
a258 1
121	STD		{ ssize_t sys_writev(int fd, \
d260 1
a260 1
122	STD		{ int sys_settimeofday(const struct timeval *tv, \
d262 3
a264 3
123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD		{ int sys_fchmod(int fd, mode_t mode); }
125	COMPAT_43	{ int sys_recvfrom(int s, void *buf, size_t len, \
d267 4
a270 4
126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD	 RUMP	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
d272 4
a275 4
130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD		{ int sys_flock(int fd, int how); }
132	STD	 RUMP	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
d281 3
a283 3
136	STD	 RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD	 RUMP	{ int sys_rmdir(const char *path); }
138	STD	 RUMP	{ int sys_utimes(const char *path, \
d286 1
a286 1
140	STD		{ int sys_adjtime(const struct timeval *delta, \
d290 3
a292 3
142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43	{ int sys_getrlimit(int which, \
d294 1
a294 1
145	COMPAT_43	{ int sys_setrlimit(int which, \
d296 3
a298 3
146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD		{ int sys_setsid(void); }
148	STD		{ int sys_quotactl(const char *path, int cmd, \
d300 1
a300 1
149	COMPAT_43	{ int sys_quota(void); } oquota
d313 1
a313 1
155	STD		{ int sys_nfssvc(int flag, void *argp); }
d317 1
a317 1
156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
d319 1
a319 1
157	COMPAT_20	{ int sys_statfs(const char *path, \
d321 1
a321 1
158	COMPAT_20	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d324 1
a324 1
161	COMPAT_30	{ int sys_getfh(const char *fname, \
d326 1
a326 1
162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
d328 1
a328 1
163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
d330 2
a331 2
164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
165	STD		{ int sys_sysarch(int op, void *parms); }
d337 1
a337 1
169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
d344 1
a344 1
170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d351 1
a351 1
171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d357 1
a357 1
173	STD	 RUMP	{ ssize_t sys_pread(int fd, void *buf, \
d359 1
a359 1
174	STD	 RUMP	{ ssize_t sys_pwrite(int fd, const void *buf, \
d362 1
a362 1
175	COMPAT_30	 { int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d364 1
a364 1
176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
d374 3
a376 3
181	STD		{ int sys_setgid(gid_t gid); }
182	STD		{ int sys_setegid(gid_t egid); }
183	STD		{ int sys_seteuid(uid_t euid); }
d378 1
a378 1
184	STD		{ int sys_lfs_bmapv(fsid_t *fsidp, \
d380 1
a380 1
185	STD		{ int sys_lfs_markv(fsid_t *fsidp, \
d382 2
a383 2
186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD		{ int sys_lfs_segwait(fsid_t *fsidp, \
d391 1
a391 1
188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
d393 2
a394 2
189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12	{ int sys_lstat(const char *path, \
d396 2
a397 2
191	STD		{ long sys_pathconf(const char *path, int name); }
192	STD		{ long sys_fpathconf(int fd, int name); }
d399 1
a399 1
194	STD		{ int sys_getrlimit(int which, \
d401 1
a401 1
195	STD		{ int sys_setrlimit(int which, \
d403 1
a403 1
196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
d405 1
a405 1
197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
d409 1
a409 1
199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
d411 1
a411 1
200	STD	 RUMP	{ int sys_truncate(const char *path, int pad, \
d413 2
a414 2
201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD	 RUMP	{ int sys___sysctl(const int *name, u_int namelen, \
d417 4
a420 4
203	STD		{ int sys_mlock(const void *addr, size_t len); }
204	STD		{ int sys_munlock(const void *addr, size_t len); }
205	STD		{ int sys_undelete(const char *path); }
206	STD		{ int sys_futimes(int fd, \
d422 3
a424 3
207	STD		{ pid_t sys_getpgid(pid_t pid); }
208	STD		{ int sys_reboot(int opt, char *bootstr); }
209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
d454 1
a454 1
220	COMPAT_14	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD		{ int sys_semconfig(int flag); }
d467 1
a467 1
224	COMPAT_14	{ int sys_msgctl(int msqid, int cmd, \
d469 2
a470 2
225	STD		{ int sys_msgget(key_t key, int msgflg); }
226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
d472 1
a472 1
227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d475 4
a478 4
224	EXCL		compat_14_msgctl
225	EXCL		msgget
226	EXCL		msgsnd
227	EXCL		msgrcv
d481 1
a481 1
228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
d483 1
a483 1
229	COMPAT_14	{ int sys_shmctl(int shmid, int cmd, \
d485 2
a486 2
230	STD		{ int sys_shmdt(const void *shmaddr); }
231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
d493 1
a493 1
232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
d495 1
a495 1
233	STD		{ int sys_clock_settime(clockid_t clock_id, \
d497 1
a497 1
234	STD		{ int sys_clock_getres(clockid_t clock_id, \
d499 1
a499 1
235	STD		{ int sys_timer_create(clockid_t clock_id, \
d501 2
a502 2
236	STD		{ int sys_timer_delete(timer_t timerid); }
237	STD		{ int sys_timer_settime(timer_t timerid, int flags, \
d505 1
a505 1
238	STD		{ int sys_timer_gettime(timer_t timerid, struct \
d507 1
a507 1
239	STD		{ int sys_timer_getoverrun(timer_t timerid); }
d511 1
a511 1
240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
d513 4
a516 4
241	STD		{ int sys_fdatasync(int fd); }
242	STD		{ int sys_mlockall(int flags); }
243	STD		{ int sys_munlockall(void); }
244	STD		{ int sys___sigtimedwait(const sigset_t *set, \
d520 1
a520 1
246	STD		{ int sys_modctl(int cmd, void *arg); }
d522 2
a523 2
247	STD		{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD		{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD		{ int sys__ksem_unlink(const char *name); }
250	STD		{ int sys__ksem_close(semid_t id); }
251	STD		{ int sys__ksem_post(semid_t id); }
252	STD		{ int sys__ksem_wait(semid_t id); }
253	STD		{ int sys__ksem_trywait(semid_t id); }
254	STD		{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD		{ int sys__ksem_destroy(semid_t id); }
d537 1
a537 1
249	EXCL		sys__ksem_unlink
d546 1
a546 1
257	STD		{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD		{ int sys_mq_close(mqd_t mqdes); }
259	STD		{ int sys_mq_unlink(const char *name); }
260	STD		{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD		{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD		{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	STD		{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	STD		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD		{ int sys___posix_rename(const char *from, \
d573 3
a575 3
271	STD		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30		{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD		{ int sys_minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD	 RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD	 RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	STD	 RUMP	{ int sys_lutimes(const char *path, \
d582 5
a586 5
277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
281	STD		{ int sys___sigaltstack14( \
d589 2
a590 2
282	STD		{ int sys___vfork14(void); }
283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
d596 3
a598 3
286	STD		{ pid_t sys_getsid(pid_t pid); }
287	STD		{ pid_t sys___clone(int flags, void *stack); }
288	STD		{ int sys_fktrace(int fd, int ops, \
d600 1
a600 1
289	STD		{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD		{ ssize_t sys_pwritev(int fd, \
d606 1
a606 1
291	COMPAT_16	{ int sys___sigaction14(int signum, \
d609 2
a610 2
292	STD		{ int sys___sigpending14(sigset_t *set); }
293	STD		{ int sys___sigprocmask14(int how, \
d613 6
a618 6
294	STD		{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16	{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
296	STD		{ int sys___getcwd(char *bufp, size_t length); }
297	STD		{ int sys_fchroot(int fd); }
298	COMPAT_30	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d623 1
a623 1
301	STD		{ int sys_____semctl13(int semid, int semnum, int cmd, \
d629 1
a629 1
302	STD		{ int sys___msgctl13(int msqid, int cmd, \
d635 1
a635 1
303	STD		{ int sys___shmctl13(int shmid, int cmd, \
d640 3
a642 3
304	STD	 RUMP	{ int sys_lchflags(const char *path, u_long flags); }
305	STD		{ int sys_issetugid(void); }
306	STD		{ int sys_utrace(const char *label, void *addr, \
d644 3
a646 3
307	STD		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD		{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD		{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 3
a650 3
310	STD		{ int sys__lwp_exit(void); }
311	STD		{ lwpid_t sys__lwp_self(void); }
312	STD		{ int sys__lwp_wait(lwpid_t wait_for, \
d652 8
a659 8
313	STD		{ int sys__lwp_suspend(lwpid_t target); }
314	STD		{ int sys__lwp_continue(lwpid_t target); }
315	STD		{ int sys__lwp_wakeup(lwpid_t target); }
316	STD		{ void *sys__lwp_getprivate(void); }
317	STD		{ void sys__lwp_setprivate(void *ptr); }
318	STD		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD		{ int sys__lwp_detach(lwpid_t target); }
320	STD		{ int sys__lwp_park(const struct timespec *ts, \
d662 2
a663 2
321	STD		{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD		{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
d665 1
a665 1
323	STD		{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD		{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD		{ int sys__lwp_ctl(int features, \
d677 1
a677 1
330	STD		{ int sys_sa_register(sa_upcall_t new, \
d680 6
a685 6
331	STD		{ int sys_sa_stacks(int num, stack_t *stacks); }
332	STD		{ int sys_sa_enable(void); }
333	STD		{ int sys_sa_setconcurrency(int concurrency); }
334	STD		{ int sys_sa_yield(void); }
335	STD		{ int sys_sa_preempt(int sa_id); }
336	OBSOL		sys_sa_unblockyield
d692 1
a692 1
340	STD		{ int sys___sigaction_sigtramp(int signum, \
d696 5
a700 5
341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD		{ int sys_rasctl(void *addr, size_t len, int op); }
344	STD		{ int sys_kqueue(void); }
345	STD		{ int sys_kevent(int fd, \
d706 1
a706 1
346	STD		{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
d708 1
a708 1
347	STD		{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
d710 1
a710 1
348	STD		{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
d712 1
a712 1
349	STD		{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
d714 1
a714 1
350	STD		{ int sys_sched_yield(void); }
d719 1
a719 1
354	STD		{ int sys_fsync_range(int fd, int flags, off_t start, \
d721 2
a722 2
355	STD		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD		{ int sys_getvfsstat(struct statvfs *buf, \
d724 1
a724 1
357	STD		{ int sys_statvfs1(const char *path, \
d726 1
a726 1
358	STD		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d728 1
a728 1
359	COMPAT_30		{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d730 1
a730 1
360	STD		{ int sys_extattrctl(const char *path, int cmd, \
d733 1
a733 1
361	STD		{ int sys_extattr_set_file(const char *path, \
d736 1
a736 1
362	STD		{ ssize_t sys_extattr_get_file(const char *path, \
d739 1
a739 1
363	STD		{ int sys_extattr_delete_file(const char *path, \
d741 1
a741 1
364	STD		{ int sys_extattr_set_fd(int fd, \
d744 1
a744 1
365	STD		{ ssize_t sys_extattr_get_fd(int fd, \
d747 1
a747 1
366	STD		{ int sys_extattr_delete_fd(int fd, \
d749 1
a749 1
367	STD		{ int sys_extattr_set_link(const char *path, \
d752 1
a752 1
368	STD		{ ssize_t sys_extattr_get_link(const char *path, \
d755 1
a755 1
369	STD		{ int sys_extattr_delete_link(const char *path, \
d757 1
a757 1
370	STD		{ ssize_t sys_extattr_list_fd(int fd, \
d759 1
a759 1
371	STD		{ ssize_t sys_extattr_list_file(const char *path, \
d761 1
a761 1
372	STD		{ ssize_t sys_extattr_list_link(const char *path, \
d763 1
a763 1
373	STD		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d766 1
a766 1
374	STD		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d768 1
a768 1
375	STD		{ int sys_setxattr(const char *path, \
d771 1
a771 1
376	STD		{ int sys_lsetxattr(const char *path, \
d774 1
a774 1
377	STD		{ int sys_fsetxattr(int fd, \
d777 1
a777 1
378	STD		{ int sys_getxattr(const char *path, \
d779 1
a779 1
379	STD		{ int sys_lgetxattr(const char *path, \
d781 1
a781 1
380	STD		{ int sys_fgetxattr(int fd, \
d783 1
a783 1
381	STD		{ int sys_listxattr(const char *path, \
d785 1
a785 1
382	STD		{ int sys_llistxattr(const char *path, \
d787 1
a787 1
383	STD		{ int sys_flistxattr(int fd, \
d789 1
a789 1
384	STD		{ int sys_removexattr(const char *path, \
d791 1
a791 1
385	STD		{ int sys_lremovexattr(const char *path, \
d793 1
a793 1
386	STD		{ int sys_fremovexattr(int fd, \
d795 4
a798 4
387	STD	 RUMP	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD	 RUMP	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD		{ int sys___getdents30(int fd, char *buf, size_t count); }
d800 1
a800 1
392	COMPAT_30	{ int sys___fhstat30(const struct compat_30_fhandle \
d802 1
a802 1
393	STD		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
d804 1
a804 1
395	STD		{ int sys___getfh30(const char *fname, void *fhp, \
d806 1
a806 1
396	STD		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d808 1
a808 1
397	STD		{ int sys___fhstatvfs140(const void *fhp, \
d810 1
a810 1
398	STD		{ int sys___fhstat40(const void *fhp, \
d814 6
a819 6
399	STD		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD		{ int sys_aio_suspend(const struct aiocb *const *list, \
d821 2
a822 2
405	STD		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d829 1
a829 1
410	STD		{ int sys___mount50(const char *type, \
d832 1
a832 1
411	STD		{ void *sys_mremap(void *old_address, size_t old_size, \
d836 3
a838 3
412	STD		{ int sys_pset_create(psetid_t *psid); }
413	STD		{ int sys_pset_destroy(psetid_t psid); }
414	STD		{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
d840 1
a840 1
415	STD		{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
d842 1
a842 1
416	STD		{ int sys___posix_fadvise50(int fd, int pad, \
@


1.211.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.221 2009/01/13 22:27:44 pooka Exp $
d14 2
a15 3
; (NOTE! they *must* be specified in this order):
;	MODULAR:attempt to autoload system call if not present
;	RUMP:	the system call can be called directly from rumps
d35 1
a35 1
;	{ return_type|prefix|compat(optional)|basename(pseudo-proto); } [alias]
d42 1
d44 1
d46 2
d50 1
d67 1
a67 1
0	INDIR		{ int|sys||syscall(int code, \
d69 4
a72 4
1	STD 		{ void|sys||exit(int rval); }
2	STD 		{ int|sys||fork(void); }
3	STD 	 RUMP	{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t|sys||write(int fd, const void *buf, \
d74 1
a74 1
5	STD 	 RUMP	{ int|sys||open(const char *path, \
d76 6
a81 6
6	STD	 RUMP	{ int|sys||close(int fd); }
7	COMPAT_50 MODULAR { int|sys||wait4(int pid, int *status, \
			    int options, struct rusage50 *rusage); }
8	COMPAT_43 MODULAR { int|sys||creat(const char *path, mode_t mode); } ocreat
9	STD 	 RUMP	{ int|sys||link(const char *path, const char *link); }
10	STD 	 RUMP	{ int|sys||unlink(const char *path); }
d83 6
a88 6
12	STD 	 RUMP	{ int|sys||chdir(const char *path); }
13	STD 	 RUMP	{ int|sys||fchdir(int fd); }
14	COMPAT_50 MODULAR { int|sys||mknod(const char *path, mode_t mode, \
			    uint32_t dev); }
15	STD 	 RUMP	{ int|sys||chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int|sys||chown(const char *path, uid_t uid, \
d90 2
a91 2
17	STD 		{ int|sys||obreak(char *nsize); } break
18	COMPAT_20 MODULAR { int|sys||getfsstat(struct statfs12 *buf, \
d93 1
a93 1
19	COMPAT_43 MODULAR { long|sys||lseek(int fd, long offset, int whence); }\
d95 6
a100 2
20	STD 		{ pid_t|sys||getpid_with_ppid(void); } getpid
21	COMPAT_40 MODULAR { int|sys||mount(const char *type, const char *path, \
d102 9
a110 5
22	STD 	 RUMP	{ int|sys||unmount(const char *path, int flags); }
23	STD 		{ int|sys||setuid(uid_t uid); }
24	STD 		{ uid_t|sys||getuid_with_euid(void); } getuid
25	STD 		{ uid_t|sys||geteuid(void); }
26	STD 		{ int|sys||ptrace(int req, pid_t pid, void *addr, \
d112 1
a112 1
27	STD 		{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD 		{ ssize_t|sys||sendmsg(int s, \
d116 1
a116 1
29	STD 		{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
d119 1
a119 1
30	STD	RUMP	{ int|sys||accept(int s, struct sockaddr *name, \
d121 1
a121 1
31	STD		{ int|sys||getpeername(int fdes, struct sockaddr *asa, \
d123 1
a123 1
32	STD		{ int|sys||getsockname(int fdes, struct sockaddr *asa, \
d125 6
a130 6
33	STD 		{ int|sys||access(const char *path, int flags); }
34	STD 	 RUMP	{ int|sys||chflags(const char *path, u_long flags); }
35	STD 		{ int|sys||fchflags(int fd, u_long flags); }
36	STD 	 RUMP	{ void|sys||sync(void); }
37	STD 		{ int|sys||kill(int pid, int signum); }
38	COMPAT_43 MODULAR { int|sys||stat(const char *path, struct stat43 *ub); } \
d132 2
a133 2
39	STD 		{ pid_t|sys||getppid(void); }
40	COMPAT_43 MODULAR { int|sys||lstat(const char *path, \
d135 4
a138 4
41	STD 		{ int|sys||dup(int fd); }
42	STD 		{ int|sys||pipe(void); }
43	STD 		{ gid_t|sys||getegid(void); }
44	STD 		{ int|sys||profil(char *samples, size_t size, \
d140 1
a140 1
45	STD 		{ int|sys||ktrace(const char *fname, int ops, \
d142 1
a142 1
46	COMPAT_13 MODULAR { int|sys||sigaction(int signum, \
d145 6
a150 2
47	STD 		{ gid_t|sys||getgid_with_egid(void); } getgid
48	COMPAT_13 MODULAR { int|sys||sigprocmask(int how, \
d152 5
a156 5
49	STD 		{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int|sys||__setlogin(const char *namebuf); }
51	STD 		{ int|sys||acct(const char *path); }
52	COMPAT_13 MODULAR { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR { int|sys||sigaltstack( \
d159 1
a159 1
54	STD	RUMP	{ int|sys||ioctl(int fd, \
d161 3
a163 3
55	COMPAT_12 MODULAR { int|sys||reboot(int opt); } oreboot
56	STD 		{ int|sys||revoke(const char *path); }
57	STD 	 RUMP	{ int|sys||symlink(const char *path, \
d165 1
a165 1
58	STD 	 RUMP	{ ssize_t|sys||readlink(const char *path, char *buf, \
d167 1
a167 1
59	STD 		{ int|sys||execve(const char *path, \
d169 4
a172 4
60	STD 		{ mode_t|sys||umask(mode_t newmask); }
61	STD 		{ int|sys||chroot(const char *path); }
62	COMPAT_43 MODULAR { int|sys||fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR { int|sys||getkerninfo(int op, char *where, int *size, \
d174 2
a175 2
64	COMPAT_43 MODULAR { int|sys||getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR { int|sys||msync(void *addr, size_t len); }
d177 1
a177 1
66	STD 		{ int|sys||vfork(void); }
d180 3
a182 3
69	STD 		{ int|sys||sbrk(intptr_t incr); }
70	STD 		{ int|sys||sstk(int incr); }
71	COMPAT_43 MODULAR { int|sys||mmap(void *addr, size_t len, int prot, \
d184 3
a186 3
72	STD 		{ int|sys||ovadvise(int anom); } vadvise
73	STD 		{ int|sys||munmap(void *addr, size_t len); }
74	STD 		{ int|sys||mprotect(void *addr, size_t len, \
d188 1
a188 1
75	STD 		{ int|sys||madvise(void *addr, size_t len, \
d192 1
a192 1
78	STD 		{ int|sys||mincore(void *addr, size_t len, \
d194 1
a194 1
79	STD 		{ int|sys||getgroups(int gidsetsize, \
d196 1
a196 1
80	STD 		{ int|sys||setgroups(int gidsetsize, \
d198 10
a207 10
81	STD 		{ int|sys||getpgrp(void); }
82	STD 		{ int|sys||setpgid(int pid, int pgid); }
83	COMPAT_50 MODULAR { int|sys||setitimer(int which, \
			    const struct itimerval50 *itv, \
			    struct itimerval50 *oitv); }
84	COMPAT_43 MODULAR { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR { int|sys||swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR { int|sys||getitimer(int which, \
			    struct itimerval50 *itv); }
87	COMPAT_43 MODULAR { int|sys||gethostname(char *hostname, u_int len); } \
d209 1
a209 1
88	COMPAT_43 MODULAR { int|sys||sethostname(char *hostname, u_int len); } \
d211 2
a212 2
89	COMPAT_43 MODULAR { int|sys||getdtablesize(void); } ogetdtablesize
90	STD 		{ int|sys||dup2(int from, int to); }
d214 3
a216 3
92	STD 		{ int|sys||fcntl(int fd, int cmd, ... void *arg); }
93	COMPAT_50 MODULAR 	{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
d218 4
a221 4
95	STD	RUMP 	{ int|sys||fsync(int fd); }
96	STD 		{ int|sys||setpriority(int which, id_t who, int prio); }
97	COMPAT_30 MODULAR { int|sys||socket(int domain, int type, int protocol); }
98	STD	RUMP	{ int|sys||connect(int s, const struct sockaddr *name, \
d223 1
a223 1
99	COMPAT_43 MODULAR { int|sys||accept(int s, void *name, \
d225 2
a226 2
100	STD 		{ int|sys||getpriority(int which, id_t who); }
101	COMPAT_43 MODULAR { int|sys||send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43 MODULAR { int|sys||recv(int s, void *buf, int len, \
d230 1
a230 1
103	COMPAT_13 MODULAR { int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \
d232 1
a232 1
104	STD	RUMP	{ int|sys||bind(int s, const struct sockaddr *name, \
d234 1
a234 1
105	STD	RUMP	{ int|sys||setsockopt(int s, int level, int name, \
d236 1
a236 1
106	STD	RUMP	{ int|sys||listen(int s, int backlog); }
d238 1
a238 1
108	COMPAT_43 MODULAR { int|sys||sigvec(int signum, struct sigvec *nsv, \
d240 4
a243 4
109	COMPAT_43 MODULAR { int|sys||sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR { int|sys||sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR { int|sys||sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR { int|sys||sigstack(struct sigstack *nss, \
d245 1
a245 1
113	COMPAT_43 MODULAR { int|sys||recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43 MODULAR { int|sys||sendmsg(int s, void *msg, int flags); } \
d250 1
a250 1
116	COMPAT_50 MODULAR { int|sys||gettimeofday(struct timeval50 *tp, \
d252 2
a253 2
117	COMPAT_50 MODULAR { int|sys||getrusage(int who, struct rusage50 *rusage); }
118	STD	RUMP	{ int|sys||getsockopt(int s, int level, int name, \
d256 1
a256 1
120	STD 		{ ssize_t|sys||readv(int fd, \
d258 1
a258 1
121	STD 		{ ssize_t|sys||writev(int fd, \
d260 1
a260 1
122	COMPAT_50 MODULAR { int|sys||settimeofday(const struct timeval50 *tv, \
d262 3
a264 3
123	STD 		{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD 		{ int|sys||fchmod(int fd, mode_t mode); }
125	COMPAT_43 MODULAR { int|sys||recvfrom(int s, void *buf, size_t len, \
d267 4
a270 4
126	STD 		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int|sys||setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int|sys||rename(const char *from, const char *to); }
129	COMPAT_43 MODULAR { int|sys||truncate(const char *path, long length); } \
d272 4
a275 4
130	COMPAT_43 MODULAR { int|sys||ftruncate(int fd, long length); } oftruncate
131	STD 		{ int|sys||flock(int fd, int how); }
132	STD 	 RUMP	{ int|sys||mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t|sys||sendto(int s, const void *buf, \
d278 2
a279 2
134	STD		{ int|sys||shutdown(int s, int how); }
135	STD		{ int|sys||socketpair(int domain, int type, \
d281 4
a284 4
136	STD 	 RUMP	{ int|sys||mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int|sys||rmdir(const char *path); }
138	COMPAT_50 MODULAR { int|sys||utimes(const char *path, \
			    const struct timeval50 *tptr); }
d286 3
a288 3
140	COMPAT_50 MODULAR { int|sys||adjtime(const struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
141	COMPAT_43 MODULAR { int|sys||getpeername(int fdes, void *asa, \
d290 3
a292 3
142	COMPAT_43 MODULAR { int32_t|sys||gethostid(void); } ogethostid
143	COMPAT_43 MODULAR { int|sys||sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR { int|sys||getrlimit(int which, \
d294 1
a294 1
145	COMPAT_43 MODULAR { int|sys||setrlimit(int which, \
d296 3
a298 3
146	COMPAT_43 MODULAR { int|sys||killpg(int pgid, int signum); } okillpg
147	STD 	 	{ int|sys||setsid(void); }
148	STD 		{ int|sys||quotactl(const char *path, int cmd, \
d300 2
a301 2
149	COMPAT_43 MODULAR { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR { int|sys||getsockname(int fdec, void *asa, \
d312 6
a317 2
155	STD MODULAR RUMP  { int|sys||nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR { int|sys||getdirentries(int fd, char *buf, \
d319 1
a319 1
157	COMPAT_20 MODULAR { int|sys||statfs(const char *path, \
d321 1
a321 1
158	COMPAT_20 MODULAR { int|sys||fstatfs(int fd, struct statfs12 *buf); }
d324 1
a324 1
161	COMPAT_30 MODULAR { int|sys||getfh(const char *fname, \
d326 1
a326 1
162	COMPAT_09 MODULAR { int|sys||getdomainname(char *domainname, int len); } \
d328 1
a328 1
163	COMPAT_09 MODULAR { int|sys||setdomainname(char *domainname, int len); } \
d330 2
a331 2
164	COMPAT_09 MODULAR { int|sys||uname(struct outsname *name); } ouname
165	STD 		{ int|sys||sysarch(int op, void *parms); }
d336 2
a337 2
#if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
169	COMPAT_10 MODULAR { int|sys||semsys(int which, int a2, int a3, int a4, \
d343 2
a344 2
#if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
170	COMPAT_10 MODULAR { int|sys||msgsys(int which, int a2, int a3, int a4, \
d350 2
a351 2
#if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
171	COMPAT_10 MODULAR { int|sys||shmsys(int which, int a2, int a3, int a4); } \
d357 1
a357 1
173	STD 	 RUMP	{ ssize_t|sys||pread(int fd, void *buf, \
d359 1
a359 1
174	STD 	 RUMP	{ ssize_t|sys||pwrite(int fd, const void *buf, \
d362 3
a364 3
175	COMPAT_30	{ int|sys||ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL_OPT)
176	STD 		{ int|sys||ntp_adjtime(struct timex *tp); }
d374 3
a376 3
181	STD 		{ int|sys||setgid(gid_t gid); }
182	STD 		{ int|sys||setegid(gid_t egid); }
183	STD 		{ int|sys||seteuid(uid_t euid); }
d378 1
a378 1
184	STD 		{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d380 1
a380 1
185	STD 		{ int|sys||lfs_markv(fsid_t *fsidp, \
d382 3
a384 3
186	STD		{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
187	COMPAT_50 MODULAR { int|sys||lfs_segwait(fsid_t *fsidp, \
			    struct timeval50 *tv); }
d391 1
a391 1
188	COMPAT_12 MODULAR { int|sys||stat(const char *path, struct stat12 *ub); } \
d393 2
a394 2
189	COMPAT_12 MODULAR { int|sys||fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR { int|sys||lstat(const char *path, \
d396 2
a397 2
191	STD 		{ long|sys||pathconf(const char *path, int name); }
192	STD 		{ long|sys||fpathconf(int fd, int name); }
d399 1
a399 1
194	STD 		{ int|sys||getrlimit(int which, \
d401 1
a401 1
195	STD 		{ int|sys||setrlimit(int which, \
d403 1
a403 1
196	COMPAT_12 MODULAR { int|sys||getdirentries(int fd, char *buf, \
d405 1
a405 1
197	STD 		{ void *|sys||mmap(void *addr, size_t len, int prot, \
d407 1
a407 1
198	INDIR		{ quad_t|sys||__syscall(quad_t code, \
d409 1
a409 1
199	STD 		{ off_t|sys||lseek(int fd, int pad, off_t offset, \
d411 1
a411 1
200	STD 	 RUMP	{ int|sys||truncate(const char *path, int pad, \
d413 2
a414 2
201	STD 		{ int|sys||ftruncate(int fd, int pad, off_t length); }
202	STD	 RUMP 	{ int|sys||__sysctl(const int *name, u_int namelen, \
d417 8
a424 8
203	STD 		{ int|sys||mlock(const void *addr, size_t len); }
204	STD 		{ int|sys||munlock(const void *addr, size_t len); }
205	STD 		{ int|sys||undelete(const char *path); }
206	COMPAT_50 MODULAR { int|sys||futimes(int fd, \
			    const struct timeval50 *tptr); }
207	STD 		{ pid_t|sys||getpgid(pid_t pid); }
208	STD		{ int|sys||reboot(int opt, char *bootstr); }
209	STD 		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d429 23
a451 10
210	UNIMPL
211	UNIMPL
212	UNIMPL
213	UNIMPL
214	UNIMPL
215	UNIMPL
216	UNIMPL
217	UNIMPL
218	UNIMPL
219	UNIMPL
d453 2
a454 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
220	COMPAT_14 MODULAR { int|sys||__semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD 		{ int|sys||semget(key_t key, int nsems, int semflg); }
222	STD 		{ int|sys||semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD 		{ int|sys||semconfig(int flag); }
d466 2
a467 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
224	COMPAT_14 MODULAR { int|sys||msgctl(int msqid, int cmd, \
d469 2
a470 2
225	STD 		{ int|sys||msgget(key_t key, int msgflg); }
226	STD 		{ int|sys||msgsnd(int msqid, const void *msgp, \
d472 1
a472 1
227	STD 		{ ssize_t|sys||msgrcv(int msqid, void *msgp, \
d480 2
a481 2
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
228	STD 		{ void *|sys||shmat(int shmid, const void *shmaddr, \
d483 1
a483 1
229	COMPAT_14 MODULAR { int|sys||shmctl(int shmid, int cmd, \
d485 2
a486 2
230	STD 		{ int|sys||shmdt(const void *shmaddr); }
231	STD 		{ int|sys||shmget(key_t key, size_t size, int shmflg); }
d493 7
a499 7
232	COMPAT_50 MODULAR { int|sys||clock_gettime(clockid_t clock_id, \
			    struct timespec50 *tp); }
233	COMPAT_50 MODULAR { int|sys||clock_settime(clockid_t clock_id, \
			    const struct timespec50 *tp); }
234	COMPAT_50 MODULAR { int|sys||clock_getres(clockid_t clock_id, \
			    struct timespec50 *tp); }
235	STD		{ int|sys||timer_create(clockid_t clock_id, \
d501 7
a507 7
236	STD		{ int|sys||timer_delete(timer_t timerid); }
237	COMPAT_50 MODULAR { int|sys||timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec50 *value, \
			    struct itimerspec50 *ovalue); }
238	COMPAT_50 MODULAR { int|sys||timer_gettime(timer_t timerid, struct \
			    itimerspec50 *value); }
239	STD		{ int|sys||timer_getoverrun(timer_t timerid); }
d511 6
a516 6
240	COMPAT_50 MODULAR { int|sys||nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
241	STD 		{ int|sys||fdatasync(int fd); }
242	STD 		{ int|sys||mlockall(int flags); }
243	STD 		{ int|sys||munlockall(void); }
244	COMPAT_50 MODULAR { int|sys||__sigtimedwait(const sigset_t *set, \
d518 1
a518 1
			    struct timespec50 *timeout); }
d520 11
a530 10
246	STD 	 	{ int|sys||modctl(int cmd, void *arg); }
247	STD MODULAR 	{ int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR 	{ int|sys||_ksem_open(const char *name, int oflag, \
			    mode_t mode, unsigned int value, intptr_t *idp); }
249	STD MODULAR 	{ int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR 	{ int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR 	{ int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR 	{ int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR 	{ int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR 	{ int|sys||_ksem_getvalue(intptr_t id, \
d532 12
a543 1
255	STD MODULAR 	{ int|sys||_ksem_destroy(intptr_t id); }
d545 2
a546 1
257	STD 		{ mqd_t|sys||mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD 		{ int|sys||mq_close(mqd_t mqdes); }
259	STD 		{ int|sys||mq_unlink(const char *name); }
260	STD 		{ int|sys||mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD 		{ int|sys||mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD 		{ int|sys||mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD 		{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD 		{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	COMPAT_50 MODULAR { int|sys||mq_timedsend(mqd_t mqdes, \
d564 2
a565 2
			    const struct timespec50 *abs_timeout); }
266	COMPAT_50 MODULAR { ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
d567 1
a567 1
			    const struct timespec50 *abs_timeout); }
d571 1
a571 1
270	STD 		{ int|sys||__posix_rename(const char *from, \
d573 3
a575 3
271	STD 		{ int|sys||swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MODULAR { int|sys||getdents(int fd, char *buf, size_t count); }
273	STD 		{ int|sys||minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD 	 RUMP	{ int|sys||lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int|sys||lchown(const char *path, uid_t uid, \
d580 7
a586 7
276	COMPAT_50 MODULAR { int|sys||lutimes(const char *path, \
			    const struct timeval50 *tptr); }
277	STD 		{ int|sys|13|msync(void *addr, size_t len, int flags); }
278	COMPAT_30 MODULAR { int|sys|13|stat(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR { int|sys|13|fstat(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR { int|sys|13|lstat(const char *path, struct stat13 *ub); }
281	STD 		{ int|sys|14|sigaltstack( \
d589 2
a590 2
282	STD 		{ int|sys|14|vfork(void); }
283	STD 		{ int|sys||__posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD 		{ int|sys||__posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD 		{ int|sys||__posix_lchown(const char *path, uid_t uid, \
d596 3
a598 3
286	STD 		{ pid_t|sys||getsid(pid_t pid); }
287	STD 		{ pid_t|sys||__clone(int flags, void *stack); }
288	STD 		{ int|sys||fktrace(int fd, int ops, \
d600 1
a600 1
289	STD 		{ ssize_t|sys||preadv(int fd, \
d603 1
a603 1
290	STD 		{ ssize_t|sys||pwritev(int fd, \
d606 1
a606 1
291	COMPAT_16 MODULAR { int|sys|14|sigaction(int signum, \
d609 2
a610 2
292	STD 		{ int|sys|14|sigpending(sigset_t *set); }
293	STD 		{ int|sys|14|sigprocmask(int how, \
d613 6
a618 6
294	STD 		{ int|sys|14|sigsuspend(const sigset_t *set); }
295	COMPAT_16 MODULAR { int|sys|14|sigreturn(struct sigcontext *sigcntxp); }
296	STD 		{ int|sys||__getcwd(char *bufp, size_t length); }
297	STD 		{ int|sys||fchroot(int fd); }
298	COMPAT_30 MODULAR { int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR { int|sys||fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 MODULAR { int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \
d622 2
a623 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
301	COMPAT_50 MODULAR { int|sys|13|__semctl(int semid, int semnum, int cmd, \
d628 2
a629 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
302	COMPAT_50 MODULAR { int|sys|13|msgctl(int msqid, int cmd, \
d634 3
a636 3
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
303	COMPAT_50 MODULAR { int|sys|13|shmctl(int shmid, int cmd, \
			    struct shmid_ds13 *buf); }
d640 3
a642 3
304	STD 	 RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
305	STD 		{ int|sys||issetugid(void); }
306	STD 		{ int|sys||utrace(const char *label, void *addr, \
d644 3
a646 3
307	STD 		{ int|sys||getcontext(struct __ucontext *ucp); }
308	STD 		{ int|sys||setcontext(const struct __ucontext *ucp); }
309	STD 		{ int|sys||_lwp_create(const struct __ucontext *ucp, \
d648 3
a650 3
310	STD 		{ int|sys||_lwp_exit(void); }
311	STD 		{ lwpid_t|sys||_lwp_self(void); }
312	STD 		{ int|sys||_lwp_wait(lwpid_t wait_for, \
d652 8
a659 8
313	STD 		{ int|sys||_lwp_suspend(lwpid_t target); }
314	STD 		{ int|sys||_lwp_continue(lwpid_t target); }
315	STD 		{ int|sys||_lwp_wakeup(lwpid_t target); }
316	STD 		{ void *|sys||_lwp_getprivate(void); }
317	STD 		{ void|sys||_lwp_setprivate(void *ptr); }
318	STD 		{ int|sys||_lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int|sys||_lwp_detach(lwpid_t target); }
320	COMPAT_50 MODULAR { int|sys||_lwp_park(const struct timespec50 *ts, \
d662 2
a663 2
321	STD 		{ int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \
d665 1
a665 1
323	STD 		{ int|sys||_lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD 		{ int|sys||_lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD 		{ int|sys||_lwp_ctl(int features, \
d677 1
a677 1
330	STD 		{ int|sys||sa_register(sa_upcall_t new, \
d680 5
a684 5
331	STD 		{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	STD 		{ int|sys||sa_enable(void); }
333	STD 		{ int|sys||sa_setconcurrency(int concurrency); }
334	STD 		{ int|sys||sa_yield(void); }
335	STD 		{ int|sys||sa_preempt(int sa_id); }
d692 1
a692 1
340	STD 		{ int|sys||__sigaction_sigtramp(int signum, \
d696 5
a700 5
341	STD		{ int|sys||pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int|sys||pmc_control(int ctr, int op, void *args); }
343	STD 		{ int|sys||rasctl(void *addr, size_t len, int op); }
344	STD 		{ int|sys||kqueue(void); }
345	COMPAT_50 MODULAR { int|sys||kevent(int fd, \
d703 1
a703 1
			    const struct timespec50 *timeout); }
d706 1
a706 1
346	STD 		{ int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \
d708 1
a708 1
347	STD 		{ int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \
d710 1
a710 1
348	STD 		{ int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \
d712 1
a712 1
349	STD 		{ int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \
d714 1
a714 1
350	STD 		{ int|sys||sched_yield(void); }
d719 1
a719 1
354	STD 		{ int|sys||fsync_range(int fd, int flags, off_t start, \
d721 2
a722 2
355	STD 		{ int|sys||uuidgen(struct uuid *store, int count); }
356	STD 		{ int|sys||getvfsstat(struct statvfs *buf, \
d724 1
a724 1
357	STD 	RUMP	{ int|sys||statvfs1(const char *path, \
d726 1
a726 1
358	STD 		{ int|sys||fstatvfs1(int fd, struct statvfs *buf, \
d728 1
a728 1
359	COMPAT_30 MODULAR { int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \
d730 1
a730 1
360	STD 		{ int|sys||extattrctl(const char *path, int cmd, \
d733 1
a733 1
361	STD 		{ int|sys||extattr_set_file(const char *path, \
d736 1
a736 1
362	STD 		{ ssize_t|sys||extattr_get_file(const char *path, \
d739 1
a739 1
363	STD 		{ int|sys||extattr_delete_file(const char *path, \
d741 1
a741 1
364	STD 		{ int|sys||extattr_set_fd(int fd, \
d744 1
a744 1
365	STD 		{ ssize_t|sys||extattr_get_fd(int fd, \
d747 1
a747 1
366	STD 		{ int|sys||extattr_delete_fd(int fd, \
d749 1
a749 1
367	STD 		{ int|sys||extattr_set_link(const char *path, \
d752 1
a752 1
368	STD 		{ ssize_t|sys||extattr_get_link(const char *path, \
d755 1
a755 1
369	STD 		{ int|sys||extattr_delete_link(const char *path, \
d757 1
a757 1
370	STD 		{ ssize_t|sys||extattr_list_fd(int fd, \
d759 1
a759 1
371	STD 		{ ssize_t|sys||extattr_list_file(const char *path, \
d761 1
a761 1
372	STD 		{ ssize_t|sys||extattr_list_link(const char *path, \
d763 2
a764 2
373	COMPAT_50 MODULAR { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec50 *ts, \
d766 3
a768 3
374	COMPAT_50 MODULAR { int|sys||pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec50 *ts, const sigset_t *mask); }
375	STD 		{ int|sys||setxattr(const char *path, \
d771 1
a771 1
376	STD 		{ int|sys||lsetxattr(const char *path, \
d774 1
a774 1
377	STD 		{ int|sys||fsetxattr(int fd, \
d777 1
a777 1
378	STD 		{ int|sys||getxattr(const char *path, \
d779 1
a779 1
379	STD 		{ int|sys||lgetxattr(const char *path, \
d781 1
a781 1
380	STD 		{ int|sys||fgetxattr(int fd, \
d783 1
a783 1
381	STD 		{ int|sys||listxattr(const char *path, \
d785 1
a785 1
382	STD 		{ int|sys||llistxattr(const char *path, \
d787 1
a787 1
383	STD 		{ int|sys||flistxattr(int fd, \
d789 1
a789 1
384	STD 		{ int|sys||removexattr(const char *path, \
d791 1
a791 1
385	STD 		{ int|sys||lremovexattr(const char *path, \
d793 1
a793 1
386	STD 		{ int|sys||fremovexattr(int fd, \
d795 4
a798 4
387	COMPAT_50 MODULAR { int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR { int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR { int|sys|30|lstat(const char *path, struct stat30 *ub); }
390	STD 		{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d800 5
a804 5
392	COMPAT_30 MODULAR { int|sys|30|fhstat(const struct compat_30_fhandle \
			    *fhp, struct stat30 *sb); }
393	COMPAT_50 MODULAR { int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); }
394	STD	 RUMP	{ int|sys|30|socket(int domain, int type, int protocol); }
395	STD 	 RUMP	{ int|sys|30|getfh(const char *fname, void *fhp, \
d806 1
a806 1
396	STD 		{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d808 1
a808 1
397	STD 		{ int|sys|40|fhstatvfs1(const void *fhp, \
d810 2
a811 2
398	COMPAT_50 MODULAR { int|sys|40|fhstat(const void *fhp, \
			    size_t fh_size, struct stat30 *sb); }
d814 9
a822 9
399	STD MODULAR 	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR 	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR 	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR 	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR 	{ int|sys||aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR { int|sys||aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec50 *timeout); }
405	STD MODULAR 	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR 	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
d829 1
a829 1
410	STD 		{ int|sys|50|mount(const char *type, \
d832 1
a832 1
411	STD 		{ void *|sys||mremap(void *old_address, size_t old_size, \
d836 3
a838 3
412	STD 		{ int|sys||pset_create(psetid_t *psid); }
413	STD 		{ int|sys||pset_destroy(psetid_t psid); }
414	STD 		{ int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \
d840 1
a840 1
415	STD 		{ int|sys||_pset_bind(idtype_t idtype, id_t first_id, \
d842 1
a842 1
416	STD 		{ int|sys|50|posix_fadvise(int fd, int pad, \
a843 96
417	STD 		{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
418	STD 		{ int|sys|50|gettimeofday(struct timeval *tp, \
			    void *tzp); }
419	STD 		{ int|sys|50|settimeofday(const struct timeval *tv, \
			    const void *tzp); }
420	STD  RUMP	{ int|sys|50|utimes(const char *path, \
			    const struct timeval *tptr); }
421	STD		{ int|sys|50|adjtime(const struct timeval *delta, \
			    struct timeval *olddelta); }
#if defined(LFS) || !defined(_KERNEL)
422	STD		{ int|sys|50|lfs_segwait(fsid_t *fsidp, \
			    struct timeval *tv); }
#else
422	EXCL		__lfs_segwait50
#endif
423	STD 		{ int|sys|50|futimes(int fd, \
			    const struct timeval *tptr); }
424	STD  RUMP 	{ int|sys|50|lutimes(const char *path, \
			    const struct timeval *tptr); }
425	STD		{ int|sys|50|setitimer(int which, \
			    const struct itimerval *itv, \
			    struct itimerval *oitv); }
426	STD		{ int|sys|50|getitimer(int which, \
			    struct itimerval *itv); }
427	STD 		{ int|sys|50|clock_gettime(clockid_t clock_id, \
			    struct timespec *tp); }
428	STD 		{ int|sys|50|clock_settime(clockid_t clock_id, \
			    const struct timespec *tp); }
429	STD 		{ int|sys|50|clock_getres(clockid_t clock_id, \
			    struct timespec *tp); }
430	STD 		{ int|sys|50|nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
431	STD 		{ int|sys|50|__sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, \
			    struct timespec *timeout); }
432	STD 		{ int|sys|50|mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
433	STD 		{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
434	STD 		{ int|sys|50|_lwp_park(const struct timespec *ts, \
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
435	STD 		{ int|sys|50|kevent(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
			    const struct timespec *timeout); }
436	STD 		{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
437	STD 		{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
438	STD MODULAR	{ int|sys|50|aio_suspend( \
			    const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
439	STD  RUMP	{ int|sys|50|stat(const char *path, struct stat *ub); }
440	STD 		{ int|sys|50|fstat(int fd, struct stat *sb); }
441	STD  RUMP	{ int|sys|50|lstat(const char *path, struct stat *ub); }
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
442	STD 		{ int|sys|50|__semctl(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
#else
442	EXCL		____semctl50
#endif
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
443	STD 		{ int|sys|50|shmctl(int shmid, int cmd, \
			    struct shmid_ds *buf); }
#else
443	EXCL 		____shmctl50
#endif
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
444	STD 		{ int|sys|50|msgctl(int msqid, int cmd, \
			    struct msqid_ds *buf); }
#else
444	EXCL 		____msgctl50
#endif
445	STD 		{ int|sys|50|getrusage(int who, struct rusage *rusage); }
446	STD		{ int|sys|50|timer_settime(timer_t timerid, \
			    int flags, const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
447	STD		{ int|sys|50|timer_gettime(timer_t timerid, struct \
			    itimerspec *value); }
#if defined(NTP) || !defined(_KERNEL_OPT)
448	STD		{ int|sys|50|ntp_gettime(struct ntptimeval *ntvp); }
#else
448	EXCL		___ntp_gettime50
#endif
449	STD 		{ int|sys|50|wait4(int pid, int *status, \
				    int options, struct rusage *rusage); }
450	STD  RUMP	{ int|sys|50|mknod(const char *path, mode_t mode, \
			    dev_t dev); }
451	STD	 	{ int|sys|50|fhstat(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
@


1.211.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.211.2.1 2009/01/19 13:19:39 skrll Exp $
a42 1
#include "opt_modular.h"
d100 1
a100 1
27	STD 	RUMP	{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
d102 1
a102 1
28	STD 	RUMP	{ ssize_t|sys||sendmsg(int s, \
d104 1
a104 1
29	STD 	RUMP	{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
d109 1
a109 1
31	STD	RUMP	{ int|sys||getpeername(int fdes, struct sockaddr *asa, \
d111 1
a111 1
32	STD	RUMP	{ int|sys||getsockname(int fdes, struct sockaddr *asa, \
d259 1
a259 1
133	STD 	 RUMP	{ ssize_t|sys||sendto(int s, const void *buf, \
d262 2
a263 2
134	STD	 RUMP	{ int|sys||shutdown(int s, int how); }
135	STD	 RUMP	{ int|sys||socketpair(int domain, int type, \
@


1.211.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.211.2.2 2009/03/03 18:32:56 skrll Exp $
d114 1
a114 1
33	STD 	RUMP	{ int|sys||access(const char *path, int flags); }
d116 1
a116 1
35	STD 	RUMP	{ int|sys||fchflags(int fd, u_long flags); }
d124 1
a124 1
41	STD 	RUMP	{ int|sys||dup(int fd); }
d147 1
a147 1
56	STD 	 RUMP	{ int|sys||revoke(const char *path); }
d155 1
a155 1
61	STD 	 RUMP	{ int|sys||chroot(const char *path); }
d197 1
a197 1
90	STD 	 RUMP	{ int|sys||dup2(int from, int to); }
d199 1
a199 1
92	STD	RUMP	{ int|sys||fcntl(int fd, int cmd, ... void *arg); }
d241 1
a241 1
120	STD 	RUMP	{ ssize_t|sys||readv(int fd, \
d243 1
a243 1
121	STD 	RUMP	{ ssize_t|sys||writev(int fd, \
d247 2
a248 2
123	STD 	 RUMP	{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD 	 RUMP	{ int|sys||fchmod(int fd, mode_t mode); }
d258 1
a258 1
131	STD 	 RUMP	{ int|sys||flock(int fd, int how); }
d390 1
a390 1
199	STD 	 RUMP	{ off_t|sys||lseek(int fd, int pad, off_t offset, \
d394 1
a394 1
201	STD 	 RUMP	{ int|sys||ftruncate(int fd, int pad, off_t length); }
d404 2
a405 2
208	STD	 RUMP	{ int|sys||reboot(int opt, char *bootstr); }
209	STD 	 RUMP	{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d481 1
a481 1
241	STD 	 RUMP	{ int|sys||fdatasync(int fd); }
d571 1
a571 1
297	STD 	 RUMP	{ int|sys||fchroot(int fd); }
d654 1
a654 1
344	STD	RUMP	{ int|sys||kqueue(void); }
d674 1
a674 1
354	STD	RUMP	{ int|sys||fsync_range(int fd, int flags, off_t start, \
d677 1
a677 1
356	STD 	RUMP	{ int|sys||getvfsstat(struct statvfs *buf, \
d681 1
a681 1
358	STD 	RUMP	{ int|sys||fstatvfs1(int fd, struct statvfs *buf, \
d685 1
a685 1
360	STD 	RUMP	{ int|sys||extattrctl(const char *path, int cmd, \
d688 1
a688 1
361	STD 	RUMP	{ int|sys||extattr_set_file(const char *path, \
d691 1
a691 1
362	STD 	RUMP	{ ssize_t|sys||extattr_get_file(const char *path, \
d694 1
a694 1
363	STD 	RUMP	{ int|sys||extattr_delete_file(const char *path, \
d696 1
a696 1
364	STD 	RUMP	{ int|sys||extattr_set_fd(int fd, \
d699 1
a699 1
365	STD 	RUMP	{ ssize_t|sys||extattr_get_fd(int fd, \
d702 1
a702 1
366	STD 	RUMP	{ int|sys||extattr_delete_fd(int fd, \
d704 1
a704 1
367	STD 	RUMP	{ int|sys||extattr_set_link(const char *path, \
d707 1
a707 1
368	STD 	RUMP	{ ssize_t|sys||extattr_get_link(const char *path, \
d710 1
a710 1
369	STD 	RUMP	{ int|sys||extattr_delete_link(const char *path, \
d712 1
a712 1
370	STD 	RUMP	{ ssize_t|sys||extattr_list_fd(int fd, \
d714 1
a714 1
371	STD 	RUMP	{ ssize_t|sys||extattr_list_file(const char *path, \
d716 1
a716 1
372	STD 	RUMP	{ ssize_t|sys||extattr_list_link(const char *path, \
d723 1
a723 1
375	STD 	RUMP	{ int|sys||setxattr(const char *path, \
d726 1
a726 1
376	STD 	RUMP	{ int|sys||lsetxattr(const char *path, \
d729 1
a729 1
377	STD 	RUMP	{ int|sys||fsetxattr(int fd, \
d732 1
a732 1
378	STD 	RUMP	{ int|sys||getxattr(const char *path, \
d734 1
a734 1
379	STD 	RUMP	{ int|sys||lgetxattr(const char *path, \
d736 1
a736 1
380	STD 	RUMP	{ int|sys||fgetxattr(int fd, \
d738 1
a738 1
381	STD 	RUMP	{ int|sys||listxattr(const char *path, \
d740 1
a740 1
382	STD 	RUMP	{ int|sys||llistxattr(const char *path, \
d742 1
a742 1
383	STD 	RUMP	{ int|sys||flistxattr(int fd, \
d744 1
a744 1
384	STD 	RUMP	{ int|sys||removexattr(const char *path, \
d746 1
a746 1
385	STD 	RUMP	{ int|sys||lremovexattr(const char *path, \
d748 1
a748 1
386	STD 	RUMP	{ int|sys||fremovexattr(int fd, \
d753 1
a753 1
390	STD 	RUMP	{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d784 1
a784 1
410	STD  RUMP	{ int|sys|50|mount(const char *type, \
d799 1
a799 1
417	STD  RUMP	{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
d815 1
a815 1
423	STD  RUMP	{ int|sys|50|futimes(int fd, \
d845 1
a845 1
435	STD	RUMP	{ int|sys|50|kevent(int fd, \
d849 1
a849 1
436	STD 	RUMP	{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
d852 1
a852 1
437	STD 	RUMP	{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
d858 1
a858 1
440	STD  RUMP	{ int|sys|50|fstat(int fd, struct stat *sb); }
d893 1
a893 1
451	STD  RUMP 	{ int|sys|50|fhstat(const void *fhp, \
@


1.210
log
@Mark a few network-related calls as RUMP (needs more work)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.209 2008/10/15 06:51:20 wrstuden Exp $
d159 1
a159 1
54	STD 		{ int sys_ioctl(int fd, \
@


1.209
log
@Merge wrstuden-revivesa into HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.208 2008/08/01 19:32:35 pooka Exp $
d221 1
a221 1
98	STD		{ int sys_connect(int s, const struct sockaddr *name, \
d234 1
a234 1
105	STD		{ int sys_setsockopt(int s, int level, int name, \
d253 1
a253 1
118	STD		{ int sys_getsockopt(int s, int level, int name, \
d803 1
a803 1
394	STD		{ int sys___socket30(int domain, int type, int protocol); }
@


1.208
log
@rumpify sys___sysctl
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.207 2008/07/16 15:42:54 pooka Exp $
d676 5
a680 3
; Obsolete SA system calls.  Must remain until libc's major version is bumped.
330	STD 		{ int sys_sa_register(void); }
331	STD 		{ int sys_sa_stacks(void); }
d682 1
a682 1
333	STD 		{ int sys_sa_setconcurrency(void); }
d684 5
a688 2
335	STD 		{ int sys_sa_preempt(void); }
336	STD 		{ int sys_sa_unblockyield(void); }
@


1.207
log
@rumpalooza sys_fsync
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.206 2008/07/07 09:01:40 pooka Exp $
d414 1
a414 1
202	STD 		{ int sys___sysctl(const int *name, u_int namelen, \
@


1.206
log
@Expose utimes() and lutimes() to rump.

from Arnaud Ysmal
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.205 2008/07/01 13:03:08 pooka Exp $
d218 1
a218 1
95	STD 		{ int sys_fsync(int fd); }
@


1.206.2.1
log
@file syscalls.master was added on branch haad-dm on 2008-10-19 22:17:28 +0000
@
text
@d1 838
@


1.206.2.2
log
@Sync with HEAD.
@
text
@a0 843
	$NetBSD: syscalls.master,v 1.206.2.1 2008/10/19 22:17:28 haad Exp $

;	@@(#)syscalls.master	8.2 (Berkeley) 1/13/94

; NetBSD system call name/number "master" file.
; (See syscalls.conf to see what it is processed into.)
;
; Fields: number type [type-dependent ...]
;	number	system call number, must be in order
;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
;		the compatibility options defined in syscalls.conf.
;
; Optional fields are specified after the type field
; (NOTE! they must be specified in this order):
;     RUMP:	the system call can be called directly from rumps
;
; types:
;	STD	always included
;	OBSOL	obsolete, not included in system
;	IGNORED	syscall is a null op, but always succeeds
;	UNIMPL	unimplemented, not included in system
;	EXCL	implemented, but not included in system
;	NODEF	included, but don't define the syscall number
;	NOARGS	included, but don't define the syscall args structure
;	INDIR	included, but don't define the syscall args structure,
;		and allow it to be "really" varargs.
;
; The compat options are defined in the syscalls.conf file, and the
; compat option name is prefixed to the syscall name.  Other than
; that, they're like NODEF (for 'compat' options), or STD (for
; 'libcompat' options).
;
; The type-dependent arguments are as follows:
; For STD, NODEF, NOARGS, and compat syscalls:
;	{ pseudo-proto } [alias]
; For other syscalls:
;	[comment]
;
; #ifdef's, etc. may be included, and are copied to the output files.
; #include's are copied to the syscall names and switch definition files only.

#include "opt_nfsserver.h"
#include "opt_ntp.h"
#include "opt_compat_netbsd.h"
#include "opt_sysv.h"
#include "opt_compat_43.h"
#include "opt_posix.h"

#include "fs_lfs.h"
#include "fs_nfs.h"

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/sched.h>
#include <sys/syscallargs.h>

%%

; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.

0	INDIR		{ int sys_syscall(int code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
1	STD 		{ void sys_exit(int rval); }
2	STD 		{ int sys_fork(void); }
3	STD 	 RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t sys_write(int fd, const void *buf, \
			    size_t nbyte); }
5	STD 	 RUMP	{ int sys_open(const char *path, \
			    int flags, ... mode_t mode); }
6	STD 	 RUMP	{ int sys_close(int fd); }
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
			    struct rusage *rusage); }
8	COMPAT_43 	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD 	 RUMP	{ int sys_link(const char *path, const char *link); }
10	STD 	 RUMP	{ int sys_unlink(const char *path); }
11	OBSOL		execv
12	STD 	 RUMP	{ int sys_chdir(const char *path); }
13	STD 	 RUMP	{ int sys_fchdir(int fd); }
14	STD 	 RUMP	{ int sys_mknod(const char *path, mode_t mode, \
			    dev_t dev); }
15	STD 	 RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int sys_chown(const char *path, uid_t uid, \
			    gid_t gid); }
17	STD 		{ int sys_obreak(char *nsize); } break
18	COMPAT_20 	{ int sys_getfsstat(struct statfs12 *buf, \
			    long bufsize, int flags); }
19	COMPAT_43 	{ long sys_lseek(int fd, long offset, int whence); } \
			    olseek
#ifdef COMPAT_43
20	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
#else
20	STD 		{ pid_t sys_getpid(void); }
#endif
21	COMPAT_40 	{ int sys_mount(const char *type, const char *path, \
			    int flags, void *data); }
22	STD 	 RUMP	{ int sys_unmount(const char *path, int flags); }
23	STD 		{ int sys_setuid(uid_t uid); }
#ifdef COMPAT_43
24	STD 		{ uid_t sys_getuid_with_euid(void); } getuid
#else
24	STD 		{ uid_t sys_getuid(void); }
#endif
25	STD 		{ uid_t sys_geteuid(void); }
26	STD 		{ int sys_ptrace(int req, pid_t pid, void *addr, \
			    int data); }
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
			    int flags); }
28	STD 		{ ssize_t sys_sendmsg(int s, \
			    const struct msghdr *msg, int flags); }
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
			    int flags, struct sockaddr *from, \
			    unsigned int *fromlenaddr); }
30	STD		{ int sys_accept(int s, struct sockaddr *name, \
			    unsigned int *anamelen); }
31	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
			    unsigned int *alen); }
32	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
			    unsigned int *alen); }
33	STD 		{ int sys_access(const char *path, int flags); }
34	STD 	 RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD 		{ int sys_fchflags(int fd, u_long flags); }
36	STD 	 RUMP	{ void sys_sync(void); }
37	STD 		{ int sys_kill(int pid, int signum); }
38	COMPAT_43 	{ int sys_stat(const char *path, struct stat43 *ub); } \
			    stat43
39	STD 		{ pid_t sys_getppid(void); }
40	COMPAT_43 	{ int sys_lstat(const char *path, \
			    struct stat43 *ub); } lstat43
41	STD 		{ int sys_dup(int fd); }
42	STD 		{ int sys_pipe(void); }
43	STD 		{ gid_t sys_getegid(void); }
44	STD 		{ int sys_profil(char *samples, size_t size, \
			    u_long offset, u_int scale); }
45	STD 		{ int sys_ktrace(const char *fname, int ops, \
			    int facs, int pid); }
46	COMPAT_13 	{ int sys_sigaction(int signum, \
			    const struct sigaction13 *nsa, \
			    struct sigaction13 *osa); } sigaction13
#ifdef COMPAT_43
47	STD 		{ gid_t sys_getgid_with_egid(void); } getgid
#else
47	STD 		{ gid_t sys_getgid(void); }
#endif
48	COMPAT_13 	{ int sys_sigprocmask(int how, \
			    int mask); } sigprocmask13
49	STD 		{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int sys___setlogin(const char *namebuf); }
51	STD 		{ int sys_acct(const char *path); }
52	COMPAT_13 	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 	{ int sys_sigaltstack( \
			    const struct sigaltstack13 *nss, \
			    struct sigaltstack13 *oss); } sigaltstack13
54	STD	RUMP	{ int sys_ioctl(int fd, \
			    u_long com, ... void *data); }
55	COMPAT_12 	{ int sys_reboot(int opt); } oreboot
56	STD 		{ int sys_revoke(const char *path); }
57	STD 	 RUMP	{ int sys_symlink(const char *path, \
			    const char *link); }
58	STD 	 RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
			    size_t count); }
59	STD 		{ int sys_execve(const char *path, \
			    char * const *argp, char * const *envp); }
60	STD 		{ mode_t sys_umask(mode_t newmask); }
61	STD 		{ int sys_chroot(const char *path); }
62	COMPAT_43 	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 	{ int sys_getkerninfo(int op, char *where, int *size, \
			    int arg); } ogetkerninfo
64	COMPAT_43 	 { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 	 { int sys_msync(void *addr, size_t len); }
; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
66	STD 		{ int sys_vfork(void); }
67	OBSOL		vread
68	OBSOL		vwrite
69	STD 		{ int sys_sbrk(intptr_t incr); }
70	STD 		{ int sys_sstk(int incr); }
71	COMPAT_43 	{ int sys_mmap(void *addr, size_t len, int prot, \
			    int flags, int fd, long pos); } ommap
72	STD 		{ int sys_ovadvise(int anom); } vadvise
73	STD 		{ int sys_munmap(void *addr, size_t len); }
74	STD 		{ int sys_mprotect(void *addr, size_t len, \
			    int prot); }
75	STD 		{ int sys_madvise(void *addr, size_t len, \
			    int behav); }
76	OBSOL		vhangup
77	OBSOL		vlimit
78	STD 		{ int sys_mincore(void *addr, size_t len, \
			    char *vec); }
79	STD 		{ int sys_getgroups(int gidsetsize, \
			    gid_t *gidset); }
80	STD 		{ int sys_setgroups(int gidsetsize, \
			    const gid_t *gidset); }
81	STD 	 	{ int sys_getpgrp(void); }
82	STD 		{ int sys_setpgid(int pid, int pgid); }
83	STD 		{ int sys_setitimer(int which, \
			    const struct itimerval *itv, \
			    struct itimerval *oitv); }
84	COMPAT_43 	{ int sys_wait(void); } owait
85	COMPAT_12 	{ int sys_swapon(const char *name); } oswapon
86	STD 		{ int sys_getitimer(int which, \
			    struct itimerval *itv); }
87	COMPAT_43 	{ int sys_gethostname(char *hostname, u_int len); } \
			    ogethostname
88	COMPAT_43 	{ int sys_sethostname(char *hostname, u_int len); } \
			    osethostname
89	COMPAT_43 	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD 		{ int sys_dup2(int from, int to); }
91	UNIMPL		getdopt
92	STD 		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD 		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
94	UNIMPL		setdopt
95	STD	RUMP 	{ int sys_fsync(int fd); }
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
97	COMPAT_30	{ int sys_socket(int domain, int type, int protocol); }
98	STD	RUMP	{ int sys_connect(int s, const struct sockaddr *name, \
			    unsigned int namelen); }
99	COMPAT_43	{ int sys_accept(int s, void *name, \
			    int *anamelen); } oaccept
100	STD 		{ int sys_getpriority(int which, id_t who); }
101	COMPAT_43 	{ int sys_send(int s, void *buf, int len, \
			    int flags); } osend
102	COMPAT_43 	{ int sys_recv(int s, void *buf, int len, \
			    int flags); } orecv
103	COMPAT_13 	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
			    sigreturn13
104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
			    unsigned int namelen); }
105	STD	RUMP	{ int sys_setsockopt(int s, int level, int name, \
			    const void *val, unsigned int valsize); }
106	STD		{ int sys_listen(int s, int backlog); }
107	OBSOL		vtimes
108	COMPAT_43 	{ int sys_sigvec(int signum, struct sigvec *nsv, \
			    struct sigvec *osv); } osigvec
109	COMPAT_43 	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 	{ int sys_sigstack(struct sigstack *nss, \
			    struct sigstack *oss); } osigstack
113	COMPAT_43 	{ int sys_recvmsg(int s, struct omsghdr *msg, \
			    int flags); } orecvmsg
114	COMPAT_43 	{ int sys_sendmsg(int s, void *msg, int flags); } \
			    osendmsg
115	OBSOL		vtrace
116	STD 		{ int sys_gettimeofday(struct timeval *tp, \
			    void *tzp); }
117	STD 		{ int sys_getrusage(int who, struct rusage *rusage); }
118	STD	RUMP	{ int sys_getsockopt(int s, int level, int name, \
			    void *val, unsigned int *avalsize); }
119	OBSOL		resuba
120	STD 		{ ssize_t sys_readv(int fd, \
			    const struct iovec *iovp, int iovcnt); }
121	STD 		{ ssize_t sys_writev(int fd, \
			    const struct iovec *iovp, int iovcnt); }
122	STD 		{ int sys_settimeofday(const struct timeval *tv, \
			    const void *tzp); }
123	STD 		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD 		{ int sys_fchmod(int fd, mode_t mode); }
125	COMPAT_43 	{ int sys_recvfrom(int s, void *buf, size_t len, \
			    int flags, void *from, int *fromlenaddr); } \
			    orecvfrom
126	STD 		{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 	{ int sys_truncate(const char *path, long length); } \
			    otruncate
130	COMPAT_43 	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD 		{ int sys_flock(int fd, int how); }
132	STD 	 RUMP	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
			    size_t len, int flags, const struct sockaddr *to, \
			    unsigned int tolen); }
134	STD		{ int sys_shutdown(int s, int how); }
135	STD		{ int sys_socketpair(int domain, int type, \
			    int protocol, int *rsv); }
136	STD 	 RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int sys_rmdir(const char *path); }
138	STD 	 RUMP	{ int sys_utimes(const char *path, \
			    const struct timeval *tptr); }
139	OBSOL		4.2 sigreturn
140	STD 		{ int sys_adjtime(const struct timeval *delta, \
			    struct timeval *olddelta); }
141	COMPAT_43	{ int sys_getpeername(int fdes, void *asa, \
			    int *alen); } ogetpeername
142	COMPAT_43 	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 	{ int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 	{ int sys_getrlimit(int which, \
			    struct orlimit *rlp); } ogetrlimit
145	COMPAT_43 	{ int sys_setrlimit(int which, \
			    const struct orlimit *rlp); } osetrlimit
146	COMPAT_43 	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD 	 	{ int sys_setsid(void); }
148	STD 		{ int sys_quotactl(const char *path, int cmd, \
			    int uid, void *arg); }
149	COMPAT_43 	{ int sys_quota(void); } oquota
150	COMPAT_43	{ int sys_getsockname(int fdec, void *asa, \
			    int *alen); } ogetsockname

; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls.  (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD...
151	UNIMPL
152	UNIMPL
153	UNIMPL
154	UNIMPL
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
155	STD 		{ int sys_nfssvc(int flag, void *argp); }
#else
155	EXCL		nfssvc
#endif
156	COMPAT_43 	 { int sys_getdirentries(int fd, char *buf, \
			    u_int count, long *basep); } ogetdirentries
157	COMPAT_20 	{ int sys_statfs(const char *path, \
			    struct statfs12 *buf); }
158	COMPAT_20 	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
159	UNIMPL
160	UNIMPL
161	COMPAT_30 	 { int sys_getfh(const char *fname, \
			    struct compat_30_fhandle *fhp); }
162	COMPAT_09 	 { int sys_getdomainname(char *domainname, int len); } \
			    ogetdomainname
163	COMPAT_09 	 { int sys_setdomainname(char *domainname, int len); } \
			    osetdomainname
164	COMPAT_09 		{ int sys_uname(struct outsname *name); } ouname
165	STD 		{ int sys_sysarch(int op, void *parms); }
166	UNIMPL
167	UNIMPL
168	UNIMPL
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
169	COMPAT_10 	{ int sys_semsys(int which, int a2, int a3, int a4, \
			    int a5); } osemsys
#else
169	EXCL		1.0 semsys
#endif
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
170	COMPAT_10 	{ int sys_msgsys(int which, int a2, int a3, int a4, \
			    int a5, int a6); } omsgsys
#else
170	EXCL		1.0 msgsys
#endif
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
171	COMPAT_10 		{ int sys_shmsys(int which, int a2, int a3, int a4); } \
			    oshmsys
#else
171	EXCL		1.0 shmsys
#endif
172	UNIMPL
173	STD 	 RUMP	{ ssize_t sys_pread(int fd, void *buf, \
			    size_t nbyte, int pad, off_t offset); }
174	STD 	 RUMP	{ ssize_t sys_pwrite(int fd, const void *buf, \
			    size_t nbyte, int pad, off_t offset); }
; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
175	COMPAT_30 	 { int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL)
176	STD 		{ int sys_ntp_adjtime(struct timex *tp); }
#else
176	EXCL		ntp_adjtime
#endif
177	UNIMPL
178	UNIMPL
179	UNIMPL
180	UNIMPL

; Syscalls 180-199 are used by/reserved for BSD
181	STD 		{ int sys_setgid(gid_t gid); }
182	STD 		{ int sys_setegid(gid_t egid); }
183	STD 		{ int sys_seteuid(uid_t euid); }
#if defined(LFS) || !defined(_KERNEL)
184	STD 		{ int sys_lfs_bmapv(fsid_t *fsidp, \
			    struct block_info *blkiov, int blkcnt); }
185	STD 		{ int sys_lfs_markv(fsid_t *fsidp, \
			    struct block_info *blkiov, int blkcnt); }
186	STD 		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD 		{ int sys_lfs_segwait(fsid_t *fsidp, \
			    struct timeval *tv); }
#else
184	EXCL		lfs_bmapv
185	EXCL		lfs_markv
186	EXCL		lfs_segclean
187	EXCL		lfs_segwait
#endif
188	COMPAT_12 	{ int sys_stat(const char *path, struct stat12 *ub); } \
			    stat12
189	COMPAT_12 	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 	{ int sys_lstat(const char *path, \
			    struct stat12 *ub); } lstat12
191	STD 		{ long sys_pathconf(const char *path, int name); }
192	STD 		{ long sys_fpathconf(int fd, int name); }
193	UNIMPL
194	STD 		{ int sys_getrlimit(int which, \
			    struct rlimit *rlp); }
195	STD 		{ int sys_setrlimit(int which, \
			    const struct rlimit *rlp); }
196	COMPAT_12 	{ int sys_getdirentries(int fd, char *buf, \
			    u_int count, long *basep); }
197	STD 		{ void *sys_mmap(void *addr, size_t len, int prot, \
			    int flags, int fd, long pad, off_t pos); }
198	INDIR		{ quad_t sys___syscall(quad_t code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
199	STD 		{ off_t sys_lseek(int fd, int pad, off_t offset, \
			    int whence); }
200	STD 	 RUMP	{ int sys_truncate(const char *path, int pad, \
			    off_t length); }
201	STD 		{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD	 RUMP 	{ int sys___sysctl(const int *name, u_int namelen, \
			    void *old, size_t *oldlenp, const void *new, \
			    size_t newlen); }
203	STD 		{ int sys_mlock(const void *addr, size_t len); }
204	STD 		{ int sys_munlock(const void *addr, size_t len); }
205	STD 		{ int sys_undelete(const char *path); }
206	STD 		{ int sys_futimes(int fd, \
			    const struct timeval *tptr); }
207	STD 		{ pid_t sys_getpgid(pid_t pid); }
208	STD 		{ int sys_reboot(int opt, char *bootstr); }
209	STD 		{ int sys_poll(struct pollfd *fds, u_int nfds, \
			    int timeout); }
;
; Syscalls 210-219 are reserved for dynamically loaded syscalls
;
#if defined(LKM) || !defined(_KERNEL)
210	NODEF		{ int sys_lkmnosys(void); }
211	NODEF		{ int sys_lkmnosys(void); }
212	NODEF		{ int sys_lkmnosys(void); }
213	NODEF		{ int sys_lkmnosys(void); }
214	NODEF		{ int sys_lkmnosys(void); }
215	NODEF		{ int sys_lkmnosys(void); }
216	NODEF		{ int sys_lkmnosys(void); }
217	NODEF		{ int sys_lkmnosys(void); }
218	NODEF		{ int sys_lkmnosys(void); }
219	NODEF		{ int sys_lkmnosys(void); }
#else	/* !LKM */
210	EXCL		lkmnosys
211	EXCL		lkmnosys
212	EXCL		lkmnosys
213	EXCL		lkmnosys
214	EXCL		lkmnosys
215	EXCL		lkmnosys
216	EXCL		lkmnosys
217	EXCL		lkmnosys
218	EXCL		lkmnosys
219	EXCL		lkmnosys
#endif	/* !LKM */
; System calls 220-300 are reserved for use by NetBSD
#if defined(SYSVSEM) || !defined(_KERNEL)
220	COMPAT_14 	{ int sys___semctl(int semid, int semnum, int cmd, \
			    union __semun *arg); }
221	STD 		{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD 		{ int sys_semop(int semid, struct sembuf *sops, \
			    size_t nsops); }
223	STD 		{ int sys_semconfig(int flag); }
#else
220	EXCL		compat_14_semctl
221	EXCL		semget
222	EXCL		semop
223	EXCL		semconfig
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
224	COMPAT_14 	{ int sys_msgctl(int msqid, int cmd, \
			    struct msqid_ds14 *buf); }
225	STD 		{ int sys_msgget(key_t key, int msgflg); }
226	STD 		{ int sys_msgsnd(int msqid, const void *msgp, \
			    size_t msgsz, int msgflg); }
227	STD 		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
			    size_t msgsz, long msgtyp, int msgflg); }
#else
224	EXCL 		compat_14_msgctl
225	EXCL 		msgget
226	EXCL 		msgsnd
227	EXCL 		msgrcv
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
228	STD 		{ void *sys_shmat(int shmid, const void *shmaddr, \
			    int shmflg); }
229	COMPAT_14 	{ int sys_shmctl(int shmid, int cmd, \
			    struct shmid_ds14 *buf); }
230	STD 		{ int sys_shmdt(const void *shmaddr); }
231	STD 		{ int sys_shmget(key_t key, size_t size, int shmflg); }
#else
228	EXCL		shmat
229	EXCL		compat_14_shmctl
230	EXCL		shmdt
231	EXCL		shmget
#endif
232	STD 		{ int sys_clock_gettime(clockid_t clock_id, \
			    struct timespec *tp); }
233	STD 		{ int sys_clock_settime(clockid_t clock_id, \
			    const struct timespec *tp); }
234	STD 		{ int sys_clock_getres(clockid_t clock_id, \
			    struct timespec *tp); }
235	STD 		{ int sys_timer_create(clockid_t clock_id, \
			    struct sigevent *evp, timer_t *timerid); }
236	STD 		{ int sys_timer_delete(timer_t timerid); }
237	STD 		{ int sys_timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
238	STD 		{ int sys_timer_gettime(timer_t timerid, struct \
			    itimerspec *value); }
239	STD 		{ int sys_timer_getoverrun(timer_t timerid); }
;
; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
;
240	STD 		{ int sys_nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
241	STD 		{ int sys_fdatasync(int fd); }
242	STD 		{ int sys_mlockall(int flags); }
243	STD 		{ int sys_munlockall(void); }
244	STD 		{ int sys___sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, \
			    struct timespec *timeout); }
245	UNIMPL		sys_sigqueue
246	STD 		{ int sys_modctl(int cmd, void *arg); }
#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
247	STD 		{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD 		{ int sys__ksem_open(const char *name, int oflag, \
			    mode_t mode, unsigned int value, semid_t *idp); }
249	STD 		{ int sys__ksem_unlink(const char *name); }
250	STD 		{ int sys__ksem_close(semid_t id); }
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
			    unsigned int *value); }
255	STD 		{ int sys__ksem_destroy(semid_t id); }
256	UNIMPL		sys__ksem_timedwait
#else
247	EXCL		sys__ksem_init
248	EXCL		sys__ksem_open
249	EXCL 		sys__ksem_unlink
250	EXCL		sys__ksem_close
251	EXCL		sys__ksem_post
252	EXCL		sys__ksem_wait
253	EXCL		sys__ksem_trywait
254	EXCL		sys__ksem_getvalue
255	EXCL		sys__ksem_destroy
256	UNIMPL		sys__ksem_timedwait
#endif
257	STD 		{ mqd_t sys_mq_open(const char * name, int oflag, \
			    mode_t mode, struct mq_attr *attr); }
258	STD 		{ int sys_mq_close(mqd_t mqdes); }
259	STD 		{ int sys_mq_unlink(const char *name); }
260	STD 		{ int sys_mq_getattr(mqd_t mqdes, \
			    struct mq_attr *mqstat); }
261	STD 		{ int sys_mq_setattr(mqd_t mqdes, \
			    const struct mq_attr *mqstat, \
			    struct mq_attr *omqstat); }
262	STD 		{ int sys_mq_notify(mqd_t mqdes, \
			    const struct sigevent *notification); }
263	STD 		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
			    size_t msg_len, unsigned msg_prio); }
264	STD 		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
			    size_t msg_len, unsigned *msg_prio); }
265	STD 		{ int sys_mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
266	STD 		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
267	UNIMPL
268	UNIMPL
269	UNIMPL
270	STD 		{ int sys___posix_rename(const char *from, \
			    const char *to); }
271	STD 		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 		{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD 		{ int sys_minherit(void *addr, size_t len, \
			    int inherit); }
274	STD 	 RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int sys_lchown(const char *path, uid_t uid, \
			    gid_t gid); }
276	STD 	 RUMP	{ int sys_lutimes(const char *path, \
			    const struct timeval *tptr); }
277	STD 		{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 	{ int sys___lstat13(const char *path, struct stat13 *ub); }
281	STD 		{ int sys___sigaltstack14( \
			    const struct sigaltstack *nss, \
			    struct sigaltstack *oss); }
282	STD 		{ int sys___vfork14(void); }
283	STD 		{ int sys___posix_chown(const char *path, uid_t uid, \
			    gid_t gid); }
284	STD 		{ int sys___posix_fchown(int fd, uid_t uid, \
			    gid_t gid); }
285	STD 		{ int sys___posix_lchown(const char *path, uid_t uid, \
			    gid_t gid); }
286	STD 		{ pid_t sys_getsid(pid_t pid); }
287	STD 		{ pid_t sys___clone(int flags, void *stack); }
288	STD 		{ int sys_fktrace(int fd, int ops, \
			    int facs, int pid); }
289	STD 		{ ssize_t sys_preadv(int fd, \
			    const struct iovec *iovp, int iovcnt, \
			    int pad, off_t offset); }
290	STD 		{ ssize_t sys_pwritev(int fd, \
			    const struct iovec *iovp, int iovcnt, \
			    int pad, off_t offset); }
291	COMPAT_16 	{ int sys___sigaction14(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa); }
292	STD 		{ int sys___sigpending14(sigset_t *set); }
293	STD 		{ int sys___sigprocmask14(int how, \
			    const sigset_t *set, \
			    sigset_t *oset); }
294	STD 		{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 	{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
296	STD 		{ int sys___getcwd(char *bufp, size_t length); }
297	STD 		{ int sys_fchroot(int fd); }
298	COMPAT_30 	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
			    struct stat13 *sb); }
300	COMPAT_20 	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
			    struct statfs12 *buf); }
#if defined(SYSVSEM) || !defined(_KERNEL)
301	STD 		{ int sys_____semctl13(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
#else
301	EXCL		____semctl13
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
302	STD 		{ int sys___msgctl13(int msqid, int cmd, \
			    struct msqid_ds *buf); }
#else
302	EXCL		__msgctl13
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
303	STD 		{ int sys___shmctl13(int shmid, int cmd, \
			    struct shmid_ds *buf); }
#else
303	EXCL		__shmctl13
#endif
304	STD 	 RUMP	{ int sys_lchflags(const char *path, u_long flags); }
305	STD 		{ int sys_issetugid(void); }
306	STD 		{ int sys_utrace(const char *label, void *addr, \
				size_t len); }
307	STD 		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD 		{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD 		{ int sys__lwp_create(const struct __ucontext *ucp, \
				u_long flags, lwpid_t *new_lwp); }
310	STD 		{ int sys__lwp_exit(void); }
311	STD 		{ lwpid_t sys__lwp_self(void); }
312	STD 		{ int sys__lwp_wait(lwpid_t wait_for, \
				lwpid_t *departed); }
313	STD 		{ int sys__lwp_suspend(lwpid_t target); }
314	STD 		{ int sys__lwp_continue(lwpid_t target); }
315	STD 		{ int sys__lwp_wakeup(lwpid_t target); }
316	STD 		{ void *sys__lwp_getprivate(void); }
317	STD 		{ void sys__lwp_setprivate(void *ptr); }
318	STD 		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int sys__lwp_detach(lwpid_t target); }
320	STD 		{ int sys__lwp_park(const struct timespec *ts, \
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
321	STD 		{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
				size_t ntargets, const void *hint); }
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
				const char *name); }
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
				char *name, size_t len); }
325	STD 		{ int sys__lwp_ctl(int features, \
				struct lwpctl **address); }
; Syscalls 326-339 reserved for LWP syscalls.
326	UNIMPL
327	UNIMPL
328	UNIMPL
329	UNIMPL
; SA system calls.
330	STD 		{ int sys_sa_register(sa_upcall_t new, \
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
331	STD 		{ int sys_sa_stacks(int num, stack_t *stacks); }
332	STD 		{ int sys_sa_enable(void); }
333	STD 		{ int sys_sa_setconcurrency(int concurrency); }
334	STD 		{ int sys_sa_yield(void); }
335	STD 		{ int sys_sa_preempt(int sa_id); }
336	OBSOL 		sys_sa_unblockyield
;
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
;
337	UNIMPL
338	UNIMPL
339	UNIMPL
340	STD 		{ int sys___sigaction_sigtramp(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa, \
			    const void *tramp, int vers); }
341	STD 		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD 		{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD 		{ int sys_rasctl(void *addr, size_t len, int op); }
344	STD 		{ int sys_kqueue(void); }
345	STD 		{ int sys_kevent(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
			    const struct timespec *timeout); }

; Scheduling system calls.
346	STD 		{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
			    int policy, const struct sched_param *params); }
347	STD 		{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
			    int *policy, struct sched_param *params); }
348	STD 		{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, const cpuset_t *cpuset); }
349	STD 		{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, cpuset_t *cpuset); }
350	STD 		{ int sys_sched_yield(void); }
351	UNIMPL
352	UNIMPL
353	UNIMPL

354	STD 		{ int sys_fsync_range(int fd, int flags, off_t start, \
			    off_t length); }
355	STD 		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD 		{ int sys_getvfsstat(struct statvfs *buf, \
			    size_t bufsize, int flags); }
357	STD 		{ int sys_statvfs1(const char *path, \
			    struct statvfs *buf, int flags); }
358	STD 		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
			    int flags); }
359	COMPAT_30 		{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
			    struct statvfs *buf, int flags); }
360	STD 		{ int sys_extattrctl(const char *path, int cmd, \
			    const char *filename, int attrnamespace, \
			    const char *attrname); }
361	STD 		{ int sys_extattr_set_file(const char *path, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
362	STD 		{ ssize_t sys_extattr_get_file(const char *path, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
363	STD 		{ int sys_extattr_delete_file(const char *path, \
			    int attrnamespace, const char *attrname); }
364	STD 		{ int sys_extattr_set_fd(int fd, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
365	STD 		{ ssize_t sys_extattr_get_fd(int fd, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
366	STD 		{ int sys_extattr_delete_fd(int fd, \
			    int attrnamespace, const char *attrname); }
367	STD 		{ int sys_extattr_set_link(const char *path, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
368	STD 		{ ssize_t sys_extattr_get_link(const char *path, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
369	STD 		{ int sys_extattr_delete_link(const char *path, \
			    int attrnamespace, const char *attrname); }
370	STD 		{ ssize_t sys_extattr_list_fd(int fd, \
			    int attrnamespace, void *data, size_t nbytes); }
371	STD 		{ ssize_t sys_extattr_list_file(const char *path, \
			    int attrnamespace, void *data, size_t nbytes); }
372	STD 		{ ssize_t sys_extattr_list_link(const char *path, \
			    int attrnamespace, void *data, size_t nbytes); }
373	STD 		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
374	STD 		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
375	STD 		{ int sys_setxattr(const char *path, \
			    const char *name, void *value, size_t size, \
			    int flags); }
376	STD 		{ int sys_lsetxattr(const char *path, \
			    const char *name, void *value, size_t size, \
			    int flags); }
377	STD 		{ int sys_fsetxattr(int fd, \
			    const char *name, void *value, size_t size, \
			    int flags); }
378	STD 		{ int sys_getxattr(const char *path, \
			    const char *name, void *value, size_t size); }
379	STD 		{ int sys_lgetxattr(const char *path, \
			    const char *name, void *value, size_t size); }
380	STD 		{ int sys_fgetxattr(int fd, \
			    const char *name, void *value, size_t size); }
381	STD 		{ int sys_listxattr(const char *path, \
			    char *list, size_t size); }
382	STD 		{ int sys_llistxattr(const char *path, \
			    char *list, size_t size); }
383	STD 		{ int sys_flistxattr(int fd, \
			    char *list, size_t size); }
384	STD 		{ int sys_removexattr(const char *path, \
			    const char *name); }
385	STD 		{ int sys_lremovexattr(const char *path, \
			    const char *name); }
386	STD 		{ int sys_fremovexattr(int fd, \
			    const char *name); }
387	STD 	 RUMP	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD 		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD 	 RUMP	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD 		{ int sys___getdents30(int fd, char *buf, size_t count); }
391	IGNORED		old posix_fadvise
392	COMPAT_30 	{ int sys___fhstat30(const struct compat_30_fhandle \
			    *fhp, struct stat *sb); }
393	STD 		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
394	STD	 RUMP	{ int sys___socket30(int domain, int type, int protocol); }
395	STD 		{ int sys___getfh30(const char *fname, void *fhp, \
			    size_t *fh_size); }
396	STD 		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
			    int flags); }
397	STD 		{ int sys___fhstatvfs140(const void *fhp, \
			    size_t fh_size, struct statvfs *buf, int flags); }
398	STD 		{ int sys___fhstat40(const void *fhp, \
			    size_t fh_size, struct stat *sb); }

; Asynchronous I/O system calls
399	STD 		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD 		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD 		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD 		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD 		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD 		{ int sys_aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
405	STD 		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD 		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
			    int nent, struct sigevent *sig); }

407	UNIMPL
408	UNIMPL
409	UNIMPL

410	STD 		{ int sys___mount50(const char *type, \
			    const char *path, int flags, void *data, \
			    size_t data_len); }
411	STD 		{ void *sys_mremap(void *old_address, size_t old_size, \
			    void *new_address, size_t new_size, int flags); }

; Processor-sets system calls
412	STD 		{ int sys_pset_create(psetid_t *psid); }
413	STD 		{ int sys_pset_destroy(psetid_t psid); }
414	STD 		{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
			    psetid_t *opsid); }
415	STD 		{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
			    id_t second_id, psetid_t psid, psetid_t *opsid); }
416	STD 		{ int sys___posix_fadvise50(int fd, int pad, \
			    off_t offset, off_t len, int advice); }
@


1.206.2.3
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.206.2.2 2008/12/13 01:15:09 haad Exp $
d14 2
a15 3
; (NOTE! they *must* be specified in this order):
;	MODULAR:attempt to autoload system call if not present
;	RUMP:	the system call can be called directly from rumps
d42 1
d44 1
d46 2
d50 1
d79 1
a79 1
8	COMPAT_43 MODULAR { int sys_creat(const char *path, mode_t mode); } ocreat
d91 1
a91 1
18	COMPAT_20 MODULAR { int sys_getfsstat(struct statfs12 *buf, \
d93 1
a93 1
19	COMPAT_43 MODULAR { long sys_lseek(int fd, long offset, int whence); } \
d95 1
d97 4
a100 1
21	COMPAT_40 MODULAR { int sys_mount(const char *type, const char *path, \
d104 1
d106 3
d119 1
a119 1
30	STD	RUMP	{ int sys_accept(int s, struct sockaddr *name, \
d130 1
a130 1
38	COMPAT_43 MODULAR { int sys_stat(const char *path, struct stat43 *ub); } \
d133 1
a133 1
40	COMPAT_43 MODULAR { int sys_lstat(const char *path, \
d142 1
a142 1
46	COMPAT_13 MODULAR { int sys_sigaction(int signum, \
d145 1
d147 4
a150 1
48	COMPAT_13 MODULAR { int sys_sigprocmask(int how, \
d155 2
a156 2
52	COMPAT_13 MODULAR { int sys_sigpending(void); } sigpending13
53	COMPAT_13 MODULAR { int sys_sigaltstack( \
d161 1
a161 1
55	COMPAT_12 MODULAR { int sys_reboot(int opt); } oreboot
d171 2
a172 2
62	COMPAT_43 MODULAR { int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR { int sys_getkerninfo(int op, char *where, int *size, \
d174 2
a175 2
64	COMPAT_43 MODULAR { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR { int sys_msync(void *addr, size_t len); }
d182 1
a182 1
71	COMPAT_43 MODULAR { int sys_mmap(void *addr, size_t len, int prot, \
d203 2
a204 2
84	COMPAT_43 MODULAR { int sys_wait(void); } owait
85	COMPAT_12 MODULAR { int sys_swapon(const char *name); } oswapon
d207 1
a207 1
87	COMPAT_43 MODULAR { int sys_gethostname(char *hostname, u_int len); } \
d209 1
a209 1
88	COMPAT_43 MODULAR { int sys_sethostname(char *hostname, u_int len); } \
d211 1
a211 1
89	COMPAT_43 MODULAR { int sys_getdtablesize(void); } ogetdtablesize
d220 1
a220 1
97	COMPAT_30 MODULAR { int sys_socket(int domain, int type, int protocol); }
d223 1
a223 1
99	COMPAT_43 MODULAR { int sys_accept(int s, void *name, \
d226 1
a226 1
101	COMPAT_43 MODULAR { int sys_send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43 MODULAR { int sys_recv(int s, void *buf, int len, \
d230 1
a230 1
103	COMPAT_13 MODULAR { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d232 1
a232 1
104	STD	RUMP	{ int sys_bind(int s, const struct sockaddr *name, \
d236 1
a236 1
106	STD	RUMP	{ int sys_listen(int s, int backlog); }
d238 1
a238 1
108	COMPAT_43 MODULAR { int sys_sigvec(int signum, struct sigvec *nsv, \
d240 4
a243 4
109	COMPAT_43 MODULAR { int sys_sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR { int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR { int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR { int sys_sigstack(struct sigstack *nss, \
d245 1
a245 1
113	COMPAT_43 MODULAR { int sys_recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43 MODULAR { int sys_sendmsg(int s, void *msg, int flags); } \
d264 1
a264 1
125	COMPAT_43 MODULAR { int sys_recvfrom(int s, void *buf, size_t len, \
d270 1
a270 1
129	COMPAT_43 MODULAR { int sys_truncate(const char *path, long length); } \
d272 1
a272 1
130	COMPAT_43 MODULAR { int sys_ftruncate(int fd, long length); } oftruncate
d288 1
a288 1
141	COMPAT_43 MODULAR { int sys_getpeername(int fdes, void *asa, \
d290 3
a292 3
142	COMPAT_43 MODULAR { int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MODULAR { int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR { int sys_getrlimit(int which, \
d294 1
a294 1
145	COMPAT_43 MODULAR { int sys_setrlimit(int which, \
d296 1
a296 1
146	COMPAT_43 MODULAR { int sys_killpg(int pgid, int signum); } okillpg
d300 2
a301 2
149	COMPAT_43 MODULAR { int sys_quota(void); } oquota
150	COMPAT_43 MODULAR { int sys_getsockname(int fdec, void *asa, \
d312 6
a317 2
155	STD MODULAR RUMP  { int sys_nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR { int sys_getdirentries(int fd, char *buf, \
d319 1
a319 1
157	COMPAT_20 MODULAR { int sys_statfs(const char *path, \
d321 1
a321 1
158	COMPAT_20 MODULAR { int sys_fstatfs(int fd, struct statfs12 *buf); }
d324 1
a324 1
161	COMPAT_30 MODULAR { int sys_getfh(const char *fname, \
d326 1
a326 1
162	COMPAT_09 MODULAR { int sys_getdomainname(char *domainname, int len); } \
d328 1
a328 1
163	COMPAT_09 MODULAR { int sys_setdomainname(char *domainname, int len); } \
d330 1
a330 1
164	COMPAT_09 MODULAR { int sys_uname(struct outsname *name); } ouname
d336 2
a337 2
#if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
169	COMPAT_10 MODULAR { int sys_semsys(int which, int a2, int a3, int a4, \
d343 2
a344 2
#if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
170	COMPAT_10 MODULAR { int sys_msgsys(int which, int a2, int a3, int a4, \
d350 2
a351 2
#if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
171	COMPAT_10 MODULAR { int sys_shmsys(int which, int a2, int a3, int a4); } \
d362 2
a363 2
175	STD		{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL_OPT)
d391 1
a391 1
188	COMPAT_12 MODULAR { int sys_stat(const char *path, struct stat12 *ub); } \
d393 2
a394 2
189	COMPAT_12 MODULAR { int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR { int sys_lstat(const char *path, \
d403 1
a403 1
196	COMPAT_12 MODULAR { int sys_getdirentries(int fd, char *buf, \
d429 23
a451 10
210	UNIMPL
211	UNIMPL
212	UNIMPL
213	UNIMPL
214	UNIMPL
215	UNIMPL
216	UNIMPL
217	UNIMPL
218	UNIMPL
219	UNIMPL
d453 2
a454 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
220	COMPAT_14 MODULAR { int sys___semctl(int semid, int semnum, int cmd, \
d466 2
a467 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
224	COMPAT_14 MODULAR { int sys_msgctl(int msqid, int cmd, \
d480 1
a480 1
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
d483 1
a483 1
229	COMPAT_14 MODULAR { int sys_shmctl(int shmid, int cmd, \
d520 11
a530 10
246	STD 	 	{ int sys_modctl(int cmd, void *arg); }
247	STD MODULAR 	{ int sys__ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR 	{ int sys__ksem_open(const char *name, int oflag, \
			    mode_t mode, unsigned int value, intptr_t *idp); }
249	STD MODULAR 	{ int sys__ksem_unlink(const char *name); }
250	STD MODULAR 	{ int sys__ksem_close(intptr_t id); }
251	STD MODULAR 	{ int sys__ksem_post(intptr_t id); }
252	STD MODULAR 	{ int sys__ksem_wait(intptr_t id); }
253	STD MODULAR 	{ int sys__ksem_trywait(intptr_t id); }
254	STD MODULAR 	{ int sys__ksem_getvalue(intptr_t id, \
d532 1
a532 1
255	STD MODULAR 	{ int sys__ksem_destroy(intptr_t id); }
d534 12
d574 1
a574 1
272	COMPAT_30 MODULAR { int sys_getdents(int fd, char *buf, size_t count); }
d583 3
a585 3
278	COMPAT_30 MODULAR { int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR { int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR { int sys___lstat13(const char *path, struct stat13 *ub); }
d606 1
a606 1
291	COMPAT_16 MODULAR { int sys___sigaction14(int signum, \
d614 1
a614 1
295	COMPAT_16 MODULAR { int sys___sigreturn14(struct sigcontext *sigcntxp); }
d617 2
a618 2
298	COMPAT_30 MODULAR { int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR { int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 MODULAR { int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d622 1
a622 1
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
d628 1
a628 1
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
d634 1
a634 1
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
d724 1
a724 1
357	STD 	RUMP	{ int sys_statvfs1(const char *path, \
d728 1
a728 1
359	COMPAT_30 MODULAR { int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d800 1
a800 1
392	COMPAT_30 MODULAR { int sys___fhstat30(const struct compat_30_fhandle \
d804 1
a804 1
395	STD 	 RUMP	{ int sys___getfh30(const char *fname, void *fhp, \
d814 6
a819 6
399	STD MODULAR	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR	{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR	{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD MODULAR	{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD MODULAR	{ int sys_aio_suspend(const struct aiocb *const *list, \
d821 2
a822 2
405	STD MODULAR	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MODULAR	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
@


1.205
log
@Adjust rump syscalls: remove a few pointless ones and add a few
missing ones.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.204 2008/06/17 16:05:23 tsutsui Exp $
d283 1
a283 1
138	STD 		{ int sys_utimes(const char *path, \
d580 1
a580 1
276	STD 		{ int sys_lutimes(const char *path, \
@


1.204
log
@Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.203 2008/06/16 00:54:10 christos Exp $
d125 1
a125 1
33	STD 	 RUMP	{ int sys_access(const char *path, int flags); }
d127 1
a127 1
35	STD 	 RUMP	{ int sys_fchflags(int fd, u_long flags); }
d274 1
a274 1
132	STD 		{ int sys_mkfifo(const char *path, mode_t mode); }
d640 1
a640 1
304	STD 		{ int sys_lchflags(const char *path, u_long flags); }
d790 1
a790 1
387	STD 		{ int sys___stat30(const char *path, struct stat *ub); }
d792 1
a792 1
389	STD 		{ int sys___lstat30(const char *path, struct stat *ub); }
@


1.203
log
@typo
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.202 2008/06/16 00:31:17 christos Exp $
d56 1
a57 1
#include <sys/sched.h>
@


1.202
log
@adjust prototypes for the affinity calls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.201 2008/05/29 12:01:37 pooka Exp $
d57 1
a57 1
#incluse <sys/sched.h>
@


1.201
log
@Mark pread/pwrite rump syscalls.

from Arnaud Ysmal
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200 2008/04/24 11:51:19 ad Exp $
d57 1
d706 1
a706 1
			    size_t size, void *cpuset); }
d708 1
a708 1
			    size_t size, void *cpuset); }
@


1.201.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.204 2008/06/17 16:05:23 tsutsui Exp $
a55 1
#include <sys/sched.h>
d705 1
a705 1
			    size_t size, const cpuset_t *cpuset); }
d707 1
a707 1
			    size_t size, cpuset_t *cpuset); }
@


1.201.2.2
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.205 2008/07/01 13:03:08 pooka Exp $
d125 1
a125 1
33	STD 		{ int sys_access(const char *path, int flags); }
d127 1
a127 1
35	STD 		{ int sys_fchflags(int fd, u_long flags); }
d274 1
a274 1
132	STD 	 RUMP	{ int sys_mkfifo(const char *path, mode_t mode); }
d640 1
a640 1
304	STD 	 RUMP	{ int sys_lchflags(const char *path, u_long flags); }
d790 1
a790 1
387	STD 	 RUMP	{ int sys___stat30(const char *path, struct stat *ub); }
d792 1
a792 1
389	STD 	 RUMP	{ int sys___lstat30(const char *path, struct stat *ub); }
@


1.201.2.3
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.207 2008/07/16 15:42:54 pooka Exp $
d218 1
a218 1
95	STD	RUMP 	{ int sys_fsync(int fd); }
d283 1
a283 1
138	STD 	 RUMP	{ int sys_utimes(const char *path, \
d580 1
a580 1
276	STD 	 RUMP	{ int sys_lutimes(const char *path, \
@


1.200
log
@- Retire SYCALL_MPSAFE. With the exceptions of darwin and irix emulations,
  all system calls are now MPSAFE.
- Remove unneeded acquire/release of kernel_lock.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.199 2008/04/21 12:56:31 ad Exp $
d356 1
a356 1
173	STD 		{ ssize_t sys_pread(int fd, void *buf, \
d358 1
a358 1
174	STD 		{ ssize_t sys_pwrite(int fd, const void *buf, \
@


1.200.2.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200 2008/04/24 11:51:19 ad Exp $
d14 2
a15 3
; (NOTE! they *must* be specified in this order):
;	MODULAR:attempt to autoload system call if not present
;	RUMP:	the system call can be called directly from rumps
d35 1
a35 1
;	{ return_type|prefix|compat(optional)|basename(pseudo-proto); } [alias]
d42 1
a42 1
#include "opt_modular.h"
d44 1
d46 2
d50 1
a55 1
#include <sys/sched.h>
d66 1
a66 1
0	INDIR		{ int|sys||syscall(int code, \
d68 4
a71 4
1	STD 		{ void|sys||exit(int rval); }
2	STD 		{ int|sys||fork(void); }
3	STD 	 RUMP	{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t|sys||write(int fd, const void *buf, \
d73 1
a73 1
5	STD 	 RUMP	{ int|sys||open(const char *path, \
d75 6
a80 6
6	STD	 RUMP	{ int|sys||close(int fd); }
7	COMPAT_50 MODULAR { int|sys||wait4(int pid, int *status, \
			    int options, struct rusage50 *rusage); }
8	COMPAT_43 MODULAR { int|sys||creat(const char *path, mode_t mode); } ocreat
9	STD 	 RUMP	{ int|sys||link(const char *path, const char *link); }
10	STD 	 RUMP	{ int|sys||unlink(const char *path); }
d82 6
a87 6
12	STD 	 RUMP	{ int|sys||chdir(const char *path); }
13	STD 	 RUMP	{ int|sys||fchdir(int fd); }
14	COMPAT_50 MODULAR { int|sys||mknod(const char *path, mode_t mode, \
			    uint32_t dev); }
15	STD 	 RUMP	{ int|sys||chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int|sys||chown(const char *path, uid_t uid, \
d89 2
a90 2
17	STD 		{ int|sys||obreak(char *nsize); } break
18	COMPAT_20 MODULAR { int|sys||getfsstat(struct statfs12 *buf, \
d92 1
a92 1
19	COMPAT_43 MODULAR { long|sys||lseek(int fd, long offset, int whence); }\
d94 6
a99 2
20	STD 		{ pid_t|sys||getpid_with_ppid(void); } getpid
21	COMPAT_40 MODULAR { int|sys||mount(const char *type, const char *path, \
d101 9
a109 5
22	STD 	 RUMP	{ int|sys||unmount(const char *path, int flags); }
23	STD 		{ int|sys||setuid(uid_t uid); }
24	STD 		{ uid_t|sys||getuid_with_euid(void); } getuid
25	STD 		{ uid_t|sys||geteuid(void); }
26	STD 		{ int|sys||ptrace(int req, pid_t pid, void *addr, \
d111 1
a111 1
27	STD 	RUMP	{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
d113 1
a113 1
28	STD 	RUMP	{ ssize_t|sys||sendmsg(int s, \
d115 1
a115 1
29	STD 	RUMP	{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
d118 1
a118 1
30	STD	RUMP	{ int|sys||accept(int s, struct sockaddr *name, \
d120 1
a120 1
31	STD	RUMP	{ int|sys||getpeername(int fdes, struct sockaddr *asa, \
d122 1
a122 1
32	STD	RUMP	{ int|sys||getsockname(int fdes, struct sockaddr *asa, \
d124 6
a129 6
33	STD 	RUMP	{ int|sys||access(const char *path, int flags); }
34	STD 	 RUMP	{ int|sys||chflags(const char *path, u_long flags); }
35	STD 	RUMP	{ int|sys||fchflags(int fd, u_long flags); }
36	STD 	 RUMP	{ void|sys||sync(void); }
37	STD 		{ int|sys||kill(int pid, int signum); }
38	COMPAT_43 MODULAR { int|sys||stat(const char *path, struct stat43 *ub); } \
d131 2
a132 2
39	STD 		{ pid_t|sys||getppid(void); }
40	COMPAT_43 MODULAR { int|sys||lstat(const char *path, \
d134 4
a137 4
41	STD 	RUMP	{ int|sys||dup(int fd); }
42	STD 		{ int|sys||pipe(void); }
43	STD 		{ gid_t|sys||getegid(void); }
44	STD 		{ int|sys||profil(char *samples, size_t size, \
d139 1
a139 1
45	STD 		{ int|sys||ktrace(const char *fname, int ops, \
d141 1
a141 1
46	COMPAT_13 MODULAR { int|sys||sigaction(int signum, \
d144 6
a149 2
47	STD 		{ gid_t|sys||getgid_with_egid(void); } getgid
48	COMPAT_13 MODULAR { int|sys||sigprocmask(int how, \
d151 5
a155 5
49	STD 		{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int|sys||__setlogin(const char *namebuf); }
51	STD 		{ int|sys||acct(const char *path); }
52	COMPAT_13 MODULAR { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR { int|sys||sigaltstack( \
d158 1
a158 1
54	STD	RUMP	{ int|sys||ioctl(int fd, \
d160 3
a162 3
55	COMPAT_12 MODULAR { int|sys||reboot(int opt); } oreboot
56	STD 	 RUMP	{ int|sys||revoke(const char *path); }
57	STD 	 RUMP	{ int|sys||symlink(const char *path, \
d164 1
a164 1
58	STD 	 RUMP	{ ssize_t|sys||readlink(const char *path, char *buf, \
d166 1
a166 1
59	STD 		{ int|sys||execve(const char *path, \
d168 4
a171 4
60	STD 		{ mode_t|sys||umask(mode_t newmask); }
61	STD 	 RUMP	{ int|sys||chroot(const char *path); }
62	COMPAT_43 MODULAR { int|sys||fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR { int|sys||getkerninfo(int op, char *where, int *size, \
d173 2
a174 2
64	COMPAT_43 MODULAR { int|sys||getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR { int|sys||msync(void *addr, size_t len); }
d176 1
a176 1
66	STD 		{ int|sys||vfork(void); }
d179 3
a181 3
69	STD 		{ int|sys||sbrk(intptr_t incr); }
70	STD 		{ int|sys||sstk(int incr); }
71	COMPAT_43 MODULAR { int|sys||mmap(void *addr, size_t len, int prot, \
d183 3
a185 3
72	STD 		{ int|sys||ovadvise(int anom); } vadvise
73	STD 		{ int|sys||munmap(void *addr, size_t len); }
74	STD 		{ int|sys||mprotect(void *addr, size_t len, \
d187 1
a187 1
75	STD 		{ int|sys||madvise(void *addr, size_t len, \
d191 1
a191 1
78	STD 		{ int|sys||mincore(void *addr, size_t len, \
d193 1
a193 1
79	STD 		{ int|sys||getgroups(int gidsetsize, \
d195 1
a195 1
80	STD 		{ int|sys||setgroups(int gidsetsize, \
d197 10
a206 10
81	STD 		{ int|sys||getpgrp(void); }
82	STD 		{ int|sys||setpgid(int pid, int pgid); }
83	COMPAT_50 MODULAR { int|sys||setitimer(int which, \
			    const struct itimerval50 *itv, \
			    struct itimerval50 *oitv); }
84	COMPAT_43 MODULAR { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR { int|sys||swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR { int|sys||getitimer(int which, \
			    struct itimerval50 *itv); }
87	COMPAT_43 MODULAR { int|sys||gethostname(char *hostname, u_int len); } \
d208 1
a208 1
88	COMPAT_43 MODULAR { int|sys||sethostname(char *hostname, u_int len); } \
d210 2
a211 2
89	COMPAT_43 MODULAR { int|sys||getdtablesize(void); } ogetdtablesize
90	STD 	 RUMP	{ int|sys||dup2(int from, int to); }
d213 3
a215 3
92	STD	RUMP	{ int|sys||fcntl(int fd, int cmd, ... void *arg); }
93	COMPAT_50 MODULAR 	{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
d217 4
a220 4
95	STD	RUMP 	{ int|sys||fsync(int fd); }
96	STD 		{ int|sys||setpriority(int which, id_t who, int prio); }
97	COMPAT_30 MODULAR { int|sys||socket(int domain, int type, int protocol); }
98	STD	RUMP	{ int|sys||connect(int s, const struct sockaddr *name, \
d222 1
a222 1
99	COMPAT_43 MODULAR { int|sys||accept(int s, void *name, \
d224 2
a225 2
100	STD 		{ int|sys||getpriority(int which, id_t who); }
101	COMPAT_43 MODULAR { int|sys||send(int s, void *buf, int len, \
d227 1
a227 1
102	COMPAT_43 MODULAR { int|sys||recv(int s, void *buf, int len, \
d229 1
a229 1
103	COMPAT_13 MODULAR { int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \
d231 1
a231 1
104	STD	RUMP	{ int|sys||bind(int s, const struct sockaddr *name, \
d233 1
a233 1
105	STD	RUMP	{ int|sys||setsockopt(int s, int level, int name, \
d235 1
a235 1
106	STD	RUMP	{ int|sys||listen(int s, int backlog); }
d237 1
a237 1
108	COMPAT_43 MODULAR { int|sys||sigvec(int signum, struct sigvec *nsv, \
d239 4
a242 4
109	COMPAT_43 MODULAR { int|sys||sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR { int|sys||sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR { int|sys||sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR { int|sys||sigstack(struct sigstack *nss, \
d244 1
a244 1
113	COMPAT_43 MODULAR { int|sys||recvmsg(int s, struct omsghdr *msg, \
d246 1
a246 1
114	COMPAT_43 MODULAR { int|sys||sendmsg(int s, void *msg, int flags); } \
d249 1
a249 1
116	COMPAT_50 MODULAR { int|sys||gettimeofday(struct timeval50 *tp, \
d251 2
a252 2
117	COMPAT_50 MODULAR { int|sys||getrusage(int who, struct rusage50 *rusage); }
118	STD	RUMP	{ int|sys||getsockopt(int s, int level, int name, \
d255 1
a255 1
120	STD 	RUMP	{ ssize_t|sys||readv(int fd, \
d257 1
a257 1
121	STD 	RUMP	{ ssize_t|sys||writev(int fd, \
d259 1
a259 1
122	COMPAT_50 MODULAR { int|sys||settimeofday(const struct timeval50 *tv, \
d261 3
a263 3
123	STD 	 RUMP	{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD 	 RUMP	{ int|sys||fchmod(int fd, mode_t mode); }
125	COMPAT_43 MODULAR { int|sys||recvfrom(int s, void *buf, size_t len, \
d266 4
a269 4
126	STD 		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int|sys||setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int|sys||rename(const char *from, const char *to); }
129	COMPAT_43 MODULAR { int|sys||truncate(const char *path, long length); } \
d271 4
a274 4
130	COMPAT_43 MODULAR { int|sys||ftruncate(int fd, long length); } oftruncate
131	STD 	 RUMP	{ int|sys||flock(int fd, int how); }
132	STD 	 RUMP	{ int|sys||mkfifo(const char *path, mode_t mode); }
133	STD 	 RUMP	{ ssize_t|sys||sendto(int s, const void *buf, \
d277 2
a278 2
134	STD	 RUMP	{ int|sys||shutdown(int s, int how); }
135	STD	 RUMP	{ int|sys||socketpair(int domain, int type, \
d280 4
a283 4
136	STD 	 RUMP	{ int|sys||mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int|sys||rmdir(const char *path); }
138	COMPAT_50 MODULAR { int|sys||utimes(const char *path, \
			    const struct timeval50 *tptr); }
d285 3
a287 3
140	COMPAT_50 MODULAR { int|sys||adjtime(const struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
141	COMPAT_43 MODULAR { int|sys||getpeername(int fdes, void *asa, \
d289 3
a291 3
142	COMPAT_43 MODULAR { int32_t|sys||gethostid(void); } ogethostid
143	COMPAT_43 MODULAR { int|sys||sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR { int|sys||getrlimit(int which, \
d293 1
a293 1
145	COMPAT_43 MODULAR { int|sys||setrlimit(int which, \
d295 3
a297 3
146	COMPAT_43 MODULAR { int|sys||killpg(int pgid, int signum); } okillpg
147	STD 	 	{ int|sys||setsid(void); }
148	STD 		{ int|sys||quotactl(const char *path, int cmd, \
d299 2
a300 2
149	COMPAT_43 MODULAR { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR { int|sys||getsockname(int fdec, void *asa, \
d311 6
a316 2
155	STD MODULAR RUMP  { int|sys||nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR { int|sys||getdirentries(int fd, char *buf, \
d318 1
a318 1
157	COMPAT_20 MODULAR { int|sys||statfs(const char *path, \
d320 1
a320 1
158	COMPAT_20 MODULAR { int|sys||fstatfs(int fd, struct statfs12 *buf); }
d323 1
a323 1
161	COMPAT_30 MODULAR { int|sys||getfh(const char *fname, \
d325 1
a325 1
162	COMPAT_09 MODULAR { int|sys||getdomainname(char *domainname, int len); } \
d327 1
a327 1
163	COMPAT_09 MODULAR { int|sys||setdomainname(char *domainname, int len); } \
d329 2
a330 2
164	COMPAT_09 MODULAR { int|sys||uname(struct outsname *name); } ouname
165	STD 		{ int|sys||sysarch(int op, void *parms); }
d335 2
a336 2
#if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
169	COMPAT_10 MODULAR { int|sys||semsys(int which, int a2, int a3, int a4, \
d342 2
a343 2
#if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
170	COMPAT_10 MODULAR { int|sys||msgsys(int which, int a2, int a3, int a4, \
d349 2
a350 2
#if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
171	COMPAT_10 MODULAR { int|sys||shmsys(int which, int a2, int a3, int a4); } \
d356 1
a356 1
173	STD 	 RUMP	{ ssize_t|sys||pread(int fd, void *buf, \
d358 1
a358 1
174	STD 	 RUMP	{ ssize_t|sys||pwrite(int fd, const void *buf, \
d361 3
a363 3
175	COMPAT_30	{ int|sys||ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL_OPT)
176	STD 		{ int|sys||ntp_adjtime(struct timex *tp); }
d373 3
a375 3
181	STD 		{ int|sys||setgid(gid_t gid); }
182	STD 		{ int|sys||setegid(gid_t egid); }
183	STD 		{ int|sys||seteuid(uid_t euid); }
d377 1
a377 1
184	STD 		{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d379 1
a379 1
185	STD 		{ int|sys||lfs_markv(fsid_t *fsidp, \
d381 3
a383 3
186	STD		{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
187	COMPAT_50 MODULAR { int|sys||lfs_segwait(fsid_t *fsidp, \
			    struct timeval50 *tv); }
d390 1
a390 1
188	COMPAT_12 MODULAR { int|sys||stat(const char *path, struct stat12 *ub); } \
d392 2
a393 2
189	COMPAT_12 MODULAR { int|sys||fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR { int|sys||lstat(const char *path, \
d395 2
a396 2
191	STD 		{ long|sys||pathconf(const char *path, int name); }
192	STD 		{ long|sys||fpathconf(int fd, int name); }
d398 1
a398 1
194	STD 		{ int|sys||getrlimit(int which, \
d400 1
a400 1
195	STD 		{ int|sys||setrlimit(int which, \
d402 1
a402 1
196	COMPAT_12 MODULAR { int|sys||getdirentries(int fd, char *buf, \
d404 1
a404 1
197	STD 		{ void *|sys||mmap(void *addr, size_t len, int prot, \
d406 1
a406 1
198	INDIR		{ quad_t|sys||__syscall(quad_t code, \
d408 1
a408 1
199	STD 	 RUMP	{ off_t|sys||lseek(int fd, int pad, off_t offset, \
d410 1
a410 1
200	STD 	 RUMP	{ int|sys||truncate(const char *path, int pad, \
d412 2
a413 2
201	STD 	 RUMP	{ int|sys||ftruncate(int fd, int pad, off_t length); }
202	STD	 RUMP 	{ int|sys||__sysctl(const int *name, u_int namelen, \
d416 8
a423 8
203	STD 		{ int|sys||mlock(const void *addr, size_t len); }
204	STD 		{ int|sys||munlock(const void *addr, size_t len); }
205	STD 		{ int|sys||undelete(const char *path); }
206	COMPAT_50 MODULAR { int|sys||futimes(int fd, \
			    const struct timeval50 *tptr); }
207	STD 		{ pid_t|sys||getpgid(pid_t pid); }
208	STD	 RUMP	{ int|sys||reboot(int opt, char *bootstr); }
209	STD 	 RUMP	{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d428 23
a450 10
210	UNIMPL
211	UNIMPL
212	UNIMPL
213	UNIMPL
214	UNIMPL
215	UNIMPL
216	UNIMPL
217	UNIMPL
218	UNIMPL
219	UNIMPL
d452 2
a453 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
220	COMPAT_14 MODULAR { int|sys||__semctl(int semid, int semnum, int cmd, \
d455 2
a456 2
221	STD 		{ int|sys||semget(key_t key, int nsems, int semflg); }
222	STD 		{ int|sys||semop(int semid, struct sembuf *sops, \
d458 1
a458 1
223	STD 		{ int|sys||semconfig(int flag); }
d465 2
a466 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
224	COMPAT_14 MODULAR { int|sys||msgctl(int msqid, int cmd, \
d468 2
a469 2
225	STD 		{ int|sys||msgget(key_t key, int msgflg); }
226	STD 		{ int|sys||msgsnd(int msqid, const void *msgp, \
d471 1
a471 1
227	STD 		{ ssize_t|sys||msgrcv(int msqid, void *msgp, \
d479 2
a480 2
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
228	STD 		{ void *|sys||shmat(int shmid, const void *shmaddr, \
d482 1
a482 1
229	COMPAT_14 MODULAR { int|sys||shmctl(int shmid, int cmd, \
d484 2
a485 2
230	STD 		{ int|sys||shmdt(const void *shmaddr); }
231	STD 		{ int|sys||shmget(key_t key, size_t size, int shmflg); }
d492 7
a498 7
232	COMPAT_50 MODULAR { int|sys||clock_gettime(clockid_t clock_id, \
			    struct timespec50 *tp); }
233	COMPAT_50 MODULAR { int|sys||clock_settime(clockid_t clock_id, \
			    const struct timespec50 *tp); }
234	COMPAT_50 MODULAR { int|sys||clock_getres(clockid_t clock_id, \
			    struct timespec50 *tp); }
235	STD		{ int|sys||timer_create(clockid_t clock_id, \
d500 7
a506 7
236	STD		{ int|sys||timer_delete(timer_t timerid); }
237	COMPAT_50 MODULAR { int|sys||timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec50 *value, \
			    struct itimerspec50 *ovalue); }
238	COMPAT_50 MODULAR { int|sys||timer_gettime(timer_t timerid, struct \
			    itimerspec50 *value); }
239	STD		{ int|sys||timer_getoverrun(timer_t timerid); }
d510 6
a515 6
240	COMPAT_50 MODULAR { int|sys||nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
241	STD 	 RUMP	{ int|sys||fdatasync(int fd); }
242	STD 		{ int|sys||mlockall(int flags); }
243	STD 		{ int|sys||munlockall(void); }
244	COMPAT_50 MODULAR { int|sys||__sigtimedwait(const sigset_t *set, \
d517 1
a517 1
			    struct timespec50 *timeout); }
d519 11
a529 10
246	STD 	 	{ int|sys||modctl(int cmd, void *arg); }
247	STD MODULAR 	{ int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR 	{ int|sys||_ksem_open(const char *name, int oflag, \
			    mode_t mode, unsigned int value, intptr_t *idp); }
249	STD MODULAR 	{ int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR 	{ int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR 	{ int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR 	{ int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR 	{ int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR 	{ int|sys||_ksem_getvalue(intptr_t id, \
d531 12
a542 1
255	STD MODULAR 	{ int|sys||_ksem_destroy(intptr_t id); }
d544 2
a545 1
257	STD 		{ mqd_t|sys||mq_open(const char * name, int oflag, \
d547 3
a549 3
258	STD 		{ int|sys||mq_close(mqd_t mqdes); }
259	STD 		{ int|sys||mq_unlink(const char *name); }
260	STD 		{ int|sys||mq_getattr(mqd_t mqdes, \
d551 1
a551 1
261	STD 		{ int|sys||mq_setattr(mqd_t mqdes, \
d554 1
a554 1
262	STD 		{ int|sys||mq_notify(mqd_t mqdes, \
d556 1
a556 1
263	STD 		{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d558 1
a558 1
264	STD 		{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d560 1
a560 1
265	COMPAT_50 MODULAR { int|sys||mq_timedsend(mqd_t mqdes, \
d563 2
a564 2
			    const struct timespec50 *abs_timeout); }
266	COMPAT_50 MODULAR { ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
d566 1
a566 1
			    const struct timespec50 *abs_timeout); }
d570 1
a570 1
270	STD 		{ int|sys||__posix_rename(const char *from, \
d572 3
a574 3
271	STD 		{ int|sys||swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MODULAR { int|sys||getdents(int fd, char *buf, size_t count); }
273	STD 		{ int|sys||minherit(void *addr, size_t len, \
d576 2
a577 2
274	STD 	 RUMP	{ int|sys||lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int|sys||lchown(const char *path, uid_t uid, \
d579 7
a585 7
276	COMPAT_50 MODULAR { int|sys||lutimes(const char *path, \
			    const struct timeval50 *tptr); }
277	STD 		{ int|sys|13|msync(void *addr, size_t len, int flags); }
278	COMPAT_30 MODULAR { int|sys|13|stat(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR { int|sys|13|fstat(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR { int|sys|13|lstat(const char *path, struct stat13 *ub); }
281	STD 		{ int|sys|14|sigaltstack( \
d588 2
a589 2
282	STD 		{ int|sys|14|vfork(void); }
283	STD 		{ int|sys||__posix_chown(const char *path, uid_t uid, \
d591 1
a591 1
284	STD 		{ int|sys||__posix_fchown(int fd, uid_t uid, \
d593 1
a593 1
285	STD 		{ int|sys||__posix_lchown(const char *path, uid_t uid, \
d595 3
a597 3
286	STD 		{ pid_t|sys||getsid(pid_t pid); }
287	STD 		{ pid_t|sys||__clone(int flags, void *stack); }
288	STD 		{ int|sys||fktrace(int fd, int ops, \
d599 1
a599 1
289	STD 		{ ssize_t|sys||preadv(int fd, \
d602 1
a602 1
290	STD 		{ ssize_t|sys||pwritev(int fd, \
d605 1
a605 1
291	COMPAT_16 MODULAR { int|sys|14|sigaction(int signum, \
d608 2
a609 2
292	STD 		{ int|sys|14|sigpending(sigset_t *set); }
293	STD 		{ int|sys|14|sigprocmask(int how, \
d612 6
a617 6
294	STD 		{ int|sys|14|sigsuspend(const sigset_t *set); }
295	COMPAT_16 MODULAR { int|sys|14|sigreturn(struct sigcontext *sigcntxp); }
296	STD 		{ int|sys||__getcwd(char *bufp, size_t length); }
297	STD 	 RUMP	{ int|sys||fchroot(int fd); }
298	COMPAT_30 MODULAR { int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR { int|sys||fhstat(const struct compat_30_fhandle *fhp, \
d619 1
a619 1
300	COMPAT_20 MODULAR { int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \
d621 2
a622 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
301	COMPAT_50 MODULAR { int|sys|13|__semctl(int semid, int semnum, int cmd, \
d627 2
a628 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
302	COMPAT_50 MODULAR { int|sys|13|msgctl(int msqid, int cmd, \
d633 3
a635 3
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
303	COMPAT_50 MODULAR { int|sys|13|shmctl(int shmid, int cmd, \
			    struct shmid_ds13 *buf); }
d639 3
a641 3
304	STD 	 RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
305	STD 		{ int|sys||issetugid(void); }
306	STD 		{ int|sys||utrace(const char *label, void *addr, \
d643 3
a645 3
307	STD 		{ int|sys||getcontext(struct __ucontext *ucp); }
308	STD 		{ int|sys||setcontext(const struct __ucontext *ucp); }
309	STD 		{ int|sys||_lwp_create(const struct __ucontext *ucp, \
d647 3
a649 3
310	STD 		{ int|sys||_lwp_exit(void); }
311	STD 		{ lwpid_t|sys||_lwp_self(void); }
312	STD 		{ int|sys||_lwp_wait(lwpid_t wait_for, \
d651 8
a658 8
313	STD 		{ int|sys||_lwp_suspend(lwpid_t target); }
314	STD 		{ int|sys||_lwp_continue(lwpid_t target); }
315	STD 		{ int|sys||_lwp_wakeup(lwpid_t target); }
316	STD 		{ void *|sys||_lwp_getprivate(void); }
317	STD 		{ void|sys||_lwp_setprivate(void *ptr); }
318	STD 		{ int|sys||_lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int|sys||_lwp_detach(lwpid_t target); }
320	COMPAT_50 MODULAR { int|sys||_lwp_park(const struct timespec50 *ts, \
d661 2
a662 2
321	STD 		{ int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \
d664 1
a664 1
323	STD 		{ int|sys||_lwp_setname(lwpid_t target, \
d666 1
a666 1
324	STD 		{ int|sys||_lwp_getname(lwpid_t target, \
d668 1
a668 1
325	STD 		{ int|sys||_lwp_ctl(int features, \
d675 8
a682 13
; SA system calls.
330	STD 		{ int|sys||sa_register(sa_upcall_t new, \
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
331	STD 		{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	STD 		{ int|sys||sa_enable(void); }
333	STD 		{ int|sys||sa_setconcurrency(int concurrency); }
334	STD 		{ int|sys||sa_yield(void); }
335	STD 		{ int|sys||sa_preempt(int sa_id); }
336	OBSOL 		sys_sa_unblockyield
;
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
;
d686 1
a686 1
340	STD 		{ int|sys||__sigaction_sigtramp(int signum, \
d690 5
a694 5
341	STD		{ int|sys||pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int|sys||pmc_control(int ctr, int op, void *args); }
343	STD 		{ int|sys||rasctl(void *addr, size_t len, int op); }
344	STD	RUMP	{ int|sys||kqueue(void); }
345	COMPAT_50 MODULAR { int|sys||kevent(int fd, \
d697 1
a697 1
			    const struct timespec50 *timeout); }
d700 1
a700 1
346	STD 		{ int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \
d702 1
a702 1
347	STD 		{ int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \
d704 5
a708 5
348	STD 		{ int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, const cpuset_t *cpuset); }
349	STD 		{ int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, cpuset_t *cpuset); }
350	STD 		{ int|sys||sched_yield(void); }
d713 1
a713 1
354	STD	RUMP	{ int|sys||fsync_range(int fd, int flags, off_t start, \
d715 2
a716 2
355	STD 		{ int|sys||uuidgen(struct uuid *store, int count); }
356	STD 	RUMP	{ int|sys||getvfsstat(struct statvfs *buf, \
d718 1
a718 1
357	STD 	RUMP	{ int|sys||statvfs1(const char *path, \
d720 1
a720 1
358	STD 	RUMP	{ int|sys||fstatvfs1(int fd, struct statvfs *buf, \
d722 1
a722 1
359	COMPAT_30 MODULAR { int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \
d724 1
a724 1
360	STD 	RUMP	{ int|sys||extattrctl(const char *path, int cmd, \
d727 1
a727 1
361	STD 	RUMP	{ int|sys||extattr_set_file(const char *path, \
d730 1
a730 1
362	STD 	RUMP	{ ssize_t|sys||extattr_get_file(const char *path, \
d733 1
a733 1
363	STD 	RUMP	{ int|sys||extattr_delete_file(const char *path, \
d735 1
a735 1
364	STD 	RUMP	{ int|sys||extattr_set_fd(int fd, \
d738 1
a738 1
365	STD 	RUMP	{ ssize_t|sys||extattr_get_fd(int fd, \
d741 1
a741 1
366	STD 	RUMP	{ int|sys||extattr_delete_fd(int fd, \
d743 1
a743 1
367	STD 	RUMP	{ int|sys||extattr_set_link(const char *path, \
d746 1
a746 1
368	STD 	RUMP	{ ssize_t|sys||extattr_get_link(const char *path, \
d749 1
a749 1
369	STD 	RUMP	{ int|sys||extattr_delete_link(const char *path, \
d751 1
a751 1
370	STD 	RUMP	{ ssize_t|sys||extattr_list_fd(int fd, \
d753 1
a753 1
371	STD 	RUMP	{ ssize_t|sys||extattr_list_file(const char *path, \
d755 1
a755 1
372	STD 	RUMP	{ ssize_t|sys||extattr_list_link(const char *path, \
d757 2
a758 2
373	COMPAT_50 MODULAR { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec50 *ts, \
d760 3
a762 3
374	COMPAT_50 MODULAR { int|sys||pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec50 *ts, const sigset_t *mask); }
375	STD 	RUMP	{ int|sys||setxattr(const char *path, \
d765 1
a765 1
376	STD 	RUMP	{ int|sys||lsetxattr(const char *path, \
d768 1
a768 1
377	STD 	RUMP	{ int|sys||fsetxattr(int fd, \
d771 1
a771 1
378	STD 	RUMP	{ int|sys||getxattr(const char *path, \
d773 1
a773 1
379	STD 	RUMP	{ int|sys||lgetxattr(const char *path, \
d775 1
a775 1
380	STD 	RUMP	{ int|sys||fgetxattr(int fd, \
d777 1
a777 1
381	STD 	RUMP	{ int|sys||listxattr(const char *path, \
d779 1
a779 1
382	STD 	RUMP	{ int|sys||llistxattr(const char *path, \
d781 1
a781 1
383	STD 	RUMP	{ int|sys||flistxattr(int fd, \
d783 1
a783 1
384	STD 	RUMP	{ int|sys||removexattr(const char *path, \
d785 1
a785 1
385	STD 	RUMP	{ int|sys||lremovexattr(const char *path, \
d787 1
a787 1
386	STD 	RUMP	{ int|sys||fremovexattr(int fd, \
d789 4
a792 4
387	COMPAT_50 MODULAR { int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR { int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR { int|sys|30|lstat(const char *path, struct stat30 *ub); }
390	STD 	RUMP	{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d794 5
a798 5
392	COMPAT_30 MODULAR { int|sys|30|fhstat(const struct compat_30_fhandle \
			    *fhp, struct stat30 *sb); }
393	COMPAT_50 MODULAR { int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); }
394	STD	 RUMP	{ int|sys|30|socket(int domain, int type, int protocol); }
395	STD 	 RUMP	{ int|sys|30|getfh(const char *fname, void *fhp, \
d800 1
a800 1
396	STD 		{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d802 1
a802 1
397	STD 		{ int|sys|40|fhstatvfs1(const void *fhp, \
d804 2
a805 2
398	COMPAT_50 MODULAR { int|sys|40|fhstat(const void *fhp, \
			    size_t fh_size, struct stat30 *sb); }
d808 9
a816 9
399	STD MODULAR 	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR 	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR 	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR 	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR 	{ int|sys||aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR { int|sys||aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec50 *timeout); }
405	STD MODULAR 	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR 	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
d823 1
a823 1
410	STD  RUMP	{ int|sys|50|mount(const char *type, \
d826 1
a826 1
411	STD 		{ void *|sys||mremap(void *old_address, size_t old_size, \
d830 3
a832 3
412	STD 		{ int|sys||pset_create(psetid_t *psid); }
413	STD 		{ int|sys||pset_destroy(psetid_t psid); }
414	STD 		{ int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \
d834 1
a834 1
415	STD 		{ int|sys||_pset_bind(idtype_t idtype, id_t first_id, \
d836 1
a836 1
416	STD 		{ int|sys|50|posix_fadvise(int fd, int pad, \
a837 96
417	STD  RUMP	{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
418	STD 		{ int|sys|50|gettimeofday(struct timeval *tp, \
			    void *tzp); }
419	STD 		{ int|sys|50|settimeofday(const struct timeval *tv, \
			    const void *tzp); }
420	STD  RUMP	{ int|sys|50|utimes(const char *path, \
			    const struct timeval *tptr); }
421	STD		{ int|sys|50|adjtime(const struct timeval *delta, \
			    struct timeval *olddelta); }
#if defined(LFS) || !defined(_KERNEL)
422	STD		{ int|sys|50|lfs_segwait(fsid_t *fsidp, \
			    struct timeval *tv); }
#else
422	EXCL		__lfs_segwait50
#endif
423	STD  RUMP	{ int|sys|50|futimes(int fd, \
			    const struct timeval *tptr); }
424	STD  RUMP 	{ int|sys|50|lutimes(const char *path, \
			    const struct timeval *tptr); }
425	STD		{ int|sys|50|setitimer(int which, \
			    const struct itimerval *itv, \
			    struct itimerval *oitv); }
426	STD		{ int|sys|50|getitimer(int which, \
			    struct itimerval *itv); }
427	STD 		{ int|sys|50|clock_gettime(clockid_t clock_id, \
			    struct timespec *tp); }
428	STD 		{ int|sys|50|clock_settime(clockid_t clock_id, \
			    const struct timespec *tp); }
429	STD 		{ int|sys|50|clock_getres(clockid_t clock_id, \
			    struct timespec *tp); }
430	STD 		{ int|sys|50|nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
431	STD 		{ int|sys|50|__sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, \
			    struct timespec *timeout); }
432	STD 		{ int|sys|50|mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
433	STD 		{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
434	STD 		{ int|sys|50|_lwp_park(const struct timespec *ts, \
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
435	STD	RUMP	{ int|sys|50|kevent(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
			    const struct timespec *timeout); }
436	STD 	RUMP	{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
437	STD 	RUMP	{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
438	STD MODULAR	{ int|sys|50|aio_suspend( \
			    const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
439	STD  RUMP	{ int|sys|50|stat(const char *path, struct stat *ub); }
440	STD  RUMP	{ int|sys|50|fstat(int fd, struct stat *sb); }
441	STD  RUMP	{ int|sys|50|lstat(const char *path, struct stat *ub); }
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
442	STD 		{ int|sys|50|__semctl(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
#else
442	EXCL		____semctl50
#endif
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
443	STD 		{ int|sys|50|shmctl(int shmid, int cmd, \
			    struct shmid_ds *buf); }
#else
443	EXCL 		____shmctl50
#endif
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
444	STD 		{ int|sys|50|msgctl(int msqid, int cmd, \
			    struct msqid_ds *buf); }
#else
444	EXCL 		____msgctl50
#endif
445	STD 		{ int|sys|50|getrusage(int who, struct rusage *rusage); }
446	STD		{ int|sys|50|timer_settime(timer_t timerid, \
			    int flags, const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
447	STD		{ int|sys|50|timer_gettime(timer_t timerid, struct \
			    itimerspec *value); }
#if defined(NTP) || !defined(_KERNEL_OPT)
448	STD		{ int|sys|50|ntp_gettime(struct ntptimeval *ntvp); }
#else
448	EXCL		___ntp_gettime50
#endif
449	STD 		{ int|sys|50|wait4(int pid, int *status, \
				    int options, struct rusage *rusage); }
450	STD  RUMP	{ int|sys|50|mknod(const char *path, mode_t mode, \
			    dev_t dev); }
451	STD  RUMP 	{ int|sys|50|fhstat(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
@


1.200.2.2
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.2.1 2009/05/04 08:13:48 yamt Exp $
a28 3
; arguments:
;	PAD	argument not part of the C interface, used only for padding
;
d339 1
a339 1
			    size_t nbyte, int PAD, off_t offset); }
d341 1
a341 1
			    size_t nbyte, int PAD, off_t offset); }
d387 1
a387 1
			    int flags, int fd, long PAD, off_t pos); }
d390 1
a390 1
199	STD 	 RUMP	{ off_t|sys||lseek(int fd, int PAD, off_t offset, \
d392 1
a392 1
200	STD 	 RUMP	{ int|sys||truncate(const char *path, int PAD, \
d394 1
a394 1
201	STD 	 RUMP	{ int|sys||ftruncate(int fd, int PAD, off_t length); }
d557 1
a557 1
			    int PAD, off_t offset); }
d560 1
a560 1
			    int PAD, off_t offset); }
d797 1
a797 1
416	STD 		{ int|sys|50|posix_fadvise(int fd, int PAD, \
@


1.200.2.3
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.2.2 2009/05/16 10:41:48 yamt Exp $
d504 1
a504 1
257	STD MODULAR	{ mqd_t|sys||mq_open(const char * name, int oflag, \
d506 3
a508 3
258	STD MODULAR	{ int|sys||mq_close(mqd_t mqdes); }
259	STD MODULAR	{ int|sys||mq_unlink(const char *name); }
260	STD MODULAR	{ int|sys||mq_getattr(mqd_t mqdes, \
d510 1
a510 1
261	STD MODULAR	{ int|sys||mq_setattr(mqd_t mqdes, \
d513 1
a513 1
262	STD MODULAR	{ int|sys||mq_notify(mqd_t mqdes, \
d515 1
a515 1
263	STD MODULAR	{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d517 1
a517 1
264	STD MODULAR	{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d764 1
a764 1
396	STD 	 RUMP	{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d766 1
a766 1
397	STD 	 RUMP	{ int|sys|40|fhstatvfs1(const void *fhp, \
d838 1
a838 1
432	STD MODULAR	{ int|sys|50|mq_timedsend(mqd_t mqdes, \
d842 1
a842 1
433	STD MODULAR	{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
@


1.200.2.4
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.2.3 2009/08/19 18:48:17 yamt Exp $
d50 2
d128 1
a128 1
42	STD 	RUMP	{ int|sys||pipe(void); }
d361 2
a362 1
184	STD MODULAR	{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d364 1
a364 1
185	STD MODULAR	{ int|sys||lfs_markv(fsid_t *fsidp, \
d366 1
a366 1
186	STD MODULAR	{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
d369 6
d491 1
a491 1
246	STD RUMP 	{ int|sys||modctl(int cmd, void *arg); }
d812 2
a813 1
422	STD  MODULAR	{ int|sys|50|lfs_segwait(fsid_t *fsidp, \
d815 3
@


1.200.2.5
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.2.4 2010/03/11 15:04:19 yamt Exp $
d371 2
a372 2
191	STD 	RUMP	{ long|sys||pathconf(const char *path, int name); }
192	STD 	RUMP	{ long|sys||fpathconf(int fd, int name); }
d374 1
a374 1
194	STD 	RUMP	{ int|sys||getrlimit(int which, \
d376 1
a376 1
195	STD 	RUMP	{ int|sys||setrlimit(int which, \
d483 2
a484 2
247	STD MODULAR RUMP { int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR RUMP { int|sys||_ksem_open(const char *name, int oflag, \
d486 6
a491 6
249	STD MODULAR RUMP { int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR RUMP { int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR RUMP { int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR RUMP { int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR RUMP { int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR RUMP { int|sys||_ksem_getvalue(intptr_t id, \
d493 1
a493 1
255	STD MODULAR RUMP { int|sys||_ksem_destroy(intptr_t id); }
@


1.200.2.6
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.2.5 2010/08/11 22:54:43 yamt Exp $
d93 1
a93 1
20	STD 	RUMP	{ pid_t|sys||getpid_with_ppid(void); } getpid
d97 3
a99 3
23	STD 	RUMP	{ int|sys||setuid(uid_t uid); }
24	STD 	RUMP	{ uid_t|sys||getuid_with_euid(void); } getuid
25	STD 	RUMP	{ uid_t|sys||geteuid(void); }
d122 1
a122 1
39	STD 	RUMP	{ pid_t|sys||getppid(void); }
d127 1
a127 1
43	STD 	RUMP	{ gid_t|sys||getegid(void); }
d135 1
a135 1
47	STD 	RUMP	{ gid_t|sys||getgid_with_egid(void); } getgid
d138 2
a139 2
49	STD 	RUMP	{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD 	RUMP 	{ int|sys||__setlogin(const char *namebuf); }
d155 1
a155 1
60	STD 	 RUMP	{ mode_t|sys||umask(mode_t newmask); }
d180 1
a180 1
79	STD 	RUMP	{ int|sys||getgroups(int gidsetsize, \
d182 1
a182 1
80	STD 	RUMP	{ int|sys||setgroups(int gidsetsize, \
d184 2
a185 2
81	STD 	RUMP	{ int|sys||getpgrp(void); }
82	STD 	RUMP	{ int|sys||setpgid(int pid, int pgid); }
d253 2
a254 2
126	STD 	RUMP	{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD 	RUMP	{ int|sys||setregid(gid_t rgid, gid_t egid); }
d283 1
a283 1
147	STD 	RUMP 	{ int|sys||setsid(void); }
d356 3
a358 3
181	STD 	RUMP	{ int|sys||setgid(gid_t gid); }
182	STD 	RUMP	{ int|sys||setegid(gid_t egid); }
183	STD 	RUMP	{ int|sys||seteuid(uid_t euid); }
d397 1
a397 1
207	STD 	 RUMP	{ pid_t|sys||getpgid(pid_t pid); }
d545 1
a545 1
286	STD 	RUMP	{ pid_t|sys||getsid(pid_t pid); }
d564 1
a564 1
296	STD 	 RUMP	{ int|sys||__getcwd(char *bufp, size_t length); }
d590 1
a590 1
305	STD 	RUMP	{ int|sys||issetugid(void); }
@


1.200.4.1
log
@Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200 2008/04/24 11:51:19 ad Exp $
a55 1
#include <sys/sa.h>
d675 3
a677 5
; SA system calls.
330	STD 		{ int sys_sa_register(sa_upcall_t new, \
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
331	STD 		{ int sys_sa_stacks(int num, stack_t *stacks); }
d679 1
a679 1
333	STD 		{ int sys_sa_setconcurrency(int concurrency); }
d681 1
a681 1
335	STD 		{ int sys_sa_preempt(int sa_id); }
a682 3
;
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
;
@


1.200.4.2
log
@Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.4.1 2008/05/10 23:49:05 wrstuden Exp $
d56 1
@


1.200.4.3
log
@sys_sa_unblockyield() has been obsolete since before NetBSD 2.0,
the first release with pthreads, was released. We have had three
releases that have been fine without it, so I believe it can stay
obsolete.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.4.2 2008/05/14 01:35:14 wrstuden Exp $
d684 1
a684 1
336	OBSOL 		sys_sa_unblockyield
@


1.200.4.4
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.4.3 2008/05/28 15:51:19 wrstuden Exp $
a55 1
#include <sys/sched.h>
d356 1
a356 1
173	STD 	 RUMP	{ ssize_t sys_pread(int fd, void *buf, \
d358 1
a358 1
174	STD 	 RUMP	{ ssize_t sys_pwrite(int fd, const void *buf, \
d710 1
a710 1
			    size_t size, const cpuset_t *cpuset); }
d712 1
a712 1
			    size_t size, cpuset_t *cpuset); }
@


1.200.4.5
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.200.4.4 2008/06/23 04:31:51 wrstuden Exp $
d125 1
a125 1
33	STD 		{ int sys_access(const char *path, int flags); }
d127 1
a127 1
35	STD 		{ int sys_fchflags(int fd, u_long flags); }
d218 1
a218 1
95	STD	RUMP 	{ int sys_fsync(int fd); }
d274 1
a274 1
132	STD 	 RUMP	{ int sys_mkfifo(const char *path, mode_t mode); }
d283 1
a283 1
138	STD 	 RUMP	{ int sys_utimes(const char *path, \
d414 1
a414 1
202	STD	 RUMP 	{ int sys___sysctl(const int *name, u_int namelen, \
d580 1
a580 1
276	STD 	 RUMP	{ int sys_lutimes(const char *path, \
d640 1
a640 1
304	STD 	 RUMP	{ int sys_lchflags(const char *path, u_long flags); }
d795 1
a795 1
387	STD 	 RUMP	{ int sys___stat30(const char *path, struct stat *ub); }
d797 1
a797 1
389	STD 	 RUMP	{ int sys___lstat30(const char *path, struct stat *ub); }
@


1.199
log
@Make ntp, pmc, reboot, sysarch, time syscalls MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.198 2008/04/21 11:45:34 ad Exp $
a14 1
;     MPSAFE:	the system call is MP-safe.
d68 4
a71 4
1	STD MPSAFE	{ void sys_exit(int rval); }
2	STD MPSAFE	{ int sys_fork(void); }
3	STD MPSAFE RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d73 1
a73 1
5	STD MPSAFE RUMP	{ int sys_open(const char *path, \
d75 2
a76 2
6	STD MPSAFE RUMP	{ int sys_close(int fd); }
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d78 3
a80 3
8	COMPAT_43 MPSAFE	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD MPSAFE RUMP	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE RUMP	{ int sys_unlink(const char *path); }
d82 3
a84 3
12	STD MPSAFE RUMP	{ int sys_chdir(const char *path); }
13	STD MPSAFE RUMP	{ int sys_fchdir(int fd); }
14	STD MPSAFE RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d86 2
a87 2
15	STD MPSAFE RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE RUMP	{ int sys_chown(const char *path, uid_t uid, \
d89 2
a90 2
17	STD MPSAFE	{ int sys_obreak(char *nsize); } break
18	COMPAT_20 MPSAFE	{ int sys_getfsstat(struct statfs12 *buf, \
d92 1
a92 1
19	COMPAT_43 MPSAFE	{ long sys_lseek(int fd, long offset, int whence); } \
d95 1
a95 1
20	STD MPSAFE	{ pid_t sys_getpid_with_ppid(void); } getpid
d97 1
a97 1
20	STD MPSAFE	{ pid_t sys_getpid(void); }
d99 1
a99 1
21	COMPAT_40 MPSAFE	{ int sys_mount(const char *type, const char *path, \
d101 2
a102 2
22	STD MPSAFE RUMP	{ int sys_unmount(const char *path, int flags); }
23	STD MPSAFE	{ int sys_setuid(uid_t uid); }
d104 1
a104 1
24	STD MPSAFE	{ uid_t sys_getuid_with_euid(void); } getuid
d106 1
a106 1
24	STD MPSAFE	{ uid_t sys_getuid(void); }
d108 2
a109 2
25	STD MPSAFE	{ uid_t sys_geteuid(void); }
26	STD MPSAFE	{ int sys_ptrace(int req, pid_t pid, void *addr, \
d111 1
a111 1
27	STD MPSAFE	{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d113 1
a113 1
28	STD MPSAFE	{ ssize_t sys_sendmsg(int s, \
d115 1
a115 1
29	STD MPSAFE	{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d124 6
a129 6
33	STD MPSAFE RUMP	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE RUMP	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE RUMP	{ void sys_sync(void); }
37	STD MPSAFE	{ int sys_kill(int pid, int signum); }
38	COMPAT_43 MPSAFE	{ int sys_stat(const char *path, struct stat43 *ub); } \
d131 2
a132 2
39	STD MPSAFE	{ pid_t sys_getppid(void); }
40	COMPAT_43 MPSAFE	{ int sys_lstat(const char *path, \
d134 4
a137 4
41	STD MPSAFE	{ int sys_dup(int fd); }
42	STD MPSAFE	{ int sys_pipe(void); }
43	STD MPSAFE	{ gid_t sys_getegid(void); }
44	STD MPSAFE	{ int sys_profil(char *samples, size_t size, \
d139 1
a139 1
45	STD MPSAFE	{ int sys_ktrace(const char *fname, int ops, \
d141 1
a141 1
46	COMPAT_13 MPSAFE	{ int sys_sigaction(int signum, \
d145 1
a145 1
47	STD MPSAFE	{ gid_t sys_getgid_with_egid(void); } getgid
d147 1
a147 1
47	STD MPSAFE	{ gid_t sys_getgid(void); }
d149 1
a149 1
48	COMPAT_13 MPSAFE	{ int sys_sigprocmask(int how, \
d151 5
a155 5
49	STD MPSAFE	{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD MPSAFE 	{ int sys___setlogin(const char *namebuf); }
51	STD MPSAFE	{ int sys_acct(const char *path); }
52	COMPAT_13 MPSAFE	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 MPSAFE	{ int sys_sigaltstack( \
d158 1
a158 1
54	STD MPSAFE	{ int sys_ioctl(int fd, \
d160 3
a162 3
55	COMPAT_12 MPSAFE { int sys_reboot(int opt); } oreboot
56	STD MPSAFE	{ int sys_revoke(const char *path); }
57	STD MPSAFE RUMP	{ int sys_symlink(const char *path, \
d164 1
a164 1
58	STD MPSAFE RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d166 1
a166 1
59	STD MPSAFE	{ int sys_execve(const char *path, \
d168 4
a171 4
60	STD MPSAFE	{ mode_t sys_umask(mode_t newmask); }
61	STD MPSAFE	{ int sys_chroot(const char *path); }
62	COMPAT_43 MPSAFE	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MPSAFE	{ int sys_getkerninfo(int op, char *where, int *size, \
d173 2
a174 2
64	COMPAT_43 MPSAFE { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 MPSAFE { int sys_msync(void *addr, size_t len); }
d176 1
a176 1
66	STD MPSAFE	{ int sys_vfork(void); }
d179 3
a181 3
69	STD MPSAFE	{ int sys_sbrk(intptr_t incr); }
70	STD MPSAFE	{ int sys_sstk(int incr); }
71	COMPAT_43 MPSAFE	{ int sys_mmap(void *addr, size_t len, int prot, \
d183 3
a185 3
72	STD MPSAFE	{ int sys_ovadvise(int anom); } vadvise
73	STD MPSAFE	{ int sys_munmap(void *addr, size_t len); }
74	STD MPSAFE	{ int sys_mprotect(void *addr, size_t len, \
d187 1
a187 1
75	STD MPSAFE	{ int sys_madvise(void *addr, size_t len, \
d191 1
a191 1
78	STD MPSAFE	{ int sys_mincore(void *addr, size_t len, \
d193 1
a193 1
79	STD MPSAFE	{ int sys_getgroups(int gidsetsize, \
d195 1
a195 1
80	STD MPSAFE	{ int sys_setgroups(int gidsetsize, \
d197 3
a199 3
81	STD MPSAFE 	{ int sys_getpgrp(void); }
82	STD MPSAFE	{ int sys_setpgid(int pid, int pgid); }
83	STD MPSAFE	{ int sys_setitimer(int which, \
d202 3
a204 3
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
85	COMPAT_12 MPSAFE	{ int sys_swapon(const char *name); } oswapon
86	STD MPSAFE	{ int sys_getitimer(int which, \
d206 1
a206 1
87	COMPAT_43 MPSAFE	{ int sys_gethostname(char *hostname, u_int len); } \
d208 1
a208 1
88	COMPAT_43 MPSAFE	{ int sys_sethostname(char *hostname, u_int len); } \
d210 2
a211 2
89	COMPAT_43 MPSAFE	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD MPSAFE	{ int sys_dup2(int from, int to); }
d213 2
a214 2
92	STD MPSAFE	{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD MPSAFE	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d217 2
a218 2
95	STD MPSAFE	{ int sys_fsync(int fd); }
96	STD MPSAFE	{ int sys_setpriority(int which, id_t who, int prio); }
d224 2
a225 2
100	STD MPSAFE	{ int sys_getpriority(int which, id_t who); }
101	COMPAT_43 MPSAFE	{ int sys_send(int s, void *buf, int len, \
d227 1
a227 1
102	COMPAT_43 MPSAFE	{ int sys_recv(int s, void *buf, int len, \
d229 1
a229 1
103	COMPAT_13 MPSAFE	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d237 1
a237 1
108	COMPAT_43 MPSAFE	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d239 4
a242 4
109	COMPAT_43 MPSAFE	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 MPSAFE	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MPSAFE	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MPSAFE	{ int sys_sigstack(struct sigstack *nss, \
d244 1
a244 1
113	COMPAT_43 MPSAFE	{ int sys_recvmsg(int s, struct omsghdr *msg, \
d246 1
a246 1
114	COMPAT_43 MPSAFE	{ int sys_sendmsg(int s, void *msg, int flags); } \
d249 1
a249 1
116	STD MPSAFE	{ int sys_gettimeofday(struct timeval *tp, \
d251 1
a251 1
117	STD MPSAFE	{ int sys_getrusage(int who, struct rusage *rusage); }
d255 1
a255 1
120	STD MPSAFE	{ ssize_t sys_readv(int fd, \
d257 1
a257 1
121	STD MPSAFE	{ ssize_t sys_writev(int fd, \
d259 1
a259 1
122	STD MPSAFE	{ int sys_settimeofday(const struct timeval *tv, \
d261 3
a263 3
123	STD MPSAFE	{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD MPSAFE	{ int sys_fchmod(int fd, mode_t mode); }
125	COMPAT_43 MPSAFE	{ int sys_recvfrom(int s, void *buf, size_t len, \
d266 4
a269 4
126	STD MPSAFE	{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD MPSAFE	{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD MPSAFE RUMP	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 MPSAFE	{ int sys_truncate(const char *path, long length); } \
d271 4
a274 4
130	COMPAT_43 MPSAFE	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD MPSAFE	{ int sys_flock(int fd, int how); }
132	STD MPSAFE	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD MPSAFE	{ ssize_t sys_sendto(int s, const void *buf, \
d280 3
a282 3
136	STD MPSAFE RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE RUMP	{ int sys_rmdir(const char *path); }
138	STD MPSAFE	{ int sys_utimes(const char *path, \
d285 1
a285 1
140	STD MPSAFE	{ int sys_adjtime(const struct timeval *delta, \
d289 3
a291 3
142	COMPAT_43 MPSAFE	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MPSAFE	{ int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MPSAFE	{ int sys_getrlimit(int which, \
d293 1
a293 1
145	COMPAT_43 MPSAFE	{ int sys_setrlimit(int which, \
d295 3
a297 3
146	COMPAT_43 MPSAFE	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD MPSAFE 	{ int sys_setsid(void); }
148	STD MPSAFE	{ int sys_quotactl(const char *path, int cmd, \
d299 1
a299 1
149	COMPAT_43 MPSAFE	{ int sys_quota(void); } oquota
d312 1
a312 1
155	STD MPSAFE	{ int sys_nfssvc(int flag, void *argp); }
d316 1
a316 1
156	COMPAT_43 MPSAFE { int sys_getdirentries(int fd, char *buf, \
d318 1
a318 1
157	COMPAT_20 MPSAFE	{ int sys_statfs(const char *path, \
d320 1
a320 1
158	COMPAT_20 MPSAFE	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d323 1
a323 1
161	COMPAT_30 MPSAFE { int sys_getfh(const char *fname, \
d325 1
a325 1
162	COMPAT_09 MPSAFE { int sys_getdomainname(char *domainname, int len); } \
d327 1
a327 1
163	COMPAT_09 MPSAFE { int sys_setdomainname(char *domainname, int len); } \
d329 2
a330 2
164	COMPAT_09 MPSAFE	{ int sys_uname(struct outsname *name); } ouname
165	STD MPSAFE	{ int sys_sysarch(int op, void *parms); }
d336 1
a336 1
169	COMPAT_10 MPSAFE	{ int sys_semsys(int which, int a2, int a3, int a4, \
d343 1
a343 1
170	COMPAT_10 MPSAFE	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d350 1
a350 1
171	COMPAT_10 MPSAFE	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d356 1
a356 1
173	STD MPSAFE	{ ssize_t sys_pread(int fd, void *buf, \
d358 1
a358 1
174	STD MPSAFE	{ ssize_t sys_pwrite(int fd, const void *buf, \
d361 1
a361 1
175	COMPAT_30 MPSAFE { int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d363 1
a363 1
176	STD MPSAFE	{ int sys_ntp_adjtime(struct timex *tp); }
d373 3
a375 3
181	STD MPSAFE	{ int sys_setgid(gid_t gid); }
182	STD MPSAFE	{ int sys_setegid(gid_t egid); }
183	STD MPSAFE	{ int sys_seteuid(uid_t euid); }
d377 1
a377 1
184	STD MPSAFE	{ int sys_lfs_bmapv(fsid_t *fsidp, \
d379 1
a379 1
185	STD MPSAFE	{ int sys_lfs_markv(fsid_t *fsidp, \
d381 2
a382 2
186	STD MPSAFE	{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD MPSAFE	{ int sys_lfs_segwait(fsid_t *fsidp, \
d390 1
a390 1
188	COMPAT_12 MPSAFE	{ int sys_stat(const char *path, struct stat12 *ub); } \
d392 2
a393 2
189	COMPAT_12 MPSAFE	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MPSAFE	{ int sys_lstat(const char *path, \
d395 2
a396 2
191	STD MPSAFE	{ long sys_pathconf(const char *path, int name); }
192	STD MPSAFE	{ long sys_fpathconf(int fd, int name); }
d398 1
a398 1
194	STD MPSAFE	{ int sys_getrlimit(int which, \
d400 1
a400 1
195	STD MPSAFE	{ int sys_setrlimit(int which, \
d402 1
a402 1
196	COMPAT_12 MPSAFE	{ int sys_getdirentries(int fd, char *buf, \
d404 1
a404 1
197	STD MPSAFE	{ void *sys_mmap(void *addr, size_t len, int prot, \
d408 1
a408 1
199	STD MPSAFE	{ off_t sys_lseek(int fd, int pad, off_t offset, \
d410 1
a410 1
200	STD MPSAFE RUMP	{ int sys_truncate(const char *path, int pad, \
d412 2
a413 2
201	STD MPSAFE	{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD MPSAFE	{ int sys___sysctl(const int *name, u_int namelen, \
d416 4
a419 4
203	STD MPSAFE	{ int sys_mlock(const void *addr, size_t len); }
204	STD MPSAFE	{ int sys_munlock(const void *addr, size_t len); }
205	STD MPSAFE	{ int sys_undelete(const char *path); }
206	STD MPSAFE	{ int sys_futimes(int fd, \
d421 3
a423 3
207	STD MPSAFE	{ pid_t sys_getpgid(pid_t pid); }
208	STD MPSAFE	{ int sys_reboot(int opt, char *bootstr); }
209	STD MPSAFE	{ int sys_poll(struct pollfd *fds, u_int nfds, \
d453 1
a453 1
220	COMPAT_14 MPSAFE	{ int sys___semctl(int semid, int semnum, int cmd, \
d455 2
a456 2
221	STD MPSAFE	{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD MPSAFE	{ int sys_semop(int semid, struct sembuf *sops, \
d458 1
a458 1
223	STD MPSAFE	{ int sys_semconfig(int flag); }
d466 1
a466 1
224	COMPAT_14 MPSAFE { int sys_msgctl(int msqid, int cmd, \
d468 2
a469 2
225	STD MPSAFE	{ int sys_msgget(key_t key, int msgflg); }
226	STD MPSAFE	{ int sys_msgsnd(int msqid, const void *msgp, \
d471 1
a471 1
227	STD MPSAFE	{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d480 1
a480 1
228	STD MPSAFE	{ void *sys_shmat(int shmid, const void *shmaddr, \
d482 1
a482 1
229	COMPAT_14 MPSAFE { int sys_shmctl(int shmid, int cmd, \
d484 2
a485 2
230	STD MPSAFE	{ int sys_shmdt(const void *shmaddr); }
231	STD MPSAFE	{ int sys_shmget(key_t key, size_t size, int shmflg); }
d492 1
a492 1
232	STD MPSAFE	{ int sys_clock_gettime(clockid_t clock_id, \
d494 1
a494 1
233	STD MPSAFE	{ int sys_clock_settime(clockid_t clock_id, \
d496 1
a496 1
234	STD MPSAFE	{ int sys_clock_getres(clockid_t clock_id, \
d498 1
a498 1
235	STD MPSAFE	{ int sys_timer_create(clockid_t clock_id, \
d500 2
a501 2
236	STD MPSAFE	{ int sys_timer_delete(timer_t timerid); }
237	STD MPSAFE	{ int sys_timer_settime(timer_t timerid, int flags, \
d504 1
a504 1
238	STD MPSAFE	{ int sys_timer_gettime(timer_t timerid, struct \
d506 1
a506 1
239	STD MPSAFE	{ int sys_timer_getoverrun(timer_t timerid); }
d510 1
a510 1
240	STD MPSAFE	{ int sys_nanosleep(const struct timespec *rqtp, \
d512 4
a515 4
241	STD MPSAFE	{ int sys_fdatasync(int fd); }
242	STD MPSAFE	{ int sys_mlockall(int flags); }
243	STD MPSAFE	{ int sys_munlockall(void); }
244	STD MPSAFE	{ int sys___sigtimedwait(const sigset_t *set, \
d519 1
a519 1
246	STD MPSAFE	{ int sys_modctl(int cmd, void *arg); }
d521 2
a522 2
247	STD MPSAFE	{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD MPSAFE	{ int sys__ksem_open(const char *name, int oflag, \
d524 6
a529 6
249	STD MPSAFE	{ int sys__ksem_unlink(const char *name); }
250	STD MPSAFE	{ int sys__ksem_close(semid_t id); }
251	STD MPSAFE	{ int sys__ksem_post(semid_t id); }
252	STD MPSAFE	{ int sys__ksem_wait(semid_t id); }
253	STD MPSAFE	{ int sys__ksem_trywait(semid_t id); }
254	STD MPSAFE	{ int sys__ksem_getvalue(semid_t id, \
d531 1
a531 1
255	STD MPSAFE	{ int sys__ksem_destroy(semid_t id); }
d545 1
a545 1
257	STD MPSAFE	{ mqd_t sys_mq_open(const char * name, int oflag, \
d547 3
a549 3
258	STD MPSAFE	{ int sys_mq_close(mqd_t mqdes); }
259	STD MPSAFE	{ int sys_mq_unlink(const char *name); }
260	STD MPSAFE	{ int sys_mq_getattr(mqd_t mqdes, \
d551 1
a551 1
261	STD MPSAFE	{ int sys_mq_setattr(mqd_t mqdes, \
d554 1
a554 1
262	STD MPSAFE	{ int sys_mq_notify(mqd_t mqdes, \
d556 1
a556 1
263	STD MPSAFE	{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d558 1
a558 1
264	STD MPSAFE	{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d560 1
a560 1
265	STD MPSAFE	{ int sys_mq_timedsend(mqd_t mqdes, \
d564 1
a564 1
266	STD MPSAFE	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d570 1
a570 1
270	STD MPSAFE	{ int sys___posix_rename(const char *from, \
d572 3
a574 3
271	STD MPSAFE	{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MPSAFE	{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD MPSAFE	{ int sys_minherit(void *addr, size_t len, \
d576 2
a577 2
274	STD MPSAFE RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d579 1
a579 1
276	STD MPSAFE	{ int sys_lutimes(const char *path, \
d581 5
a585 5
277	STD MPSAFE	{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 MPSAFE	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MPSAFE	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MPSAFE	{ int sys___lstat13(const char *path, struct stat13 *ub); }
281	STD MPSAFE	{ int sys___sigaltstack14( \
d588 2
a589 2
282	STD MPSAFE	{ int sys___vfork14(void); }
283	STD MPSAFE	{ int sys___posix_chown(const char *path, uid_t uid, \
d591 1
a591 1
284	STD MPSAFE	{ int sys___posix_fchown(int fd, uid_t uid, \
d593 1
a593 1
285	STD MPSAFE	{ int sys___posix_lchown(const char *path, uid_t uid, \
d595 3
a597 3
286	STD MPSAFE	{ pid_t sys_getsid(pid_t pid); }
287	STD MPSAFE	{ pid_t sys___clone(int flags, void *stack); }
288	STD MPSAFE	{ int sys_fktrace(int fd, int ops, \
d599 1
a599 1
289	STD MPSAFE	{ ssize_t sys_preadv(int fd, \
d602 1
a602 1
290	STD MPSAFE	{ ssize_t sys_pwritev(int fd, \
d605 1
a605 1
291	COMPAT_16 MPSAFE	{ int sys___sigaction14(int signum, \
d608 2
a609 2
292	STD MPSAFE	{ int sys___sigpending14(sigset_t *set); }
293	STD MPSAFE	{ int sys___sigprocmask14(int how, \
d612 6
a617 6
294	STD MPSAFE	{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 MPSAFE { int sys___sigreturn14(struct sigcontext *sigcntxp); }
296	STD MPSAFE	{ int sys___getcwd(char *bufp, size_t length); }
297	STD MPSAFE	{ int sys_fchroot(int fd); }
298	COMPAT_30 MPSAFE	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MPSAFE	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d619 1
a619 1
300	COMPAT_20 MPSAFE	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d622 1
a622 1
301	STD MPSAFE	{ int sys_____semctl13(int semid, int semnum, int cmd, \
d628 1
a628 1
302	STD MPSAFE	{ int sys___msgctl13(int msqid, int cmd, \
d634 1
a634 1
303	STD MPSAFE	{ int sys___shmctl13(int shmid, int cmd, \
d639 3
a641 3
304	STD MPSAFE	{ int sys_lchflags(const char *path, u_long flags); }
305	STD MPSAFE	{ int sys_issetugid(void); }
306	STD MPSAFE	{ int sys_utrace(const char *label, void *addr, \
d643 3
a645 3
307	STD MPSAFE	{ int sys_getcontext(struct __ucontext *ucp); }
308	STD MPSAFE	{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD MPSAFE	{ int sys__lwp_create(const struct __ucontext *ucp, \
d647 3
a649 3
310	STD MPSAFE	{ int sys__lwp_exit(void); }
311	STD MPSAFE	{ lwpid_t sys__lwp_self(void); }
312	STD MPSAFE	{ int sys__lwp_wait(lwpid_t wait_for, \
d651 8
a658 8
313	STD MPSAFE	{ int sys__lwp_suspend(lwpid_t target); }
314	STD MPSAFE	{ int sys__lwp_continue(lwpid_t target); }
315	STD MPSAFE	{ int sys__lwp_wakeup(lwpid_t target); }
316	STD MPSAFE	{ void *sys__lwp_getprivate(void); }
317	STD MPSAFE	{ void sys__lwp_setprivate(void *ptr); }
318	STD MPSAFE	{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD MPSAFE	{ int sys__lwp_detach(lwpid_t target); }
320	STD MPSAFE	{ int sys__lwp_park(const struct timespec *ts, \
d661 2
a662 2
321	STD MPSAFE	{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD MPSAFE	{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
d664 1
a664 1
323	STD MPSAFE	{ int sys__lwp_setname(lwpid_t target, \
d666 1
a666 1
324	STD MPSAFE	{ int sys__lwp_getname(lwpid_t target, \
d668 1
a668 1
325	STD MPSAFE	{ int sys__lwp_ctl(int features, \
d676 7
a682 7
330	STD MPSAFE	{ int sys_sa_register(void); }
331	STD MPSAFE	{ int sys_sa_stacks(void); }
332	STD MPSAFE	{ int sys_sa_enable(void); }
333	STD MPSAFE	{ int sys_sa_setconcurrency(void); }
334	STD MPSAFE	{ int sys_sa_yield(void); }
335	STD MPSAFE	{ int sys_sa_preempt(void); }
336	STD MPSAFE	{ int sys_sa_unblockyield(void); }
d686 1
a686 1
340	STD MPSAFE	{ int sys___sigaction_sigtramp(int signum, \
d690 5
a694 5
341	STD MPSAFE	{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD MPSAFE	{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD MPSAFE	{ int sys_rasctl(void *addr, size_t len, int op); }
344	STD MPSAFE	{ int sys_kqueue(void); }
345	STD MPSAFE	{ int sys_kevent(int fd, \
d700 1
a700 1
346	STD MPSAFE	{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
d702 1
a702 1
347	STD MPSAFE	{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
d704 1
a704 1
348	STD MPSAFE	{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
d706 1
a706 1
349	STD MPSAFE	{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
d708 1
a708 1
350	STD MPSAFE	{ int sys_sched_yield(void); }
d713 1
a713 1
354	STD MPSAFE	{ int sys_fsync_range(int fd, int flags, off_t start, \
d715 2
a716 2
355	STD MPSAFE	{ int sys_uuidgen(struct uuid *store, int count); }
356	STD MPSAFE	{ int sys_getvfsstat(struct statvfs *buf, \
d718 1
a718 1
357	STD MPSAFE	{ int sys_statvfs1(const char *path, \
d720 1
a720 1
358	STD MPSAFE	{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d722 1
a722 1
359	COMPAT_30 MPSAFE	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d724 1
a724 1
360	STD MPSAFE	{ int sys_extattrctl(const char *path, int cmd, \
d727 1
a727 1
361	STD MPSAFE	{ int sys_extattr_set_file(const char *path, \
d730 1
a730 1
362	STD MPSAFE	{ ssize_t sys_extattr_get_file(const char *path, \
d733 1
a733 1
363	STD MPSAFE	{ int sys_extattr_delete_file(const char *path, \
d735 1
a735 1
364	STD MPSAFE	{ int sys_extattr_set_fd(int fd, \
d738 1
a738 1
365	STD MPSAFE	{ ssize_t sys_extattr_get_fd(int fd, \
d741 1
a741 1
366	STD MPSAFE	{ int sys_extattr_delete_fd(int fd, \
d743 1
a743 1
367	STD MPSAFE	{ int sys_extattr_set_link(const char *path, \
d746 1
a746 1
368	STD MPSAFE	{ ssize_t sys_extattr_get_link(const char *path, \
d749 1
a749 1
369	STD MPSAFE	{ int sys_extattr_delete_link(const char *path, \
d751 1
a751 1
370	STD MPSAFE	{ ssize_t sys_extattr_list_fd(int fd, \
d753 1
a753 1
371	STD MPSAFE	{ ssize_t sys_extattr_list_file(const char *path, \
d755 1
a755 1
372	STD MPSAFE	{ ssize_t sys_extattr_list_link(const char *path, \
d757 1
a757 1
373	STD MPSAFE	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d760 1
a760 1
374	STD MPSAFE	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d762 1
a762 1
375	STD MPSAFE	{ int sys_setxattr(const char *path, \
d765 1
a765 1
376	STD MPSAFE	{ int sys_lsetxattr(const char *path, \
d768 1
a768 1
377	STD MPSAFE	{ int sys_fsetxattr(int fd, \
d771 1
a771 1
378	STD MPSAFE	{ int sys_getxattr(const char *path, \
d773 1
a773 1
379	STD MPSAFE	{ int sys_lgetxattr(const char *path, \
d775 1
a775 1
380	STD MPSAFE	{ int sys_fgetxattr(int fd, \
d777 1
a777 1
381	STD MPSAFE	{ int sys_listxattr(const char *path, \
d779 1
a779 1
382	STD MPSAFE	{ int sys_llistxattr(const char *path, \
d781 1
a781 1
383	STD MPSAFE	{ int sys_flistxattr(int fd, \
d783 1
a783 1
384	STD MPSAFE	{ int sys_removexattr(const char *path, \
d785 1
a785 1
385	STD MPSAFE	{ int sys_lremovexattr(const char *path, \
d787 1
a787 1
386	STD MPSAFE	{ int sys_fremovexattr(int fd, \
d789 4
a792 4
387	STD MPSAFE	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD MPSAFE	{ int sys___fstat30(int fd, struct stat *sb); }
389	STD MPSAFE	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD MPSAFE	{ int sys___getdents30(int fd, char *buf, size_t count); }
d794 1
a794 1
392	COMPAT_30 MPSAFE	{ int sys___fhstat30(const struct compat_30_fhandle \
d796 1
a796 1
393	STD MPSAFE	{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
d798 1
a798 1
395	STD MPSAFE	{ int sys___getfh30(const char *fname, void *fhp, \
d800 1
a800 1
396	STD MPSAFE	{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d802 1
a802 1
397	STD MPSAFE	{ int sys___fhstatvfs140(const void *fhp, \
d804 1
a804 1
398	STD MPSAFE	{ int sys___fhstat40(const void *fhp, \
d808 6
a813 6
399	STD MPSAFE	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MPSAFE	{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD MPSAFE	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MPSAFE	{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD MPSAFE	{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD MPSAFE	{ int sys_aio_suspend(const struct aiocb *const *list, \
d815 2
a816 2
405	STD MPSAFE	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MPSAFE	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d823 1
a823 1
410	STD MPSAFE	{ int sys___mount50(const char *type, \
d826 1
a826 1
411	STD MPSAFE	{ void *sys_mremap(void *old_address, size_t old_size, \
d830 3
a832 3
412	STD MPSAFE	{ int sys_pset_create(psetid_t *psid); }
413	STD MPSAFE	{ int sys_pset_destroy(psetid_t psid); }
414	STD MPSAFE	{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
d834 1
a834 1
415	STD MPSAFE	{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
d836 1
a836 1
416	STD MPSAFE	{ int sys___posix_fadvise50(int fd, int pad, \
@


1.198
log
@Acquire kernel_lock directly in LFS syscalls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.197 2008/04/21 00:13:46 ad Exp $
d161 1
a161 1
55	COMPAT_12	{ int sys_reboot(int opt); } oreboot
d286 1
a286 1
140	STD		{ int sys_adjtime(const struct timeval *delta, \
d331 1
a331 1
165	STD		{ int sys_sysarch(int op, void *parms); }
d362 1
a362 1
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d364 1
a364 1
176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
d423 1
a423 1
208	STD		{ int sys_reboot(int opt, char *bootstr); }
d691 2
a692 2
341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
d797 1
a797 1
393	STD		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
@


1.197
log
@timer fixes for PR 37093:

- Fix serious concurrency problems, making the code MT and MP safe in
  the process.
- Don't allocate memory or inspect process state from hardclock().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196 2008/03/27 17:13:25 ad Exp $
d378 1
a378 1
184	STD		{ int sys_lfs_bmapv(fsid_t *fsidp, \
d380 1
a380 1
185	STD		{ int sys_lfs_markv(fsid_t *fsidp, \
d382 2
a383 2
186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD		{ int sys_lfs_segwait(fsid_t *fsidp, \
@


1.196
log
@Put kqueue/kevent back as MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.195 2008/03/24 23:46:43 yamt Exp $
d200 1
a200 1
83	STD		{ int sys_setitimer(int which, \
d205 1
a205 1
86	STD		{ int sys_getitimer(int which, \
d499 1
a499 1
235	STD		{ int sys_timer_create(clockid_t clock_id, \
d501 2
a502 2
236	STD		{ int sys_timer_delete(timer_t timerid); }
237	STD		{ int sys_timer_settime(timer_t timerid, int flags, \
d505 1
a505 1
238	STD		{ int sys_timer_gettime(timer_t timerid, struct \
d507 1
a507 1
239	STD		{ int sys_timer_getoverrun(timer_t timerid); }
@


1.196.4.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196 2008/03/27 17:13:25 ad Exp $
d15 1
d69 4
a72 4
1	STD 		{ void sys_exit(int rval); }
2	STD 		{ int sys_fork(void); }
3	STD 	 RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d74 1
a74 1
5	STD 	 RUMP	{ int sys_open(const char *path, \
d76 2
a77 2
6	STD 	 RUMP	{ int sys_close(int fd); }
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
d79 3
a81 3
8	COMPAT_43 	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD 	 RUMP	{ int sys_link(const char *path, const char *link); }
10	STD 	 RUMP	{ int sys_unlink(const char *path); }
d83 3
a85 3
12	STD 	 RUMP	{ int sys_chdir(const char *path); }
13	STD 	 RUMP	{ int sys_fchdir(int fd); }
14	STD 	 RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d87 2
a88 2
15	STD 	 RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int sys_chown(const char *path, uid_t uid, \
d90 2
a91 2
17	STD 		{ int sys_obreak(char *nsize); } break
18	COMPAT_20 	{ int sys_getfsstat(struct statfs12 *buf, \
d93 1
a93 1
19	COMPAT_43 	{ long sys_lseek(int fd, long offset, int whence); } \
d96 1
a96 1
20	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
d98 1
a98 1
20	STD 		{ pid_t sys_getpid(void); }
d100 1
a100 1
21	COMPAT_40 	{ int sys_mount(const char *type, const char *path, \
d102 2
a103 2
22	STD 	 RUMP	{ int sys_unmount(const char *path, int flags); }
23	STD 		{ int sys_setuid(uid_t uid); }
d105 1
a105 1
24	STD 		{ uid_t sys_getuid_with_euid(void); } getuid
d107 1
a107 1
24	STD 		{ uid_t sys_getuid(void); }
d109 2
a110 2
25	STD 		{ uid_t sys_geteuid(void); }
26	STD 		{ int sys_ptrace(int req, pid_t pid, void *addr, \
d112 1
a112 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d116 1
a116 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d125 6
a130 6
33	STD 	 RUMP	{ int sys_access(const char *path, int flags); }
34	STD 	 RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD 	 RUMP	{ int sys_fchflags(int fd, u_long flags); }
36	STD 	 RUMP	{ void sys_sync(void); }
37	STD 		{ int sys_kill(int pid, int signum); }
38	COMPAT_43 	{ int sys_stat(const char *path, struct stat43 *ub); } \
d132 2
a133 2
39	STD 		{ pid_t sys_getppid(void); }
40	COMPAT_43 	{ int sys_lstat(const char *path, \
d135 4
a138 4
41	STD 		{ int sys_dup(int fd); }
42	STD 		{ int sys_pipe(void); }
43	STD 		{ gid_t sys_getegid(void); }
44	STD 		{ int sys_profil(char *samples, size_t size, \
d140 1
a140 1
45	STD 		{ int sys_ktrace(const char *fname, int ops, \
d142 1
a142 1
46	COMPAT_13 	{ int sys_sigaction(int signum, \
d146 1
a146 1
47	STD 		{ gid_t sys_getgid_with_egid(void); } getgid
d148 1
a148 1
47	STD 		{ gid_t sys_getgid(void); }
d150 1
a150 1
48	COMPAT_13 	{ int sys_sigprocmask(int how, \
d152 5
a156 5
49	STD 		{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int sys___setlogin(const char *namebuf); }
51	STD 		{ int sys_acct(const char *path); }
52	COMPAT_13 	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 	{ int sys_sigaltstack( \
d159 1
a159 1
54	STD 		{ int sys_ioctl(int fd, \
d161 3
a163 3
55	COMPAT_12 	{ int sys_reboot(int opt); } oreboot
56	STD 		{ int sys_revoke(const char *path); }
57	STD 	 RUMP	{ int sys_symlink(const char *path, \
d165 1
a165 1
58	STD 	 RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d167 1
a167 1
59	STD 		{ int sys_execve(const char *path, \
d169 4
a172 4
60	STD 		{ mode_t sys_umask(mode_t newmask); }
61	STD 		{ int sys_chroot(const char *path); }
62	COMPAT_43 	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 	{ int sys_getkerninfo(int op, char *where, int *size, \
d174 2
a175 2
64	COMPAT_43 	 { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 	 { int sys_msync(void *addr, size_t len); }
d177 1
a177 1
66	STD 		{ int sys_vfork(void); }
d180 3
a182 3
69	STD 		{ int sys_sbrk(intptr_t incr); }
70	STD 		{ int sys_sstk(int incr); }
71	COMPAT_43 	{ int sys_mmap(void *addr, size_t len, int prot, \
d184 3
a186 3
72	STD 		{ int sys_ovadvise(int anom); } vadvise
73	STD 		{ int sys_munmap(void *addr, size_t len); }
74	STD 		{ int sys_mprotect(void *addr, size_t len, \
d188 1
a188 1
75	STD 		{ int sys_madvise(void *addr, size_t len, \
d192 1
a192 1
78	STD 		{ int sys_mincore(void *addr, size_t len, \
d194 1
a194 1
79	STD 		{ int sys_getgroups(int gidsetsize, \
d196 1
a196 1
80	STD 		{ int sys_setgroups(int gidsetsize, \
d198 3
a200 3
81	STD 	 	{ int sys_getpgrp(void); }
82	STD 		{ int sys_setpgid(int pid, int pgid); }
83	STD 		{ int sys_setitimer(int which, \
d203 3
a205 3
84	COMPAT_43 	{ int sys_wait(void); } owait
85	COMPAT_12 	{ int sys_swapon(const char *name); } oswapon
86	STD 		{ int sys_getitimer(int which, \
d207 1
a207 1
87	COMPAT_43 	{ int sys_gethostname(char *hostname, u_int len); } \
d209 1
a209 1
88	COMPAT_43 	{ int sys_sethostname(char *hostname, u_int len); } \
d211 2
a212 2
89	COMPAT_43 	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD 		{ int sys_dup2(int from, int to); }
d214 2
a215 2
92	STD 		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD 		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d218 2
a219 2
95	STD 		{ int sys_fsync(int fd); }
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
d225 2
a226 2
100	STD 		{ int sys_getpriority(int which, id_t who); }
101	COMPAT_43 	{ int sys_send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43 	{ int sys_recv(int s, void *buf, int len, \
d230 1
a230 1
103	COMPAT_13 	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d238 1
a238 1
108	COMPAT_43 	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d240 4
a243 4
109	COMPAT_43 	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 	{ int sys_sigstack(struct sigstack *nss, \
d245 1
a245 1
113	COMPAT_43 	{ int sys_recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43 	{ int sys_sendmsg(int s, void *msg, int flags); } \
d250 1
a250 1
116	STD 		{ int sys_gettimeofday(struct timeval *tp, \
d252 1
a252 1
117	STD 		{ int sys_getrusage(int who, struct rusage *rusage); }
d256 1
a256 1
120	STD 		{ ssize_t sys_readv(int fd, \
d258 1
a258 1
121	STD 		{ ssize_t sys_writev(int fd, \
d260 1
a260 1
122	STD 		{ int sys_settimeofday(const struct timeval *tv, \
d262 3
a264 3
123	STD 		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD 		{ int sys_fchmod(int fd, mode_t mode); }
125	COMPAT_43 	{ int sys_recvfrom(int s, void *buf, size_t len, \
d267 4
a270 4
126	STD 		{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 	{ int sys_truncate(const char *path, long length); } \
d272 4
a275 4
130	COMPAT_43 	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD 		{ int sys_flock(int fd, int how); }
132	STD 		{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
d281 3
a283 3
136	STD 	 RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int sys_rmdir(const char *path); }
138	STD 		{ int sys_utimes(const char *path, \
d286 1
a286 1
140	STD 		{ int sys_adjtime(const struct timeval *delta, \
d290 3
a292 3
142	COMPAT_43 	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 	{ int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 	{ int sys_getrlimit(int which, \
d294 1
a294 1
145	COMPAT_43 	{ int sys_setrlimit(int which, \
d296 3
a298 3
146	COMPAT_43 	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD 	 	{ int sys_setsid(void); }
148	STD 		{ int sys_quotactl(const char *path, int cmd, \
d300 1
a300 1
149	COMPAT_43 	{ int sys_quota(void); } oquota
d313 1
a313 1
155	STD 		{ int sys_nfssvc(int flag, void *argp); }
d317 1
a317 1
156	COMPAT_43 	 { int sys_getdirentries(int fd, char *buf, \
d319 1
a319 1
157	COMPAT_20 	{ int sys_statfs(const char *path, \
d321 1
a321 1
158	COMPAT_20 	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d324 1
a324 1
161	COMPAT_30 	 { int sys_getfh(const char *fname, \
d326 1
a326 1
162	COMPAT_09 	 { int sys_getdomainname(char *domainname, int len); } \
d328 1
a328 1
163	COMPAT_09 	 { int sys_setdomainname(char *domainname, int len); } \
d330 2
a331 2
164	COMPAT_09 		{ int sys_uname(struct outsname *name); } ouname
165	STD 		{ int sys_sysarch(int op, void *parms); }
d337 1
a337 1
169	COMPAT_10 	{ int sys_semsys(int which, int a2, int a3, int a4, \
d344 1
a344 1
170	COMPAT_10 	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d351 1
a351 1
171	COMPAT_10 		{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d357 1
a357 1
173	STD 		{ ssize_t sys_pread(int fd, void *buf, \
d359 1
a359 1
174	STD 		{ ssize_t sys_pwrite(int fd, const void *buf, \
d362 1
a362 1
175	COMPAT_30 	 { int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d364 1
a364 1
176	STD 		{ int sys_ntp_adjtime(struct timex *tp); }
d374 3
a376 3
181	STD 		{ int sys_setgid(gid_t gid); }
182	STD 		{ int sys_setegid(gid_t egid); }
183	STD 		{ int sys_seteuid(uid_t euid); }
d378 1
a378 1
184	STD 		{ int sys_lfs_bmapv(fsid_t *fsidp, \
d380 1
a380 1
185	STD 		{ int sys_lfs_markv(fsid_t *fsidp, \
d382 2
a383 2
186	STD 		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD 		{ int sys_lfs_segwait(fsid_t *fsidp, \
d391 1
a391 1
188	COMPAT_12 	{ int sys_stat(const char *path, struct stat12 *ub); } \
d393 2
a394 2
189	COMPAT_12 	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 	{ int sys_lstat(const char *path, \
d396 2
a397 2
191	STD 		{ long sys_pathconf(const char *path, int name); }
192	STD 		{ long sys_fpathconf(int fd, int name); }
d399 1
a399 1
194	STD 		{ int sys_getrlimit(int which, \
d401 1
a401 1
195	STD 		{ int sys_setrlimit(int which, \
d403 1
a403 1
196	COMPAT_12 	{ int sys_getdirentries(int fd, char *buf, \
d405 1
a405 1
197	STD 		{ void *sys_mmap(void *addr, size_t len, int prot, \
d409 1
a409 1
199	STD 		{ off_t sys_lseek(int fd, int pad, off_t offset, \
d411 1
a411 1
200	STD 	 RUMP	{ int sys_truncate(const char *path, int pad, \
d413 2
a414 2
201	STD 		{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD 		{ int sys___sysctl(const int *name, u_int namelen, \
d417 4
a420 4
203	STD 		{ int sys_mlock(const void *addr, size_t len); }
204	STD 		{ int sys_munlock(const void *addr, size_t len); }
205	STD 		{ int sys_undelete(const char *path); }
206	STD 		{ int sys_futimes(int fd, \
d422 3
a424 3
207	STD 		{ pid_t sys_getpgid(pid_t pid); }
208	STD 		{ int sys_reboot(int opt, char *bootstr); }
209	STD 		{ int sys_poll(struct pollfd *fds, u_int nfds, \
d454 1
a454 1
220	COMPAT_14 	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD 		{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD 		{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD 		{ int sys_semconfig(int flag); }
d467 1
a467 1
224	COMPAT_14 	{ int sys_msgctl(int msqid, int cmd, \
d469 2
a470 2
225	STD 		{ int sys_msgget(key_t key, int msgflg); }
226	STD 		{ int sys_msgsnd(int msqid, const void *msgp, \
d472 1
a472 1
227	STD 		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d481 1
a481 1
228	STD 		{ void *sys_shmat(int shmid, const void *shmaddr, \
d483 1
a483 1
229	COMPAT_14 	{ int sys_shmctl(int shmid, int cmd, \
d485 2
a486 2
230	STD 		{ int sys_shmdt(const void *shmaddr); }
231	STD 		{ int sys_shmget(key_t key, size_t size, int shmflg); }
d493 1
a493 1
232	STD 		{ int sys_clock_gettime(clockid_t clock_id, \
d495 1
a495 1
233	STD 		{ int sys_clock_settime(clockid_t clock_id, \
d497 1
a497 1
234	STD 		{ int sys_clock_getres(clockid_t clock_id, \
d499 1
a499 1
235	STD 		{ int sys_timer_create(clockid_t clock_id, \
d501 2
a502 2
236	STD 		{ int sys_timer_delete(timer_t timerid); }
237	STD 		{ int sys_timer_settime(timer_t timerid, int flags, \
d505 1
a505 1
238	STD 		{ int sys_timer_gettime(timer_t timerid, struct \
d507 1
a507 1
239	STD 		{ int sys_timer_getoverrun(timer_t timerid); }
d511 1
a511 1
240	STD 		{ int sys_nanosleep(const struct timespec *rqtp, \
d513 4
a516 4
241	STD 		{ int sys_fdatasync(int fd); }
242	STD 		{ int sys_mlockall(int flags); }
243	STD 		{ int sys_munlockall(void); }
244	STD 		{ int sys___sigtimedwait(const sigset_t *set, \
d520 1
a520 1
246	STD 		{ int sys_modctl(int cmd, void *arg); }
d522 2
a523 2
247	STD 		{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD 		{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD 		{ int sys__ksem_unlink(const char *name); }
250	STD 		{ int sys__ksem_close(semid_t id); }
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD 		{ int sys__ksem_destroy(semid_t id); }
d546 1
a546 1
257	STD 		{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD 		{ int sys_mq_close(mqd_t mqdes); }
259	STD 		{ int sys_mq_unlink(const char *name); }
260	STD 		{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD 		{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD 		{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD 		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD 		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	STD 		{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	STD 		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD 		{ int sys___posix_rename(const char *from, \
d573 3
a575 3
271	STD 		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 		{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD 		{ int sys_minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD 	 RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	STD 		{ int sys_lutimes(const char *path, \
d582 5
a586 5
277	STD 		{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 	{ int sys___lstat13(const char *path, struct stat13 *ub); }
281	STD 		{ int sys___sigaltstack14( \
d589 2
a590 2
282	STD 		{ int sys___vfork14(void); }
283	STD 		{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD 		{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD 		{ int sys___posix_lchown(const char *path, uid_t uid, \
d596 3
a598 3
286	STD 		{ pid_t sys_getsid(pid_t pid); }
287	STD 		{ pid_t sys___clone(int flags, void *stack); }
288	STD 		{ int sys_fktrace(int fd, int ops, \
d600 1
a600 1
289	STD 		{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD 		{ ssize_t sys_pwritev(int fd, \
d606 1
a606 1
291	COMPAT_16 	{ int sys___sigaction14(int signum, \
d609 2
a610 2
292	STD 		{ int sys___sigpending14(sigset_t *set); }
293	STD 		{ int sys___sigprocmask14(int how, \
d613 6
a618 6
294	STD 		{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 	{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
296	STD 		{ int sys___getcwd(char *bufp, size_t length); }
297	STD 		{ int sys_fchroot(int fd); }
298	COMPAT_30 	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d623 1
a623 1
301	STD 		{ int sys_____semctl13(int semid, int semnum, int cmd, \
d629 1
a629 1
302	STD 		{ int sys___msgctl13(int msqid, int cmd, \
d635 1
a635 1
303	STD 		{ int sys___shmctl13(int shmid, int cmd, \
d640 3
a642 3
304	STD 		{ int sys_lchflags(const char *path, u_long flags); }
305	STD 		{ int sys_issetugid(void); }
306	STD 		{ int sys_utrace(const char *label, void *addr, \
d644 3
a646 3
307	STD 		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD 		{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD 		{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 3
a650 3
310	STD 		{ int sys__lwp_exit(void); }
311	STD 		{ lwpid_t sys__lwp_self(void); }
312	STD 		{ int sys__lwp_wait(lwpid_t wait_for, \
d652 8
a659 8
313	STD 		{ int sys__lwp_suspend(lwpid_t target); }
314	STD 		{ int sys__lwp_continue(lwpid_t target); }
315	STD 		{ int sys__lwp_wakeup(lwpid_t target); }
316	STD 		{ void *sys__lwp_getprivate(void); }
317	STD 		{ void sys__lwp_setprivate(void *ptr); }
318	STD 		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int sys__lwp_detach(lwpid_t target); }
320	STD 		{ int sys__lwp_park(const struct timespec *ts, \
d662 2
a663 2
321	STD 		{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
d665 1
a665 1
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD 		{ int sys__lwp_ctl(int features, \
d677 7
a683 7
330	STD 		{ int sys_sa_register(void); }
331	STD 		{ int sys_sa_stacks(void); }
332	STD 		{ int sys_sa_enable(void); }
333	STD 		{ int sys_sa_setconcurrency(void); }
334	STD 		{ int sys_sa_yield(void); }
335	STD 		{ int sys_sa_preempt(void); }
336	STD 		{ int sys_sa_unblockyield(void); }
d687 1
a687 1
340	STD 		{ int sys___sigaction_sigtramp(int signum, \
d691 5
a695 5
341	STD 		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD 		{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD 		{ int sys_rasctl(void *addr, size_t len, int op); }
344	STD 		{ int sys_kqueue(void); }
345	STD 		{ int sys_kevent(int fd, \
d701 1
a701 1
346	STD 		{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
d703 1
a703 1
347	STD 		{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
d705 1
a705 1
348	STD 		{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
d707 1
a707 1
349	STD 		{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
d709 1
a709 1
350	STD 		{ int sys_sched_yield(void); }
d714 1
a714 1
354	STD 		{ int sys_fsync_range(int fd, int flags, off_t start, \
d716 2
a717 2
355	STD 		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD 		{ int sys_getvfsstat(struct statvfs *buf, \
d719 1
a719 1
357	STD 		{ int sys_statvfs1(const char *path, \
d721 1
a721 1
358	STD 		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d723 1
a723 1
359	COMPAT_30 		{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d725 1
a725 1
360	STD 		{ int sys_extattrctl(const char *path, int cmd, \
d728 1
a728 1
361	STD 		{ int sys_extattr_set_file(const char *path, \
d731 1
a731 1
362	STD 		{ ssize_t sys_extattr_get_file(const char *path, \
d734 1
a734 1
363	STD 		{ int sys_extattr_delete_file(const char *path, \
d736 1
a736 1
364	STD 		{ int sys_extattr_set_fd(int fd, \
d739 1
a739 1
365	STD 		{ ssize_t sys_extattr_get_fd(int fd, \
d742 1
a742 1
366	STD 		{ int sys_extattr_delete_fd(int fd, \
d744 1
a744 1
367	STD 		{ int sys_extattr_set_link(const char *path, \
d747 1
a747 1
368	STD 		{ ssize_t sys_extattr_get_link(const char *path, \
d750 1
a750 1
369	STD 		{ int sys_extattr_delete_link(const char *path, \
d752 1
a752 1
370	STD 		{ ssize_t sys_extattr_list_fd(int fd, \
d754 1
a754 1
371	STD 		{ ssize_t sys_extattr_list_file(const char *path, \
d756 1
a756 1
372	STD 		{ ssize_t sys_extattr_list_link(const char *path, \
d758 1
a758 1
373	STD 		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d761 1
a761 1
374	STD 		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d763 1
a763 1
375	STD 		{ int sys_setxattr(const char *path, \
d766 1
a766 1
376	STD 		{ int sys_lsetxattr(const char *path, \
d769 1
a769 1
377	STD 		{ int sys_fsetxattr(int fd, \
d772 1
a772 1
378	STD 		{ int sys_getxattr(const char *path, \
d774 1
a774 1
379	STD 		{ int sys_lgetxattr(const char *path, \
d776 1
a776 1
380	STD 		{ int sys_fgetxattr(int fd, \
d778 1
a778 1
381	STD 		{ int sys_listxattr(const char *path, \
d780 1
a780 1
382	STD 		{ int sys_llistxattr(const char *path, \
d782 1
a782 1
383	STD 		{ int sys_flistxattr(int fd, \
d784 1
a784 1
384	STD 		{ int sys_removexattr(const char *path, \
d786 1
a786 1
385	STD 		{ int sys_lremovexattr(const char *path, \
d788 1
a788 1
386	STD 		{ int sys_fremovexattr(int fd, \
d790 4
a793 4
387	STD 		{ int sys___stat30(const char *path, struct stat *ub); }
388	STD 		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD 		{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD 		{ int sys___getdents30(int fd, char *buf, size_t count); }
d795 1
a795 1
392	COMPAT_30 	{ int sys___fhstat30(const struct compat_30_fhandle \
d797 1
a797 1
393	STD 		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
d799 1
a799 1
395	STD 		{ int sys___getfh30(const char *fname, void *fhp, \
d801 1
a801 1
396	STD 		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d803 1
a803 1
397	STD 		{ int sys___fhstatvfs140(const void *fhp, \
d805 1
a805 1
398	STD 		{ int sys___fhstat40(const void *fhp, \
d809 6
a814 6
399	STD 		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD 		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD 		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD 		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD 		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD 		{ int sys_aio_suspend(const struct aiocb *const *list, \
d816 2
a817 2
405	STD 		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD 		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d824 1
a824 1
410	STD 		{ int sys___mount50(const char *type, \
d827 1
a827 1
411	STD 		{ void *sys_mremap(void *old_address, size_t old_size, \
d831 3
a833 3
412	STD 		{ int sys_pset_create(psetid_t *psid); }
413	STD 		{ int sys_pset_destroy(psetid_t psid); }
414	STD 		{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
d835 1
a835 1
415	STD 		{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
d837 1
a837 1
416	STD 		{ int sys___posix_fadvise50(int fd, int pad, \
@


1.196.4.2
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196.4.1 2008/05/18 12:35:10 yamt Exp $
d356 1
a356 1
173	STD 	 RUMP	{ ssize_t sys_pread(int fd, void *buf, \
d358 1
a358 1
174	STD 	 RUMP	{ ssize_t sys_pwrite(int fd, const void *buf, \
@


1.196.4.3
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196.4.2 2008/06/04 02:05:40 yamt Exp $
a56 1
#include <sys/sched.h>
d705 1
a705 1
			    size_t size, const cpuset_t *cpuset); }
d707 1
a707 1
			    size_t size, cpuset_t *cpuset); }
@


1.196.2.1
log
@Welcome to the time_t=long long dev_t=uint64_t branch.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196 2008/03/27 17:13:25 ad Exp $
d77 2
a78 2
7	COMPAT_50 MPSAFE	{ int sys_wait4(int pid, int *status, \
				    int options, struct rusage50 *rusage); }
d85 2
a86 2
14	COMPAT_50 MPSAFE RUMP	{ int sys_mknod(const char *path, mode_t mode, \
			    uint32_t dev); }
d200 3
a202 3
83	COMPAT_50		{ int sys_setitimer(int which, \
			    const struct itimerval50 *itv, \
			    struct itimerval50 *oitv); }
d205 2
a206 2
86	COMPAT_50		{ int sys_getitimer(int which, \
			    struct itimerval50 *itv); }
d215 2
a216 2
93	COMPAT_50 MPSAFE	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
d250 1
a250 1
116	COMPAT_50 MPSAFE	{ int sys_gettimeofday(struct timeval50 *tp, \
d252 1
a252 1
117	COMPAT_50 MPSAFE	{ int sys_getrusage(int who, struct rusage50 *rusage); }
d260 1
a260 1
122	COMPAT_50 MPSAFE	{ int sys_settimeofday(const struct timeval50 *tv, \
d283 2
a284 2
138	COMPAT_50 MPSAFE	{ int sys_utimes(const char *path, \
			    const struct timeval50 *tptr); }
d286 2
a287 2
140	COMPAT_50	{ int sys_adjtime(const struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
d383 2
a384 2
187	COMPAT_50	{ int sys_lfs_segwait(fsid_t *fsidp, \
			    struct timeval50 *tv); }
d420 2
a421 2
206	COMPAT_50 MPSAFE	{ int sys_futimes(int fd, \
			    const struct timeval50 *tptr); }
d493 6
a498 6
232	COMPAT_50 MPSAFE	{ int sys_clock_gettime(clockid_t clock_id, \
			    struct timespec50 *tp); }
233	COMPAT_50 MPSAFE	{ int sys_clock_settime(clockid_t clock_id, \
			    const struct timespec50 *tp); }
234	COMPAT_50 MPSAFE	{ int sys_clock_getres(clockid_t clock_id, \
			    struct timespec50 *tp); }
d502 5
a506 5
237	COMPAT_50	{ int sys_timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec50 *value, \
			    struct itimerspec50 *ovalue); }
238	COMPAT_50	{ int sys_timer_gettime(timer_t timerid, struct \
			    itimerspec50 *value); }
d511 2
a512 2
240	COMPAT_50 MPSAFE	{ int sys_nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
d516 1
a516 1
244	COMPAT_50 MPSAFE	{ int sys___sigtimedwait(const sigset_t *set, \
d518 1
a518 1
			    struct timespec50 *timeout); }
d561 1
a561 1
265	COMPAT_50 MPSAFE	{ int sys_mq_timedsend(mqd_t mqdes, \
d564 2
a565 2
			    const struct timespec50 *abs_timeout); }
266	COMPAT_50 MPSAFE	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d567 1
a567 1
			    const struct timespec50 *abs_timeout); }
d580 2
a581 2
276	COMPAT_50 MPSAFE	{ int sys_lutimes(const char *path, \
			    const struct timeval50 *tptr); }
d623 1
a623 1
301	COMPAT_50 MPSAFE	{ int sys_____semctl13(int semid, int semnum, int cmd, \
d629 1
a629 1
302	COMPAT_50 MPSAFE	{ int sys___msgctl13(int msqid, int cmd, \
d635 2
a636 2
303	COMPAT_50 MPSAFE	{ int sys___shmctl13(int shmid, int cmd, \
			    struct shmid_ds13 *buf); }
d659 1
a659 1
320	COMPAT_50 MPSAFE	{ int sys__lwp_park(const struct timespec50 *ts, \
d694 2
a695 2
344	STD MPSAFE		{ int sys_kqueue(void); }
345	COMPAT_50 MPSAFE	{ int sys_kevent(int fd, \
d698 1
a698 1
			    const struct timespec50 *timeout); }
d758 2
a759 2
373	COMPAT_50 MPSAFE	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec50 *ts, \
d761 2
a762 2
374	COMPAT_50 MPSAFE	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec50 *ts, const sigset_t *mask); }
d790 3
a792 3
387	COMPAT_50 MPSAFE	{ int sys___stat30(const char *path, struct stat30 *ub); }
388	COMPAT_50 MPSAFE	{ int sys___fstat30(int fd, struct stat30 *sb); }
389	COMPAT_50 MPSAFE	{ int sys___lstat30(const char *path, struct stat30 *ub); }
d797 1
a797 1
393	COMPAT_50	{ int sys___ntp_gettime30(struct ntptimeval50 *ntvp); }
d814 2
a815 2
404	COMPAT_50 MPSAFE	{ int sys_aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec50 *timeout); }
a838 82
417	STD MPSAFE	{ int sys___select50(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
418	STD MPSAFE	{ int sys___gettimeofday50(struct timeval *tp, \
			    void *tzp); }
419	STD MPSAFE	{ int sys___settimeofday50(const struct timeval *tv, \
			    const void *tzp); }
420	STD MPSAFE	{ int sys___utimes50(const char *path, \
			    const struct timeval *tptr); }
421	STD		{ int sys___adjtime50(const struct timeval *delta, \
			    struct timeval *olddelta); }
#if defined(LFS) || !defined(_KERNEL)
422	STD		{ int sys___lfs_segwait50(fsid_t *fsidp, \
			    struct timeval *tv); }
#else
422	EXCL		__lfs_segwait50
#endif
423	STD MPSAFE	{ int sys___futimes50(int fd, \
			    const struct timeval *tptr); }
424	STD MPSAFE	{ int sys___lutimes50(const char *path, \
			    const struct timeval *tptr); }
425	STD		{ int sys___setitimer50(int which, \
			    const struct itimerval *itv, \
			    struct itimerval *oitv); }
426	STD		{ int sys___getitimer50(int which, \
			    struct itimerval *itv); }
427	STD MPSAFE	{ int sys___clock_gettime50(clockid_t clock_id, \
			    struct timespec *tp); }
428	STD MPSAFE	{ int sys___clock_settime50(clockid_t clock_id, \
			    const struct timespec *tp); }
429	STD MPSAFE	{ int sys___clock_getres50(clockid_t clock_id, \
			    struct timespec *tp); }
430	STD MPSAFE	{ int sys___nanosleep50(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
431	STD MPSAFE	{ int sys_____sigtimedwait50(const sigset_t *set, \
			    siginfo_t *info, \
			    struct timespec *timeout); }
432	STD MPSAFE	{ int sys___mq_timedsend50(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
433	STD MPSAFE	{ ssize_t sys___mq_timedreceive50(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
434	STD MPSAFE	{ int sys____lwp_park50(const struct timespec *ts, \
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
435	STD MPSAFE	{ int sys___kevent50(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
			    const struct timespec *timeout); }
436	STD MPSAFE	{ int sys___pselect50(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
437	STD MPSAFE	{ int sys___pollts50(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
438	STD MPSAFE	{ int sys___aio_suspend50( \
			    const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
439	STD MPSAFE	{ int sys___stat50(const char *path, struct stat *ub); }
440	STD MPSAFE	{ int sys___fstat50(int fd, struct stat *sb); }
441	STD MPSAFE	{ int sys___lstat50(const char *path, struct stat *ub); }
442	STD MPSAFE	{ int sys_____semctl50(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
443	STD MPSAFE	{ int sys___shmctl50(int shmid, int cmd, \
			    struct shmid_ds *buf); }
444	STD MPSAFE	{ int sys___msgctl50(int msqid, int cmd, \
			    struct msqid_ds *buf); }
445	STD MPSAFE	{ int sys___getrusage50(int who, struct rusage *rusage); }
446	STD		{ int sys___timer_settime50(timer_t timerid, int flags, \
			    const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
447	STD		{ int sys___timer_gettime50(timer_t timerid, struct \
			    itimerspec *value); }
#if defined(NTP) || !defined(_KERNEL)
448	STD		{ int sys___ntp_gettime50(struct ntptimeval *ntvp); }
#else
448	EXCL		___ntp_gettime50
#endif
449	STD MPSAFE	{ int sys___wait450(int pid, int *status, \
				    int options, struct rusage *rusage); }
450	STD MPSAFE RUMP	{ int sys___mknod50(const char *path, mode_t mode, \
			    dev_t dev); }
@


1.196.2.2
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.211 2008/10/16 19:30:49 pooka Exp $
d15 1
a56 1
#include <sys/sched.h>
d69 4
a72 4
1	STD 		{ void sys_exit(int rval); }
2	STD 		{ int sys_fork(void); }
3	STD 	 RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d74 1
a74 1
5	STD 	 RUMP	{ int sys_open(const char *path, \
d76 6
a81 6
6	STD	 RUMP	{ int sys_close(int fd); }
7	COMPAT_50 	{ int sys_wait4(int pid, int *status, \
			    int options, struct rusage50 *rusage); }
8	COMPAT_43 	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD 	 RUMP	{ int sys_link(const char *path, const char *link); }
10	STD 	 RUMP	{ int sys_unlink(const char *path); }
d83 3
a85 3
12	STD 	 RUMP	{ int sys_chdir(const char *path); }
13	STD 	 RUMP	{ int sys_fchdir(int fd); }
14	COMPAT_50  RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d87 2
a88 2
15	STD 	 RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int sys_chown(const char *path, uid_t uid, \
d90 2
a91 2
17	STD 		{ int sys_obreak(char *nsize); } break
18	COMPAT_20 	{ int sys_getfsstat(struct statfs12 *buf, \
d93 1
a93 1
19	COMPAT_43 	{ long sys_lseek(int fd, long offset, int whence); } \
d96 1
a96 1
20	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
d98 1
a98 1
20	STD 		{ pid_t sys_getpid(void); }
d100 1
a100 1
21	COMPAT_40 	{ int sys_mount(const char *type, const char *path, \
d102 2
a103 2
22	STD 	 RUMP	{ int sys_unmount(const char *path, int flags); }
23	STD 		{ int sys_setuid(uid_t uid); }
d105 1
a105 1
24	STD 		{ uid_t sys_getuid_with_euid(void); } getuid
d107 1
a107 1
24	STD 		{ uid_t sys_getuid(void); }
d109 2
a110 2
25	STD 		{ uid_t sys_geteuid(void); }
26	STD 		{ int sys_ptrace(int req, pid_t pid, void *addr, \
d112 1
a112 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d116 1
a116 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d125 6
a130 6
33	STD 		{ int sys_access(const char *path, int flags); }
34	STD 	 RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD 		{ int sys_fchflags(int fd, u_long flags); }
36	STD 	 RUMP	{ void sys_sync(void); }
37	STD 		{ int sys_kill(int pid, int signum); }
38	COMPAT_43 	{ int sys_stat(const char *path, struct stat43 *ub); } \
d132 2
a133 2
39	STD 		{ pid_t sys_getppid(void); }
40	COMPAT_43 	{ int sys_lstat(const char *path, \
d135 4
a138 4
41	STD 		{ int sys_dup(int fd); }
42	STD 		{ int sys_pipe(void); }
43	STD 		{ gid_t sys_getegid(void); }
44	STD 		{ int sys_profil(char *samples, size_t size, \
d140 1
a140 1
45	STD 		{ int sys_ktrace(const char *fname, int ops, \
d142 1
a142 1
46	COMPAT_13 	{ int sys_sigaction(int signum, \
d146 1
a146 1
47	STD 		{ gid_t sys_getgid_with_egid(void); } getgid
d148 1
a148 1
47	STD 		{ gid_t sys_getgid(void); }
d150 1
a150 1
48	COMPAT_13 	{ int sys_sigprocmask(int how, \
d152 5
a156 5
49	STD 		{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int sys___setlogin(const char *namebuf); }
51	STD 		{ int sys_acct(const char *path); }
52	COMPAT_13 	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 	{ int sys_sigaltstack( \
d159 1
a159 1
54	STD	RUMP	{ int sys_ioctl(int fd, \
d161 3
a163 3
55	COMPAT_12 	{ int sys_reboot(int opt); } oreboot
56	STD 		{ int sys_revoke(const char *path); }
57	STD 	 RUMP	{ int sys_symlink(const char *path, \
d165 1
a165 1
58	STD 	 RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d167 1
a167 1
59	STD 		{ int sys_execve(const char *path, \
d169 4
a172 4
60	STD 		{ mode_t sys_umask(mode_t newmask); }
61	STD 		{ int sys_chroot(const char *path); }
62	COMPAT_43 	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 	{ int sys_getkerninfo(int op, char *where, int *size, \
d174 2
a175 2
64	COMPAT_43 	 { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 	 { int sys_msync(void *addr, size_t len); }
d177 1
a177 1
66	STD 		{ int sys_vfork(void); }
d180 3
a182 3
69	STD 		{ int sys_sbrk(intptr_t incr); }
70	STD 		{ int sys_sstk(int incr); }
71	COMPAT_43 	{ int sys_mmap(void *addr, size_t len, int prot, \
d184 3
a186 3
72	STD 		{ int sys_ovadvise(int anom); } vadvise
73	STD 		{ int sys_munmap(void *addr, size_t len); }
74	STD 		{ int sys_mprotect(void *addr, size_t len, \
d188 1
a188 1
75	STD 		{ int sys_madvise(void *addr, size_t len, \
d192 1
a192 1
78	STD 		{ int sys_mincore(void *addr, size_t len, \
d194 1
a194 1
79	STD 		{ int sys_getgroups(int gidsetsize, \
d196 1
a196 1
80	STD 		{ int sys_setgroups(int gidsetsize, \
d198 3
a200 3
81	STD 		{ int sys_getpgrp(void); }
82	STD 		{ int sys_setpgid(int pid, int pgid); }
83	COMPAT_50	{ int sys_setitimer(int which, \
d203 3
a205 3
84	COMPAT_43 	{ int sys_wait(void); } owait
85	COMPAT_12 	{ int sys_swapon(const char *name); } oswapon
86	COMPAT_50	{ int sys_getitimer(int which, \
d207 1
a207 1
87	COMPAT_43 	{ int sys_gethostname(char *hostname, u_int len); } \
d209 1
a209 1
88	COMPAT_43 	{ int sys_sethostname(char *hostname, u_int len); } \
d211 2
a212 2
89	COMPAT_43 	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD 		{ int sys_dup2(int from, int to); }
d214 2
a215 2
92	STD 		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	COMPAT_50 	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d218 2
a219 2
95	STD	RUMP 	{ int sys_fsync(int fd); }
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
d221 1
a221 1
98	STD	RUMP	{ int sys_connect(int s, const struct sockaddr *name, \
d225 2
a226 2
100	STD 		{ int sys_getpriority(int which, id_t who); }
101	COMPAT_43 	{ int sys_send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43 	{ int sys_recv(int s, void *buf, int len, \
d230 1
a230 1
103	COMPAT_13 	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d234 1
a234 1
105	STD	RUMP	{ int sys_setsockopt(int s, int level, int name, \
d238 1
a238 1
108	COMPAT_43 	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d240 4
a243 4
109	COMPAT_43 	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 	{ int sys_sigstack(struct sigstack *nss, \
d245 1
a245 1
113	COMPAT_43 	{ int sys_recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43 	{ int sys_sendmsg(int s, void *msg, int flags); } \
d250 1
a250 1
116	COMPAT_50 	{ int sys_gettimeofday(struct timeval50 *tp, \
d252 2
a253 2
117	COMPAT_50 	{ int sys_getrusage(int who, struct rusage50 *rusage); }
118	STD	RUMP	{ int sys_getsockopt(int s, int level, int name, \
d256 1
a256 1
120	STD 		{ ssize_t sys_readv(int fd, \
d258 1
a258 1
121	STD 		{ ssize_t sys_writev(int fd, \
d260 1
a260 1
122	COMPAT_50 	{ int sys_settimeofday(const struct timeval50 *tv, \
d262 3
a264 3
123	STD 		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD 		{ int sys_fchmod(int fd, mode_t mode); }
125	COMPAT_43 	{ int sys_recvfrom(int s, void *buf, size_t len, \
d267 4
a270 4
126	STD 		{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 	{ int sys_truncate(const char *path, long length); } \
d272 4
a275 4
130	COMPAT_43 	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD 		{ int sys_flock(int fd, int how); }
132	STD 	 RUMP	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
d281 3
a283 3
136	STD 	 RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int sys_rmdir(const char *path); }
138	COMPAT_50 	{ int sys_utimes(const char *path, \
d290 3
a292 3
142	COMPAT_43 	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 	{ int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 	{ int sys_getrlimit(int which, \
d294 1
a294 1
145	COMPAT_43 	{ int sys_setrlimit(int which, \
d296 3
a298 3
146	COMPAT_43 	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD 	 	{ int sys_setsid(void); }
148	STD 		{ int sys_quotactl(const char *path, int cmd, \
d300 1
a300 1
149	COMPAT_43 	{ int sys_quota(void); } oquota
d313 1
a313 1
155	STD 		{ int sys_nfssvc(int flag, void *argp); }
d317 1
a317 1
156	COMPAT_43 	 { int sys_getdirentries(int fd, char *buf, \
d319 1
a319 1
157	COMPAT_20 	{ int sys_statfs(const char *path, \
d321 1
a321 1
158	COMPAT_20 	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d324 1
a324 1
161	COMPAT_30 	 { int sys_getfh(const char *fname, \
d326 1
a326 1
162	COMPAT_09 	 { int sys_getdomainname(char *domainname, int len); } \
d328 1
a328 1
163	COMPAT_09 	 { int sys_setdomainname(char *domainname, int len); } \
d330 2
a331 2
164	COMPAT_09 		{ int sys_uname(struct outsname *name); } ouname
165	STD 		{ int sys_sysarch(int op, void *parms); }
d337 1
a337 1
169	COMPAT_10 	{ int sys_semsys(int which, int a2, int a3, int a4, \
d344 1
a344 1
170	COMPAT_10 	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d351 1
a351 1
171	COMPAT_10 		{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d357 1
a357 1
173	STD 	 RUMP	{ ssize_t sys_pread(int fd, void *buf, \
d359 1
a359 1
174	STD 	 RUMP	{ ssize_t sys_pwrite(int fd, const void *buf, \
d362 1
a362 1
175	COMPAT_30 	 { int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d364 1
a364 1
176	STD 		{ int sys_ntp_adjtime(struct timex *tp); }
d374 3
a376 3
181	STD 		{ int sys_setgid(gid_t gid); }
182	STD 		{ int sys_setegid(gid_t egid); }
183	STD 		{ int sys_seteuid(uid_t euid); }
d378 1
a378 1
184	STD 		{ int sys_lfs_bmapv(fsid_t *fsidp, \
d380 1
a380 1
185	STD 		{ int sys_lfs_markv(fsid_t *fsidp, \
d391 1
a391 1
188	COMPAT_12 	{ int sys_stat(const char *path, struct stat12 *ub); } \
d393 2
a394 2
189	COMPAT_12 	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 	{ int sys_lstat(const char *path, \
d396 2
a397 2
191	STD 		{ long sys_pathconf(const char *path, int name); }
192	STD 		{ long sys_fpathconf(int fd, int name); }
d399 1
a399 1
194	STD 		{ int sys_getrlimit(int which, \
d401 1
a401 1
195	STD 		{ int sys_setrlimit(int which, \
d403 1
a403 1
196	COMPAT_12 	{ int sys_getdirentries(int fd, char *buf, \
d405 1
a405 1
197	STD 		{ void *sys_mmap(void *addr, size_t len, int prot, \
d409 1
a409 1
199	STD 		{ off_t sys_lseek(int fd, int pad, off_t offset, \
d411 1
a411 1
200	STD 	 RUMP	{ int sys_truncate(const char *path, int pad, \
d413 2
a414 2
201	STD 		{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD	 RUMP 	{ int sys___sysctl(const int *name, u_int namelen, \
d417 4
a420 4
203	STD 		{ int sys_mlock(const void *addr, size_t len); }
204	STD 		{ int sys_munlock(const void *addr, size_t len); }
205	STD 		{ int sys_undelete(const char *path); }
206	COMPAT_50 	{ int sys_futimes(int fd, \
d422 1
a422 1
207	STD 		{ pid_t sys_getpgid(pid_t pid); }
d424 1
a424 1
209	STD 		{ int sys_poll(struct pollfd *fds, u_int nfds, \
d454 1
a454 1
220	COMPAT_14 	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD 		{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD 		{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD 		{ int sys_semconfig(int flag); }
d467 1
a467 1
224	COMPAT_14 	{ int sys_msgctl(int msqid, int cmd, \
d469 2
a470 2
225	STD 		{ int sys_msgget(key_t key, int msgflg); }
226	STD 		{ int sys_msgsnd(int msqid, const void *msgp, \
d472 1
a472 1
227	STD 		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d481 1
a481 1
228	STD 		{ void *sys_shmat(int shmid, const void *shmaddr, \
d483 1
a483 1
229	COMPAT_14 	{ int sys_shmctl(int shmid, int cmd, \
d485 2
a486 2
230	STD 		{ int sys_shmdt(const void *shmaddr); }
231	STD 		{ int sys_shmget(key_t key, size_t size, int shmflg); }
d493 1
a493 1
232	COMPAT_50 	{ int sys_clock_gettime(clockid_t clock_id, \
d495 1
a495 1
233	COMPAT_50 	{ int sys_clock_settime(clockid_t clock_id, \
d497 1
a497 1
234	COMPAT_50 	{ int sys_clock_getres(clockid_t clock_id, \
d511 1
a511 1
240	COMPAT_50 	{ int sys_nanosleep(const struct timespec50 *rqtp, \
d513 4
a516 4
241	STD 		{ int sys_fdatasync(int fd); }
242	STD 		{ int sys_mlockall(int flags); }
243	STD 		{ int sys_munlockall(void); }
244	COMPAT_50 	{ int sys___sigtimedwait(const sigset_t *set, \
d520 1
a520 1
246	STD 		{ int sys_modctl(int cmd, void *arg); }
d522 2
a523 2
247	STD 		{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD 		{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD 		{ int sys__ksem_unlink(const char *name); }
250	STD 		{ int sys__ksem_close(semid_t id); }
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD 		{ int sys__ksem_destroy(semid_t id); }
d546 1
a546 1
257	STD 		{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD 		{ int sys_mq_close(mqd_t mqdes); }
259	STD 		{ int sys_mq_unlink(const char *name); }
260	STD 		{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD 		{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD 		{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD 		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD 		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	COMPAT_50 	{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	COMPAT_50 	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD 		{ int sys___posix_rename(const char *from, \
d573 3
a575 3
271	STD 		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 		{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD 		{ int sys_minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD 	 RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	COMPAT_50  RUMP	{ int sys_lutimes(const char *path, \
d582 5
a586 5
277	STD 		{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 	{ int sys___lstat13(const char *path, struct stat13 *ub); }
281	STD 		{ int sys___sigaltstack14( \
d589 2
a590 2
282	STD 		{ int sys___vfork14(void); }
283	STD 		{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD 		{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD 		{ int sys___posix_lchown(const char *path, uid_t uid, \
d596 3
a598 3
286	STD 		{ pid_t sys_getsid(pid_t pid); }
287	STD 		{ pid_t sys___clone(int flags, void *stack); }
288	STD 		{ int sys_fktrace(int fd, int ops, \
d600 1
a600 1
289	STD 		{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD 		{ ssize_t sys_pwritev(int fd, \
d606 1
a606 1
291	COMPAT_16 	{ int sys___sigaction14(int signum, \
d609 2
a610 2
292	STD 		{ int sys___sigpending14(sigset_t *set); }
293	STD 		{ int sys___sigprocmask14(int how, \
d613 6
a618 6
294	STD 		{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 	{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
296	STD 		{ int sys___getcwd(char *bufp, size_t length); }
297	STD 		{ int sys_fchroot(int fd); }
298	COMPAT_30 	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d623 1
a623 1
301	COMPAT_50 	{ int sys_____semctl13(int semid, int semnum, int cmd, \
d629 1
a629 1
302	COMPAT_50 	{ int sys___msgctl13(int msqid, int cmd, \
d635 1
a635 1
303	COMPAT_50 	{ int sys___shmctl13(int shmid, int cmd, \
d640 3
a642 3
304	STD 	 RUMP	{ int sys_lchflags(const char *path, u_long flags); }
305	STD 		{ int sys_issetugid(void); }
306	STD 		{ int sys_utrace(const char *label, void *addr, \
d644 3
a646 3
307	STD 		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD 		{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD 		{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 3
a650 3
310	STD 		{ int sys__lwp_exit(void); }
311	STD 		{ lwpid_t sys__lwp_self(void); }
312	STD 		{ int sys__lwp_wait(lwpid_t wait_for, \
d652 8
a659 8
313	STD 		{ int sys__lwp_suspend(lwpid_t target); }
314	STD 		{ int sys__lwp_continue(lwpid_t target); }
315	STD 		{ int sys__lwp_wakeup(lwpid_t target); }
316	STD 		{ void *sys__lwp_getprivate(void); }
317	STD 		{ void sys__lwp_setprivate(void *ptr); }
318	STD 		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int sys__lwp_detach(lwpid_t target); }
320	COMPAT_50 	{ int sys__lwp_park(const struct timespec50 *ts, \
d662 2
a663 2
321	STD 		{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
d665 1
a665 1
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD 		{ int sys__lwp_ctl(int features, \
d676 8
a683 13
; SA system calls.
330	STD 		{ int sys_sa_register(sa_upcall_t new, \
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
331	STD 		{ int sys_sa_stacks(int num, stack_t *stacks); }
332	STD 		{ int sys_sa_enable(void); }
333	STD 		{ int sys_sa_setconcurrency(int concurrency); }
334	STD 		{ int sys_sa_yield(void); }
335	STD 		{ int sys_sa_preempt(int sa_id); }
336	OBSOL 		sys_sa_unblockyield
;
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
;
d687 1
a687 1
340	STD 		{ int sys___sigaction_sigtramp(int signum, \
d693 3
a695 3
343	STD 		{ int sys_rasctl(void *addr, size_t len, int op); }
344	STD 		{ int sys_kqueue(void); }
345	COMPAT_50 	{ int sys_kevent(int fd, \
d701 1
a701 1
346	STD 		{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
d703 1
a703 1
347	STD 		{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
d705 5
a709 5
348	STD 		{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, const cpuset_t *cpuset); }
349	STD 		{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, cpuset_t *cpuset); }
350	STD 		{ int sys_sched_yield(void); }
d714 1
a714 1
354	STD 		{ int sys_fsync_range(int fd, int flags, off_t start, \
d716 2
a717 2
355	STD 		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD 		{ int sys_getvfsstat(struct statvfs *buf, \
d719 1
a719 1
357	STD 		{ int sys_statvfs1(const char *path, \
d721 1
a721 1
358	STD 		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d723 1
a723 1
359	COMPAT_30 		{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d725 1
a725 1
360	STD 		{ int sys_extattrctl(const char *path, int cmd, \
d728 1
a728 1
361	STD 		{ int sys_extattr_set_file(const char *path, \
d731 1
a731 1
362	STD 		{ ssize_t sys_extattr_get_file(const char *path, \
d734 1
a734 1
363	STD 		{ int sys_extattr_delete_file(const char *path, \
d736 1
a736 1
364	STD 		{ int sys_extattr_set_fd(int fd, \
d739 1
a739 1
365	STD 		{ ssize_t sys_extattr_get_fd(int fd, \
d742 1
a742 1
366	STD 		{ int sys_extattr_delete_fd(int fd, \
d744 1
a744 1
367	STD 		{ int sys_extattr_set_link(const char *path, \
d747 1
a747 1
368	STD 		{ ssize_t sys_extattr_get_link(const char *path, \
d750 1
a750 1
369	STD 		{ int sys_extattr_delete_link(const char *path, \
d752 1
a752 1
370	STD 		{ ssize_t sys_extattr_list_fd(int fd, \
d754 1
a754 1
371	STD 		{ ssize_t sys_extattr_list_file(const char *path, \
d756 1
a756 1
372	STD 		{ ssize_t sys_extattr_list_link(const char *path, \
d758 1
a758 1
373	COMPAT_50 	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d761 1
a761 1
374	COMPAT_50 	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d763 1
a763 1
375	STD 		{ int sys_setxattr(const char *path, \
d766 1
a766 1
376	STD 		{ int sys_lsetxattr(const char *path, \
d769 1
a769 1
377	STD 		{ int sys_fsetxattr(int fd, \
d772 1
a772 1
378	STD 		{ int sys_getxattr(const char *path, \
d774 1
a774 1
379	STD 		{ int sys_lgetxattr(const char *path, \
d776 1
a776 1
380	STD 		{ int sys_fgetxattr(int fd, \
d778 1
a778 1
381	STD 		{ int sys_listxattr(const char *path, \
d780 1
a780 1
382	STD 		{ int sys_llistxattr(const char *path, \
d782 1
a782 1
383	STD 		{ int sys_flistxattr(int fd, \
d784 1
a784 1
384	STD 		{ int sys_removexattr(const char *path, \
d786 1
a786 1
385	STD 		{ int sys_lremovexattr(const char *path, \
d788 1
a788 1
386	STD 		{ int sys_fremovexattr(int fd, \
d790 4
a793 4
387	COMPAT_50  RUMP	{ int sys___stat30(const char *path, struct stat30 *ub); }
388	COMPAT_50 	{ int sys___fstat30(int fd, struct stat30 *sb); }
389	COMPAT_50  RUMP	{ int sys___lstat30(const char *path, struct stat30 *ub); }
390	STD 		{ int sys___getdents30(int fd, char *buf, size_t count); }
d795 1
a795 1
392	COMPAT_30 	{ int sys___fhstat30(const struct compat_30_fhandle \
d798 2
a799 2
394	STD	 RUMP	{ int sys___socket30(int domain, int type, int protocol); }
395	STD 		{ int sys___getfh30(const char *fname, void *fhp, \
d801 1
a801 1
396	STD 		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d803 1
a803 1
397	STD 		{ int sys___fhstatvfs140(const void *fhp, \
d805 1
a805 1
398	STD 		{ int sys___fhstat40(const void *fhp, \
d809 6
a814 6
399	STD 		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD 		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD 		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD 		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD 		{ int sys_aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 	{ int sys_aio_suspend(const struct aiocb *const *list, \
d816 2
a817 2
405	STD 		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD 		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d824 1
a824 1
410	STD 		{ int sys___mount50(const char *type, \
d827 1
a827 1
411	STD 		{ void *sys_mremap(void *old_address, size_t old_size, \
d831 3
a833 3
412	STD 		{ int sys_pset_create(psetid_t *psid); }
413	STD 		{ int sys_pset_destroy(psetid_t psid); }
414	STD 		{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
d835 1
a835 1
415	STD 		{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
d837 1
a837 1
416	STD 		{ int sys___posix_fadvise50(int fd, int pad, \
d839 1
a839 1
417	STD 		{ int sys___select50(int nd, fd_set *in, fd_set *ou, \
d841 1
a841 1
418	STD 		{ int sys___gettimeofday50(struct timeval *tp, \
d843 1
a843 1
419	STD 		{ int sys___settimeofday50(const struct timeval *tv, \
d845 1
a845 1
420	STD 		{ int sys___utimes50(const char *path, \
d855 1
a855 1
423	STD 		{ int sys___futimes50(int fd, \
d857 1
a857 1
424	STD  RUMP 	{ int sys___lutimes50(const char *path, \
d864 1
a864 1
427	STD 		{ int sys___clock_gettime50(clockid_t clock_id, \
d866 1
a866 1
428	STD 		{ int sys___clock_settime50(clockid_t clock_id, \
d868 1
a868 1
429	STD 		{ int sys___clock_getres50(clockid_t clock_id, \
d870 1
a870 1
430	STD 		{ int sys___nanosleep50(const struct timespec *rqtp, \
d872 1
a872 1
431	STD 		{ int sys_____sigtimedwait50(const sigset_t *set, \
d875 1
a875 1
432	STD 		{ int sys___mq_timedsend50(mqd_t mqdes, \
d879 1
a879 1
433	STD 		{ ssize_t sys___mq_timedreceive50(mqd_t mqdes, \
d882 1
a882 1
434	STD 		{ int sys____lwp_park50(const struct timespec *ts, \
d885 1
a885 1
435	STD 		{ int sys___kevent50(int fd, \
d889 1
a889 1
436	STD 		{ int sys___pselect50(int nd, fd_set *in, fd_set *ou, \
d892 1
a892 1
437	STD 		{ int sys___pollts50(struct pollfd *fds, u_int nfds, \
d894 1
a894 1
438	STD 		{ int sys___aio_suspend50( \
d897 4
a900 4
439	STD  RUMP	{ int sys___stat50(const char *path, struct stat *ub); }
440	STD 		{ int sys___fstat50(int fd, struct stat *sb); }
441	STD  RUMP	{ int sys___lstat50(const char *path, struct stat *ub); }
442	STD 		{ int sys_____semctl50(int semid, int semnum, int cmd, \
d902 1
a902 1
443	STD 		{ int sys___shmctl50(int shmid, int cmd, \
d904 1
a904 1
444	STD 		{ int sys___msgctl50(int msqid, int cmd, \
d906 1
a906 1
445	STD 		{ int sys___getrusage50(int who, struct rusage *rusage); }
d917 1
a917 1
449	STD 		{ int sys___wait450(int pid, int *status, \
d919 1
a919 1
450	STD  RUMP	{ int sys___mknod50(const char *path, mode_t mode, \
@


1.196.2.3
log
@fix fhstat
make major and minor ull
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196.2.2 2008/11/01 21:22:27 christos Exp $
d810 2
a811 2
398	COMPAT_50 	{ int sys___fhstat40(const void *fhp, \
			    size_t fh_size, struct stat30 *sb); }
a925 2
451	STD	 	{ int sys___fhstat50(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
@


1.196.2.4
log
@fix parameters of fhstat
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196.2.3 2008/11/09 01:54:31 christos Exp $
d801 1
a801 1
			    *fhp, struct stat30 *sb); }
@


1.196.2.5
log
@merge with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.216 2008/11/19 18:36:07 ad Exp $
d42 1
d44 1
d46 2
d50 1
d77 1
a77 1
7	COMPAT_50 MODULAR { int sys_wait4(int pid, int *status, \
d79 1
a79 1
8	COMPAT_43 MODULAR { int sys_creat(const char *path, mode_t mode); } ocreat
d85 1
a85 1
14	COMPAT_50 MODULAR { int sys_mknod(const char *path, mode_t mode, \
d91 1
a91 1
18	COMPAT_20 MODULAR { int sys_getfsstat(struct statfs12 *buf, \
d93 1
a93 1
19	COMPAT_43 MODULAR { long sys_lseek(int fd, long offset, int whence); } \
d95 1
d97 4
a100 1
21	COMPAT_40 MODULAR { int sys_mount(const char *type, const char *path, \
d104 1
d106 3
d130 1
a130 1
38	COMPAT_43 MODULAR { int sys_stat(const char *path, struct stat43 *ub); } \
d133 1
a133 1
40	COMPAT_43 MODULAR { int sys_lstat(const char *path, \
d142 1
a142 1
46	COMPAT_13 MODULAR { int sys_sigaction(int signum, \
d145 1
d147 4
a150 1
48	COMPAT_13 MODULAR { int sys_sigprocmask(int how, \
d155 2
a156 2
52	COMPAT_13 MODULAR { int sys_sigpending(void); } sigpending13
53	COMPAT_13 MODULAR { int sys_sigaltstack( \
d161 1
a161 1
55	COMPAT_12 MODULAR { int sys_reboot(int opt); } oreboot
d171 2
a172 2
62	COMPAT_43 MODULAR { int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR { int sys_getkerninfo(int op, char *where, int *size, \
d174 2
a175 2
64	COMPAT_43 MODULAR { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR { int sys_msync(void *addr, size_t len); }
d182 1
a182 1
71	COMPAT_43 MODULAR { int sys_mmap(void *addr, size_t len, int prot, \
d200 1
a200 1
83	COMPAT_50 MODULAR { int sys_setitimer(int which, \
d203 3
a205 3
84	COMPAT_43 MODULAR { int sys_wait(void); } owait
85	COMPAT_12 MODULAR { int sys_swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR { int sys_getitimer(int which, \
d207 1
a207 1
87	COMPAT_43 MODULAR { int sys_gethostname(char *hostname, u_int len); } \
d209 1
a209 1
88	COMPAT_43 MODULAR { int sys_sethostname(char *hostname, u_int len); } \
d211 1
a211 1
89	COMPAT_43 MODULAR { int sys_getdtablesize(void); } ogetdtablesize
d215 1
a215 1
93	COMPAT_50 MODULAR 	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d220 1
a220 1
97	COMPAT_30 MODULAR { int sys_socket(int domain, int type, int protocol); }
d223 1
a223 1
99	COMPAT_43 MODULAR { int sys_accept(int s, void *name, \
d226 1
a226 1
101	COMPAT_43 MODULAR { int sys_send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43 MODULAR { int sys_recv(int s, void *buf, int len, \
d230 1
a230 1
103	COMPAT_13 MODULAR { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d238 1
a238 1
108	COMPAT_43 MODULAR { int sys_sigvec(int signum, struct sigvec *nsv, \
d240 4
a243 4
109	COMPAT_43 MODULAR { int sys_sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR { int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR { int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR { int sys_sigstack(struct sigstack *nss, \
d245 1
a245 1
113	COMPAT_43 MODULAR { int sys_recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43 MODULAR { int sys_sendmsg(int s, void *msg, int flags); } \
d250 1
a250 1
116	COMPAT_50 MODULAR { int sys_gettimeofday(struct timeval50 *tp, \
d252 1
a252 1
117	COMPAT_50 MODULAR { int sys_getrusage(int who, struct rusage50 *rusage); }
d260 1
a260 1
122	COMPAT_50 MODULAR { int sys_settimeofday(const struct timeval50 *tv, \
d264 1
a264 1
125	COMPAT_43 MODULAR { int sys_recvfrom(int s, void *buf, size_t len, \
d270 1
a270 1
129	COMPAT_43 MODULAR { int sys_truncate(const char *path, long length); } \
d272 1
a272 1
130	COMPAT_43 MODULAR { int sys_ftruncate(int fd, long length); } oftruncate
d283 1
a283 1
138	COMPAT_50 MODULAR { int sys_utimes(const char *path, \
d286 1
a286 1
140	COMPAT_50 MODULAR { int sys_adjtime(const struct timeval50 *delta, \
d288 1
a288 1
141	COMPAT_43 MODULAR { int sys_getpeername(int fdes, void *asa, \
d290 3
a292 3
142	COMPAT_43 MODULAR { int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MODULAR { int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR { int sys_getrlimit(int which, \
d294 1
a294 1
145	COMPAT_43 MODULAR { int sys_setrlimit(int which, \
d296 1
a296 1
146	COMPAT_43 MODULAR { int sys_killpg(int pgid, int signum); } okillpg
d300 2
a301 2
149	COMPAT_43 MODULAR { int sys_quota(void); } oquota
150	COMPAT_43 MODULAR { int sys_getsockname(int fdec, void *asa, \
d312 6
a317 2
155	STD MODULAR	{ int sys_nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR { int sys_getdirentries(int fd, char *buf, \
d319 1
a319 1
157	COMPAT_20 MODULAR { int sys_statfs(const char *path, \
d321 1
a321 1
158	COMPAT_20 MODULAR { int sys_fstatfs(int fd, struct statfs12 *buf); }
d324 1
a324 1
161	COMPAT_30 MODULAR { int sys_getfh(const char *fname, \
d326 1
a326 1
162	COMPAT_09 MODULAR { int sys_getdomainname(char *domainname, int len); } \
d328 1
a328 1
163	COMPAT_09 MODULAR { int sys_setdomainname(char *domainname, int len); } \
d330 1
a330 1
164	COMPAT_09 MODULAR { int sys_uname(struct outsname *name); } ouname
d336 2
a337 2
#if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
169	COMPAT_10 MODULAR { int sys_semsys(int which, int a2, int a3, int a4, \
d343 2
a344 2
#if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
170	COMPAT_10 MODULAR { int sys_msgsys(int which, int a2, int a3, int a4, \
d350 2
a351 2
#if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
171	COMPAT_10 MODULAR { int sys_shmsys(int which, int a2, int a3, int a4); } \
d362 2
a363 2
175	STD		{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL_OPT)
d383 1
a383 1
187	COMPAT_50 MODULAR { int sys_lfs_segwait(fsid_t *fsidp, \
d391 1
a391 1
188	COMPAT_12 MODULAR { int sys_stat(const char *path, struct stat12 *ub); } \
d393 2
a394 2
189	COMPAT_12 MODULAR { int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR { int sys_lstat(const char *path, \
d403 1
a403 1
196	COMPAT_12 MODULAR { int sys_getdirentries(int fd, char *buf, \
d420 1
a420 1
206	COMPAT_50 MODULAR { int sys_futimes(int fd, \
d429 23
a451 10
210	UNIMPL
211	UNIMPL
212	UNIMPL
213	UNIMPL
214	UNIMPL
215	UNIMPL
216	UNIMPL
217	UNIMPL
218	UNIMPL
219	UNIMPL
d453 2
a454 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
220	COMPAT_14 MODULAR { int sys___semctl(int semid, int semnum, int cmd, \
d466 2
a467 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
224	COMPAT_14 MODULAR { int sys_msgctl(int msqid, int cmd, \
d480 1
a480 1
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
d483 1
a483 1
229	COMPAT_14 MODULAR { int sys_shmctl(int shmid, int cmd, \
d493 1
a493 1
232	COMPAT_50 MODULAR { int sys_clock_gettime(clockid_t clock_id, \
d495 1
a495 1
233	COMPAT_50 MODULAR { int sys_clock_settime(clockid_t clock_id, \
d497 1
a497 1
234	COMPAT_50 MODULAR { int sys_clock_getres(clockid_t clock_id, \
d502 1
a502 1
237	COMPAT_50 MODULAR { int sys_timer_settime(timer_t timerid, int flags, \
d505 1
a505 1
238	COMPAT_50 MODULAR { int sys_timer_gettime(timer_t timerid, struct \
d511 1
a511 1
240	COMPAT_50 MODULAR { int sys_nanosleep(const struct timespec50 *rqtp, \
d516 1
a516 1
244	COMPAT_50 MODULAR { int sys___sigtimedwait(const sigset_t *set, \
d520 11
a530 10
246	STD 	 	{ int sys_modctl(int cmd, void *arg); }
247	STD MODULAR 	{ int sys__ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR 	{ int sys__ksem_open(const char *name, int oflag, \
			    mode_t mode, unsigned int value, intptr_t *idp); }
249	STD MODULAR 	{ int sys__ksem_unlink(const char *name); }
250	STD MODULAR 	{ int sys__ksem_close(intptr_t id); }
251	STD MODULAR 	{ int sys__ksem_post(intptr_t id); }
252	STD MODULAR 	{ int sys__ksem_wait(intptr_t id); }
253	STD MODULAR 	{ int sys__ksem_trywait(intptr_t id); }
254	STD MODULAR 	{ int sys__ksem_getvalue(intptr_t id, \
d532 1
a532 1
255	STD MODULAR 	{ int sys__ksem_destroy(intptr_t id); }
d534 12
d561 1
a561 1
265	COMPAT_50 MODULAR { int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	COMPAT_50 MODULAR { ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d574 1
a574 1
272	COMPAT_30 MODULAR { int sys_getdents(int fd, char *buf, size_t count); }
d583 3
a585 3
278	COMPAT_30 MODULAR { int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR { int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR { int sys___lstat13(const char *path, struct stat13 *ub); }
d606 1
a606 1
291	COMPAT_16 MODULAR { int sys___sigaction14(int signum, \
d614 1
a614 1
295	COMPAT_16 MODULAR { int sys___sigreturn14(struct sigcontext *sigcntxp); }
d617 2
a618 2
298	COMPAT_30 MODULAR { int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR { int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 MODULAR { int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d622 2
a623 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
301	COMPAT_50 MODULAR { int sys_____semctl13(int semid, int semnum, int cmd, \
d628 2
a629 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
302	COMPAT_50 MODULAR { int sys___msgctl13(int msqid, int cmd, \
d634 2
a635 2
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
303	COMPAT_50 MODULAR { int sys___shmctl13(int shmid, int cmd, \
d659 1
a659 1
320	COMPAT_50 MODULAR { int sys__lwp_park(const struct timespec50 *ts, \
d700 1
a700 1
345	COMPAT_50 MODULAR { int sys_kevent(int fd, \
d728 1
a728 1
359	COMPAT_30 MODULAR { int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d763 1
a763 1
373	COMPAT_50 MODULAR { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d766 1
a766 1
374	COMPAT_50 MODULAR { int sys_pollts(struct pollfd *fds, u_int nfds, \
d795 3
a797 3
387	COMPAT_50 MODULAR { int sys___stat30(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR { int sys___fstat30(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR { int sys___lstat30(const char *path, struct stat30 *ub); }
d800 1
a800 1
392	COMPAT_30 MODULAR { int sys___fhstat30(const struct compat_30_fhandle \
d802 1
a802 1
393	COMPAT_50 MODULAR { int sys___ntp_gettime30(struct ntptimeval50 *ntvp); }
d810 1
a810 1
398	COMPAT_50 MODULAR { int sys___fhstat40(const void *fhp, \
d814 6
a819 6
399	STD MODULAR 	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR 	{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR 	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR 	{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD MODULAR 	{ int sys_aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR { int sys_aio_suspend(const struct aiocb *const *list, \
d821 2
a822 2
405	STD MODULAR 	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MODULAR 	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d899 1
a899 1
438	STD MODULAR	{ int sys___aio_suspend50( \
a904 1
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
a906 4
#else
442	EXCL		____semctl50
#endif
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
a908 4
#else
443	EXCL 		____shmctl50
#endif
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
a910 3
#else
444	EXCL 		____msgctl50
#endif
d912 2
a913 2
446	STD		{ int sys___timer_settime50(timer_t timerid, \
			    int flags, const struct itimerspec *value, \
@


1.196.2.6
log
@catch up with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196.2.5 2008/11/20 20:45:39 christos Exp $
d341 1
a341 1
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d882 1
a882 1
#if defined(NTP) || !defined(_KERNEL_OPT)
@


1.196.2.7
log
@merge with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.218 2008/11/26 15:01:17 pooka Exp $
d14 2
a15 3
; (NOTE! they *must* be specified in this order):
;	MODULAR:attempt to autoload system call if not present
;	RUMP:	the system call can be called directly from rumps
d106 1
a106 1
30	STD	RUMP	{ int sys_accept(int s, struct sockaddr *name, \
d215 1
a215 1
104	STD	RUMP	{ int sys_bind(int s, const struct sockaddr *name, \
d219 1
a219 1
106	STD	RUMP	{ int sys_listen(int s, int backlog); }
d295 1
a295 1
155	STD MODULAR RUMP  { int sys_nfssvc(int flag, void *argp); }
d677 1
a677 1
357	STD 	RUMP	{ int sys_statvfs1(const char *path, \
d757 1
a757 1
395	STD 	 RUMP	{ int sys___getfh30(const char *fname, void *fhp, \
@


1.196.2.8
log
@no rump for old lutimes
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196.2.7 2008/12/27 23:14:24 christos Exp $
d534 1
a534 1
276	COMPAT_50  	{ int sys_lutimes(const char *path, \
@


1.196.2.9
log
@utimes needs RUMP
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.196.2.8 2008/12/28 22:18:11 christos Exp $
d804 1
a804 1
420	STD  RUMP	{ int sys___utimes50(const char *path, \
@


1.195
log
@after yamt-lazymbuf merge, mark send/recv syscalls MPSAFE.
pointed out by Andrew Doran.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.194 2008/03/24 12:24:37 yamt Exp $
d694 2
a695 2
344	STD 		{ int sys_kqueue(void); }
345	STD 		{ int sys_kevent(int fd, \
@


1.194
log
@merge yamt-lazymbuf branch.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.193 2008/03/22 14:20:09 ad Exp $
d112 1
a112 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d116 1
a116 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d226 1
a226 1
101	COMPAT_43	{ int sys_send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43	{ int sys_recv(int s, void *buf, int len, \
d245 1
a245 1
113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43	{ int sys_sendmsg(int s, void *msg, int flags); } \
d264 1
a264 1
125	COMPAT_43	{ int sys_recvfrom(int s, void *buf, size_t len, \
d275 1
a275 1
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
@


1.193
log
@Unmark kevent/kqueue as MPSAFE. There seems to be some kind of deadlock
involving kernel_lock.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.192 2008/03/21 21:58:57 ad Exp $
d313 1
a313 1
155	STD		{ int sys_nfssvc(int flag, void *argp); }
@


1.192
log
@Mark kqueue/kevent MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.191 2008/03/11 22:50:10 pooka Exp $
d694 2
a695 2
344	STD MPSAFE	{ int sys_kqueue(void); }
345	STD MPSAFE	{ int sys_kevent(int fd, \
@


1.191
log
@Generate syscalls entry points which can be called directly without
going through a syscall trap.  These are currently useful for rumps.
As all the standard syscalls are not compiled into librump, mark
relevant ones with RUMP in syscalls.master.  To do e.g. a mkdir
"system call" from a rump, one would call

  rump_sys_mkdir("/dir", mode, &eval);

where the last value represents something to store errno into.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.190 2008/02/24 12:52:54 martin Exp $
d694 2
a695 2
344	STD		{ int sys_kqueue(void); }
345	STD		{ int sys_kevent(int fd, \
@


1.190
log
@Desupport compatibility for the old posix_fadvise syscall per yamt's
request and just ignore it.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.189 2008/02/15 13:09:57 ad Exp $
d13 4
a16 2
; An optional field, MPSAFE, after the type field, indicates that
; the system call is MP-safe.
d71 2
a72 2
3	STD MPSAFE	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE	{ ssize_t sys_write(int fd, const void *buf, \
d74 1
a74 1
5	STD MPSAFE	{ int sys_open(const char *path, \
d76 1
a76 1
6	STD MPSAFE	{ int sys_close(int fd); }
d80 2
a81 2
9	STD MPSAFE	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE	{ int sys_unlink(const char *path); }
d83 3
a85 3
12	STD MPSAFE	{ int sys_chdir(const char *path); }
13	STD MPSAFE	{ int sys_fchdir(int fd); }
14	STD MPSAFE	{ int sys_mknod(const char *path, mode_t mode, \
d87 2
a88 2
15	STD MPSAFE	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE	{ int sys_chown(const char *path, uid_t uid, \
d102 1
a102 1
22	STD MPSAFE	{ int sys_unmount(const char *path, int flags); }
d125 4
a128 4
33	STD MPSAFE	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE	{ void sys_sync(void); }
d163 1
a163 1
57	STD MPSAFE	{ int sys_symlink(const char *path, \
d165 1
a165 1
58	STD MPSAFE	{ ssize_t sys_readlink(const char *path, char *buf, \
d269 1
a269 1
128	STD MPSAFE	{ int sys_rename(const char *from, const char *to); }
d281 2
a282 2
136	STD MPSAFE	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE	{ int sys_rmdir(const char *path); }
d411 1
a411 1
200	STD MPSAFE	{ int sys_truncate(const char *path, int pad, \
d577 2
a578 2
274	STD MPSAFE	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE	{ int sys_lchown(const char *path, uid_t uid, \
@


1.189
log
@Mark mount/unmount MPSAFE. PR kern/38034.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.188 2008/02/09 16:58:01 yamt Exp $
d10 1
a10 1
;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
d19 1
d792 1
a792 2
391	COMPAT_40 MPSAFE	{ int sys_posix_fadvise(int fd, off_t offset, \
			    off_t len, int advice); }
@


1.189.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD$
d10 1
a10 1
;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
d13 2
a14 4
; Optional fields are specified after the type field
; (NOTE! they must be specified in this order):
;     MPSAFE:	the system call is MP-safe.
;     RUMP:	the system call can be called directly from rumps
a18 1
;	IGNORED	syscall is a null op, but always succeeds
d68 2
a69 2
3	STD MPSAFE RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d71 1
a71 1
5	STD MPSAFE RUMP	{ int sys_open(const char *path, \
d73 1
a73 1
6	STD MPSAFE RUMP	{ int sys_close(int fd); }
d77 2
a78 2
9	STD MPSAFE RUMP	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE RUMP	{ int sys_unlink(const char *path); }
d80 3
a82 3
12	STD MPSAFE RUMP	{ int sys_chdir(const char *path); }
13	STD MPSAFE RUMP	{ int sys_fchdir(int fd); }
14	STD MPSAFE RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d84 2
a85 2
15	STD MPSAFE RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE RUMP	{ int sys_chown(const char *path, uid_t uid, \
d99 1
a99 1
22	STD MPSAFE RUMP	{ int sys_unmount(const char *path, int flags); }
d109 1
a109 1
27	STD MPSAFE	{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d111 1
a111 1
28	STD MPSAFE	{ ssize_t sys_sendmsg(int s, \
d113 1
a113 1
29	STD MPSAFE	{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d122 4
a125 4
33	STD MPSAFE RUMP	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE RUMP	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE RUMP	{ void sys_sync(void); }
d160 1
a160 1
57	STD MPSAFE RUMP	{ int sys_symlink(const char *path, \
d162 1
a162 1
58	STD MPSAFE RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d223 1
a223 1
101	COMPAT_43 MPSAFE	{ int sys_send(int s, void *buf, int len, \
d225 1
a225 1
102	COMPAT_43 MPSAFE	{ int sys_recv(int s, void *buf, int len, \
d242 1
a242 1
113	COMPAT_43 MPSAFE	{ int sys_recvmsg(int s, struct omsghdr *msg, \
d244 1
a244 1
114	COMPAT_43 MPSAFE	{ int sys_sendmsg(int s, void *msg, int flags); } \
d261 1
a261 1
125	COMPAT_43 MPSAFE	{ int sys_recvfrom(int s, void *buf, size_t len, \
d266 1
a266 1
128	STD MPSAFE RUMP	{ int sys_rename(const char *from, const char *to); }
d272 1
a272 1
133	STD MPSAFE	{ ssize_t sys_sendto(int s, const void *buf, \
d278 2
a279 2
136	STD MPSAFE RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE RUMP	{ int sys_rmdir(const char *path); }
d310 1
a310 1
155	STD MPSAFE	{ int sys_nfssvc(int flag, void *argp); }
d408 1
a408 1
200	STD MPSAFE RUMP	{ int sys_truncate(const char *path, int pad, \
d574 2
a575 2
274	STD MPSAFE RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d691 2
a692 2
344	STD MPSAFE	{ int sys_kqueue(void); }
345	STD MPSAFE	{ int sys_kevent(int fd, \
d791 2
a792 1
391	IGNORED		old posix_fadvise
@


1.189.6.2
log
@Sync with HEAD.
@
text
@d15 1
d69 4
a72 4
1	STD 		{ void sys_exit(int rval); }
2	STD 		{ int sys_fork(void); }
3	STD 	 RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d74 1
a74 1
5	STD 	 RUMP	{ int sys_open(const char *path, \
d76 2
a77 2
6	STD 	 RUMP	{ int sys_close(int fd); }
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
d79 3
a81 3
8	COMPAT_43 	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD 	 RUMP	{ int sys_link(const char *path, const char *link); }
10	STD 	 RUMP	{ int sys_unlink(const char *path); }
d83 3
a85 3
12	STD 	 RUMP	{ int sys_chdir(const char *path); }
13	STD 	 RUMP	{ int sys_fchdir(int fd); }
14	STD 	 RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d87 2
a88 2
15	STD 	 RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int sys_chown(const char *path, uid_t uid, \
d90 2
a91 2
17	STD 		{ int sys_obreak(char *nsize); } break
18	COMPAT_20 	{ int sys_getfsstat(struct statfs12 *buf, \
d93 1
a93 1
19	COMPAT_43 	{ long sys_lseek(int fd, long offset, int whence); } \
d96 1
a96 1
20	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
d98 1
a98 1
20	STD 		{ pid_t sys_getpid(void); }
d100 1
a100 1
21	COMPAT_40 	{ int sys_mount(const char *type, const char *path, \
d102 2
a103 2
22	STD 	 RUMP	{ int sys_unmount(const char *path, int flags); }
23	STD 		{ int sys_setuid(uid_t uid); }
d105 1
a105 1
24	STD 		{ uid_t sys_getuid_with_euid(void); } getuid
d107 1
a107 1
24	STD 		{ uid_t sys_getuid(void); }
d109 2
a110 2
25	STD 		{ uid_t sys_geteuid(void); }
26	STD 		{ int sys_ptrace(int req, pid_t pid, void *addr, \
d112 1
a112 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d116 1
a116 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d125 6
a130 6
33	STD 	 RUMP	{ int sys_access(const char *path, int flags); }
34	STD 	 RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD 	 RUMP	{ int sys_fchflags(int fd, u_long flags); }
36	STD 	 RUMP	{ void sys_sync(void); }
37	STD 		{ int sys_kill(int pid, int signum); }
38	COMPAT_43 	{ int sys_stat(const char *path, struct stat43 *ub); } \
d132 2
a133 2
39	STD 		{ pid_t sys_getppid(void); }
40	COMPAT_43 	{ int sys_lstat(const char *path, \
d135 4
a138 4
41	STD 		{ int sys_dup(int fd); }
42	STD 		{ int sys_pipe(void); }
43	STD 		{ gid_t sys_getegid(void); }
44	STD 		{ int sys_profil(char *samples, size_t size, \
d140 1
a140 1
45	STD 		{ int sys_ktrace(const char *fname, int ops, \
d142 1
a142 1
46	COMPAT_13 	{ int sys_sigaction(int signum, \
d146 1
a146 1
47	STD 		{ gid_t sys_getgid_with_egid(void); } getgid
d148 1
a148 1
47	STD 		{ gid_t sys_getgid(void); }
d150 1
a150 1
48	COMPAT_13 	{ int sys_sigprocmask(int how, \
d152 5
a156 5
49	STD 		{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int sys___setlogin(const char *namebuf); }
51	STD 		{ int sys_acct(const char *path); }
52	COMPAT_13 	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 	{ int sys_sigaltstack( \
d159 1
a159 1
54	STD 		{ int sys_ioctl(int fd, \
d161 3
a163 3
55	COMPAT_12 	{ int sys_reboot(int opt); } oreboot
56	STD 		{ int sys_revoke(const char *path); }
57	STD 	 RUMP	{ int sys_symlink(const char *path, \
d165 1
a165 1
58	STD 	 RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d167 1
a167 1
59	STD 		{ int sys_execve(const char *path, \
d169 4
a172 4
60	STD 		{ mode_t sys_umask(mode_t newmask); }
61	STD 		{ int sys_chroot(const char *path); }
62	COMPAT_43 	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 	{ int sys_getkerninfo(int op, char *where, int *size, \
d174 2
a175 2
64	COMPAT_43 	 { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 	 { int sys_msync(void *addr, size_t len); }
d177 1
a177 1
66	STD 		{ int sys_vfork(void); }
d180 3
a182 3
69	STD 		{ int sys_sbrk(intptr_t incr); }
70	STD 		{ int sys_sstk(int incr); }
71	COMPAT_43 	{ int sys_mmap(void *addr, size_t len, int prot, \
d184 3
a186 3
72	STD 		{ int sys_ovadvise(int anom); } vadvise
73	STD 		{ int sys_munmap(void *addr, size_t len); }
74	STD 		{ int sys_mprotect(void *addr, size_t len, \
d188 1
a188 1
75	STD 		{ int sys_madvise(void *addr, size_t len, \
d192 1
a192 1
78	STD 		{ int sys_mincore(void *addr, size_t len, \
d194 1
a194 1
79	STD 		{ int sys_getgroups(int gidsetsize, \
d196 1
a196 1
80	STD 		{ int sys_setgroups(int gidsetsize, \
d198 3
a200 3
81	STD 	 	{ int sys_getpgrp(void); }
82	STD 		{ int sys_setpgid(int pid, int pgid); }
83	STD 		{ int sys_setitimer(int which, \
d203 3
a205 3
84	COMPAT_43 	{ int sys_wait(void); } owait
85	COMPAT_12 	{ int sys_swapon(const char *name); } oswapon
86	STD 		{ int sys_getitimer(int which, \
d207 1
a207 1
87	COMPAT_43 	{ int sys_gethostname(char *hostname, u_int len); } \
d209 1
a209 1
88	COMPAT_43 	{ int sys_sethostname(char *hostname, u_int len); } \
d211 2
a212 2
89	COMPAT_43 	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD 		{ int sys_dup2(int from, int to); }
d214 2
a215 2
92	STD 		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD 		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d218 2
a219 2
95	STD 		{ int sys_fsync(int fd); }
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
d225 2
a226 2
100	STD 		{ int sys_getpriority(int which, id_t who); }
101	COMPAT_43 	{ int sys_send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43 	{ int sys_recv(int s, void *buf, int len, \
d230 1
a230 1
103	COMPAT_13 	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d238 1
a238 1
108	COMPAT_43 	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d240 4
a243 4
109	COMPAT_43 	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 	{ int sys_sigstack(struct sigstack *nss, \
d245 1
a245 1
113	COMPAT_43 	{ int sys_recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43 	{ int sys_sendmsg(int s, void *msg, int flags); } \
d250 1
a250 1
116	STD 		{ int sys_gettimeofday(struct timeval *tp, \
d252 1
a252 1
117	STD 		{ int sys_getrusage(int who, struct rusage *rusage); }
d256 1
a256 1
120	STD 		{ ssize_t sys_readv(int fd, \
d258 1
a258 1
121	STD 		{ ssize_t sys_writev(int fd, \
d260 1
a260 1
122	STD 		{ int sys_settimeofday(const struct timeval *tv, \
d262 3
a264 3
123	STD 		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD 		{ int sys_fchmod(int fd, mode_t mode); }
125	COMPAT_43 	{ int sys_recvfrom(int s, void *buf, size_t len, \
d267 4
a270 4
126	STD 		{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 	{ int sys_truncate(const char *path, long length); } \
d272 4
a275 4
130	COMPAT_43 	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD 		{ int sys_flock(int fd, int how); }
132	STD 		{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
d281 3
a283 3
136	STD 	 RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int sys_rmdir(const char *path); }
138	STD 		{ int sys_utimes(const char *path, \
d286 1
a286 1
140	STD 		{ int sys_adjtime(const struct timeval *delta, \
d290 3
a292 3
142	COMPAT_43 	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 	{ int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43 	{ int sys_getrlimit(int which, \
d294 1
a294 1
145	COMPAT_43 	{ int sys_setrlimit(int which, \
d296 3
a298 3
146	COMPAT_43 	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD 	 	{ int sys_setsid(void); }
148	STD 		{ int sys_quotactl(const char *path, int cmd, \
d300 1
a300 1
149	COMPAT_43 	{ int sys_quota(void); } oquota
d313 1
a313 1
155	STD 		{ int sys_nfssvc(int flag, void *argp); }
d317 1
a317 1
156	COMPAT_43 	 { int sys_getdirentries(int fd, char *buf, \
d319 1
a319 1
157	COMPAT_20 	{ int sys_statfs(const char *path, \
d321 1
a321 1
158	COMPAT_20 	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d324 1
a324 1
161	COMPAT_30 	 { int sys_getfh(const char *fname, \
d326 1
a326 1
162	COMPAT_09 	 { int sys_getdomainname(char *domainname, int len); } \
d328 1
a328 1
163	COMPAT_09 	 { int sys_setdomainname(char *domainname, int len); } \
d330 2
a331 2
164	COMPAT_09 		{ int sys_uname(struct outsname *name); } ouname
165	STD 		{ int sys_sysarch(int op, void *parms); }
d337 1
a337 1
169	COMPAT_10 	{ int sys_semsys(int which, int a2, int a3, int a4, \
d344 1
a344 1
170	COMPAT_10 	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d351 1
a351 1
171	COMPAT_10 		{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d357 1
a357 1
173	STD 	 RUMP	{ ssize_t sys_pread(int fd, void *buf, \
d359 1
a359 1
174	STD 	 RUMP	{ ssize_t sys_pwrite(int fd, const void *buf, \
d362 1
a362 1
175	COMPAT_30 	 { int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d364 1
a364 1
176	STD 		{ int sys_ntp_adjtime(struct timex *tp); }
d374 3
a376 3
181	STD 		{ int sys_setgid(gid_t gid); }
182	STD 		{ int sys_setegid(gid_t egid); }
183	STD 		{ int sys_seteuid(uid_t euid); }
d378 1
a378 1
184	STD 		{ int sys_lfs_bmapv(fsid_t *fsidp, \
d380 1
a380 1
185	STD 		{ int sys_lfs_markv(fsid_t *fsidp, \
d382 2
a383 2
186	STD 		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD 		{ int sys_lfs_segwait(fsid_t *fsidp, \
d391 1
a391 1
188	COMPAT_12 	{ int sys_stat(const char *path, struct stat12 *ub); } \
d393 2
a394 2
189	COMPAT_12 	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 	{ int sys_lstat(const char *path, \
d396 2
a397 2
191	STD 		{ long sys_pathconf(const char *path, int name); }
192	STD 		{ long sys_fpathconf(int fd, int name); }
d399 1
a399 1
194	STD 		{ int sys_getrlimit(int which, \
d401 1
a401 1
195	STD 		{ int sys_setrlimit(int which, \
d403 1
a403 1
196	COMPAT_12 	{ int sys_getdirentries(int fd, char *buf, \
d405 1
a405 1
197	STD 		{ void *sys_mmap(void *addr, size_t len, int prot, \
d409 1
a409 1
199	STD 		{ off_t sys_lseek(int fd, int pad, off_t offset, \
d411 1
a411 1
200	STD 	 RUMP	{ int sys_truncate(const char *path, int pad, \
d413 2
a414 2
201	STD 		{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD 		{ int sys___sysctl(const int *name, u_int namelen, \
d417 4
a420 4
203	STD 		{ int sys_mlock(const void *addr, size_t len); }
204	STD 		{ int sys_munlock(const void *addr, size_t len); }
205	STD 		{ int sys_undelete(const char *path); }
206	STD 		{ int sys_futimes(int fd, \
d422 3
a424 3
207	STD 		{ pid_t sys_getpgid(pid_t pid); }
208	STD 		{ int sys_reboot(int opt, char *bootstr); }
209	STD 		{ int sys_poll(struct pollfd *fds, u_int nfds, \
d454 1
a454 1
220	COMPAT_14 	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD 		{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD 		{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD 		{ int sys_semconfig(int flag); }
d467 1
a467 1
224	COMPAT_14 	{ int sys_msgctl(int msqid, int cmd, \
d469 2
a470 2
225	STD 		{ int sys_msgget(key_t key, int msgflg); }
226	STD 		{ int sys_msgsnd(int msqid, const void *msgp, \
d472 1
a472 1
227	STD 		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d481 1
a481 1
228	STD 		{ void *sys_shmat(int shmid, const void *shmaddr, \
d483 1
a483 1
229	COMPAT_14 	{ int sys_shmctl(int shmid, int cmd, \
d485 2
a486 2
230	STD 		{ int sys_shmdt(const void *shmaddr); }
231	STD 		{ int sys_shmget(key_t key, size_t size, int shmflg); }
d493 1
a493 1
232	STD 		{ int sys_clock_gettime(clockid_t clock_id, \
d495 1
a495 1
233	STD 		{ int sys_clock_settime(clockid_t clock_id, \
d497 1
a497 1
234	STD 		{ int sys_clock_getres(clockid_t clock_id, \
d499 1
a499 1
235	STD 		{ int sys_timer_create(clockid_t clock_id, \
d501 2
a502 2
236	STD 		{ int sys_timer_delete(timer_t timerid); }
237	STD 		{ int sys_timer_settime(timer_t timerid, int flags, \
d505 1
a505 1
238	STD 		{ int sys_timer_gettime(timer_t timerid, struct \
d507 1
a507 1
239	STD 		{ int sys_timer_getoverrun(timer_t timerid); }
d511 1
a511 1
240	STD 		{ int sys_nanosleep(const struct timespec *rqtp, \
d513 4
a516 4
241	STD 		{ int sys_fdatasync(int fd); }
242	STD 		{ int sys_mlockall(int flags); }
243	STD 		{ int sys_munlockall(void); }
244	STD 		{ int sys___sigtimedwait(const sigset_t *set, \
d520 1
a520 1
246	STD 		{ int sys_modctl(int cmd, void *arg); }
d522 2
a523 2
247	STD 		{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD 		{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD 		{ int sys__ksem_unlink(const char *name); }
250	STD 		{ int sys__ksem_close(semid_t id); }
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD 		{ int sys__ksem_destroy(semid_t id); }
d546 1
a546 1
257	STD 		{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD 		{ int sys_mq_close(mqd_t mqdes); }
259	STD 		{ int sys_mq_unlink(const char *name); }
260	STD 		{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD 		{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD 		{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD 		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD 		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	STD 		{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	STD 		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD 		{ int sys___posix_rename(const char *from, \
d573 3
a575 3
271	STD 		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 		{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD 		{ int sys_minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD 	 RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	STD 		{ int sys_lutimes(const char *path, \
d582 5
a586 5
277	STD 		{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 	{ int sys___lstat13(const char *path, struct stat13 *ub); }
281	STD 		{ int sys___sigaltstack14( \
d589 2
a590 2
282	STD 		{ int sys___vfork14(void); }
283	STD 		{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD 		{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD 		{ int sys___posix_lchown(const char *path, uid_t uid, \
d596 3
a598 3
286	STD 		{ pid_t sys_getsid(pid_t pid); }
287	STD 		{ pid_t sys___clone(int flags, void *stack); }
288	STD 		{ int sys_fktrace(int fd, int ops, \
d600 1
a600 1
289	STD 		{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD 		{ ssize_t sys_pwritev(int fd, \
d606 1
a606 1
291	COMPAT_16 	{ int sys___sigaction14(int signum, \
d609 2
a610 2
292	STD 		{ int sys___sigpending14(sigset_t *set); }
293	STD 		{ int sys___sigprocmask14(int how, \
d613 6
a618 6
294	STD 		{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 	{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
296	STD 		{ int sys___getcwd(char *bufp, size_t length); }
297	STD 		{ int sys_fchroot(int fd); }
298	COMPAT_30 	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d623 1
a623 1
301	STD 		{ int sys_____semctl13(int semid, int semnum, int cmd, \
d629 1
a629 1
302	STD 		{ int sys___msgctl13(int msqid, int cmd, \
d635 1
a635 1
303	STD 		{ int sys___shmctl13(int shmid, int cmd, \
d640 3
a642 3
304	STD 		{ int sys_lchflags(const char *path, u_long flags); }
305	STD 		{ int sys_issetugid(void); }
306	STD 		{ int sys_utrace(const char *label, void *addr, \
d644 3
a646 3
307	STD 		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD 		{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD 		{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 3
a650 3
310	STD 		{ int sys__lwp_exit(void); }
311	STD 		{ lwpid_t sys__lwp_self(void); }
312	STD 		{ int sys__lwp_wait(lwpid_t wait_for, \
d652 8
a659 8
313	STD 		{ int sys__lwp_suspend(lwpid_t target); }
314	STD 		{ int sys__lwp_continue(lwpid_t target); }
315	STD 		{ int sys__lwp_wakeup(lwpid_t target); }
316	STD 		{ void *sys__lwp_getprivate(void); }
317	STD 		{ void sys__lwp_setprivate(void *ptr); }
318	STD 		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int sys__lwp_detach(lwpid_t target); }
320	STD 		{ int sys__lwp_park(const struct timespec *ts, \
d662 2
a663 2
321	STD 		{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
d665 1
a665 1
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD 		{ int sys__lwp_ctl(int features, \
d677 7
a683 7
330	STD 		{ int sys_sa_register(void); }
331	STD 		{ int sys_sa_stacks(void); }
332	STD 		{ int sys_sa_enable(void); }
333	STD 		{ int sys_sa_setconcurrency(void); }
334	STD 		{ int sys_sa_yield(void); }
335	STD 		{ int sys_sa_preempt(void); }
336	STD 		{ int sys_sa_unblockyield(void); }
d687 1
a687 1
340	STD 		{ int sys___sigaction_sigtramp(int signum, \
d691 5
a695 5
341	STD 		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD 		{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD 		{ int sys_rasctl(void *addr, size_t len, int op); }
344	STD 		{ int sys_kqueue(void); }
345	STD 		{ int sys_kevent(int fd, \
d701 1
a701 1
346	STD 		{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
d703 1
a703 1
347	STD 		{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
d705 1
a705 1
348	STD 		{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
d707 1
a707 1
349	STD 		{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
d709 1
a709 1
350	STD 		{ int sys_sched_yield(void); }
d714 1
a714 1
354	STD 		{ int sys_fsync_range(int fd, int flags, off_t start, \
d716 2
a717 2
355	STD 		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD 		{ int sys_getvfsstat(struct statvfs *buf, \
d719 1
a719 1
357	STD 		{ int sys_statvfs1(const char *path, \
d721 1
a721 1
358	STD 		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d723 1
a723 1
359	COMPAT_30 		{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d725 1
a725 1
360	STD 		{ int sys_extattrctl(const char *path, int cmd, \
d728 1
a728 1
361	STD 		{ int sys_extattr_set_file(const char *path, \
d731 1
a731 1
362	STD 		{ ssize_t sys_extattr_get_file(const char *path, \
d734 1
a734 1
363	STD 		{ int sys_extattr_delete_file(const char *path, \
d736 1
a736 1
364	STD 		{ int sys_extattr_set_fd(int fd, \
d739 1
a739 1
365	STD 		{ ssize_t sys_extattr_get_fd(int fd, \
d742 1
a742 1
366	STD 		{ int sys_extattr_delete_fd(int fd, \
d744 1
a744 1
367	STD 		{ int sys_extattr_set_link(const char *path, \
d747 1
a747 1
368	STD 		{ ssize_t sys_extattr_get_link(const char *path, \
d750 1
a750 1
369	STD 		{ int sys_extattr_delete_link(const char *path, \
d752 1
a752 1
370	STD 		{ ssize_t sys_extattr_list_fd(int fd, \
d754 1
a754 1
371	STD 		{ ssize_t sys_extattr_list_file(const char *path, \
d756 1
a756 1
372	STD 		{ ssize_t sys_extattr_list_link(const char *path, \
d758 1
a758 1
373	STD 		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d761 1
a761 1
374	STD 		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d763 1
a763 1
375	STD 		{ int sys_setxattr(const char *path, \
d766 1
a766 1
376	STD 		{ int sys_lsetxattr(const char *path, \
d769 1
a769 1
377	STD 		{ int sys_fsetxattr(int fd, \
d772 1
a772 1
378	STD 		{ int sys_getxattr(const char *path, \
d774 1
a774 1
379	STD 		{ int sys_lgetxattr(const char *path, \
d776 1
a776 1
380	STD 		{ int sys_fgetxattr(int fd, \
d778 1
a778 1
381	STD 		{ int sys_listxattr(const char *path, \
d780 1
a780 1
382	STD 		{ int sys_llistxattr(const char *path, \
d782 1
a782 1
383	STD 		{ int sys_flistxattr(int fd, \
d784 1
a784 1
384	STD 		{ int sys_removexattr(const char *path, \
d786 1
a786 1
385	STD 		{ int sys_lremovexattr(const char *path, \
d788 1
a788 1
386	STD 		{ int sys_fremovexattr(int fd, \
d790 4
a793 4
387	STD 		{ int sys___stat30(const char *path, struct stat *ub); }
388	STD 		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD 		{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD 		{ int sys___getdents30(int fd, char *buf, size_t count); }
d795 1
a795 1
392	COMPAT_30 	{ int sys___fhstat30(const struct compat_30_fhandle \
d797 1
a797 1
393	STD 		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
d799 1
a799 1
395	STD 		{ int sys___getfh30(const char *fname, void *fhp, \
d801 1
a801 1
396	STD 		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d803 1
a803 1
397	STD 		{ int sys___fhstatvfs140(const void *fhp, \
d805 1
a805 1
398	STD 		{ int sys___fhstat40(const void *fhp, \
d809 6
a814 6
399	STD 		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD 		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD 		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD 		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD 		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD 		{ int sys_aio_suspend(const struct aiocb *const *list, \
d816 2
a817 2
405	STD 		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD 		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d824 1
a824 1
410	STD 		{ int sys___mount50(const char *type, \
d827 1
a827 1
411	STD 		{ void *sys_mremap(void *old_address, size_t old_size, \
d831 3
a833 3
412	STD 		{ int sys_pset_create(psetid_t *psid); }
413	STD 		{ int sys_pset_destroy(psetid_t psid); }
414	STD 		{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
d835 1
a835 1
415	STD 		{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
d837 1
a837 1
416	STD 		{ int sys___posix_fadvise50(int fd, int pad, \
@


1.189.6.3
log
@Sync with HEAD.
@
text
@a55 1
#include <sys/sched.h>
d705 1
a705 1
			    size_t size, const cpuset_t *cpuset); }
d707 1
a707 1
			    size_t size, cpuset_t *cpuset); }
@


1.189.6.4
log
@Sync with HEAD.
@
text
@d125 1
a125 1
33	STD 		{ int sys_access(const char *path, int flags); }
d127 1
a127 1
35	STD 		{ int sys_fchflags(int fd, u_long flags); }
d274 1
a274 1
132	STD 	 RUMP	{ int sys_mkfifo(const char *path, mode_t mode); }
d640 1
a640 1
304	STD 	 RUMP	{ int sys_lchflags(const char *path, u_long flags); }
d790 1
a790 1
387	STD 	 RUMP	{ int sys___stat30(const char *path, struct stat *ub); }
d792 1
a792 1
389	STD 	 RUMP	{ int sys___lstat30(const char *path, struct stat *ub); }
@


1.189.6.5
log
@Sync with HEAD.
@
text
@d218 1
a218 1
95	STD	RUMP 	{ int sys_fsync(int fd); }
d283 1
a283 1
138	STD 	 RUMP	{ int sys_utimes(const char *path, \
d414 1
a414 1
202	STD	 RUMP 	{ int sys___sysctl(const int *name, u_int namelen, \
d580 1
a580 1
276	STD 	 RUMP	{ int sys_lutimes(const char *path, \
@


1.189.6.6
log
@Sync with HEAD.
@
text
@d14 2
a15 3
; (NOTE! they *must* be specified in this order):
;	MODULAR:attempt to autoload system call if not present
;	RUMP:	the system call can be called directly from rumps
d35 1
a35 1
;	{ return_type|prefix|compat(optional)|basename(pseudo-proto); } [alias]
d42 1
d44 1
d46 2
d50 1
d67 1
a67 1
0	INDIR		{ int|sys||syscall(int code, \
d69 4
a72 4
1	STD 		{ void|sys||exit(int rval); }
2	STD 		{ int|sys||fork(void); }
3	STD 	 RUMP	{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
4	STD 	 RUMP	{ ssize_t|sys||write(int fd, const void *buf, \
d74 1
a74 1
5	STD 	 RUMP	{ int|sys||open(const char *path, \
d76 6
a81 6
6	STD	 RUMP	{ int|sys||close(int fd); }
7	COMPAT_50 MODULAR { int|sys||wait4(int pid, int *status, \
			    int options, struct rusage50 *rusage); }
8	COMPAT_43 MODULAR { int|sys||creat(const char *path, mode_t mode); } ocreat
9	STD 	 RUMP	{ int|sys||link(const char *path, const char *link); }
10	STD 	 RUMP	{ int|sys||unlink(const char *path); }
d83 6
a88 6
12	STD 	 RUMP	{ int|sys||chdir(const char *path); }
13	STD 	 RUMP	{ int|sys||fchdir(int fd); }
14	COMPAT_50 MODULAR { int|sys||mknod(const char *path, mode_t mode, \
			    uint32_t dev); }
15	STD 	 RUMP	{ int|sys||chmod(const char *path, mode_t mode); }
16	STD 	 RUMP	{ int|sys||chown(const char *path, uid_t uid, \
d90 2
a91 2
17	STD 		{ int|sys||obreak(char *nsize); } break
18	COMPAT_20 MODULAR { int|sys||getfsstat(struct statfs12 *buf, \
d93 1
a93 1
19	COMPAT_43 MODULAR { long|sys||lseek(int fd, long offset, int whence); }\
d95 6
a100 2
20	STD 		{ pid_t|sys||getpid_with_ppid(void); } getpid
21	COMPAT_40 MODULAR { int|sys||mount(const char *type, const char *path, \
d102 9
a110 5
22	STD 	 RUMP	{ int|sys||unmount(const char *path, int flags); }
23	STD 		{ int|sys||setuid(uid_t uid); }
24	STD 		{ uid_t|sys||getuid_with_euid(void); } getuid
25	STD 		{ uid_t|sys||geteuid(void); }
26	STD 		{ int|sys||ptrace(int req, pid_t pid, void *addr, \
d112 1
a112 1
27	STD 		{ ssize_t|sys||recvmsg(int s, struct msghdr *msg, \
d114 1
a114 1
28	STD 		{ ssize_t|sys||sendmsg(int s, \
d116 1
a116 1
29	STD 		{ ssize_t|sys||recvfrom(int s, void *buf, size_t len, \
d119 1
a119 1
30	STD	RUMP	{ int|sys||accept(int s, struct sockaddr *name, \
d121 1
a121 1
31	STD		{ int|sys||getpeername(int fdes, struct sockaddr *asa, \
d123 1
a123 1
32	STD		{ int|sys||getsockname(int fdes, struct sockaddr *asa, \
d125 6
a130 6
33	STD 		{ int|sys||access(const char *path, int flags); }
34	STD 	 RUMP	{ int|sys||chflags(const char *path, u_long flags); }
35	STD 		{ int|sys||fchflags(int fd, u_long flags); }
36	STD 	 RUMP	{ void|sys||sync(void); }
37	STD 		{ int|sys||kill(int pid, int signum); }
38	COMPAT_43 MODULAR { int|sys||stat(const char *path, struct stat43 *ub); } \
d132 2
a133 2
39	STD 		{ pid_t|sys||getppid(void); }
40	COMPAT_43 MODULAR { int|sys||lstat(const char *path, \
d135 4
a138 4
41	STD 		{ int|sys||dup(int fd); }
42	STD 		{ int|sys||pipe(void); }
43	STD 		{ gid_t|sys||getegid(void); }
44	STD 		{ int|sys||profil(char *samples, size_t size, \
d140 1
a140 1
45	STD 		{ int|sys||ktrace(const char *fname, int ops, \
d142 1
a142 1
46	COMPAT_13 MODULAR { int|sys||sigaction(int signum, \
d145 6
a150 2
47	STD 		{ gid_t|sys||getgid_with_egid(void); } getgid
48	COMPAT_13 MODULAR { int|sys||sigprocmask(int how, \
d152 5
a156 5
49	STD 		{ int|sys||__getlogin(char *namebuf, size_t namelen); }
50	STD 	 	{ int|sys||__setlogin(const char *namebuf); }
51	STD 		{ int|sys||acct(const char *path); }
52	COMPAT_13 MODULAR { int|sys||sigpending(void); } sigpending13
53	COMPAT_13 MODULAR { int|sys||sigaltstack( \
d159 1
a159 1
54	STD	RUMP	{ int|sys||ioctl(int fd, \
d161 3
a163 3
55	COMPAT_12 MODULAR { int|sys||reboot(int opt); } oreboot
56	STD 		{ int|sys||revoke(const char *path); }
57	STD 	 RUMP	{ int|sys||symlink(const char *path, \
d165 1
a165 1
58	STD 	 RUMP	{ ssize_t|sys||readlink(const char *path, char *buf, \
d167 1
a167 1
59	STD 		{ int|sys||execve(const char *path, \
d169 4
a172 4
60	STD 		{ mode_t|sys||umask(mode_t newmask); }
61	STD 		{ int|sys||chroot(const char *path); }
62	COMPAT_43 MODULAR { int|sys||fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MODULAR { int|sys||getkerninfo(int op, char *where, int *size, \
d174 2
a175 2
64	COMPAT_43 MODULAR { int|sys||getpagesize(void); } ogetpagesize
65	COMPAT_12 MODULAR { int|sys||msync(void *addr, size_t len); }
d177 1
a177 1
66	STD 		{ int|sys||vfork(void); }
d180 3
a182 3
69	STD 		{ int|sys||sbrk(intptr_t incr); }
70	STD 		{ int|sys||sstk(int incr); }
71	COMPAT_43 MODULAR { int|sys||mmap(void *addr, size_t len, int prot, \
d184 3
a186 3
72	STD 		{ int|sys||ovadvise(int anom); } vadvise
73	STD 		{ int|sys||munmap(void *addr, size_t len); }
74	STD 		{ int|sys||mprotect(void *addr, size_t len, \
d188 1
a188 1
75	STD 		{ int|sys||madvise(void *addr, size_t len, \
d192 1
a192 1
78	STD 		{ int|sys||mincore(void *addr, size_t len, \
d194 1
a194 1
79	STD 		{ int|sys||getgroups(int gidsetsize, \
d196 1
a196 1
80	STD 		{ int|sys||setgroups(int gidsetsize, \
d198 10
a207 10
81	STD 		{ int|sys||getpgrp(void); }
82	STD 		{ int|sys||setpgid(int pid, int pgid); }
83	COMPAT_50 MODULAR { int|sys||setitimer(int which, \
			    const struct itimerval50 *itv, \
			    struct itimerval50 *oitv); }
84	COMPAT_43 MODULAR { int|sys||wait(void); } owait
85	COMPAT_12 MODULAR { int|sys||swapon(const char *name); } oswapon
86	COMPAT_50 MODULAR { int|sys||getitimer(int which, \
			    struct itimerval50 *itv); }
87	COMPAT_43 MODULAR { int|sys||gethostname(char *hostname, u_int len); } \
d209 1
a209 1
88	COMPAT_43 MODULAR { int|sys||sethostname(char *hostname, u_int len); } \
d211 2
a212 2
89	COMPAT_43 MODULAR { int|sys||getdtablesize(void); } ogetdtablesize
90	STD 		{ int|sys||dup2(int from, int to); }
d214 3
a216 3
92	STD 		{ int|sys||fcntl(int fd, int cmd, ... void *arg); }
93	COMPAT_50 MODULAR 	{ int|sys||select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
d218 4
a221 4
95	STD	RUMP 	{ int|sys||fsync(int fd); }
96	STD 		{ int|sys||setpriority(int which, id_t who, int prio); }
97	COMPAT_30 MODULAR { int|sys||socket(int domain, int type, int protocol); }
98	STD	RUMP	{ int|sys||connect(int s, const struct sockaddr *name, \
d223 1
a223 1
99	COMPAT_43 MODULAR { int|sys||accept(int s, void *name, \
d225 2
a226 2
100	STD 		{ int|sys||getpriority(int which, id_t who); }
101	COMPAT_43 MODULAR { int|sys||send(int s, void *buf, int len, \
d228 1
a228 1
102	COMPAT_43 MODULAR { int|sys||recv(int s, void *buf, int len, \
d230 1
a230 1
103	COMPAT_13 MODULAR { int|sys||sigreturn(struct sigcontext13 *sigcntxp); } \
d232 1
a232 1
104	STD	RUMP	{ int|sys||bind(int s, const struct sockaddr *name, \
d234 1
a234 1
105	STD	RUMP	{ int|sys||setsockopt(int s, int level, int name, \
d236 1
a236 1
106	STD	RUMP	{ int|sys||listen(int s, int backlog); }
d238 1
a238 1
108	COMPAT_43 MODULAR { int|sys||sigvec(int signum, struct sigvec *nsv, \
d240 4
a243 4
109	COMPAT_43 MODULAR { int|sys||sigblock(int mask); } osigblock
110	COMPAT_43 MODULAR { int|sys||sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MODULAR { int|sys||sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MODULAR { int|sys||sigstack(struct sigstack *nss, \
d245 1
a245 1
113	COMPAT_43 MODULAR { int|sys||recvmsg(int s, struct omsghdr *msg, \
d247 1
a247 1
114	COMPAT_43 MODULAR { int|sys||sendmsg(int s, void *msg, int flags); } \
d250 1
a250 1
116	COMPAT_50 MODULAR { int|sys||gettimeofday(struct timeval50 *tp, \
d252 2
a253 2
117	COMPAT_50 MODULAR { int|sys||getrusage(int who, struct rusage50 *rusage); }
118	STD	RUMP	{ int|sys||getsockopt(int s, int level, int name, \
d256 1
a256 1
120	STD 		{ ssize_t|sys||readv(int fd, \
d258 1
a258 1
121	STD 		{ ssize_t|sys||writev(int fd, \
d260 1
a260 1
122	COMPAT_50 MODULAR { int|sys||settimeofday(const struct timeval50 *tv, \
d262 3
a264 3
123	STD 		{ int|sys||fchown(int fd, uid_t uid, gid_t gid); }
124	STD 		{ int|sys||fchmod(int fd, mode_t mode); }
125	COMPAT_43 MODULAR { int|sys||recvfrom(int s, void *buf, size_t len, \
d267 4
a270 4
126	STD 		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
127	STD 		{ int|sys||setregid(gid_t rgid, gid_t egid); }
128	STD 	 RUMP	{ int|sys||rename(const char *from, const char *to); }
129	COMPAT_43 MODULAR { int|sys||truncate(const char *path, long length); } \
d272 4
a275 4
130	COMPAT_43 MODULAR { int|sys||ftruncate(int fd, long length); } oftruncate
131	STD 		{ int|sys||flock(int fd, int how); }
132	STD 	 RUMP	{ int|sys||mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t|sys||sendto(int s, const void *buf, \
d278 2
a279 2
134	STD		{ int|sys||shutdown(int s, int how); }
135	STD		{ int|sys||socketpair(int domain, int type, \
d281 4
a284 4
136	STD 	 RUMP	{ int|sys||mkdir(const char *path, mode_t mode); }
137	STD 	 RUMP	{ int|sys||rmdir(const char *path); }
138	COMPAT_50 MODULAR { int|sys||utimes(const char *path, \
			    const struct timeval50 *tptr); }
d286 3
a288 3
140	COMPAT_50 MODULAR { int|sys||adjtime(const struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
141	COMPAT_43 MODULAR { int|sys||getpeername(int fdes, void *asa, \
d290 3
a292 3
142	COMPAT_43 MODULAR { int32_t|sys||gethostid(void); } ogethostid
143	COMPAT_43 MODULAR { int|sys||sethostid(int32_t hostid); } osethostid
144	COMPAT_43 MODULAR { int|sys||getrlimit(int which, \
d294 1
a294 1
145	COMPAT_43 MODULAR { int|sys||setrlimit(int which, \
d296 3
a298 3
146	COMPAT_43 MODULAR { int|sys||killpg(int pgid, int signum); } okillpg
147	STD 	 	{ int|sys||setsid(void); }
148	STD 		{ int|sys||quotactl(const char *path, int cmd, \
d300 2
a301 2
149	COMPAT_43 MODULAR { int|sys||quota(void); } oquota
150	COMPAT_43 MODULAR { int|sys||getsockname(int fdec, void *asa, \
d312 6
a317 2
155	STD MODULAR RUMP  { int|sys||nfssvc(int flag, void *argp); }
156	COMPAT_43 MODULAR { int|sys||getdirentries(int fd, char *buf, \
d319 1
a319 1
157	COMPAT_20 MODULAR { int|sys||statfs(const char *path, \
d321 1
a321 1
158	COMPAT_20 MODULAR { int|sys||fstatfs(int fd, struct statfs12 *buf); }
d324 1
a324 1
161	COMPAT_30 MODULAR { int|sys||getfh(const char *fname, \
d326 1
a326 1
162	COMPAT_09 MODULAR { int|sys||getdomainname(char *domainname, int len); } \
d328 1
a328 1
163	COMPAT_09 MODULAR { int|sys||setdomainname(char *domainname, int len); } \
d330 2
a331 2
164	COMPAT_09 MODULAR { int|sys||uname(struct outsname *name); } ouname
165	STD 		{ int|sys||sysarch(int op, void *parms); }
d336 2
a337 2
#if (defined(SYSVSEM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
169	COMPAT_10 MODULAR { int|sys||semsys(int which, int a2, int a3, int a4, \
d343 2
a344 2
#if (defined(SYSVMSG) || !defined(_KERNEL_OPT)) && !defined(_LP64)
170	COMPAT_10 MODULAR { int|sys||msgsys(int which, int a2, int a3, int a4, \
d350 2
a351 2
#if (defined(SYSVSHM) || !defined(_KERNEL_OPT)) && !defined(_LP64)
171	COMPAT_10 MODULAR { int|sys||shmsys(int which, int a2, int a3, int a4); } \
d357 1
a357 1
173	STD 	 RUMP	{ ssize_t|sys||pread(int fd, void *buf, \
d359 1
a359 1
174	STD 	 RUMP	{ ssize_t|sys||pwrite(int fd, const void *buf, \
d362 3
a364 3
175	COMPAT_30	{ int|sys||ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL_OPT)
176	STD 		{ int|sys||ntp_adjtime(struct timex *tp); }
d374 3
a376 3
181	STD 		{ int|sys||setgid(gid_t gid); }
182	STD 		{ int|sys||setegid(gid_t egid); }
183	STD 		{ int|sys||seteuid(uid_t euid); }
d378 1
a378 1
184	STD 		{ int|sys||lfs_bmapv(fsid_t *fsidp, \
d380 1
a380 1
185	STD 		{ int|sys||lfs_markv(fsid_t *fsidp, \
d382 3
a384 3
186	STD		{ int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); }
187	COMPAT_50 MODULAR { int|sys||lfs_segwait(fsid_t *fsidp, \
			    struct timeval50 *tv); }
d391 1
a391 1
188	COMPAT_12 MODULAR { int|sys||stat(const char *path, struct stat12 *ub); } \
d393 2
a394 2
189	COMPAT_12 MODULAR { int|sys||fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MODULAR { int|sys||lstat(const char *path, \
d396 2
a397 2
191	STD 		{ long|sys||pathconf(const char *path, int name); }
192	STD 		{ long|sys||fpathconf(int fd, int name); }
d399 1
a399 1
194	STD 		{ int|sys||getrlimit(int which, \
d401 1
a401 1
195	STD 		{ int|sys||setrlimit(int which, \
d403 1
a403 1
196	COMPAT_12 MODULAR { int|sys||getdirentries(int fd, char *buf, \
d405 1
a405 1
197	STD 		{ void *|sys||mmap(void *addr, size_t len, int prot, \
d407 1
a407 1
198	INDIR		{ quad_t|sys||__syscall(quad_t code, \
d409 1
a409 1
199	STD 		{ off_t|sys||lseek(int fd, int pad, off_t offset, \
d411 1
a411 1
200	STD 	 RUMP	{ int|sys||truncate(const char *path, int pad, \
d413 2
a414 2
201	STD 		{ int|sys||ftruncate(int fd, int pad, off_t length); }
202	STD	 RUMP 	{ int|sys||__sysctl(const int *name, u_int namelen, \
d417 8
a424 8
203	STD 		{ int|sys||mlock(const void *addr, size_t len); }
204	STD 		{ int|sys||munlock(const void *addr, size_t len); }
205	STD 		{ int|sys||undelete(const char *path); }
206	COMPAT_50 MODULAR { int|sys||futimes(int fd, \
			    const struct timeval50 *tptr); }
207	STD 		{ pid_t|sys||getpgid(pid_t pid); }
208	STD		{ int|sys||reboot(int opt, char *bootstr); }
209	STD 		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d429 23
a451 10
210	UNIMPL
211	UNIMPL
212	UNIMPL
213	UNIMPL
214	UNIMPL
215	UNIMPL
216	UNIMPL
217	UNIMPL
218	UNIMPL
219	UNIMPL
d453 2
a454 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
220	COMPAT_14 MODULAR { int|sys||__semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD 		{ int|sys||semget(key_t key, int nsems, int semflg); }
222	STD 		{ int|sys||semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD 		{ int|sys||semconfig(int flag); }
d466 2
a467 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
224	COMPAT_14 MODULAR { int|sys||msgctl(int msqid, int cmd, \
d469 2
a470 2
225	STD 		{ int|sys||msgget(key_t key, int msgflg); }
226	STD 		{ int|sys||msgsnd(int msqid, const void *msgp, \
d472 1
a472 1
227	STD 		{ ssize_t|sys||msgrcv(int msqid, void *msgp, \
d480 2
a481 2
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
228	STD 		{ void *|sys||shmat(int shmid, const void *shmaddr, \
d483 1
a483 1
229	COMPAT_14 MODULAR { int|sys||shmctl(int shmid, int cmd, \
d485 2
a486 2
230	STD 		{ int|sys||shmdt(const void *shmaddr); }
231	STD 		{ int|sys||shmget(key_t key, size_t size, int shmflg); }
d493 7
a499 7
232	COMPAT_50 MODULAR { int|sys||clock_gettime(clockid_t clock_id, \
			    struct timespec50 *tp); }
233	COMPAT_50 MODULAR { int|sys||clock_settime(clockid_t clock_id, \
			    const struct timespec50 *tp); }
234	COMPAT_50 MODULAR { int|sys||clock_getres(clockid_t clock_id, \
			    struct timespec50 *tp); }
235	STD		{ int|sys||timer_create(clockid_t clock_id, \
d501 7
a507 7
236	STD		{ int|sys||timer_delete(timer_t timerid); }
237	COMPAT_50 MODULAR { int|sys||timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec50 *value, \
			    struct itimerspec50 *ovalue); }
238	COMPAT_50 MODULAR { int|sys||timer_gettime(timer_t timerid, struct \
			    itimerspec50 *value); }
239	STD		{ int|sys||timer_getoverrun(timer_t timerid); }
d511 6
a516 6
240	COMPAT_50 MODULAR { int|sys||nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
241	STD 		{ int|sys||fdatasync(int fd); }
242	STD 		{ int|sys||mlockall(int flags); }
243	STD 		{ int|sys||munlockall(void); }
244	COMPAT_50 MODULAR { int|sys||__sigtimedwait(const sigset_t *set, \
d518 1
a518 1
			    struct timespec50 *timeout); }
d520 11
a530 10
246	STD 	 	{ int|sys||modctl(int cmd, void *arg); }
247	STD MODULAR 	{ int|sys||_ksem_init(unsigned int value, intptr_t *idp); }
248	STD MODULAR 	{ int|sys||_ksem_open(const char *name, int oflag, \
			    mode_t mode, unsigned int value, intptr_t *idp); }
249	STD MODULAR 	{ int|sys||_ksem_unlink(const char *name); }
250	STD MODULAR 	{ int|sys||_ksem_close(intptr_t id); }
251	STD MODULAR 	{ int|sys||_ksem_post(intptr_t id); }
252	STD MODULAR 	{ int|sys||_ksem_wait(intptr_t id); }
253	STD MODULAR 	{ int|sys||_ksem_trywait(intptr_t id); }
254	STD MODULAR 	{ int|sys||_ksem_getvalue(intptr_t id, \
d532 12
a543 1
255	STD MODULAR 	{ int|sys||_ksem_destroy(intptr_t id); }
d545 2
a546 1
257	STD 		{ mqd_t|sys||mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD 		{ int|sys||mq_close(mqd_t mqdes); }
259	STD 		{ int|sys||mq_unlink(const char *name); }
260	STD 		{ int|sys||mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD 		{ int|sys||mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD 		{ int|sys||mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD 		{ int|sys||mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD 		{ ssize_t|sys||mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	COMPAT_50 MODULAR { int|sys||mq_timedsend(mqd_t mqdes, \
d564 2
a565 2
			    const struct timespec50 *abs_timeout); }
266	COMPAT_50 MODULAR { ssize_t|sys||mq_timedreceive(mqd_t mqdes, \
d567 1
a567 1
			    const struct timespec50 *abs_timeout); }
d571 1
a571 1
270	STD 		{ int|sys||__posix_rename(const char *from, \
d573 3
a575 3
271	STD 		{ int|sys||swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MODULAR { int|sys||getdents(int fd, char *buf, size_t count); }
273	STD 		{ int|sys||minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD 	 RUMP	{ int|sys||lchmod(const char *path, mode_t mode); }
275	STD 	 RUMP	{ int|sys||lchown(const char *path, uid_t uid, \
d580 7
a586 7
276	COMPAT_50 MODULAR { int|sys||lutimes(const char *path, \
			    const struct timeval50 *tptr); }
277	STD 		{ int|sys|13|msync(void *addr, size_t len, int flags); }
278	COMPAT_30 MODULAR { int|sys|13|stat(const char *path, struct stat13 *ub); }
279	COMPAT_30 MODULAR { int|sys|13|fstat(int fd, struct stat13 *sb); }
280	COMPAT_30 MODULAR { int|sys|13|lstat(const char *path, struct stat13 *ub); }
281	STD 		{ int|sys|14|sigaltstack( \
d589 2
a590 2
282	STD 		{ int|sys|14|vfork(void); }
283	STD 		{ int|sys||__posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD 		{ int|sys||__posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD 		{ int|sys||__posix_lchown(const char *path, uid_t uid, \
d596 3
a598 3
286	STD 		{ pid_t|sys||getsid(pid_t pid); }
287	STD 		{ pid_t|sys||__clone(int flags, void *stack); }
288	STD 		{ int|sys||fktrace(int fd, int ops, \
d600 1
a600 1
289	STD 		{ ssize_t|sys||preadv(int fd, \
d603 1
a603 1
290	STD 		{ ssize_t|sys||pwritev(int fd, \
d606 1
a606 1
291	COMPAT_16 MODULAR { int|sys|14|sigaction(int signum, \
d609 2
a610 2
292	STD 		{ int|sys|14|sigpending(sigset_t *set); }
293	STD 		{ int|sys|14|sigprocmask(int how, \
d613 6
a618 6
294	STD 		{ int|sys|14|sigsuspend(const sigset_t *set); }
295	COMPAT_16 MODULAR { int|sys|14|sigreturn(struct sigcontext *sigcntxp); }
296	STD 		{ int|sys||__getcwd(char *bufp, size_t length); }
297	STD 		{ int|sys||fchroot(int fd); }
298	COMPAT_30 MODULAR { int|sys||fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MODULAR { int|sys||fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 MODULAR { int|sys||fhstatfs(const struct compat_30_fhandle *fhp, \
d622 2
a623 2
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
301	COMPAT_50 MODULAR { int|sys|13|__semctl(int semid, int semnum, int cmd, \
d628 2
a629 2
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
302	COMPAT_50 MODULAR { int|sys|13|msgctl(int msqid, int cmd, \
d634 3
a636 3
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
303	COMPAT_50 MODULAR { int|sys|13|shmctl(int shmid, int cmd, \
			    struct shmid_ds13 *buf); }
d640 3
a642 3
304	STD 	 RUMP	{ int|sys||lchflags(const char *path, u_long flags); }
305	STD 		{ int|sys||issetugid(void); }
306	STD 		{ int|sys||utrace(const char *label, void *addr, \
d644 3
a646 3
307	STD 		{ int|sys||getcontext(struct __ucontext *ucp); }
308	STD 		{ int|sys||setcontext(const struct __ucontext *ucp); }
309	STD 		{ int|sys||_lwp_create(const struct __ucontext *ucp, \
d648 3
a650 3
310	STD 		{ int|sys||_lwp_exit(void); }
311	STD 		{ lwpid_t|sys||_lwp_self(void); }
312	STD 		{ int|sys||_lwp_wait(lwpid_t wait_for, \
d652 8
a659 8
313	STD 		{ int|sys||_lwp_suspend(lwpid_t target); }
314	STD 		{ int|sys||_lwp_continue(lwpid_t target); }
315	STD 		{ int|sys||_lwp_wakeup(lwpid_t target); }
316	STD 		{ void *|sys||_lwp_getprivate(void); }
317	STD 		{ void|sys||_lwp_setprivate(void *ptr); }
318	STD 		{ int|sys||_lwp_kill(lwpid_t target, int signo); }
319	STD 		{ int|sys||_lwp_detach(lwpid_t target); }
320	COMPAT_50 MODULAR { int|sys||_lwp_park(const struct timespec50 *ts, \
d662 2
a663 2
321	STD 		{ int|sys||_lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, \
d665 1
a665 1
323	STD 		{ int|sys||_lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD 		{ int|sys||_lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD 		{ int|sys||_lwp_ctl(int features, \
d676 8
a683 13
; SA system calls.
330	STD 		{ int|sys||sa_register(sa_upcall_t new, \
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
331	STD 		{ int|sys||sa_stacks(int num, stack_t *stacks); }
332	STD 		{ int|sys||sa_enable(void); }
333	STD 		{ int|sys||sa_setconcurrency(int concurrency); }
334	STD 		{ int|sys||sa_yield(void); }
335	STD 		{ int|sys||sa_preempt(int sa_id); }
336	OBSOL 		sys_sa_unblockyield
;
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
;
d687 1
a687 1
340	STD 		{ int|sys||__sigaction_sigtramp(int signum, \
d691 5
a695 5
341	STD		{ int|sys||pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int|sys||pmc_control(int ctr, int op, void *args); }
343	STD 		{ int|sys||rasctl(void *addr, size_t len, int op); }
344	STD 		{ int|sys||kqueue(void); }
345	COMPAT_50 MODULAR { int|sys||kevent(int fd, \
d698 1
a698 1
			    const struct timespec50 *timeout); }
d701 1
a701 1
346	STD 		{ int|sys||_sched_setparam(pid_t pid, lwpid_t lid, \
d703 1
a703 1
347	STD 		{ int|sys||_sched_getparam(pid_t pid, lwpid_t lid, \
d705 1
a705 1
348	STD 		{ int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, \
d707 1
a707 1
349	STD 		{ int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, \
d709 1
a709 1
350	STD 		{ int|sys||sched_yield(void); }
d714 1
a714 1
354	STD 		{ int|sys||fsync_range(int fd, int flags, off_t start, \
d716 2
a717 2
355	STD 		{ int|sys||uuidgen(struct uuid *store, int count); }
356	STD 		{ int|sys||getvfsstat(struct statvfs *buf, \
d719 1
a719 1
357	STD 	RUMP	{ int|sys||statvfs1(const char *path, \
d721 1
a721 1
358	STD 		{ int|sys||fstatvfs1(int fd, struct statvfs *buf, \
d723 1
a723 1
359	COMPAT_30 MODULAR { int|sys||fhstatvfs1(const struct compat_30_fhandle *fhp, \
d725 1
a725 1
360	STD 		{ int|sys||extattrctl(const char *path, int cmd, \
d728 1
a728 1
361	STD 		{ int|sys||extattr_set_file(const char *path, \
d731 1
a731 1
362	STD 		{ ssize_t|sys||extattr_get_file(const char *path, \
d734 1
a734 1
363	STD 		{ int|sys||extattr_delete_file(const char *path, \
d736 1
a736 1
364	STD 		{ int|sys||extattr_set_fd(int fd, \
d739 1
a739 1
365	STD 		{ ssize_t|sys||extattr_get_fd(int fd, \
d742 1
a742 1
366	STD 		{ int|sys||extattr_delete_fd(int fd, \
d744 1
a744 1
367	STD 		{ int|sys||extattr_set_link(const char *path, \
d747 1
a747 1
368	STD 		{ ssize_t|sys||extattr_get_link(const char *path, \
d750 1
a750 1
369	STD 		{ int|sys||extattr_delete_link(const char *path, \
d752 1
a752 1
370	STD 		{ ssize_t|sys||extattr_list_fd(int fd, \
d754 1
a754 1
371	STD 		{ ssize_t|sys||extattr_list_file(const char *path, \
d756 1
a756 1
372	STD 		{ ssize_t|sys||extattr_list_link(const char *path, \
d758 2
a759 2
373	COMPAT_50 MODULAR { int|sys||pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec50 *ts, \
d761 3
a763 3
374	COMPAT_50 MODULAR { int|sys||pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec50 *ts, const sigset_t *mask); }
375	STD 		{ int|sys||setxattr(const char *path, \
d766 1
a766 1
376	STD 		{ int|sys||lsetxattr(const char *path, \
d769 1
a769 1
377	STD 		{ int|sys||fsetxattr(int fd, \
d772 1
a772 1
378	STD 		{ int|sys||getxattr(const char *path, \
d774 1
a774 1
379	STD 		{ int|sys||lgetxattr(const char *path, \
d776 1
a776 1
380	STD 		{ int|sys||fgetxattr(int fd, \
d778 1
a778 1
381	STD 		{ int|sys||listxattr(const char *path, \
d780 1
a780 1
382	STD 		{ int|sys||llistxattr(const char *path, \
d782 1
a782 1
383	STD 		{ int|sys||flistxattr(int fd, \
d784 1
a784 1
384	STD 		{ int|sys||removexattr(const char *path, \
d786 1
a786 1
385	STD 		{ int|sys||lremovexattr(const char *path, \
d788 1
a788 1
386	STD 		{ int|sys||fremovexattr(int fd, \
d790 4
a793 4
387	COMPAT_50 MODULAR { int|sys|30|stat(const char *path, struct stat30 *ub); }
388	COMPAT_50 MODULAR { int|sys|30|fstat(int fd, struct stat30 *sb); }
389	COMPAT_50 MODULAR { int|sys|30|lstat(const char *path, struct stat30 *ub); }
390	STD 		{ int|sys|30|getdents(int fd, char *buf, size_t count); }
d795 5
a799 5
392	COMPAT_30 MODULAR { int|sys|30|fhstat(const struct compat_30_fhandle \
			    *fhp, struct stat30 *sb); }
393	COMPAT_50 MODULAR { int|sys|30|ntp_gettime(struct ntptimeval50 *ntvp); }
394	STD	 RUMP	{ int|sys|30|socket(int domain, int type, int protocol); }
395	STD 	 RUMP	{ int|sys|30|getfh(const char *fname, void *fhp, \
d801 1
a801 1
396	STD 		{ int|sys|40|fhopen(const void *fhp, size_t fh_size,\
d803 1
a803 1
397	STD 		{ int|sys|40|fhstatvfs1(const void *fhp, \
d805 2
a806 2
398	COMPAT_50 MODULAR { int|sys|40|fhstat(const void *fhp, \
			    size_t fh_size, struct stat30 *sb); }
d809 9
a817 9
399	STD MODULAR 	{ int|sys||aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MODULAR 	{ int|sys||aio_error(const struct aiocb *aiocbp); }
401	STD MODULAR 	{ int|sys||aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MODULAR 	{ int|sys||aio_read(struct aiocb *aiocbp); }
403	STD MODULAR 	{ int|sys||aio_return(struct aiocb *aiocbp); }
404	COMPAT_50 MODULAR { int|sys||aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec50 *timeout); }
405	STD MODULAR 	{ int|sys||aio_write(struct aiocb *aiocbp); }
406	STD MODULAR 	{ int|sys||lio_listio(int mode, struct aiocb *const *list, \
d824 1
a824 1
410	STD 		{ int|sys|50|mount(const char *type, \
d827 1
a827 1
411	STD 		{ void *|sys||mremap(void *old_address, size_t old_size, \
d831 3
a833 3
412	STD 		{ int|sys||pset_create(psetid_t *psid); }
413	STD 		{ int|sys||pset_destroy(psetid_t psid); }
414	STD 		{ int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, \
d835 1
a835 1
415	STD 		{ int|sys||_pset_bind(idtype_t idtype, id_t first_id, \
d837 1
a837 1
416	STD 		{ int|sys|50|posix_fadvise(int fd, int pad, \
a838 96
417	STD 		{ int|sys|50|select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
418	STD 		{ int|sys|50|gettimeofday(struct timeval *tp, \
			    void *tzp); }
419	STD 		{ int|sys|50|settimeofday(const struct timeval *tv, \
			    const void *tzp); }
420	STD  RUMP	{ int|sys|50|utimes(const char *path, \
			    const struct timeval *tptr); }
421	STD		{ int|sys|50|adjtime(const struct timeval *delta, \
			    struct timeval *olddelta); }
#if defined(LFS) || !defined(_KERNEL)
422	STD		{ int|sys|50|lfs_segwait(fsid_t *fsidp, \
			    struct timeval *tv); }
#else
422	EXCL		__lfs_segwait50
#endif
423	STD 		{ int|sys|50|futimes(int fd, \
			    const struct timeval *tptr); }
424	STD  RUMP 	{ int|sys|50|lutimes(const char *path, \
			    const struct timeval *tptr); }
425	STD		{ int|sys|50|setitimer(int which, \
			    const struct itimerval *itv, \
			    struct itimerval *oitv); }
426	STD		{ int|sys|50|getitimer(int which, \
			    struct itimerval *itv); }
427	STD 		{ int|sys|50|clock_gettime(clockid_t clock_id, \
			    struct timespec *tp); }
428	STD 		{ int|sys|50|clock_settime(clockid_t clock_id, \
			    const struct timespec *tp); }
429	STD 		{ int|sys|50|clock_getres(clockid_t clock_id, \
			    struct timespec *tp); }
430	STD 		{ int|sys|50|nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
431	STD 		{ int|sys|50|__sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, \
			    struct timespec *timeout); }
432	STD 		{ int|sys|50|mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
433	STD 		{ ssize_t|sys|50|mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
434	STD 		{ int|sys|50|_lwp_park(const struct timespec *ts, \
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
435	STD 		{ int|sys|50|kevent(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
			    const struct timespec *timeout); }
436	STD 		{ int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
437	STD 		{ int|sys|50|pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
438	STD MODULAR	{ int|sys|50|aio_suspend( \
			    const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
439	STD  RUMP	{ int|sys|50|stat(const char *path, struct stat *ub); }
440	STD 		{ int|sys|50|fstat(int fd, struct stat *sb); }
441	STD  RUMP	{ int|sys|50|lstat(const char *path, struct stat *ub); }
#if defined(SYSVSEM) || !defined(_KERNEL_OPT)
442	STD 		{ int|sys|50|__semctl(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
#else
442	EXCL		____semctl50
#endif
#if defined(SYSVSHM) || !defined(_KERNEL_OPT)
443	STD 		{ int|sys|50|shmctl(int shmid, int cmd, \
			    struct shmid_ds *buf); }
#else
443	EXCL 		____shmctl50
#endif
#if defined(SYSVMSG) || !defined(_KERNEL_OPT)
444	STD 		{ int|sys|50|msgctl(int msqid, int cmd, \
			    struct msqid_ds *buf); }
#else
444	EXCL 		____msgctl50
#endif
445	STD 		{ int|sys|50|getrusage(int who, struct rusage *rusage); }
446	STD		{ int|sys|50|timer_settime(timer_t timerid, \
			    int flags, const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
447	STD		{ int|sys|50|timer_gettime(timer_t timerid, struct \
			    itimerspec *value); }
#if defined(NTP) || !defined(_KERNEL_OPT)
448	STD		{ int|sys|50|ntp_gettime(struct ntptimeval *ntvp); }
#else
448	EXCL		___ntp_gettime50
#endif
449	STD 		{ int|sys|50|wait4(int pid, int *status, \
				    int options, struct rusage *rusage); }
450	STD  RUMP	{ int|sys|50|mknod(const char *path, mode_t mode, \
			    dev_t dev); }
451	STD	 	{ int|sys|50|fhstat(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
@


1.189.2.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.191 2008/03/11 22:50:10 pooka Exp $
d10 1
a10 1
;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
d13 2
a14 4
; Optional fields are specified after the type field
; (NOTE! they must be specified in this order):
;     MPSAFE:	the system call is MP-safe.
;     RUMP:	the system call can be called directly from rumps
a18 1
;	IGNORED	syscall is a null op, but always succeeds
d68 2
a69 2
3	STD MPSAFE RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d71 1
a71 1
5	STD MPSAFE RUMP	{ int sys_open(const char *path, \
d73 1
a73 1
6	STD MPSAFE RUMP	{ int sys_close(int fd); }
d77 2
a78 2
9	STD MPSAFE RUMP	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE RUMP	{ int sys_unlink(const char *path); }
d80 3
a82 3
12	STD MPSAFE RUMP	{ int sys_chdir(const char *path); }
13	STD MPSAFE RUMP	{ int sys_fchdir(int fd); }
14	STD MPSAFE RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d84 2
a85 2
15	STD MPSAFE RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE RUMP	{ int sys_chown(const char *path, uid_t uid, \
d99 1
a99 1
22	STD MPSAFE RUMP	{ int sys_unmount(const char *path, int flags); }
d122 4
a125 4
33	STD MPSAFE RUMP	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE RUMP	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE RUMP	{ void sys_sync(void); }
d160 1
a160 1
57	STD MPSAFE RUMP	{ int sys_symlink(const char *path, \
d162 1
a162 1
58	STD MPSAFE RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d266 1
a266 1
128	STD MPSAFE RUMP	{ int sys_rename(const char *from, const char *to); }
d278 2
a279 2
136	STD MPSAFE RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE RUMP	{ int sys_rmdir(const char *path); }
d408 1
a408 1
200	STD MPSAFE RUMP	{ int sys_truncate(const char *path, int pad, \
d574 2
a575 2
274	STD MPSAFE RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d791 2
a792 1
391	IGNORED		old posix_fadvise
@


1.188
log
@from rmind@@,
- revert struct sched_param changes to restore ABI.
- instead, add 'policy' arguments to _sched_{get,set}param syscalls.
  (this is an API/ABI change.)
- correct kauth_authorize_process arguments.

while i'm here,
- don't bother to kmem_alloc for 4-byte structure.
@
text
@d1 1
a1 1
	$NetBSD$
d97 1
a97 1
21	COMPAT_40	{ int sys_mount(const char *type, const char *path, \
d99 1
a99 1
22	STD		{ int sys_unmount(const char *path, int flags); }
d822 1
a822 1
410	STD		{ int sys___mount50(const char *type, \
@


1.187
log
@Version the posix_fadvise syscall and add the missing "pad" argument,
so that it does not only work on i386 (no padding) and 64bit archs (all
args padded to 64bit).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.186 2008/01/25 13:38:57 ad Exp $
d699 1
a699 1
			    const struct sched_param *params); }
d701 1
a701 1
			    struct sched_param *params); }
@


1.186
log
@Mark the extattr syscalls MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.185 2008/01/16 12:34:51 ad Exp $
d791 1
a791 1
391	STD MPSAFE	{ int sys_posix_fadvise(int fd, off_t offset, \
d835 2
@


1.185
log
@Pull in my modules code for review/test/hacking.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.184 2008/01/15 03:37:11 rmind Exp $
d722 1
a722 1
360	STD		{ int sys_extattrctl(const char *path, int cmd, \
d725 1
a725 1
361	STD		{ int sys_extattr_set_file(const char *path, \
d728 1
a728 1
362	STD		{ ssize_t sys_extattr_get_file(const char *path, \
d731 1
a731 1
363	STD		{ int sys_extattr_delete_file(const char *path, \
d733 1
a733 1
364	STD		{ int sys_extattr_set_fd(int fd, \
d736 1
a736 1
365	STD		{ ssize_t sys_extattr_get_fd(int fd, \
d739 1
a739 1
366	STD		{ int sys_extattr_delete_fd(int fd, \
d741 1
a741 1
367	STD		{ int sys_extattr_set_link(const char *path, \
d744 1
a744 1
368	STD		{ ssize_t sys_extattr_get_link(const char *path, \
d747 1
a747 1
369	STD		{ int sys_extattr_delete_link(const char *path, \
d749 1
a749 1
370	STD		{ ssize_t sys_extattr_list_fd(int fd, \
d751 1
a751 1
371	STD		{ ssize_t sys_extattr_list_file(const char *path, \
d753 1
a753 1
372	STD		{ ssize_t sys_extattr_list_link(const char *path, \
d760 1
a760 1
375	STD		{ int sys_setxattr(const char *path, \
d763 1
a763 1
376	STD		{ int sys_lsetxattr(const char *path, \
d766 1
a766 1
377	STD		{ int sys_fsetxattr(int fd, \
d769 1
a769 1
378	STD		{ int sys_getxattr(const char *path, \
d771 1
a771 1
379	STD		{ int sys_lgetxattr(const char *path, \
d773 1
a773 1
380	STD		{ int sys_fgetxattr(int fd, \
d775 1
a775 1
381	STD		{ int sys_listxattr(const char *path, \
d777 1
a777 1
382	STD		{ int sys_llistxattr(const char *path, \
d779 1
a779 1
383	STD		{ int sys_flistxattr(int fd, \
d781 1
a781 1
384	STD		{ int sys_removexattr(const char *path, \
d783 1
a783 1
385	STD		{ int sys_lremovexattr(const char *path, \
d785 1
a785 1
386	STD		{ int sys_fremovexattr(int fd, \
@


1.184
log
@Implementation of processor-sets, affinity and POSIX real-time extensions.
Add schedctl(8) - a program to control scheduling of processes and threads.

Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;

Proposed on: <tech-kern>. Reviewed by: <ad>.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.183 2008/01/07 16:15:36 ad Exp $
d517 1
a517 4
;
; Syscall 246 is free for any use
;
246	UNIMPL
@


1.183
log
@More MPSAFE syscalls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.182 2008/01/02 11:57:13 ad Exp $
d699 10
a708 7
;
; Syscalls 346-353 are reserved for the IEEE Std1003.1b scheduling syscalls
;
346	UNIMPL		sys_sched_setparam
347	UNIMPL		sys_sched_getparam
348	UNIMPL		sys_sched_setscheduler
349	UNIMPL		sys_sched_getscheduler
d710 3
a712 3
351	UNIMPL		sys_sched_get_priority_max
352	UNIMPL		sys_sched_get_priority_min
353	UNIMPL		sys_sched_rr_get_interval
d830 8
@


1.182
log
@Merge vmlocking2 to head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.10 2008/01/02 09:35:13 ad Exp $
d88 1
a88 1
18	COMPAT_20	{ int sys_getfsstat(struct statfs12 *buf, \
d100 1
a100 1
23	STD 		{ int sys_setuid(uid_t uid); }
d102 1
a102 1
24	STD		{ uid_t sys_getuid_with_euid(void); } getuid
d107 1
a107 1
26	STD		{ int sys_ptrace(int req, pid_t pid, void *addr, \
d150 2
a151 2
50	STD	 	{ int sys___setlogin(const char *namebuf); }
51	STD		{ int sys_acct(const char *path); }
d167 3
a169 3
61	STD 		{ int sys_chroot(const char *path); }
62	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
d171 2
a172 2
64	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12	{ int sys_msync(void *addr, size_t len); }
d179 1
a179 1
71	COMPAT_43	{ int sys_mmap(void *addr, size_t len, int prot, \
d193 1
a193 1
80	STD		{ int sys_setgroups(int gidsetsize, \
d196 1
a196 1
82	STD 		{ int sys_setpgid(int pid, int pgid); }
d201 1
a201 1
85	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
d204 1
a204 1
87	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
d206 1
a206 1
88	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
d257 1
a257 1
122	STD		{ int sys_settimeofday(const struct timeval *tv, \
d264 2
a265 2
126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
d291 1
a291 1
145	COMPAT_43	{ int sys_setrlimit(int which, \
d294 2
a295 2
147	STD	 	{ int sys_setsid(void); }
148	STD		{ int sys_quotactl(const char *path, int cmd, \
d297 1
a297 1
149	COMPAT_43	{ int sys_quota(void); } oquota
d314 1
a314 1
156	COMPAT_43 MPSAFE{ int sys_getdirentries(int fd, char *buf, \
d316 1
a316 1
157	COMPAT_20	{ int sys_statfs(const char *path, \
d318 1
a318 1
158	COMPAT_20	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d321 1
a321 1
161	COMPAT_30	{ int sys_getfh(const char *fname, \
d323 1
a323 1
162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
d325 1
a325 1
163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
d371 3
a373 3
181	STD		{ int sys_setgid(gid_t gid); }
182	STD 		{ int sys_setegid(gid_t egid); }
183	STD		{ int sys_seteuid(uid_t euid); }
d398 1
a398 1
195	STD		{ int sys_setrlimit(int which, \
d400 1
a400 1
196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
d492 1
a492 1
233	STD		{ int sys_clock_settime(clockid_t clock_id, \
d617 2
a618 2
298	COMPAT_30	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d713 2
a714 2
355	STD		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD		{ int sys_getvfsstat(struct statvfs *buf, \
d716 1
a716 1
357	STD		{ int sys_statvfs1(const char *path, \
d718 1
a718 1
358	STD		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d720 1
a720 1
359	COMPAT_30	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d791 1
a791 1
391	STD		{ int sys_posix_fadvise(int fd, off_t offset, \
d793 1
a793 1
392	COMPAT_30	{ int sys___fhstat30(const struct compat_30_fhandle \
d797 1
a797 1
395	STD		{ int sys___getfh30(const char *fname, void *fhp, \
d799 1
a799 1
396	STD		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d801 1
a801 1
397	STD		{ int sys___fhstatvfs140(const void *fhp, \
d803 1
a803 1
398	STD		{ int sys___fhstat40(const void *fhp, \
@


1.181
log
@Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180 2007/11/12 23:11:59 ad Exp $
d66 4
a69 4
1	STD		{ void sys_exit(int rval); }
2	STD		{ int sys_fork(void); }
3	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD		{ ssize_t sys_write(int fd, const void *buf, \
d71 1
a71 1
5	STD		{ int sys_open(const char *path, \
d73 2
a74 2
6	STD		{ int sys_close(int fd); }
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
d76 3
a78 3
8	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD		{ int sys_link(const char *path, const char *link); }
10	STD		{ int sys_unlink(const char *path); }
d80 3
a82 3
12	STD		{ int sys_chdir(const char *path); }
13	STD		{ int sys_fchdir(int fd); }
14	STD		{ int sys_mknod(const char *path, mode_t mode, \
d84 2
a85 2
15	STD		{ int sys_chmod(const char *path, mode_t mode); }
16	STD		{ int sys_chown(const char *path, uid_t uid, \
d87 1
a87 1
17	STD		{ int sys_obreak(char *nsize); } break
d90 1
a90 1
19	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
d109 1
a109 1
27	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d111 1
a111 1
28	STD		{ ssize_t sys_sendmsg(int s, \
d113 1
a113 1
29	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d122 6
a127 6
33	STD		{ int sys_access(const char *path, int flags); }
34	STD		{ int sys_chflags(const char *path, u_long flags); }
35	STD		{ int sys_fchflags(int fd, u_long flags); }
36	STD		{ void sys_sync(void); }
37	STD 		{ int sys_kill(int pid, int signum); }
38	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
d130 1
a130 1
40	COMPAT_43	{ int sys_lstat(const char *path, \
d132 2
a133 2
41	STD		{ int sys_dup(int fd); }
42	STD		{ int sys_pipe(void); }
d137 1
a137 1
45	STD		{ int sys_ktrace(const char *fname, int ops, \
d156 1
a156 1
54	STD		{ int sys_ioctl(int fd, \
d159 2
a160 2
56	STD		{ int sys_revoke(const char *path); }
57	STD		{ int sys_symlink(const char *path, \
d162 1
a162 1
58	STD		{ ssize_t sys_readlink(const char *path, char *buf, \
d164 1
a164 1
59	STD		{ int sys_execve(const char *path, \
d166 2
a167 2
60	STD		{ mode_t sys_umask(mode_t newmask); }
61	STD		{ int sys_chroot(const char *path); }
d174 1
a174 1
66	STD		{ int sys_vfork(void); }
d177 2
a178 2
69	STD		{ int sys_sbrk(intptr_t incr); }
70	STD		{ int sys_sstk(int incr); }
d181 3
a183 3
72	STD		{ int sys_ovadvise(int anom); } vadvise
73	STD		{ int sys_munmap(void *addr, size_t len); }
74	STD		{ int sys_mprotect(void *addr, size_t len, \
d185 1
a185 1
75	STD		{ int sys_madvise(void *addr, size_t len, \
d189 1
a189 1
78	STD		{ int sys_mincore(void *addr, size_t len, \
d200 1
a200 1
84	COMPAT_43 	{ int sys_wait(void); } owait
d208 2
a209 2
89	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD		{ int sys_dup2(int from, int to); }
d211 2
a212 2
92	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d215 1
a215 1
95	STD		{ int sys_fsync(int fd); }
d253 1
a253 1
120	STD		{ ssize_t sys_readv(int fd, \
d255 1
a255 1
121	STD		{ ssize_t sys_writev(int fd, \
d259 2
a260 2
123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD		{ int sys_fchmod(int fd, mode_t mode); }
d266 2
a267 2
128	STD		{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
d269 4
a272 4
130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD		{ int sys_flock(int fd, int how); }
132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
d278 3
a280 3
136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
137	STD		{ int sys_rmdir(const char *path); }
138	STD		{ int sys_utimes(const char *path, \
d287 2
a288 2
142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
d293 1
a293 1
146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
d314 1
a314 1
156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
d327 1
a327 1
164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
d341 1
a341 1
170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d348 1
a348 1
171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d354 1
a354 1
173	STD		{ ssize_t sys_pread(int fd, void *buf, \
d356 1
a356 1
174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
d388 1
a388 1
188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
d390 2
a391 2
189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12	{ int sys_lstat(const char *path, \
d393 2
a394 2
191	STD		{ long sys_pathconf(const char *path, int name); }
192	STD		{ long sys_fpathconf(int fd, int name); }
d396 1
a396 1
194	STD		{ int sys_getrlimit(int which, \
d402 1
a402 1
197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
d406 1
a406 1
199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
d408 1
a408 1
200	STD		{ int sys_truncate(const char *path, int pad, \
d410 2
a411 2
201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD		{ int sys___sysctl(const int *name, u_int namelen, \
d414 4
a417 4
203	STD		{ int sys_mlock(const void *addr, size_t len); }
204	STD		{ int sys_munlock(const void *addr, size_t len); }
205	STD		{ int sys_undelete(const char *path); }
206	STD		{ int sys_futimes(int fd, \
d421 1
a421 1
209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
d478 1
a478 1
228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
d480 1
a480 1
229	COMPAT_14	{ int sys_shmctl(int shmid, int cmd, \
d482 2
a483 2
230	STD		{ int sys_shmdt(const void *shmaddr); }
231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
d510 3
a512 3
241	STD		{ int sys_fdatasync(int fd); }
242	STD		{ int sys_mlockall(int flags); }
243	STD		{ int sys_munlockall(void); }
d522 2
a523 2
247	STD		{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD		{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD 		{ int sys__ksem_unlink(const char *name); }
250	STD		{ int sys__ksem_close(semid_t id); }
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD		{ int sys__ksem_destroy(semid_t id); }
d546 1
a546 1
257	STD		{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD		{ int sys_mq_close(mqd_t mqdes); }
259	STD		{ int sys_mq_unlink(const char *name); }
260	STD		{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD		{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD		{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	STD		{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	STD		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD		{ int sys___posix_rename(const char *from, \
d573 3
a575 3
271	STD		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30	{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD		{ int sys_minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
275	STD		{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	STD		{ int sys_lutimes(const char *path, \
d582 4
a585 4
277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d589 2
a590 2
282	STD		{ int sys___vfork14(void); }
283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
d597 2
a598 2
287	STD		{ pid_t sys___clone(int flags, void *stack); }
288	STD		{ int sys_fktrace(int fd, int ops, \
d600 1
a600 1
289	STD		{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD		{ ssize_t sys_pwritev(int fd, \
d615 2
a616 2
296	STD		{ int sys___getcwd(char *bufp, size_t length); }
297	STD		{ int sys_fchroot(int fd); }
d635 1
a635 1
303	STD 		{ int sys___shmctl13(int shmid, int cmd, \
d640 1
a640 1
304	STD		{ int sys_lchflags(const char *path, u_long flags); }
d646 1
a646 1
309	STD		{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 1
a648 1
310	STD		{ int sys__lwp_exit(void); }
d657 1
a657 1
318	STD		{ int sys__lwp_kill(lwpid_t target, int signo); }
d665 1
a665 1
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD 		{ int sys__lwp_ctl(int features, \
d693 1
a693 1
343	STD		{ int sys_rasctl(void *addr, size_t len, int op); }
d711 1
a711 1
354	STD		{ int sys_fsync_range(int fd, int flags, off_t start, \
d755 1
a755 1
373	STD		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d758 1
a758 1
374	STD		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d787 4
a790 4
387	STD		{ int sys___stat30(const char *path, struct stat *ub); }
388	STD		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD		{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD		{ int sys___getdents30(int fd, char *buf, size_t count); }
d807 1
a807 1
399	STD		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
d809 2
a810 2
401	STD		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD		{ int sys_aio_read(struct aiocb *aiocbp); }
d812 1
a812 1
404	STD		{ int sys_aio_suspend(const struct aiocb *const *list, \
d814 2
a815 2
405	STD		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d825 1
a825 1
411	STD		{ void *sys_mremap(void *old_address, size_t old_size, \
@


1.180
log
@Add _lwp_ctl() system call: provides a bidirectional, per-LWP communication
area between processes and the kernel.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.179 2007/11/09 14:57:33 dsl Exp $
d598 1
a598 1
288	STD		{ int sys_fktrace(const int fd, int ops, \
@


1.180.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD$
d66 4
a69 4
1	STD MPSAFE	{ void sys_exit(int rval); }
2	STD MPSAFE	{ int sys_fork(void); }
3	STD MPSAFE	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE	{ ssize_t sys_write(int fd, const void *buf, \
d71 1
a71 1
5	STD MPSAFE	{ int sys_open(const char *path, \
d73 2
a74 2
6	STD MPSAFE	{ int sys_close(int fd); }
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d76 3
a78 3
8	COMPAT_43 MPSAFE	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD MPSAFE	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE	{ int sys_unlink(const char *path); }
d80 3
a82 3
12	STD MPSAFE	{ int sys_chdir(const char *path); }
13	STD MPSAFE	{ int sys_fchdir(int fd); }
14	STD MPSAFE	{ int sys_mknod(const char *path, mode_t mode, \
d84 2
a85 2
15	STD MPSAFE	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE	{ int sys_chown(const char *path, uid_t uid, \
d87 1
a87 1
17	STD MPSAFE	{ int sys_obreak(char *nsize); } break
d90 1
a90 1
19	COMPAT_43 MPSAFE	{ long sys_lseek(int fd, long offset, int whence); } \
d109 1
a109 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d111 1
a111 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d113 1
a113 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d122 6
a127 6
33	STD MPSAFE	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE	{ void sys_sync(void); }
37	STD MPSAFE	{ int sys_kill(int pid, int signum); }
38	COMPAT_43 MPSAFE	{ int sys_stat(const char *path, struct stat43 *ub); } \
d130 1
a130 1
40	COMPAT_43 MPSAFE	{ int sys_lstat(const char *path, \
d132 2
a133 2
41	STD MPSAFE	{ int sys_dup(int fd); }
42	STD MPSAFE	{ int sys_pipe(void); }
d137 1
a137 1
45	STD MPSAFE	{ int sys_ktrace(const char *fname, int ops, \
d156 1
a156 1
54	STD MPSAFE	{ int sys_ioctl(int fd, \
d159 2
a160 2
56	STD MPSAFE	{ int sys_revoke(const char *path); }
57	STD MPSAFE	{ int sys_symlink(const char *path, \
d162 1
a162 1
58	STD MPSAFE	{ ssize_t sys_readlink(const char *path, char *buf, \
d164 1
a164 1
59	STD MPSAFE	{ int sys_execve(const char *path, \
d166 2
a167 2
60	STD MPSAFE	{ mode_t sys_umask(mode_t newmask); }
61	STD 		{ int sys_chroot(const char *path); }
d174 1
a174 1
66	STD MPSAFE	{ int sys_vfork(void); }
d177 2
a178 2
69	STD MPSAFE	{ int sys_sbrk(intptr_t incr); }
70	STD MPSAFE	{ int sys_sstk(int incr); }
d181 3
a183 3
72	STD MPSAFE	{ int sys_ovadvise(int anom); } vadvise
73	STD MPSAFE	{ int sys_munmap(void *addr, size_t len); }
74	STD MPSAFE	{ int sys_mprotect(void *addr, size_t len, \
d185 1
a185 1
75	STD MPSAFE	{ int sys_madvise(void *addr, size_t len, \
d189 1
a189 1
78	STD MPSAFE	{ int sys_mincore(void *addr, size_t len, \
d200 1
a200 1
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
d208 2
a209 2
89	COMPAT_43 MPSAFE	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD MPSAFE	{ int sys_dup2(int from, int to); }
d211 2
a212 2
92	STD MPSAFE	{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD MPSAFE	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d215 1
a215 1
95	STD MPSAFE	{ int sys_fsync(int fd); }
d253 1
a253 1
120	STD MPSAFE	{ ssize_t sys_readv(int fd, \
d255 1
a255 1
121	STD MPSAFE	{ ssize_t sys_writev(int fd, \
d259 2
a260 2
123	STD MPSAFE	{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD MPSAFE	{ int sys_fchmod(int fd, mode_t mode); }
d266 2
a267 2
128	STD MPSAFE	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 MPSAFE	{ int sys_truncate(const char *path, long length); } \
d269 4
a272 4
130	COMPAT_43 MPSAFE	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD MPSAFE	{ int sys_flock(int fd, int how); }
132	STD MPSAFE	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
d278 3
a280 3
136	STD MPSAFE	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE	{ int sys_rmdir(const char *path); }
138	STD MPSAFE	{ int sys_utimes(const char *path, \
d287 2
a288 2
142	COMPAT_43 MPSAFE	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MPSAFE	{ int sys_sethostid(int32_t hostid); } osethostid
d293 1
a293 1
146	COMPAT_43 MPSAFE	{ int sys_killpg(int pgid, int signum); } okillpg
d314 1
a314 1
156	COMPAT_43 MPSAFE{ int sys_getdirentries(int fd, char *buf, \
d327 1
a327 1
164	COMPAT_09 MPSAFE	{ int sys_uname(struct outsname *name); } ouname
d341 1
a341 1
170	COMPAT_10 MPSAFE	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d348 1
a348 1
171	COMPAT_10 MPSAFE	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d354 1
a354 1
173	STD MPSAFE	{ ssize_t sys_pread(int fd, void *buf, \
d356 1
a356 1
174	STD MPSAFE	{ ssize_t sys_pwrite(int fd, const void *buf, \
d388 1
a388 1
188	COMPAT_12 MPSAFE	{ int sys_stat(const char *path, struct stat12 *ub); } \
d390 2
a391 2
189	COMPAT_12 MPSAFE	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MPSAFE	{ int sys_lstat(const char *path, \
d393 2
a394 2
191	STD MPSAFE	{ long sys_pathconf(const char *path, int name); }
192	STD MPSAFE	{ long sys_fpathconf(int fd, int name); }
d396 1
a396 1
194	STD MPSAFE	{ int sys_getrlimit(int which, \
d402 1
a402 1
197	STD MPSAFE	{ void *sys_mmap(void *addr, size_t len, int prot, \
d406 1
a406 1
199	STD MPSAFE	{ off_t sys_lseek(int fd, int pad, off_t offset, \
d408 1
a408 1
200	STD MPSAFE	{ int sys_truncate(const char *path, int pad, \
d410 2
a411 2
201	STD MPSAFE	{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD MPSAFE	{ int sys___sysctl(const int *name, u_int namelen, \
d414 4
a417 4
203	STD MPSAFE	{ int sys_mlock(const void *addr, size_t len); }
204	STD MPSAFE	{ int sys_munlock(const void *addr, size_t len); }
205	STD MPSAFE	{ int sys_undelete(const char *path); }
206	STD MPSAFE	{ int sys_futimes(int fd, \
d421 1
a421 1
209	STD MPSAFE	{ int sys_poll(struct pollfd *fds, u_int nfds, \
d478 1
a478 1
228	STD MPSAFE	{ void *sys_shmat(int shmid, const void *shmaddr, \
d480 1
a480 1
229	COMPAT_14 MPSAFE { int sys_shmctl(int shmid, int cmd, \
d482 2
a483 2
230	STD MPSAFE	{ int sys_shmdt(const void *shmaddr); }
231	STD MPSAFE	{ int sys_shmget(key_t key, size_t size, int shmflg); }
d510 3
a512 3
241	STD MPSAFE	{ int sys_fdatasync(int fd); }
242	STD MPSAFE	{ int sys_mlockall(int flags); }
243	STD MPSAFE	{ int sys_munlockall(void); }
d522 2
a523 2
247	STD MPSAFE	{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD MPSAFE	{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD MPSAFE	{ int sys__ksem_unlink(const char *name); }
250	STD MPSAFE	{ int sys__ksem_close(semid_t id); }
251	STD MPSAFE	{ int sys__ksem_post(semid_t id); }
252	STD MPSAFE	{ int sys__ksem_wait(semid_t id); }
253	STD MPSAFE	{ int sys__ksem_trywait(semid_t id); }
254	STD MPSAFE	{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD MPSAFE	{ int sys__ksem_destroy(semid_t id); }
d546 1
a546 1
257	STD MPSAFE	{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD MPSAFE	{ int sys_mq_close(mqd_t mqdes); }
259	STD MPSAFE	{ int sys_mq_unlink(const char *name); }
260	STD MPSAFE	{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD MPSAFE	{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD MPSAFE	{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD MPSAFE	{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD MPSAFE	{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	STD MPSAFE	{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	STD MPSAFE	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD MPSAFE	{ int sys___posix_rename(const char *from, \
d573 3
a575 3
271	STD MPSAFE	{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MPSAFE	{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD MPSAFE	{ int sys_minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD MPSAFE	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE	{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	STD MPSAFE	{ int sys_lutimes(const char *path, \
d582 4
a585 4
277	STD MPSAFE	{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 MPSAFE	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MPSAFE	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MPSAFE	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d589 2
a590 2
282	STD MPSAFE	{ int sys___vfork14(void); }
283	STD MPSAFE	{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD MPSAFE	{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD MPSAFE	{ int sys___posix_lchown(const char *path, uid_t uid, \
d597 2
a598 2
287	STD MPSAFE	{ pid_t sys___clone(int flags, void *stack); }
288	STD MPSAFE	{ int sys_fktrace(int fd, int ops, \
d600 1
a600 1
289	STD MPSAFE	{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD MPSAFE	{ ssize_t sys_pwritev(int fd, \
d615 2
a616 2
296	STD MPSAFE	{ int sys___getcwd(char *bufp, size_t length); }
297	STD MPSAFE	{ int sys_fchroot(int fd); }
d635 1
a635 1
303	STD MPSAFE	{ int sys___shmctl13(int shmid, int cmd, \
d640 1
a640 1
304	STD MPSAFE	{ int sys_lchflags(const char *path, u_long flags); }
d646 1
a646 1
309	STD MPSAFE	{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 1
a648 1
310	STD MPSAFE	{ int sys__lwp_exit(void); }
d657 1
a657 1
318	STD MPSAFE	{ int sys__lwp_kill(lwpid_t target, int signo); }
d665 1
a665 1
323	STD MPSAFE	{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD MPSAFE	{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD MPSAFE	{ int sys__lwp_ctl(int features, \
d693 1
a693 1
343	STD MPSAFE	{ int sys_rasctl(void *addr, size_t len, int op); }
d711 1
a711 1
354	STD MPSAFE	{ int sys_fsync_range(int fd, int flags, off_t start, \
d755 1
a755 1
373	STD MPSAFE	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d758 1
a758 1
374	STD MPSAFE	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d787 4
a790 4
387	STD MPSAFE	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD MPSAFE	{ int sys___fstat30(int fd, struct stat *sb); }
389	STD MPSAFE	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD MPSAFE	{ int sys___getdents30(int fd, char *buf, size_t count); }
d807 1
a807 1
399	STD MPSAFE	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
d809 2
a810 2
401	STD MPSAFE	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MPSAFE	{ int sys_aio_read(struct aiocb *aiocbp); }
d812 1
a812 1
404	STD MPSAFE	{ int sys_aio_suspend(const struct aiocb *const *list, \
d814 2
a815 2
405	STD MPSAFE	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MPSAFE	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d825 1
a825 1
411	STD MPSAFE	{ void *sys_mremap(void *old_address, size_t old_size, \
@


1.180.6.2
log
@Sync with HEAD
@
text
@d88 1
a88 1
18	COMPAT_20 MPSAFE	{ int sys_getfsstat(struct statfs12 *buf, \
d100 1
a100 1
23	STD MPSAFE	{ int sys_setuid(uid_t uid); }
d102 1
a102 1
24	STD MPSAFE	{ uid_t sys_getuid_with_euid(void); } getuid
d107 1
a107 1
26	STD MPSAFE	{ int sys_ptrace(int req, pid_t pid, void *addr, \
d150 2
a151 2
50	STD MPSAFE 	{ int sys___setlogin(const char *namebuf); }
51	STD MPSAFE	{ int sys_acct(const char *path); }
d167 3
a169 3
61	STD MPSAFE	{ int sys_chroot(const char *path); }
62	COMPAT_43 MPSAFE	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MPSAFE	{ int sys_getkerninfo(int op, char *where, int *size, \
d171 2
a172 2
64	COMPAT_43 MPSAFE { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 MPSAFE { int sys_msync(void *addr, size_t len); }
d179 1
a179 1
71	COMPAT_43 MPSAFE	{ int sys_mmap(void *addr, size_t len, int prot, \
d193 1
a193 1
80	STD MPSAFE	{ int sys_setgroups(int gidsetsize, \
d196 1
a196 1
82	STD MPSAFE	{ int sys_setpgid(int pid, int pgid); }
d201 1
a201 1
85	COMPAT_12 MPSAFE	{ int sys_swapon(const char *name); } oswapon
d204 1
a204 1
87	COMPAT_43 MPSAFE	{ int sys_gethostname(char *hostname, u_int len); } \
d206 1
a206 1
88	COMPAT_43 MPSAFE	{ int sys_sethostname(char *hostname, u_int len); } \
d257 1
a257 1
122	STD MPSAFE	{ int sys_settimeofday(const struct timeval *tv, \
d264 2
a265 2
126	STD MPSAFE	{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD MPSAFE	{ int sys_setregid(gid_t rgid, gid_t egid); }
d291 1
a291 1
145	COMPAT_43 MPSAFE	{ int sys_setrlimit(int which, \
d294 2
a295 2
147	STD MPSAFE 	{ int sys_setsid(void); }
148	STD MPSAFE	{ int sys_quotactl(const char *path, int cmd, \
d297 1
a297 1
149	COMPAT_43 MPSAFE	{ int sys_quota(void); } oquota
d314 1
a314 1
156	COMPAT_43 MPSAFE { int sys_getdirentries(int fd, char *buf, \
d316 1
a316 1
157	COMPAT_20 MPSAFE	{ int sys_statfs(const char *path, \
d318 1
a318 1
158	COMPAT_20 MPSAFE	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d321 1
a321 1
161	COMPAT_30 MPSAFE { int sys_getfh(const char *fname, \
d323 1
a323 1
162	COMPAT_09 MPSAFE { int sys_getdomainname(char *domainname, int len); } \
d325 1
a325 1
163	COMPAT_09 MPSAFE { int sys_setdomainname(char *domainname, int len); } \
d371 3
a373 3
181	STD MPSAFE	{ int sys_setgid(gid_t gid); }
182	STD MPSAFE	{ int sys_setegid(gid_t egid); }
183	STD MPSAFE	{ int sys_seteuid(uid_t euid); }
d398 1
a398 1
195	STD MPSAFE	{ int sys_setrlimit(int which, \
d400 1
a400 1
196	COMPAT_12 MPSAFE	{ int sys_getdirentries(int fd, char *buf, \
d492 1
a492 1
233	STD MPSAFE	{ int sys_clock_settime(clockid_t clock_id, \
d617 2
a618 2
298	COMPAT_30 MPSAFE	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MPSAFE	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 MPSAFE	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d713 2
a714 2
355	STD MPSAFE	{ int sys_uuidgen(struct uuid *store, int count); }
356	STD MPSAFE	{ int sys_getvfsstat(struct statvfs *buf, \
d716 1
a716 1
357	STD MPSAFE	{ int sys_statvfs1(const char *path, \
d718 1
a718 1
358	STD MPSAFE	{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d720 1
a720 1
359	COMPAT_30 MPSAFE	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d791 1
a791 1
391	STD MPSAFE	{ int sys_posix_fadvise(int fd, off_t offset, \
d793 1
a793 1
392	COMPAT_30 MPSAFE	{ int sys___fhstat30(const struct compat_30_fhandle \
d797 1
a797 1
395	STD MPSAFE	{ int sys___getfh30(const char *fname, void *fhp, \
d799 1
a799 1
396	STD MPSAFE	{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d801 1
a801 1
397	STD MPSAFE	{ int sys___fhstatvfs140(const void *fhp, \
d803 1
a803 1
398	STD MPSAFE	{ int sys___fhstat40(const void *fhp, \
@


1.180.6.3
log
@Sync with HEAD
@
text
@d517 4
a520 1
246	STD MPSAFE	{ int sys_modctl(int cmd, void *arg); }
d699 7
a705 10

; Scheduling system calls.
346	STD MPSAFE	{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
			    const struct sched_param *params); }
347	STD MPSAFE	{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
			    struct sched_param *params); }
348	STD MPSAFE	{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, void *cpuset); }
349	STD MPSAFE	{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, void *cpuset); }
d707 3
a709 3
351	UNIMPL
352	UNIMPL
353	UNIMPL
a826 8

; Processor-sets system calls
412	STD MPSAFE	{ int sys_pset_create(psetid_t *psid); }
413	STD MPSAFE	{ int sys_pset_destroy(psetid_t psid); }
414	STD MPSAFE	{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
			    psetid_t *opsid); }
415	STD MPSAFE	{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
			    id_t second_id, psetid_t psid, psetid_t *opsid); }
@


1.180.2.1
log
@Pull the vmlocking changes into a new branch.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180 2007/11/12 23:11:59 ad Exp $
d68 2
a69 2
3	STD MPSAFE	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE	{ ssize_t sys_write(int fd, const void *buf, \
d71 1
a71 1
5	STD MPSAFE	{ int sys_open(const char *path, \
d73 1
a73 1
6	STD MPSAFE	{ int sys_close(int fd); }
d77 2
a78 2
9	STD MPSAFE	{ int sys_link(const char *path, const char *link); }
10	STD 		{ int sys_unlink(const char *path); }
d80 2
a81 2
12	STD MPSAFE	{ int sys_chdir(const char *path); }
13	STD MPSAFE	{ int sys_fchdir(int fd); }
d84 2
a85 2
15	STD MPSAFE	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE	{ int sys_chown(const char *path, uid_t uid, \
d90 1
a90 1
19	COMPAT_43 MPSAFE	{ long sys_lseek(int fd, long offset, int whence); } \
d122 3
a124 3
33	STD MPSAFE	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE	{ int sys_fchflags(int fd, u_long flags); }
d127 1
a127 1
38	COMPAT_43 MPSAFE	{ int sys_stat(const char *path, struct stat43 *ub); } \
d130 1
a130 1
40	COMPAT_43 MPSAFE	{ int sys_lstat(const char *path, \
d160 1
a160 1
57	STD MPSAFE	{ int sys_symlink(const char *path, \
d212 1
a212 1
93	STD MPSAFE	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d215 1
a215 1
95	STD MPSAFE	{ int sys_fsync(int fd); }
d253 1
a253 1
120	STD MPSAFE	{ ssize_t sys_readv(int fd, \
d255 1
a255 1
121	STD MPSAFE	{ ssize_t sys_writev(int fd, \
d259 2
a260 2
123	STD MPSAFE	{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD MPSAFE	{ int sys_fchmod(int fd, mode_t mode); }
d267 1
a267 1
129	COMPAT_43 MPSAFE	{ int sys_truncate(const char *path, long length); } \
d269 3
a271 3
130	COMPAT_43 MPSAFE	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD MPSAFE	{ int sys_flock(int fd, int how); }
132	STD MPSAFE	{ int sys_mkfifo(const char *path, mode_t mode); }
d278 3
a280 3
136	STD MPSAFE	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE	{ int sys_rmdir(const char *path); }
138	STD MPSAFE	{ int sys_utimes(const char *path, \
d293 1
a293 1
146	COMPAT_43 MPSAFE	{ int sys_killpg(int pgid, int signum); } okillpg
d310 1
a310 1
155	STD MPSAFE	{ int sys_nfssvc(int flag, void *argp); }
d354 1
a354 1
173	STD MPSAFE	{ ssize_t sys_pread(int fd, void *buf, \
d356 1
a356 1
174	STD MPSAFE	{ ssize_t sys_pwrite(int fd, const void *buf, \
d388 1
a388 1
188	COMPAT_12 MPSAFE	{ int sys_stat(const char *path, struct stat12 *ub); } \
d391 1
a391 1
190	COMPAT_12 MPSAFE	{ int sys_lstat(const char *path, \
d406 1
a406 1
199	STD MPSAFE	{ off_t sys_lseek(int fd, int pad, off_t offset, \
d408 1
a408 1
200	STD MPSAFE	{ int sys_truncate(const char *path, int pad, \
d410 1
a410 1
201	STD MPSAFE	{ int sys_ftruncate(int fd, int pad, off_t length); }
d414 4
a417 4
203	STD MPSAFE	{ int sys_mlock(const void *addr, size_t len); }
204	STD MPSAFE	{ int sys_munlock(const void *addr, size_t len); }
205	STD MPSAFE	{ int sys_undelete(const char *path); }
206	STD MPSAFE	{ int sys_futimes(int fd, \
d421 1
a421 1
209	STD MPSAFE	{ int sys_poll(struct pollfd *fds, u_int nfds, \
d478 1
a478 1
228	STD 		{ void *sys_shmat(int shmid, const void *shmaddr, \
d480 1
a480 1
229	COMPAT_14 	{ int sys_shmctl(int shmid, int cmd, \
d510 3
a512 3
241	STD MPSAFE	{ int sys_fdatasync(int fd); }
242	STD MPSAFE	{ int sys_mlockall(int flags); }
243	STD MPSAFE	{ int sys_munlockall(void); }
d522 2
a523 2
247	STD MPSAFE	{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD MPSAFE	{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD MPSAFE	{ int sys__ksem_unlink(const char *name); }
250	STD MPSAFE	{ int sys__ksem_close(semid_t id); }
251	STD MPSAFE	{ int sys__ksem_post(semid_t id); }
252	STD MPSAFE	{ int sys__ksem_wait(semid_t id); }
253	STD MPSAFE	{ int sys__ksem_trywait(semid_t id); }
254	STD MPSAFE	{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD MPSAFE	{ int sys__ksem_destroy(semid_t id); }
d546 1
a546 1
257	STD MPSAFE	{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD MPSAFE	{ int sys_mq_close(mqd_t mqdes); }
259	STD MPSAFE	{ int sys_mq_unlink(const char *name); }
260	STD MPSAFE	{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD MPSAFE	{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD MPSAFE	{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD MPSAFE	{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD MPSAFE	{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	STD MPSAFE	{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	STD MPSAFE	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD MPSAFE	{ int sys___posix_rename(const char *from, \
d574 1
a574 1
272	COMPAT_30 MPSAFE	{ int sys_getdents(int fd, char *buf, size_t count); }
d577 2
a578 2
274	STD MPSAFE	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE	{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	STD MPSAFE	{ int sys_lutimes(const char *path, \
d582 4
a585 4
277	STD MPSAFE	{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 MPSAFE	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MPSAFE	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MPSAFE	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d590 1
a590 1
283	STD MPSAFE	{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD MPSAFE	{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD MPSAFE	{ int sys___posix_lchown(const char *path, uid_t uid, \
d598 1
a598 1
288	STD MPSAFE	{ int sys_fktrace(const int fd, int ops, \
d600 1
a600 1
289	STD MPSAFE	{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD MPSAFE	{ ssize_t sys_pwritev(int fd, \
d615 1
a615 1
296	STD MPSAFE	{ int sys___getcwd(char *bufp, size_t length); }
d640 1
a640 1
304	STD MPSAFE	{ int sys_lchflags(const char *path, u_long flags); }
d646 1
a646 1
309	STD MPSAFE	{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 1
a648 1
310	STD MPSAFE	{ int sys__lwp_exit(void); }
d657 1
a657 1
318	STD MPSAFE	{ int sys__lwp_kill(lwpid_t target, int signo); }
d665 1
a665 1
323	STD MPSAFE	{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD MPSAFE	{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD MPSAFE	{ int sys__lwp_ctl(int features, \
d693 1
a693 1
343	STD MPSAFE	{ int sys_rasctl(void *addr, size_t len, int op); }
d711 1
a711 1
354	STD MPSAFE	{ int sys_fsync_range(int fd, int flags, off_t start, \
d755 1
a755 1
373	STD MPSAFE	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d758 1
a758 1
374	STD MPSAFE	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d787 4
a790 4
387	STD MPSAFE	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD MPSAFE	{ int sys___fstat30(int fd, struct stat *sb); }
389	STD MPSAFE	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD MPSAFE	{ int sys___getdents30(int fd, char *buf, size_t count); }
d807 1
a807 1
399	STD MPSAFE	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
d809 2
a810 2
401	STD MPSAFE	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MPSAFE	{ int sys_aio_read(struct aiocb *aiocbp); }
d812 1
a812 1
404	STD MPSAFE	{ int sys_aio_suspend(const struct aiocb *const *list, \
d814 2
a815 2
405	STD MPSAFE	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MPSAFE	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d825 1
a825 1
411	STD MPSAFE	{ void *sys_mremap(void *old_address, size_t old_size, \
@


1.180.2.2
log
@Make periphery of sendmsg/recvmsg/sendto/recvfrom MP safe.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.1 2007/12/04 13:03:18 ad Exp $
d109 1
a109 1
27	STD MPSAFE	{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d111 1
a111 1
28	STD MPSAFE	{ ssize_t sys_sendmsg(int s, \
d113 1
a113 1
29	STD MPSAFE	{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d272 1
a272 1
133	STD MPSAFE	{ ssize_t sys_sendto(int s, const void *buf, \
@


1.180.2.3
log
@- Make SysV shared memory subsystem MP-safe;
- Replace tsleep/wakeup with condvars;
- Replace malloc with kmem;
- Avoid holding of lock while reallocating;
- Fix the check of last segment when reallocating;
- sys_shmat: unmap if uvm_map_pageable() fails;
- Few cosmetics;

Proposed on <tech-kern>.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.2 2007/12/04 16:59:52 ad Exp $
d478 1
a478 1
228	STD MPSAFE	{ void *sys_shmat(int shmid, const void *shmaddr, \
d480 1
a480 1
229	COMPAT_14 MPSAFE { int sys_shmctl(int shmid, int cmd, \
d482 2
a483 2
230	STD MPSAFE	{ int sys_shmdt(const void *shmaddr); }
231	STD MPSAFE	{ int sys_shmget(key_t key, size_t size, int shmflg); }
d635 1
a635 1
303	STD MPSAFE	{ int sys___shmctl13(int shmid, int cmd, \
@


1.180.2.4
log
@Mark MPSAFE: fork, kill, sync.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.3 2007/12/05 21:13:05 rmind Exp $
d67 1
a67 1
2	STD MPSAFE	{ int sys_fork(void); }
d125 2
a126 2
36	STD MPSAFE	{ void sys_sync(void); }
37	STD MPSAFE	{ int sys_kill(int pid, int signum); }
@


1.180.2.5
log
@- Use pool_cache for a few more items and make those caches static.
- Mark another 10 syscalls MPSAFE including execve(). A small bit of
  work is required to fix a couple of issues (tty, kqueue).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.4 2007/12/15 01:45:24 ad Exp $
d132 2
a133 2
41	STD MPSAFE	{ int sys_dup(int fd); }
42	STD MPSAFE	{ int sys_pipe(void); }
d137 1
a137 1
45	STD MPSAFE	{ int sys_ktrace(const char *fname, int ops, \
d156 1
a156 1
54	STD MPSAFE	{ int sys_ioctl(int fd, \
d159 1
a159 1
56	STD MPSAFE	{ int sys_revoke(const char *path); }
d162 1
a162 1
58	STD MPSAFE	{ ssize_t sys_readlink(const char *path, char *buf, \
d164 1
a164 1
59	STD MPSAFE	{ int sys_execve(const char *path, \
d166 2
a167 2
60	STD MPSAFE	{ mode_t sys_umask(mode_t newmask); }
61	STD 		{ int sys_chroot(const char *path); }
d174 1
a174 1
66	STD MPSAFE	{ int sys_vfork(void); }
d589 1
a589 1
282	STD MPSAFE	{ int sys___vfork14(void); }
@


1.180.2.6
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.5 2007/12/15 03:16:58 ad Exp $
d598 1
a598 1
288	STD MPSAFE	{ int sys_fktrace(int fd, int ops, \
@


1.180.2.7
log
@- Push kernel_lock back into exit, wait and sysctl system calls, mainly
  for visibility.
- Serialize calls to brk() from within the same process.
- Mark more syscalls MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.6 2007/12/26 21:39:45 ad Exp $
d66 1
a66 1
1	STD MPSAFE	{ void sys_exit(int rval); }
d74 1
a74 1
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d78 1
a78 1
10	STD MPSAFE	{ int sys_unlink(const char *path); }
d82 1
a82 1
14	STD MPSAFE	{ int sys_mknod(const char *path, mode_t mode, \
d87 1
a87 1
17	STD MPSAFE	{ int sys_obreak(char *nsize); } break
d200 1
a200 1
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
d396 1
a396 1
194	STD MPSAFE	{ int sys_getrlimit(int which, \
d402 1
a402 1
197	STD MPSAFE	{ void *sys_mmap(void *addr, size_t len, int prot, \
d411 1
a411 1
202	STD MPSAFE	{ int sys___sysctl(const int *name, u_int namelen, \
@


1.180.2.8
log
@More MPSAFE syscalls..
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.7 2007/12/26 23:05:54 ad Exp $
d76 1
a76 1
8	COMPAT_43 MPSAFE	{ int sys_creat(const char *path, mode_t mode); } ocreat
d177 2
a178 2
69	STD MPSAFE	{ int sys_sbrk(intptr_t incr); }
70	STD MPSAFE	{ int sys_sstk(int incr); }
d181 3
a183 3
72	STD MPSAFE	{ int sys_ovadvise(int anom); } vadvise
73	STD MPSAFE	{ int sys_munmap(void *addr, size_t len); }
74	STD MPSAFE	{ int sys_mprotect(void *addr, size_t len, \
d185 1
a185 1
75	STD MPSAFE	{ int sys_madvise(void *addr, size_t len, \
d189 1
a189 1
78	STD MPSAFE	{ int sys_mincore(void *addr, size_t len, \
d208 2
a209 2
89	COMPAT_43 MPSAFE	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD MPSAFE	{ int sys_dup2(int from, int to); }
d211 1
a211 1
92	STD MPSAFE	{ int sys_fcntl(int fd, int cmd, ... void *arg); }
d266 1
a266 1
128	STD MPSAFE	{ int sys_rename(const char *from, const char *to); }
d287 2
a288 2
142	COMPAT_43 MPSAFE	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MPSAFE	{ int sys_sethostid(int32_t hostid); } osethostid
d314 1
a314 1
156	COMPAT_43 MPSAFE{ int sys_getdirentries(int fd, char *buf, \
d327 1
a327 1
164	COMPAT_09 MPSAFE	{ int sys_uname(struct outsname *name); } ouname
d341 1
a341 1
170	COMPAT_10 MPSAFE	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d348 1
a348 1
171	COMPAT_10 MPSAFE	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d390 1
a390 1
189	COMPAT_12 MPSAFE	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
d393 2
a394 2
191	STD MPSAFE	{ long sys_pathconf(const char *path, int name); }
192	STD MPSAFE	{ long sys_fpathconf(int fd, int name); }
d573 1
a573 1
271	STD MPSAFE	{ int sys_swapctl(int cmd, void *arg, int misc); }
d575 1
a575 1
273	STD MPSAFE	{ int sys_minherit(void *addr, size_t len, \
d597 1
a597 1
287	STD MPSAFE	{ pid_t sys___clone(int flags, void *stack); }
d616 1
a616 1
297	STD MPSAFE	{ int sys_fchroot(int fd); }
@


1.180.2.9
log
@to prepare merge, put nfsd back under kernel_lock for now.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.8 2007/12/27 15:38:18 ad Exp $
d310 1
a310 1
155	STD		{ int sys_nfssvc(int flag, void *argp); }
@


1.180.2.10
log
@Put sendmsg/recvmsg back under kernel_lock for the moment.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180.2.9 2007/12/29 10:20:48 yamt Exp $
d109 1
a109 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d111 1
a111 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d113 1
a113 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d272 1
a272 1
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
@


1.179
log
@Add the 'args' argument to sys_syscall and sys___syscall.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.178 2007/11/07 00:37:21 ad Exp $
d669 3
a671 2
; Syscalls 325-339 reserved for LWP syscalls.
325	UNIMPL
@


1.178
log
@Add _lwp_setname, _lwp_getname. Proposed on tech-kern.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.177 2007/09/07 18:56:09 rmind Exp $
d64 2
a65 1
0	INDIR		{ int sys_syscall(int number, ...); }
d404 2
a405 1
198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
@


1.177
log
@Implementation of POSIX message queues.

Reviewed by: <ad>, <tech-kern>
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.176 2007/08/15 12:08:38 ad Exp $
d663 5
a667 3
; Syscalls 323-339 reserved for LWP syscalls.
323	UNIMPL
324	UNIMPL
@


1.177.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.180 2007/11/12 23:11:59 ad Exp $
d64 1
a64 2
0	INDIR		{ int sys_syscall(int code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
d403 1
a403 2
198	INDIR		{ quad_t sys___syscall(quad_t code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
d663 4
a666 7
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
				const char *name); }
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
				char *name, size_t len); }
325	STD 		{ int sys__lwp_ctl(int features, \
				struct lwpctl **address); }
; Syscalls 326-339 reserved for LWP syscalls.
@


1.177.6.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.181 2007/12/20 23:03:12 dsl Exp $
d598 1
a598 1
288	STD		{ int sys_fktrace(int fd, int ops, \
@


1.177.6.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.189 2008/02/15 13:09:57 ad Exp $
d66 4
a69 4
1	STD MPSAFE	{ void sys_exit(int rval); }
2	STD MPSAFE	{ int sys_fork(void); }
3	STD MPSAFE	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE	{ ssize_t sys_write(int fd, const void *buf, \
d71 1
a71 1
5	STD MPSAFE	{ int sys_open(const char *path, \
d73 2
a74 2
6	STD MPSAFE	{ int sys_close(int fd); }
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d76 3
a78 3
8	COMPAT_43 MPSAFE	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD MPSAFE	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE	{ int sys_unlink(const char *path); }
d80 3
a82 3
12	STD MPSAFE	{ int sys_chdir(const char *path); }
13	STD MPSAFE	{ int sys_fchdir(int fd); }
14	STD MPSAFE	{ int sys_mknod(const char *path, mode_t mode, \
d84 2
a85 2
15	STD MPSAFE	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE	{ int sys_chown(const char *path, uid_t uid, \
d87 2
a88 2
17	STD MPSAFE	{ int sys_obreak(char *nsize); } break
18	COMPAT_20 MPSAFE	{ int sys_getfsstat(struct statfs12 *buf, \
d90 1
a90 1
19	COMPAT_43 MPSAFE	{ long sys_lseek(int fd, long offset, int whence); } \
d97 1
a97 1
21	COMPAT_40 MPSAFE	{ int sys_mount(const char *type, const char *path, \
d99 2
a100 2
22	STD MPSAFE	{ int sys_unmount(const char *path, int flags); }
23	STD MPSAFE	{ int sys_setuid(uid_t uid); }
d102 1
a102 1
24	STD MPSAFE	{ uid_t sys_getuid_with_euid(void); } getuid
d107 1
a107 1
26	STD MPSAFE	{ int sys_ptrace(int req, pid_t pid, void *addr, \
d109 1
a109 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d111 1
a111 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d113 1
a113 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d122 6
a127 6
33	STD MPSAFE	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE	{ void sys_sync(void); }
37	STD MPSAFE	{ int sys_kill(int pid, int signum); }
38	COMPAT_43 MPSAFE	{ int sys_stat(const char *path, struct stat43 *ub); } \
d130 1
a130 1
40	COMPAT_43 MPSAFE	{ int sys_lstat(const char *path, \
d132 2
a133 2
41	STD MPSAFE	{ int sys_dup(int fd); }
42	STD MPSAFE	{ int sys_pipe(void); }
d137 1
a137 1
45	STD MPSAFE	{ int sys_ktrace(const char *fname, int ops, \
d150 2
a151 2
50	STD MPSAFE 	{ int sys___setlogin(const char *namebuf); }
51	STD MPSAFE	{ int sys_acct(const char *path); }
d156 1
a156 1
54	STD MPSAFE	{ int sys_ioctl(int fd, \
d159 2
a160 2
56	STD MPSAFE	{ int sys_revoke(const char *path); }
57	STD MPSAFE	{ int sys_symlink(const char *path, \
d162 1
a162 1
58	STD MPSAFE	{ ssize_t sys_readlink(const char *path, char *buf, \
d164 1
a164 1
59	STD MPSAFE	{ int sys_execve(const char *path, \
d166 4
a169 4
60	STD MPSAFE	{ mode_t sys_umask(mode_t newmask); }
61	STD MPSAFE	{ int sys_chroot(const char *path); }
62	COMPAT_43 MPSAFE	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MPSAFE	{ int sys_getkerninfo(int op, char *where, int *size, \
d171 2
a172 2
64	COMPAT_43 MPSAFE { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 MPSAFE { int sys_msync(void *addr, size_t len); }
d174 1
a174 1
66	STD MPSAFE	{ int sys_vfork(void); }
d177 3
a179 3
69	STD MPSAFE	{ int sys_sbrk(intptr_t incr); }
70	STD MPSAFE	{ int sys_sstk(int incr); }
71	COMPAT_43 MPSAFE	{ int sys_mmap(void *addr, size_t len, int prot, \
d181 3
a183 3
72	STD MPSAFE	{ int sys_ovadvise(int anom); } vadvise
73	STD MPSAFE	{ int sys_munmap(void *addr, size_t len); }
74	STD MPSAFE	{ int sys_mprotect(void *addr, size_t len, \
d185 1
a185 1
75	STD MPSAFE	{ int sys_madvise(void *addr, size_t len, \
d189 1
a189 1
78	STD MPSAFE	{ int sys_mincore(void *addr, size_t len, \
d193 1
a193 1
80	STD MPSAFE	{ int sys_setgroups(int gidsetsize, \
d196 1
a196 1
82	STD MPSAFE	{ int sys_setpgid(int pid, int pgid); }
d200 2
a201 2
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
85	COMPAT_12 MPSAFE	{ int sys_swapon(const char *name); } oswapon
d204 1
a204 1
87	COMPAT_43 MPSAFE	{ int sys_gethostname(char *hostname, u_int len); } \
d206 1
a206 1
88	COMPAT_43 MPSAFE	{ int sys_sethostname(char *hostname, u_int len); } \
d208 2
a209 2
89	COMPAT_43 MPSAFE	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD MPSAFE	{ int sys_dup2(int from, int to); }
d211 2
a212 2
92	STD MPSAFE	{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD MPSAFE	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d215 1
a215 1
95	STD MPSAFE	{ int sys_fsync(int fd); }
d253 1
a253 1
120	STD MPSAFE	{ ssize_t sys_readv(int fd, \
d255 1
a255 1
121	STD MPSAFE	{ ssize_t sys_writev(int fd, \
d257 1
a257 1
122	STD MPSAFE	{ int sys_settimeofday(const struct timeval *tv, \
d259 2
a260 2
123	STD MPSAFE	{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD MPSAFE	{ int sys_fchmod(int fd, mode_t mode); }
d264 4
a267 4
126	STD MPSAFE	{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD MPSAFE	{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD MPSAFE	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 MPSAFE	{ int sys_truncate(const char *path, long length); } \
d269 4
a272 4
130	COMPAT_43 MPSAFE	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD MPSAFE	{ int sys_flock(int fd, int how); }
132	STD MPSAFE	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
d278 3
a280 3
136	STD MPSAFE	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE	{ int sys_rmdir(const char *path); }
138	STD MPSAFE	{ int sys_utimes(const char *path, \
d287 2
a288 2
142	COMPAT_43 MPSAFE	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MPSAFE	{ int sys_sethostid(int32_t hostid); } osethostid
d291 1
a291 1
145	COMPAT_43 MPSAFE	{ int sys_setrlimit(int which, \
d293 3
a295 3
146	COMPAT_43 MPSAFE	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD MPSAFE 	{ int sys_setsid(void); }
148	STD MPSAFE	{ int sys_quotactl(const char *path, int cmd, \
d297 1
a297 1
149	COMPAT_43 MPSAFE	{ int sys_quota(void); } oquota
d314 1
a314 1
156	COMPAT_43 MPSAFE { int sys_getdirentries(int fd, char *buf, \
d316 1
a316 1
157	COMPAT_20 MPSAFE	{ int sys_statfs(const char *path, \
d318 1
a318 1
158	COMPAT_20 MPSAFE	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d321 1
a321 1
161	COMPAT_30 MPSAFE { int sys_getfh(const char *fname, \
d323 1
a323 1
162	COMPAT_09 MPSAFE { int sys_getdomainname(char *domainname, int len); } \
d325 1
a325 1
163	COMPAT_09 MPSAFE { int sys_setdomainname(char *domainname, int len); } \
d327 1
a327 1
164	COMPAT_09 MPSAFE	{ int sys_uname(struct outsname *name); } ouname
d341 1
a341 1
170	COMPAT_10 MPSAFE	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d348 1
a348 1
171	COMPAT_10 MPSAFE	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d354 1
a354 1
173	STD MPSAFE	{ ssize_t sys_pread(int fd, void *buf, \
d356 1
a356 1
174	STD MPSAFE	{ ssize_t sys_pwrite(int fd, const void *buf, \
d371 3
a373 3
181	STD MPSAFE	{ int sys_setgid(gid_t gid); }
182	STD MPSAFE	{ int sys_setegid(gid_t egid); }
183	STD MPSAFE	{ int sys_seteuid(uid_t euid); }
d388 1
a388 1
188	COMPAT_12 MPSAFE	{ int sys_stat(const char *path, struct stat12 *ub); } \
d390 2
a391 2
189	COMPAT_12 MPSAFE	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MPSAFE	{ int sys_lstat(const char *path, \
d393 2
a394 2
191	STD MPSAFE	{ long sys_pathconf(const char *path, int name); }
192	STD MPSAFE	{ long sys_fpathconf(int fd, int name); }
d396 1
a396 1
194	STD MPSAFE	{ int sys_getrlimit(int which, \
d398 1
a398 1
195	STD MPSAFE	{ int sys_setrlimit(int which, \
d400 1
a400 1
196	COMPAT_12 MPSAFE	{ int sys_getdirentries(int fd, char *buf, \
d402 1
a402 1
197	STD MPSAFE	{ void *sys_mmap(void *addr, size_t len, int prot, \
d406 1
a406 1
199	STD MPSAFE	{ off_t sys_lseek(int fd, int pad, off_t offset, \
d408 1
a408 1
200	STD MPSAFE	{ int sys_truncate(const char *path, int pad, \
d410 2
a411 2
201	STD MPSAFE	{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD MPSAFE	{ int sys___sysctl(const int *name, u_int namelen, \
d414 4
a417 4
203	STD MPSAFE	{ int sys_mlock(const void *addr, size_t len); }
204	STD MPSAFE	{ int sys_munlock(const void *addr, size_t len); }
205	STD MPSAFE	{ int sys_undelete(const char *path); }
206	STD MPSAFE	{ int sys_futimes(int fd, \
d421 1
a421 1
209	STD MPSAFE	{ int sys_poll(struct pollfd *fds, u_int nfds, \
d478 1
a478 1
228	STD MPSAFE	{ void *sys_shmat(int shmid, const void *shmaddr, \
d480 1
a480 1
229	COMPAT_14 MPSAFE { int sys_shmctl(int shmid, int cmd, \
d482 2
a483 2
230	STD MPSAFE	{ int sys_shmdt(const void *shmaddr); }
231	STD MPSAFE	{ int sys_shmget(key_t key, size_t size, int shmflg); }
d492 1
a492 1
233	STD MPSAFE	{ int sys_clock_settime(clockid_t clock_id, \
d510 3
a512 3
241	STD MPSAFE	{ int sys_fdatasync(int fd); }
242	STD MPSAFE	{ int sys_mlockall(int flags); }
243	STD MPSAFE	{ int sys_munlockall(void); }
d517 4
a520 1
246	STD MPSAFE	{ int sys_modctl(int cmd, void *arg); }
d522 2
a523 2
247	STD MPSAFE	{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD MPSAFE	{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD MPSAFE	{ int sys__ksem_unlink(const char *name); }
250	STD MPSAFE	{ int sys__ksem_close(semid_t id); }
251	STD MPSAFE	{ int sys__ksem_post(semid_t id); }
252	STD MPSAFE	{ int sys__ksem_wait(semid_t id); }
253	STD MPSAFE	{ int sys__ksem_trywait(semid_t id); }
254	STD MPSAFE	{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD MPSAFE	{ int sys__ksem_destroy(semid_t id); }
d546 1
a546 1
257	STD MPSAFE	{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD MPSAFE	{ int sys_mq_close(mqd_t mqdes); }
259	STD MPSAFE	{ int sys_mq_unlink(const char *name); }
260	STD MPSAFE	{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD MPSAFE	{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD MPSAFE	{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD MPSAFE	{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD MPSAFE	{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	STD MPSAFE	{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	STD MPSAFE	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD MPSAFE	{ int sys___posix_rename(const char *from, \
d573 3
a575 3
271	STD MPSAFE	{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MPSAFE	{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD MPSAFE	{ int sys_minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD MPSAFE	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE	{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	STD MPSAFE	{ int sys_lutimes(const char *path, \
d582 4
a585 4
277	STD MPSAFE	{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 MPSAFE	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MPSAFE	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MPSAFE	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d589 2
a590 2
282	STD MPSAFE	{ int sys___vfork14(void); }
283	STD MPSAFE	{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD MPSAFE	{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD MPSAFE	{ int sys___posix_lchown(const char *path, uid_t uid, \
d597 2
a598 2
287	STD MPSAFE	{ pid_t sys___clone(int flags, void *stack); }
288	STD MPSAFE	{ int sys_fktrace(int fd, int ops, \
d600 1
a600 1
289	STD MPSAFE	{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD MPSAFE	{ ssize_t sys_pwritev(int fd, \
d615 4
a618 4
296	STD MPSAFE	{ int sys___getcwd(char *bufp, size_t length); }
297	STD MPSAFE	{ int sys_fchroot(int fd); }
298	COMPAT_30 MPSAFE	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MPSAFE	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 MPSAFE	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d635 1
a635 1
303	STD MPSAFE	{ int sys___shmctl13(int shmid, int cmd, \
d640 1
a640 1
304	STD MPSAFE	{ int sys_lchflags(const char *path, u_long flags); }
d646 1
a646 1
309	STD MPSAFE	{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 1
a648 1
310	STD MPSAFE	{ int sys__lwp_exit(void); }
d657 1
a657 1
318	STD MPSAFE	{ int sys__lwp_kill(lwpid_t target, int signo); }
d665 1
a665 1
323	STD MPSAFE	{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD MPSAFE	{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD MPSAFE	{ int sys__lwp_ctl(int features, \
d693 1
a693 1
343	STD MPSAFE	{ int sys_rasctl(void *addr, size_t len, int op); }
d699 7
a705 10

; Scheduling system calls.
346	STD MPSAFE	{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
			    int policy, const struct sched_param *params); }
347	STD MPSAFE	{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
			    int *policy, struct sched_param *params); }
348	STD MPSAFE	{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, void *cpuset); }
349	STD MPSAFE	{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, void *cpuset); }
d707 3
a709 3
351	UNIMPL
352	UNIMPL
353	UNIMPL
d711 1
a711 1
354	STD MPSAFE	{ int sys_fsync_range(int fd, int flags, off_t start, \
d713 2
a714 2
355	STD MPSAFE	{ int sys_uuidgen(struct uuid *store, int count); }
356	STD MPSAFE	{ int sys_getvfsstat(struct statvfs *buf, \
d716 1
a716 1
357	STD MPSAFE	{ int sys_statvfs1(const char *path, \
d718 1
a718 1
358	STD MPSAFE	{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d720 1
a720 1
359	COMPAT_30 MPSAFE	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d722 1
a722 1
360	STD MPSAFE	{ int sys_extattrctl(const char *path, int cmd, \
d725 1
a725 1
361	STD MPSAFE	{ int sys_extattr_set_file(const char *path, \
d728 1
a728 1
362	STD MPSAFE	{ ssize_t sys_extattr_get_file(const char *path, \
d731 1
a731 1
363	STD MPSAFE	{ int sys_extattr_delete_file(const char *path, \
d733 1
a733 1
364	STD MPSAFE	{ int sys_extattr_set_fd(int fd, \
d736 1
a736 1
365	STD MPSAFE	{ ssize_t sys_extattr_get_fd(int fd, \
d739 1
a739 1
366	STD MPSAFE	{ int sys_extattr_delete_fd(int fd, \
d741 1
a741 1
367	STD MPSAFE	{ int sys_extattr_set_link(const char *path, \
d744 1
a744 1
368	STD MPSAFE	{ ssize_t sys_extattr_get_link(const char *path, \
d747 1
a747 1
369	STD MPSAFE	{ int sys_extattr_delete_link(const char *path, \
d749 1
a749 1
370	STD MPSAFE	{ ssize_t sys_extattr_list_fd(int fd, \
d751 1
a751 1
371	STD MPSAFE	{ ssize_t sys_extattr_list_file(const char *path, \
d753 1
a753 1
372	STD MPSAFE	{ ssize_t sys_extattr_list_link(const char *path, \
d755 1
a755 1
373	STD MPSAFE	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d758 1
a758 1
374	STD MPSAFE	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d760 1
a760 1
375	STD MPSAFE	{ int sys_setxattr(const char *path, \
d763 1
a763 1
376	STD MPSAFE	{ int sys_lsetxattr(const char *path, \
d766 1
a766 1
377	STD MPSAFE	{ int sys_fsetxattr(int fd, \
d769 1
a769 1
378	STD MPSAFE	{ int sys_getxattr(const char *path, \
d771 1
a771 1
379	STD MPSAFE	{ int sys_lgetxattr(const char *path, \
d773 1
a773 1
380	STD MPSAFE	{ int sys_fgetxattr(int fd, \
d775 1
a775 1
381	STD MPSAFE	{ int sys_listxattr(const char *path, \
d777 1
a777 1
382	STD MPSAFE	{ int sys_llistxattr(const char *path, \
d779 1
a779 1
383	STD MPSAFE	{ int sys_flistxattr(int fd, \
d781 1
a781 1
384	STD MPSAFE	{ int sys_removexattr(const char *path, \
d783 1
a783 1
385	STD MPSAFE	{ int sys_lremovexattr(const char *path, \
d785 1
a785 1
386	STD MPSAFE	{ int sys_fremovexattr(int fd, \
d787 5
a791 5
387	STD MPSAFE	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD MPSAFE	{ int sys___fstat30(int fd, struct stat *sb); }
389	STD MPSAFE	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD MPSAFE	{ int sys___getdents30(int fd, char *buf, size_t count); }
391	COMPAT_40 MPSAFE	{ int sys_posix_fadvise(int fd, off_t offset, \
d793 1
a793 1
392	COMPAT_30 MPSAFE	{ int sys___fhstat30(const struct compat_30_fhandle \
d797 1
a797 1
395	STD MPSAFE	{ int sys___getfh30(const char *fname, void *fhp, \
d799 1
a799 1
396	STD MPSAFE	{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d801 1
a801 1
397	STD MPSAFE	{ int sys___fhstatvfs140(const void *fhp, \
d803 1
a803 1
398	STD MPSAFE	{ int sys___fhstat40(const void *fhp, \
d807 1
a807 1
399	STD MPSAFE	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
d809 2
a810 2
401	STD MPSAFE	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MPSAFE	{ int sys_aio_read(struct aiocb *aiocbp); }
d812 1
a812 1
404	STD MPSAFE	{ int sys_aio_suspend(const struct aiocb *const *list, \
d814 2
a815 2
405	STD MPSAFE	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MPSAFE	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d822 1
a822 1
410	STD MPSAFE	{ int sys___mount50(const char *type, \
d825 1
a825 1
411	STD MPSAFE	{ void *sys_mremap(void *old_address, size_t old_size, \
a826 10

; Processor-sets system calls
412	STD MPSAFE	{ int sys_pset_create(psetid_t *psid); }
413	STD MPSAFE	{ int sys_pset_destroy(psetid_t psid); }
414	STD MPSAFE	{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
			    psetid_t *opsid); }
415	STD MPSAFE	{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
			    id_t second_id, psetid_t psid, psetid_t *opsid); }
416	STD MPSAFE	{ int sys___posix_fadvise50(int fd, int pad, \
			    off_t offset, off_t len, int advice); }
@


1.177.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD$
d64 1
a64 2
0	INDIR		{ int sys_syscall(int code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
d403 1
a403 2
198	INDIR		{ quad_t sys___syscall(quad_t code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
d663 4
a666 7
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
				const char *name); }
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
				char *name, size_t len); }
325	STD 		{ int sys__lwp_ctl(int features, \
				struct lwpctl **address); }
; Syscalls 326-339 reserved for LWP syscalls.
@


1.176
log
@- Update for ktrace changes.
- Mark a few more syscalls MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.175 2007/08/07 19:00:42 ad Exp $
d544 22
a565 10
257	UNIMPL		sys_mq_open
258	UNIMPL		sys_mq_close
259	UNIMPL		sys_mq_unlink
260	UNIMPL		sys_mq_getattr
261	UNIMPL		sys_mq_setattr
262	UNIMPL		sys_mq_notify
263	UNIMPL		sys_mq_send
264	UNIMPL		sys_mq_receive
265	UNIMPL		sys_mq_timedsend
266	UNIMPL		sys_mq_timedreceive
@


1.176.2.1
log
@sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.177 2007/09/07 18:56:09 rmind Exp $
d544 10
a553 22
257	STD		{ mqd_t sys_mq_open(const char * name, int oflag, \
			    mode_t mode, struct mq_attr *attr); }
258	STD		{ int sys_mq_close(mqd_t mqdes); }
259	STD		{ int sys_mq_unlink(const char *name); }
260	STD		{ int sys_mq_getattr(mqd_t mqdes, \
			    struct mq_attr *mqstat); }
261	STD		{ int sys_mq_setattr(mqd_t mqdes, \
			    const struct mq_attr *mqstat, \
			    struct mq_attr *omqstat); }
262	STD		{ int sys_mq_notify(mqd_t mqdes, \
			    const struct sigevent *notification); }
263	STD		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
			    size_t msg_len, unsigned msg_prio); }
264	STD		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
			    size_t msg_len, unsigned *msg_prio); }
265	STD		{ int sys_mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
266	STD		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
@


1.176.2.2
log
@sync with -HEAD
@
text
@d1 1
a1 1
	$NetBSD$
d663 3
a665 5
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
				const char *name); }
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
				char *name, size_t len); }
; Syscalls 325-339 reserved for LWP syscalls.
@


1.176.2.3
log
@sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.176.2.2 2007/11/08 11:00:08 matt Exp $
d64 5
a68 6
0	INDIR		{ int sys_syscall(int code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
1	STD MPSAFE	{ void sys_exit(int rval); }
2	STD MPSAFE	{ int sys_fork(void); }
3	STD MPSAFE	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE	{ ssize_t sys_write(int fd, const void *buf, \
d70 1
a70 1
5	STD MPSAFE	{ int sys_open(const char *path, \
d72 2
a73 2
6	STD MPSAFE	{ int sys_close(int fd); }
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d75 3
a77 3
8	COMPAT_43 MPSAFE	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD MPSAFE	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE	{ int sys_unlink(const char *path); }
d79 3
a81 3
12	STD MPSAFE	{ int sys_chdir(const char *path); }
13	STD MPSAFE	{ int sys_fchdir(int fd); }
14	STD MPSAFE	{ int sys_mknod(const char *path, mode_t mode, \
d83 2
a84 2
15	STD MPSAFE	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE	{ int sys_chown(const char *path, uid_t uid, \
d86 2
a87 2
17	STD MPSAFE	{ int sys_obreak(char *nsize); } break
18	COMPAT_20 MPSAFE	{ int sys_getfsstat(struct statfs12 *buf, \
d89 1
a89 1
19	COMPAT_43 MPSAFE	{ long sys_lseek(int fd, long offset, int whence); } \
d99 1
a99 1
23	STD MPSAFE	{ int sys_setuid(uid_t uid); }
d101 1
a101 1
24	STD MPSAFE	{ uid_t sys_getuid_with_euid(void); } getuid
d106 1
a106 1
26	STD MPSAFE	{ int sys_ptrace(int req, pid_t pid, void *addr, \
d108 1
a108 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d110 1
a110 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d112 1
a112 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d121 6
a126 6
33	STD MPSAFE	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE	{ void sys_sync(void); }
37	STD MPSAFE	{ int sys_kill(int pid, int signum); }
38	COMPAT_43 MPSAFE	{ int sys_stat(const char *path, struct stat43 *ub); } \
d129 1
a129 1
40	COMPAT_43 MPSAFE	{ int sys_lstat(const char *path, \
d131 2
a132 2
41	STD MPSAFE	{ int sys_dup(int fd); }
42	STD MPSAFE	{ int sys_pipe(void); }
d136 1
a136 1
45	STD MPSAFE	{ int sys_ktrace(const char *fname, int ops, \
d149 2
a150 2
50	STD MPSAFE 	{ int sys___setlogin(const char *namebuf); }
51	STD MPSAFE	{ int sys_acct(const char *path); }
d155 1
a155 1
54	STD MPSAFE	{ int sys_ioctl(int fd, \
d158 2
a159 2
56	STD MPSAFE	{ int sys_revoke(const char *path); }
57	STD MPSAFE	{ int sys_symlink(const char *path, \
d161 1
a161 1
58	STD MPSAFE	{ ssize_t sys_readlink(const char *path, char *buf, \
d163 1
a163 1
59	STD MPSAFE	{ int sys_execve(const char *path, \
d165 4
a168 4
60	STD MPSAFE	{ mode_t sys_umask(mode_t newmask); }
61	STD MPSAFE	{ int sys_chroot(const char *path); }
62	COMPAT_43 MPSAFE	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MPSAFE	{ int sys_getkerninfo(int op, char *where, int *size, \
d170 2
a171 2
64	COMPAT_43 MPSAFE { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 MPSAFE { int sys_msync(void *addr, size_t len); }
d173 1
a173 1
66	STD MPSAFE	{ int sys_vfork(void); }
d176 3
a178 3
69	STD MPSAFE	{ int sys_sbrk(intptr_t incr); }
70	STD MPSAFE	{ int sys_sstk(int incr); }
71	COMPAT_43 MPSAFE	{ int sys_mmap(void *addr, size_t len, int prot, \
d180 3
a182 3
72	STD MPSAFE	{ int sys_ovadvise(int anom); } vadvise
73	STD MPSAFE	{ int sys_munmap(void *addr, size_t len); }
74	STD MPSAFE	{ int sys_mprotect(void *addr, size_t len, \
d184 1
a184 1
75	STD MPSAFE	{ int sys_madvise(void *addr, size_t len, \
d188 1
a188 1
78	STD MPSAFE	{ int sys_mincore(void *addr, size_t len, \
d192 1
a192 1
80	STD MPSAFE	{ int sys_setgroups(int gidsetsize, \
d195 1
a195 1
82	STD MPSAFE	{ int sys_setpgid(int pid, int pgid); }
d199 2
a200 2
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
85	COMPAT_12 MPSAFE	{ int sys_swapon(const char *name); } oswapon
d203 1
a203 1
87	COMPAT_43 MPSAFE	{ int sys_gethostname(char *hostname, u_int len); } \
d205 1
a205 1
88	COMPAT_43 MPSAFE	{ int sys_sethostname(char *hostname, u_int len); } \
d207 2
a208 2
89	COMPAT_43 MPSAFE	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD MPSAFE	{ int sys_dup2(int from, int to); }
d210 2
a211 2
92	STD MPSAFE	{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD MPSAFE	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d214 1
a214 1
95	STD MPSAFE	{ int sys_fsync(int fd); }
d252 1
a252 1
120	STD MPSAFE	{ ssize_t sys_readv(int fd, \
d254 1
a254 1
121	STD MPSAFE	{ ssize_t sys_writev(int fd, \
d256 1
a256 1
122	STD MPSAFE	{ int sys_settimeofday(const struct timeval *tv, \
d258 2
a259 2
123	STD MPSAFE	{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD MPSAFE	{ int sys_fchmod(int fd, mode_t mode); }
d263 4
a266 4
126	STD MPSAFE	{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD MPSAFE	{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD MPSAFE	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 MPSAFE	{ int sys_truncate(const char *path, long length); } \
d268 4
a271 4
130	COMPAT_43 MPSAFE	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD MPSAFE	{ int sys_flock(int fd, int how); }
132	STD MPSAFE	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
d277 3
a279 3
136	STD MPSAFE	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE	{ int sys_rmdir(const char *path); }
138	STD MPSAFE	{ int sys_utimes(const char *path, \
d286 2
a287 2
142	COMPAT_43 MPSAFE	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MPSAFE	{ int sys_sethostid(int32_t hostid); } osethostid
d290 1
a290 1
145	COMPAT_43 MPSAFE	{ int sys_setrlimit(int which, \
d292 3
a294 3
146	COMPAT_43 MPSAFE	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD MPSAFE 	{ int sys_setsid(void); }
148	STD MPSAFE	{ int sys_quotactl(const char *path, int cmd, \
d296 1
a296 1
149	COMPAT_43 MPSAFE	{ int sys_quota(void); } oquota
d313 1
a313 1
156	COMPAT_43 MPSAFE { int sys_getdirentries(int fd, char *buf, \
d315 1
a315 1
157	COMPAT_20 MPSAFE	{ int sys_statfs(const char *path, \
d317 1
a317 1
158	COMPAT_20 MPSAFE	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d320 1
a320 1
161	COMPAT_30 MPSAFE { int sys_getfh(const char *fname, \
d322 1
a322 1
162	COMPAT_09 MPSAFE { int sys_getdomainname(char *domainname, int len); } \
d324 1
a324 1
163	COMPAT_09 MPSAFE { int sys_setdomainname(char *domainname, int len); } \
d326 1
a326 1
164	COMPAT_09 MPSAFE	{ int sys_uname(struct outsname *name); } ouname
d340 1
a340 1
170	COMPAT_10 MPSAFE	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d347 1
a347 1
171	COMPAT_10 MPSAFE	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d353 1
a353 1
173	STD MPSAFE	{ ssize_t sys_pread(int fd, void *buf, \
d355 1
a355 1
174	STD MPSAFE	{ ssize_t sys_pwrite(int fd, const void *buf, \
d370 3
a372 3
181	STD MPSAFE	{ int sys_setgid(gid_t gid); }
182	STD MPSAFE	{ int sys_setegid(gid_t egid); }
183	STD MPSAFE	{ int sys_seteuid(uid_t euid); }
d387 1
a387 1
188	COMPAT_12 MPSAFE	{ int sys_stat(const char *path, struct stat12 *ub); } \
d389 2
a390 2
189	COMPAT_12 MPSAFE	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MPSAFE	{ int sys_lstat(const char *path, \
d392 2
a393 2
191	STD MPSAFE	{ long sys_pathconf(const char *path, int name); }
192	STD MPSAFE	{ long sys_fpathconf(int fd, int name); }
d395 1
a395 1
194	STD MPSAFE	{ int sys_getrlimit(int which, \
d397 1
a397 1
195	STD MPSAFE	{ int sys_setrlimit(int which, \
d399 1
a399 1
196	COMPAT_12 MPSAFE	{ int sys_getdirentries(int fd, char *buf, \
d401 1
a401 1
197	STD MPSAFE	{ void *sys_mmap(void *addr, size_t len, int prot, \
d403 2
a404 3
198	INDIR		{ quad_t sys___syscall(quad_t code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
199	STD MPSAFE	{ off_t sys_lseek(int fd, int pad, off_t offset, \
d406 1
a406 1
200	STD MPSAFE	{ int sys_truncate(const char *path, int pad, \
d408 2
a409 2
201	STD MPSAFE	{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD MPSAFE	{ int sys___sysctl(const int *name, u_int namelen, \
d412 4
a415 4
203	STD MPSAFE	{ int sys_mlock(const void *addr, size_t len); }
204	STD MPSAFE	{ int sys_munlock(const void *addr, size_t len); }
205	STD MPSAFE	{ int sys_undelete(const char *path); }
206	STD MPSAFE	{ int sys_futimes(int fd, \
d419 1
a419 1
209	STD MPSAFE	{ int sys_poll(struct pollfd *fds, u_int nfds, \
d476 1
a476 1
228	STD MPSAFE	{ void *sys_shmat(int shmid, const void *shmaddr, \
d478 1
a478 1
229	COMPAT_14 MPSAFE { int sys_shmctl(int shmid, int cmd, \
d480 2
a481 2
230	STD MPSAFE	{ int sys_shmdt(const void *shmaddr); }
231	STD MPSAFE	{ int sys_shmget(key_t key, size_t size, int shmflg); }
d490 1
a490 1
233	STD MPSAFE	{ int sys_clock_settime(clockid_t clock_id, \
d508 3
a510 3
241	STD MPSAFE	{ int sys_fdatasync(int fd); }
242	STD MPSAFE	{ int sys_mlockall(int flags); }
243	STD MPSAFE	{ int sys_munlockall(void); }
d520 2
a521 2
247	STD MPSAFE	{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD MPSAFE	{ int sys__ksem_open(const char *name, int oflag, \
d523 6
a528 6
249	STD MPSAFE	{ int sys__ksem_unlink(const char *name); }
250	STD MPSAFE	{ int sys__ksem_close(semid_t id); }
251	STD MPSAFE	{ int sys__ksem_post(semid_t id); }
252	STD MPSAFE	{ int sys__ksem_wait(semid_t id); }
253	STD MPSAFE	{ int sys__ksem_trywait(semid_t id); }
254	STD MPSAFE	{ int sys__ksem_getvalue(semid_t id, \
d530 1
a530 1
255	STD MPSAFE	{ int sys__ksem_destroy(semid_t id); }
d544 1
a544 1
257	STD MPSAFE	{ mqd_t sys_mq_open(const char * name, int oflag, \
d546 3
a548 3
258	STD MPSAFE	{ int sys_mq_close(mqd_t mqdes); }
259	STD MPSAFE	{ int sys_mq_unlink(const char *name); }
260	STD MPSAFE	{ int sys_mq_getattr(mqd_t mqdes, \
d550 1
a550 1
261	STD MPSAFE	{ int sys_mq_setattr(mqd_t mqdes, \
d553 1
a553 1
262	STD MPSAFE	{ int sys_mq_notify(mqd_t mqdes, \
d555 1
a555 1
263	STD MPSAFE	{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d557 1
a557 1
264	STD MPSAFE	{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d559 1
a559 1
265	STD MPSAFE	{ int sys_mq_timedsend(mqd_t mqdes, \
d563 1
a563 1
266	STD MPSAFE	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d569 1
a569 1
270	STD MPSAFE	{ int sys___posix_rename(const char *from, \
d571 3
a573 3
271	STD MPSAFE	{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MPSAFE	{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD MPSAFE	{ int sys_minherit(void *addr, size_t len, \
d575 2
a576 2
274	STD MPSAFE	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE	{ int sys_lchown(const char *path, uid_t uid, \
d578 1
a578 1
276	STD MPSAFE	{ int sys_lutimes(const char *path, \
d580 4
a583 4
277	STD MPSAFE	{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 MPSAFE	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MPSAFE	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MPSAFE	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d587 2
a588 2
282	STD MPSAFE	{ int sys___vfork14(void); }
283	STD MPSAFE	{ int sys___posix_chown(const char *path, uid_t uid, \
d590 1
a590 1
284	STD MPSAFE	{ int sys___posix_fchown(int fd, uid_t uid, \
d592 1
a592 1
285	STD MPSAFE	{ int sys___posix_lchown(const char *path, uid_t uid, \
d595 2
a596 2
287	STD MPSAFE	{ pid_t sys___clone(int flags, void *stack); }
288	STD MPSAFE	{ int sys_fktrace(int fd, int ops, \
d598 1
a598 1
289	STD MPSAFE	{ ssize_t sys_preadv(int fd, \
d601 1
a601 1
290	STD MPSAFE	{ ssize_t sys_pwritev(int fd, \
d613 4
a616 4
296	STD MPSAFE	{ int sys___getcwd(char *bufp, size_t length); }
297	STD MPSAFE	{ int sys_fchroot(int fd); }
298	COMPAT_30 MPSAFE	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MPSAFE	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d618 1
a618 1
300	COMPAT_20 MPSAFE	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d633 1
a633 1
303	STD MPSAFE	{ int sys___shmctl13(int shmid, int cmd, \
d638 1
a638 1
304	STD MPSAFE	{ int sys_lchflags(const char *path, u_long flags); }
d644 1
a644 1
309	STD MPSAFE	{ int sys__lwp_create(const struct __ucontext *ucp, \
d646 1
a646 1
310	STD MPSAFE	{ int sys__lwp_exit(void); }
d655 1
a655 1
318	STD MPSAFE	{ int sys__lwp_kill(lwpid_t target, int signo); }
d663 1
a663 1
323	STD MPSAFE	{ int sys__lwp_setname(lwpid_t target, \
d665 1
a665 1
324	STD MPSAFE	{ int sys__lwp_getname(lwpid_t target, \
d667 2
a668 3
325	STD MPSAFE	{ int sys__lwp_ctl(int features, \
				struct lwpctl **address); }
; Syscalls 326-339 reserved for LWP syscalls.
d690 1
a690 1
343	STD MPSAFE	{ int sys_rasctl(void *addr, size_t len, int op); }
d708 1
a708 1
354	STD MPSAFE	{ int sys_fsync_range(int fd, int flags, off_t start, \
d710 2
a711 2
355	STD MPSAFE	{ int sys_uuidgen(struct uuid *store, int count); }
356	STD MPSAFE	{ int sys_getvfsstat(struct statvfs *buf, \
d713 1
a713 1
357	STD MPSAFE	{ int sys_statvfs1(const char *path, \
d715 1
a715 1
358	STD MPSAFE	{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d717 1
a717 1
359	COMPAT_30 MPSAFE	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d752 1
a752 1
373	STD MPSAFE	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d755 1
a755 1
374	STD MPSAFE	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d784 5
a788 5
387	STD MPSAFE	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD MPSAFE	{ int sys___fstat30(int fd, struct stat *sb); }
389	STD MPSAFE	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD MPSAFE	{ int sys___getdents30(int fd, char *buf, size_t count); }
391	STD MPSAFE	{ int sys_posix_fadvise(int fd, off_t offset, \
d790 1
a790 1
392	COMPAT_30 MPSAFE	{ int sys___fhstat30(const struct compat_30_fhandle \
d794 1
a794 1
395	STD MPSAFE	{ int sys___getfh30(const char *fname, void *fhp, \
d796 1
a796 1
396	STD MPSAFE	{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d798 1
a798 1
397	STD MPSAFE	{ int sys___fhstatvfs140(const void *fhp, \
d800 1
a800 1
398	STD MPSAFE	{ int sys___fhstat40(const void *fhp, \
d804 1
a804 1
399	STD MPSAFE	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
d806 2
a807 2
401	STD MPSAFE	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MPSAFE	{ int sys_aio_read(struct aiocb *aiocbp); }
d809 1
a809 1
404	STD MPSAFE	{ int sys_aio_suspend(const struct aiocb *const *list, \
d811 2
a812 2
405	STD MPSAFE	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MPSAFE	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d822 1
a822 1
411	STD MPSAFE	{ void *sys_mremap(void *old_address, size_t old_size, \
@


1.176.2.4
log
@sync with HEAD
@
text
@d1 1
a1 1
	syscalls.master,v 1.176.2.3 2008/01/09 01:56:24 matt Exp
d10 1
a10 1
;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
d13 2
a14 4
; Optional fields are specified after the type field
; (NOTE! they must be specified in this order):
;     MPSAFE:	the system call is MP-safe.
;     RUMP:	the system call can be called directly from rumps
a18 1
;	IGNORED	syscall is a null op, but always succeeds
d68 2
a69 2
3	STD MPSAFE RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d71 1
a71 1
5	STD MPSAFE RUMP	{ int sys_open(const char *path, \
d73 1
a73 1
6	STD MPSAFE RUMP	{ int sys_close(int fd); }
d77 2
a78 2
9	STD MPSAFE RUMP	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE RUMP	{ int sys_unlink(const char *path); }
d80 3
a82 3
12	STD MPSAFE RUMP	{ int sys_chdir(const char *path); }
13	STD MPSAFE RUMP	{ int sys_fchdir(int fd); }
14	STD MPSAFE RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d84 2
a85 2
15	STD MPSAFE RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE RUMP	{ int sys_chown(const char *path, uid_t uid, \
d97 1
a97 1
21	COMPAT_40 MPSAFE	{ int sys_mount(const char *type, const char *path, \
d99 1
a99 1
22	STD MPSAFE RUMP	{ int sys_unmount(const char *path, int flags); }
d122 4
a125 4
33	STD MPSAFE RUMP	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE RUMP	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE RUMP	{ void sys_sync(void); }
d160 1
a160 1
57	STD MPSAFE RUMP	{ int sys_symlink(const char *path, \
d162 1
a162 1
58	STD MPSAFE RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d266 1
a266 1
128	STD MPSAFE RUMP	{ int sys_rename(const char *from, const char *to); }
d278 2
a279 2
136	STD MPSAFE RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE RUMP	{ int sys_rmdir(const char *path); }
d408 1
a408 1
200	STD MPSAFE RUMP	{ int sys_truncate(const char *path, int pad, \
d517 4
a520 1
246	STD MPSAFE	{ int sys_modctl(int cmd, void *arg); }
d577 2
a578 2
274	STD MPSAFE RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE RUMP	{ int sys_lchown(const char *path, uid_t uid, \
d699 7
a705 10

; Scheduling system calls.
346	STD MPSAFE	{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
			    int policy, const struct sched_param *params); }
347	STD MPSAFE	{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
			    int *policy, struct sched_param *params); }
348	STD MPSAFE	{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, void *cpuset); }
349	STD MPSAFE	{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, void *cpuset); }
d707 3
a709 3
351	UNIMPL
352	UNIMPL
353	UNIMPL
d722 1
a722 1
360	STD MPSAFE	{ int sys_extattrctl(const char *path, int cmd, \
d725 1
a725 1
361	STD MPSAFE	{ int sys_extattr_set_file(const char *path, \
d728 1
a728 1
362	STD MPSAFE	{ ssize_t sys_extattr_get_file(const char *path, \
d731 1
a731 1
363	STD MPSAFE	{ int sys_extattr_delete_file(const char *path, \
d733 1
a733 1
364	STD MPSAFE	{ int sys_extattr_set_fd(int fd, \
d736 1
a736 1
365	STD MPSAFE	{ ssize_t sys_extattr_get_fd(int fd, \
d739 1
a739 1
366	STD MPSAFE	{ int sys_extattr_delete_fd(int fd, \
d741 1
a741 1
367	STD MPSAFE	{ int sys_extattr_set_link(const char *path, \
d744 1
a744 1
368	STD MPSAFE	{ ssize_t sys_extattr_get_link(const char *path, \
d747 1
a747 1
369	STD MPSAFE	{ int sys_extattr_delete_link(const char *path, \
d749 1
a749 1
370	STD MPSAFE	{ ssize_t sys_extattr_list_fd(int fd, \
d751 1
a751 1
371	STD MPSAFE	{ ssize_t sys_extattr_list_file(const char *path, \
d753 1
a753 1
372	STD MPSAFE	{ ssize_t sys_extattr_list_link(const char *path, \
d760 1
a760 1
375	STD MPSAFE	{ int sys_setxattr(const char *path, \
d763 1
a763 1
376	STD MPSAFE	{ int sys_lsetxattr(const char *path, \
d766 1
a766 1
377	STD MPSAFE	{ int sys_fsetxattr(int fd, \
d769 1
a769 1
378	STD MPSAFE	{ int sys_getxattr(const char *path, \
d771 1
a771 1
379	STD MPSAFE	{ int sys_lgetxattr(const char *path, \
d773 1
a773 1
380	STD MPSAFE	{ int sys_fgetxattr(int fd, \
d775 1
a775 1
381	STD MPSAFE	{ int sys_listxattr(const char *path, \
d777 1
a777 1
382	STD MPSAFE	{ int sys_llistxattr(const char *path, \
d779 1
a779 1
383	STD MPSAFE	{ int sys_flistxattr(int fd, \
d781 1
a781 1
384	STD MPSAFE	{ int sys_removexattr(const char *path, \
d783 1
a783 1
385	STD MPSAFE	{ int sys_lremovexattr(const char *path, \
d785 1
a785 1
386	STD MPSAFE	{ int sys_fremovexattr(int fd, \
d791 2
a792 1
391	IGNORED		old posix_fadvise
d822 1
a822 1
410	STD MPSAFE	{ int sys___mount50(const char *type, \
a826 10

; Processor-sets system calls
412	STD MPSAFE	{ int sys_pset_create(psetid_t *psid); }
413	STD MPSAFE	{ int sys_pset_destroy(psetid_t psid); }
414	STD MPSAFE	{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
			    psetid_t *opsid); }
415	STD MPSAFE	{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
			    id_t second_id, psetid_t psid, psetid_t *opsid); }
416	STD MPSAFE	{ int sys___posix_fadvise50(int fd, int pad, \
			    off_t offset, off_t len, int advice); }
@


1.175
log
@- Fix a bug with _lwp_park() where if the computed wakeup time was under
  1 microsecond into the future, the thread could enter an untimed sleep.
- Change the signature of _lwp_park() to accept an lwpid_t and second
  hint pointer, but do so in a way that remains compatible with older
  pthread libraries. This can be used to wake another thread before the
  calling thread goes asleep, saving at least one syscall + involuntary
  context switch. This turns out to be a fairly large win on the condvar
  benchmarks that I have tried.
- Mark some more syscalls MP safe.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.174 2007/08/07 12:48:30 ad Exp $
a39 1
#include "opt_ktrace.h"
a135 1
#if defined(KTRACE) || !defined(_KERNEL)
a137 3
#else
45	EXCL		ktrace
#endif
d215 1
a215 1
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
d248 1
a248 1
117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
d288 1
a288 1
144	COMPAT_43	{ int sys_getrlimit(int which, \
a583 1
#if defined(KTRACE) || !defined(_KERNEL)
a585 3
#else
288	EXCL		ktrace
#endif
d630 2
a631 2
307	STD		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD		{ int sys_setcontext(const struct __ucontext *ucp); }
d791 1
a791 1
400	STD		{ int sys_aio_error(const struct aiocb *aiocbp); }
d794 1
a794 1
403	STD		{ int sys_aio_return(struct aiocb *aiocbp); }
@


1.174
log
@wait() can't yet be MPSAFE since it's impractical to hold proclist_mutex
across exit(), and so there is a short race against cv_wait_sig(). This
can be reverted when proclist_mutex/proclist_lock merge.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.173 2007/08/07 09:46:24 ad Exp $
d493 1
a493 1
232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
d497 1
a497 1
234	STD		{ int sys_clock_getres(clockid_t clock_id, \
d655 2
a656 1
				struct __ucontext *ucp, const void *hint); }
@


1.173
log
@gettimeofday() doesn't need locks, and MySQL seems to make heavy use of it.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.172 2007/08/04 10:52:58 ad Exp $
d74 1
a74 1
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d204 1
a204 1
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
@


1.172
log
@Mark the SysV semaphore syscalls MP safe.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.171 2007/07/17 17:42:07 joerg Exp $
d251 1
a251 1
116	STD		{ int sys_gettimeofday(struct timeval *tp, \
@


1.172.2.1
log
@file syscalls.master was added on branch matt-mips64 on 2007-08-04 10:52:59 +0000
@
text
@d1 817
@


1.172.2.2
log
@Mark the SysV semaphore syscalls MP safe.
@
text
@a0 817
	$NetBSD: syscalls.master,v 1.172 2007/08/04 10:52:58 ad Exp $

;	@@(#)syscalls.master	8.2 (Berkeley) 1/13/94

; NetBSD system call name/number "master" file.
; (See syscalls.conf to see what it is processed into.)
;
; Fields: number type [type-dependent ...]
;	number	system call number, must be in order
;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
;		the compatibility options defined in syscalls.conf.
;
; An optional field, MPSAFE, after the type field, indicates that
; the system call is MP-safe.
;
; types:
;	STD	always included
;	OBSOL	obsolete, not included in system
;	UNIMPL	unimplemented, not included in system
;	EXCL	implemented, but not included in system
;	NODEF	included, but don't define the syscall number
;	NOARGS	included, but don't define the syscall args structure
;	INDIR	included, but don't define the syscall args structure,
;		and allow it to be "really" varargs.
;
; The compat options are defined in the syscalls.conf file, and the
; compat option name is prefixed to the syscall name.  Other than
; that, they're like NODEF (for 'compat' options), or STD (for
; 'libcompat' options).
;
; The type-dependent arguments are as follows:
; For STD, NODEF, NOARGS, and compat syscalls:
;	{ pseudo-proto } [alias]
; For other syscalls:
;	[comment]
;
; #ifdef's, etc. may be included, and are copied to the output files.
; #include's are copied to the syscall names and switch definition files only.

#include "opt_ktrace.h"
#include "opt_nfsserver.h"
#include "opt_ntp.h"
#include "opt_compat_netbsd.h"
#include "opt_sysv.h"
#include "opt_compat_43.h"
#include "opt_posix.h"

#include "fs_lfs.h"
#include "fs_nfs.h"

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>

%%

; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.

0	INDIR		{ int sys_syscall(int number, ...); }
1	STD		{ void sys_exit(int rval); }
2	STD		{ int sys_fork(void); }
3	STD		{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD		{ ssize_t sys_write(int fd, const void *buf, \
			    size_t nbyte); }
5	STD		{ int sys_open(const char *path, \
			    int flags, ... mode_t mode); }
6	STD		{ int sys_close(int fd); }
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
			    struct rusage *rusage); }
8	COMPAT_43	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD		{ int sys_link(const char *path, const char *link); }
10	STD		{ int sys_unlink(const char *path); }
11	OBSOL		execv
12	STD		{ int sys_chdir(const char *path); }
13	STD		{ int sys_fchdir(int fd); }
14	STD		{ int sys_mknod(const char *path, mode_t mode, \
			    dev_t dev); }
15	STD		{ int sys_chmod(const char *path, mode_t mode); }
16	STD		{ int sys_chown(const char *path, uid_t uid, \
			    gid_t gid); }
17	STD		{ int sys_obreak(char *nsize); } break
18	COMPAT_20	{ int sys_getfsstat(struct statfs12 *buf, \
			    long bufsize, int flags); }
19	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); } \
			    olseek
#ifdef COMPAT_43
20	STD MPSAFE	{ pid_t sys_getpid_with_ppid(void); } getpid
#else
20	STD MPSAFE	{ pid_t sys_getpid(void); }
#endif
21	COMPAT_40	{ int sys_mount(const char *type, const char *path, \
			    int flags, void *data); }
22	STD		{ int sys_unmount(const char *path, int flags); }
23	STD 		{ int sys_setuid(uid_t uid); }
#ifdef COMPAT_43
24	STD		{ uid_t sys_getuid_with_euid(void); } getuid
#else
24	STD MPSAFE	{ uid_t sys_getuid(void); }
#endif
25	STD MPSAFE	{ uid_t sys_geteuid(void); }
26	STD		{ int sys_ptrace(int req, pid_t pid, void *addr, \
			    int data); }
27	STD		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
			    int flags); }
28	STD		{ ssize_t sys_sendmsg(int s, \
			    const struct msghdr *msg, int flags); }
29	STD		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
			    int flags, struct sockaddr *from, \
			    unsigned int *fromlenaddr); }
30	STD		{ int sys_accept(int s, struct sockaddr *name, \
			    unsigned int *anamelen); }
31	STD		{ int sys_getpeername(int fdes, struct sockaddr *asa, \
			    unsigned int *alen); }
32	STD		{ int sys_getsockname(int fdes, struct sockaddr *asa, \
			    unsigned int *alen); }
33	STD		{ int sys_access(const char *path, int flags); }
34	STD		{ int sys_chflags(const char *path, u_long flags); }
35	STD		{ int sys_fchflags(int fd, u_long flags); }
36	STD		{ void sys_sync(void); }
37	STD 		{ int sys_kill(int pid, int signum); }
38	COMPAT_43	{ int sys_stat(const char *path, struct stat43 *ub); } \
			    stat43
39	STD MPSAFE	{ pid_t sys_getppid(void); }
40	COMPAT_43	{ int sys_lstat(const char *path, \
			    struct stat43 *ub); } lstat43
41	STD		{ int sys_dup(int fd); }
42	STD		{ int sys_pipe(void); }
43	STD MPSAFE	{ gid_t sys_getegid(void); }
44	STD MPSAFE	{ int sys_profil(char *samples, size_t size, \
			    u_long offset, u_int scale); }
#if defined(KTRACE) || !defined(_KERNEL)
45	STD		{ int sys_ktrace(const char *fname, int ops, \
			    int facs, int pid); }
#else
45	EXCL		ktrace
#endif
46	COMPAT_13 MPSAFE	{ int sys_sigaction(int signum, \
			    const struct sigaction13 *nsa, \
			    struct sigaction13 *osa); } sigaction13
#ifdef COMPAT_43
47	STD MPSAFE	{ gid_t sys_getgid_with_egid(void); } getgid
#else
47	STD MPSAFE	{ gid_t sys_getgid(void); }
#endif
48	COMPAT_13 MPSAFE	{ int sys_sigprocmask(int how, \
			    int mask); } sigprocmask13
49	STD MPSAFE	{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD	 	{ int sys___setlogin(const char *namebuf); }
51	STD		{ int sys_acct(const char *path); }
52	COMPAT_13 MPSAFE	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 MPSAFE	{ int sys_sigaltstack( \
			    const struct sigaltstack13 *nss, \
			    struct sigaltstack13 *oss); } sigaltstack13
54	STD		{ int sys_ioctl(int fd, \
			    u_long com, ... void *data); }
55	COMPAT_12	{ int sys_reboot(int opt); } oreboot
56	STD		{ int sys_revoke(const char *path); }
57	STD		{ int sys_symlink(const char *path, \
			    const char *link); }
58	STD		{ ssize_t sys_readlink(const char *path, char *buf, \
			    size_t count); }
59	STD		{ int sys_execve(const char *path, \
			    char * const *argp, char * const *envp); }
60	STD		{ mode_t sys_umask(mode_t newmask); }
61	STD		{ int sys_chroot(const char *path); }
62	COMPAT_43	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43	{ int sys_getkerninfo(int op, char *where, int *size, \
			    int arg); } ogetkerninfo
64	COMPAT_43	{ int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12	{ int sys_msync(void *addr, size_t len); }
; XXX COMPAT_??? for 4.4BSD-compatible vfork(2)?
66	STD		{ int sys_vfork(void); }
67	OBSOL		vread
68	OBSOL		vwrite
69	STD		{ int sys_sbrk(intptr_t incr); }
70	STD		{ int sys_sstk(int incr); }
71	COMPAT_43	{ int sys_mmap(void *addr, size_t len, int prot, \
			    int flags, int fd, long pos); } ommap
72	STD		{ int sys_ovadvise(int anom); } vadvise
73	STD		{ int sys_munmap(void *addr, size_t len); }
74	STD		{ int sys_mprotect(void *addr, size_t len, \
			    int prot); }
75	STD		{ int sys_madvise(void *addr, size_t len, \
			    int behav); }
76	OBSOL		vhangup
77	OBSOL		vlimit
78	STD		{ int sys_mincore(void *addr, size_t len, \
			    char *vec); }
79	STD MPSAFE	{ int sys_getgroups(int gidsetsize, \
			    gid_t *gidset); }
80	STD		{ int sys_setgroups(int gidsetsize, \
			    const gid_t *gidset); }
81	STD MPSAFE 	{ int sys_getpgrp(void); }
82	STD 		{ int sys_setpgid(int pid, int pgid); }
83	STD		{ int sys_setitimer(int which, \
			    const struct itimerval *itv, \
			    struct itimerval *oitv); }
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
85	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
86	STD		{ int sys_getitimer(int which, \
			    struct itimerval *itv); }
87	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); } \
			    ogethostname
88	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); } \
			    osethostname
89	COMPAT_43	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD		{ int sys_dup2(int from, int to); }
91	UNIMPL		getdopt
92	STD		{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
94	UNIMPL		setdopt
95	STD		{ int sys_fsync(int fd); }
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
97	COMPAT_30	{ int sys_socket(int domain, int type, int protocol); }
98	STD		{ int sys_connect(int s, const struct sockaddr *name, \
			    unsigned int namelen); }
99	COMPAT_43	{ int sys_accept(int s, void *name, \
			    int *anamelen); } oaccept
100	STD MPSAFE	{ int sys_getpriority(int which, id_t who); }
101	COMPAT_43	{ int sys_send(int s, void *buf, int len, \
			    int flags); } osend
102	COMPAT_43	{ int sys_recv(int s, void *buf, int len, \
			    int flags); } orecv
103	COMPAT_13 MPSAFE	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
			    sigreturn13
104	STD		{ int sys_bind(int s, const struct sockaddr *name, \
			    unsigned int namelen); }
105	STD		{ int sys_setsockopt(int s, int level, int name, \
			    const void *val, unsigned int valsize); }
106	STD		{ int sys_listen(int s, int backlog); }
107	OBSOL		vtimes
108	COMPAT_43 MPSAFE	{ int sys_sigvec(int signum, struct sigvec *nsv, \
			    struct sigvec *osv); } osigvec
109	COMPAT_43 MPSAFE	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 MPSAFE	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MPSAFE	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MPSAFE	{ int sys_sigstack(struct sigstack *nss, \
			    struct sigstack *oss); } osigstack
113	COMPAT_43	{ int sys_recvmsg(int s, struct omsghdr *msg, \
			    int flags); } orecvmsg
114	COMPAT_43	{ int sys_sendmsg(int s, void *msg, int flags); } \
			    osendmsg
115	OBSOL		vtrace
116	STD		{ int sys_gettimeofday(struct timeval *tp, \
			    void *tzp); }
117	STD		{ int sys_getrusage(int who, struct rusage *rusage); }
118	STD		{ int sys_getsockopt(int s, int level, int name, \
			    void *val, unsigned int *avalsize); }
119	OBSOL		resuba
120	STD		{ ssize_t sys_readv(int fd, \
			    const struct iovec *iovp, int iovcnt); }
121	STD		{ ssize_t sys_writev(int fd, \
			    const struct iovec *iovp, int iovcnt); }
122	STD		{ int sys_settimeofday(const struct timeval *tv, \
			    const void *tzp); }
123	STD		{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD		{ int sys_fchmod(int fd, mode_t mode); }
125	COMPAT_43	{ int sys_recvfrom(int s, void *buf, size_t len, \
			    int flags, void *from, int *fromlenaddr); } \
			    orecvfrom
126	STD		{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD		{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD		{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43	{ int sys_truncate(const char *path, long length); } \
			    otruncate
130	COMPAT_43	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD		{ int sys_flock(int fd, int how); }
132	STD		{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD		{ ssize_t sys_sendto(int s, const void *buf, \
			    size_t len, int flags, const struct sockaddr *to, \
			    unsigned int tolen); }
134	STD		{ int sys_shutdown(int s, int how); }
135	STD		{ int sys_socketpair(int domain, int type, \
			    int protocol, int *rsv); }
136	STD		{ int sys_mkdir(const char *path, mode_t mode); }
137	STD		{ int sys_rmdir(const char *path); }
138	STD		{ int sys_utimes(const char *path, \
			    const struct timeval *tptr); }
139	OBSOL		4.2 sigreturn
140	STD		{ int sys_adjtime(const struct timeval *delta, \
			    struct timeval *olddelta); }
141	COMPAT_43	{ int sys_getpeername(int fdes, void *asa, \
			    int *alen); } ogetpeername
142	COMPAT_43	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43	{ int sys_sethostid(int32_t hostid); } osethostid
144	COMPAT_43	{ int sys_getrlimit(int which, \
			    struct orlimit *rlp); } ogetrlimit
145	COMPAT_43	{ int sys_setrlimit(int which, \
			    const struct orlimit *rlp); } osetrlimit
146	COMPAT_43	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD	 	{ int sys_setsid(void); }
148	STD		{ int sys_quotactl(const char *path, int cmd, \
			    int uid, void *arg); }
149	COMPAT_43	{ int sys_quota(void); } oquota
150	COMPAT_43	{ int sys_getsockname(int fdec, void *asa, \
			    int *alen); } ogetsockname

; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls.  (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD...
151	UNIMPL
152	UNIMPL
153	UNIMPL
154	UNIMPL
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
155	STD		{ int sys_nfssvc(int flag, void *argp); }
#else
155	EXCL		nfssvc
#endif
156	COMPAT_43	{ int sys_getdirentries(int fd, char *buf, \
			    u_int count, long *basep); } ogetdirentries
157	COMPAT_20	{ int sys_statfs(const char *path, \
			    struct statfs12 *buf); }
158	COMPAT_20	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
159	UNIMPL
160	UNIMPL
161	COMPAT_30	{ int sys_getfh(const char *fname, \
			    struct compat_30_fhandle *fhp); }
162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); } \
			    ogetdomainname
163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); } \
			    osetdomainname
164	COMPAT_09	{ int sys_uname(struct outsname *name); } ouname
165	STD		{ int sys_sysarch(int op, void *parms); }
166	UNIMPL
167	UNIMPL
168	UNIMPL
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
169	COMPAT_10 MPSAFE	{ int sys_semsys(int which, int a2, int a3, int a4, \
			    int a5); } osemsys
#else
169	EXCL		1.0 semsys
#endif
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
			    int a5, int a6); } omsgsys
#else
170	EXCL		1.0 msgsys
#endif
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
			    oshmsys
#else
171	EXCL		1.0 shmsys
#endif
172	UNIMPL
173	STD		{ ssize_t sys_pread(int fd, void *buf, \
			    size_t nbyte, int pad, off_t offset); }
174	STD		{ ssize_t sys_pwrite(int fd, const void *buf, \
			    size_t nbyte, int pad, off_t offset); }
; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
#if defined(NTP) || !defined(_KERNEL)
176	STD		{ int sys_ntp_adjtime(struct timex *tp); }
#else
176	EXCL		ntp_adjtime
#endif
177	UNIMPL
178	UNIMPL
179	UNIMPL
180	UNIMPL

; Syscalls 180-199 are used by/reserved for BSD
181	STD		{ int sys_setgid(gid_t gid); }
182	STD 		{ int sys_setegid(gid_t egid); }
183	STD		{ int sys_seteuid(uid_t euid); }
#if defined(LFS) || !defined(_KERNEL)
184	STD		{ int sys_lfs_bmapv(fsid_t *fsidp, \
			    struct block_info *blkiov, int blkcnt); }
185	STD		{ int sys_lfs_markv(fsid_t *fsidp, \
			    struct block_info *blkiov, int blkcnt); }
186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD		{ int sys_lfs_segwait(fsid_t *fsidp, \
			    struct timeval *tv); }
#else
184	EXCL		lfs_bmapv
185	EXCL		lfs_markv
186	EXCL		lfs_segclean
187	EXCL		lfs_segwait
#endif
188	COMPAT_12	{ int sys_stat(const char *path, struct stat12 *ub); } \
			    stat12
189	COMPAT_12	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12	{ int sys_lstat(const char *path, \
			    struct stat12 *ub); } lstat12
191	STD		{ long sys_pathconf(const char *path, int name); }
192	STD		{ long sys_fpathconf(int fd, int name); }
193	UNIMPL
194	STD		{ int sys_getrlimit(int which, \
			    struct rlimit *rlp); }
195	STD		{ int sys_setrlimit(int which, \
			    const struct rlimit *rlp); }
196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
			    u_int count, long *basep); }
197	STD		{ void *sys_mmap(void *addr, size_t len, int prot, \
			    int flags, int fd, long pad, off_t pos); }
198	INDIR		{ quad_t sys___syscall(quad_t num, ...); }
199	STD		{ off_t sys_lseek(int fd, int pad, off_t offset, \
			    int whence); }
200	STD		{ int sys_truncate(const char *path, int pad, \
			    off_t length); }
201	STD		{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD		{ int sys___sysctl(const int *name, u_int namelen, \
			    void *old, size_t *oldlenp, const void *new, \
			    size_t newlen); }
203	STD		{ int sys_mlock(const void *addr, size_t len); }
204	STD		{ int sys_munlock(const void *addr, size_t len); }
205	STD		{ int sys_undelete(const char *path); }
206	STD		{ int sys_futimes(int fd, \
			    const struct timeval *tptr); }
207	STD MPSAFE	{ pid_t sys_getpgid(pid_t pid); }
208	STD		{ int sys_reboot(int opt, char *bootstr); }
209	STD		{ int sys_poll(struct pollfd *fds, u_int nfds, \
			    int timeout); }
;
; Syscalls 210-219 are reserved for dynamically loaded syscalls
;
#if defined(LKM) || !defined(_KERNEL)
210	NODEF		{ int sys_lkmnosys(void); }
211	NODEF		{ int sys_lkmnosys(void); }
212	NODEF		{ int sys_lkmnosys(void); }
213	NODEF		{ int sys_lkmnosys(void); }
214	NODEF		{ int sys_lkmnosys(void); }
215	NODEF		{ int sys_lkmnosys(void); }
216	NODEF		{ int sys_lkmnosys(void); }
217	NODEF		{ int sys_lkmnosys(void); }
218	NODEF		{ int sys_lkmnosys(void); }
219	NODEF		{ int sys_lkmnosys(void); }
#else	/* !LKM */
210	EXCL		lkmnosys
211	EXCL		lkmnosys
212	EXCL		lkmnosys
213	EXCL		lkmnosys
214	EXCL		lkmnosys
215	EXCL		lkmnosys
216	EXCL		lkmnosys
217	EXCL		lkmnosys
218	EXCL		lkmnosys
219	EXCL		lkmnosys
#endif	/* !LKM */
; System calls 220-300 are reserved for use by NetBSD
#if defined(SYSVSEM) || !defined(_KERNEL)
220	COMPAT_14 MPSAFE	{ int sys___semctl(int semid, int semnum, int cmd, \
			    union __semun *arg); }
221	STD MPSAFE	{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD MPSAFE	{ int sys_semop(int semid, struct sembuf *sops, \
			    size_t nsops); }
223	STD MPSAFE	{ int sys_semconfig(int flag); }
#else
220	EXCL		compat_14_semctl
221	EXCL		semget
222	EXCL		semop
223	EXCL		semconfig
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
224	COMPAT_14 MPSAFE { int sys_msgctl(int msqid, int cmd, \
			    struct msqid_ds14 *buf); }
225	STD MPSAFE	{ int sys_msgget(key_t key, int msgflg); }
226	STD MPSAFE	{ int sys_msgsnd(int msqid, const void *msgp, \
			    size_t msgsz, int msgflg); }
227	STD MPSAFE	{ ssize_t sys_msgrcv(int msqid, void *msgp, \
			    size_t msgsz, long msgtyp, int msgflg); }
#else
224	EXCL 		compat_14_msgctl
225	EXCL 		msgget
226	EXCL 		msgsnd
227	EXCL 		msgrcv
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
228	STD		{ void *sys_shmat(int shmid, const void *shmaddr, \
			    int shmflg); }
229	COMPAT_14	{ int sys_shmctl(int shmid, int cmd, \
			    struct shmid_ds14 *buf); }
230	STD		{ int sys_shmdt(const void *shmaddr); }
231	STD		{ int sys_shmget(key_t key, size_t size, int shmflg); }
#else
228	EXCL		shmat
229	EXCL		compat_14_shmctl
230	EXCL		shmdt
231	EXCL		shmget
#endif
232	STD		{ int sys_clock_gettime(clockid_t clock_id, \
			    struct timespec *tp); }
233	STD		{ int sys_clock_settime(clockid_t clock_id, \
			    const struct timespec *tp); }
234	STD		{ int sys_clock_getres(clockid_t clock_id, \
			    struct timespec *tp); }
235	STD		{ int sys_timer_create(clockid_t clock_id, \
			    struct sigevent *evp, timer_t *timerid); }
236	STD		{ int sys_timer_delete(timer_t timerid); }
237	STD		{ int sys_timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
238	STD		{ int sys_timer_gettime(timer_t timerid, struct \
			    itimerspec *value); }
239	STD		{ int sys_timer_getoverrun(timer_t timerid); }
;
; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
;
240	STD MPSAFE	{ int sys_nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
241	STD		{ int sys_fdatasync(int fd); }
242	STD		{ int sys_mlockall(int flags); }
243	STD		{ int sys_munlockall(void); }
244	STD MPSAFE	{ int sys___sigtimedwait(const sigset_t *set, \
			    siginfo_t *info, \
			    struct timespec *timeout); }
245	UNIMPL		sys_sigqueue
;
; Syscall 246 is free for any use
;
246	UNIMPL
#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
247	STD		{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD		{ int sys__ksem_open(const char *name, int oflag, \
			    mode_t mode, unsigned int value, semid_t *idp); }
249	STD 		{ int sys__ksem_unlink(const char *name); }
250	STD		{ int sys__ksem_close(semid_t id); }
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
			    unsigned int *value); }
255	STD		{ int sys__ksem_destroy(semid_t id); }
256	UNIMPL		sys__ksem_timedwait
#else
247	EXCL		sys__ksem_init
248	EXCL		sys__ksem_open
249	EXCL 		sys__ksem_unlink
250	EXCL		sys__ksem_close
251	EXCL		sys__ksem_post
252	EXCL		sys__ksem_wait
253	EXCL		sys__ksem_trywait
254	EXCL		sys__ksem_getvalue
255	EXCL		sys__ksem_destroy
256	UNIMPL		sys__ksem_timedwait
#endif
257	UNIMPL		sys_mq_open
258	UNIMPL		sys_mq_close
259	UNIMPL		sys_mq_unlink
260	UNIMPL		sys_mq_getattr
261	UNIMPL		sys_mq_setattr
262	UNIMPL		sys_mq_notify
263	UNIMPL		sys_mq_send
264	UNIMPL		sys_mq_receive
265	UNIMPL		sys_mq_timedsend
266	UNIMPL		sys_mq_timedreceive
267	UNIMPL
268	UNIMPL
269	UNIMPL
270	STD		{ int sys___posix_rename(const char *from, \
			    const char *to); }
271	STD		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30	{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD		{ int sys_minherit(void *addr, size_t len, \
			    int inherit); }
274	STD		{ int sys_lchmod(const char *path, mode_t mode); }
275	STD		{ int sys_lchown(const char *path, uid_t uid, \
			    gid_t gid); }
276	STD		{ int sys_lutimes(const char *path, \
			    const struct timeval *tptr); }
277	STD		{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
281	STD MPSAFE	{ int sys___sigaltstack14( \
			    const struct sigaltstack *nss, \
			    struct sigaltstack *oss); }
282	STD		{ int sys___vfork14(void); }
283	STD		{ int sys___posix_chown(const char *path, uid_t uid, \
			    gid_t gid); }
284	STD		{ int sys___posix_fchown(int fd, uid_t uid, \
			    gid_t gid); }
285	STD		{ int sys___posix_lchown(const char *path, uid_t uid, \
			    gid_t gid); }
286	STD MPSAFE	{ pid_t sys_getsid(pid_t pid); }
287	STD		{ pid_t sys___clone(int flags, void *stack); }
#if defined(KTRACE) || !defined(_KERNEL)
288	STD		{ int sys_fktrace(const int fd, int ops, \
			    int facs, int pid); }
#else
288	EXCL		ktrace
#endif
289	STD		{ ssize_t sys_preadv(int fd, \
			    const struct iovec *iovp, int iovcnt, \
			    int pad, off_t offset); }
290	STD		{ ssize_t sys_pwritev(int fd, \
			    const struct iovec *iovp, int iovcnt, \
			    int pad, off_t offset); }
291	COMPAT_16 MPSAFE	{ int sys___sigaction14(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa); }
292	STD MPSAFE	{ int sys___sigpending14(sigset_t *set); }
293	STD MPSAFE	{ int sys___sigprocmask14(int how, \
			    const sigset_t *set, \
			    sigset_t *oset); }
294	STD MPSAFE	{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 MPSAFE { int sys___sigreturn14(struct sigcontext *sigcntxp); }
296	STD		{ int sys___getcwd(char *bufp, size_t length); }
297	STD		{ int sys_fchroot(int fd); }
298	COMPAT_30	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
			    struct stat13 *sb); }
300	COMPAT_20	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
			    struct statfs12 *buf); }
#if defined(SYSVSEM) || !defined(_KERNEL)
301	STD MPSAFE	{ int sys_____semctl13(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
#else
301	EXCL		____semctl13
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
302	STD MPSAFE	{ int sys___msgctl13(int msqid, int cmd, \
			    struct msqid_ds *buf); }
#else
302	EXCL		__msgctl13
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
303	STD 		{ int sys___shmctl13(int shmid, int cmd, \
			    struct shmid_ds *buf); }
#else
303	EXCL		__shmctl13
#endif
304	STD		{ int sys_lchflags(const char *path, u_long flags); }
305	STD MPSAFE	{ int sys_issetugid(void); }
306	STD MPSAFE	{ int sys_utrace(const char *label, void *addr, \
				size_t len); }
307	STD		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD		{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD		{ int sys__lwp_create(const struct __ucontext *ucp, \
				u_long flags, lwpid_t *new_lwp); }
310	STD		{ int sys__lwp_exit(void); }
311	STD MPSAFE	{ lwpid_t sys__lwp_self(void); }
312	STD MPSAFE	{ int sys__lwp_wait(lwpid_t wait_for, \
				lwpid_t *departed); }
313	STD MPSAFE	{ int sys__lwp_suspend(lwpid_t target); }
314	STD MPSAFE	{ int sys__lwp_continue(lwpid_t target); }
315	STD MPSAFE	{ int sys__lwp_wakeup(lwpid_t target); }
316	STD MPSAFE	{ void *sys__lwp_getprivate(void); }
317	STD MPSAFE	{ void sys__lwp_setprivate(void *ptr); }
318	STD		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD MPSAFE	{ int sys__lwp_detach(lwpid_t target); }
320	STD MPSAFE	{ int sys__lwp_park(const struct timespec *ts, \
				struct __ucontext *ucp, const void *hint); }
321	STD MPSAFE	{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD MPSAFE	{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
				size_t ntargets, const void *hint); }
; Syscalls 323-339 reserved for LWP syscalls.
323	UNIMPL
324	UNIMPL
325	UNIMPL
326	UNIMPL
327	UNIMPL
328	UNIMPL
329	UNIMPL
; Obsolete SA system calls.  Must remain until libc's major version is bumped.
330	STD MPSAFE	{ int sys_sa_register(void); }
331	STD MPSAFE	{ int sys_sa_stacks(void); }
332	STD MPSAFE	{ int sys_sa_enable(void); }
333	STD MPSAFE	{ int sys_sa_setconcurrency(void); }
334	STD MPSAFE	{ int sys_sa_yield(void); }
335	STD MPSAFE	{ int sys_sa_preempt(void); }
336	STD MPSAFE	{ int sys_sa_unblockyield(void); }
337	UNIMPL
338	UNIMPL
339	UNIMPL
340	STD MPSAFE	{ int sys___sigaction_sigtramp(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa, \
			    const void *tramp, int vers); }
341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD		{ int sys_rasctl(void *addr, size_t len, int op); }
344	STD		{ int sys_kqueue(void); }
345	STD		{ int sys_kevent(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
			    const struct timespec *timeout); }
;
; Syscalls 346-353 are reserved for the IEEE Std1003.1b scheduling syscalls
;
346	UNIMPL		sys_sched_setparam
347	UNIMPL		sys_sched_getparam
348	UNIMPL		sys_sched_setscheduler
349	UNIMPL		sys_sched_getscheduler
350	STD MPSAFE	{ int sys_sched_yield(void); }
351	UNIMPL		sys_sched_get_priority_max
352	UNIMPL		sys_sched_get_priority_min
353	UNIMPL		sys_sched_rr_get_interval

354	STD		{ int sys_fsync_range(int fd, int flags, off_t start, \
			    off_t length); }
355	STD		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD		{ int sys_getvfsstat(struct statvfs *buf, \
			    size_t bufsize, int flags); }
357	STD		{ int sys_statvfs1(const char *path, \
			    struct statvfs *buf, int flags); }
358	STD		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
			    int flags); }
359	COMPAT_30	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
			    struct statvfs *buf, int flags); }
360	STD		{ int sys_extattrctl(const char *path, int cmd, \
			    const char *filename, int attrnamespace, \
			    const char *attrname); }
361	STD		{ int sys_extattr_set_file(const char *path, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
362	STD		{ ssize_t sys_extattr_get_file(const char *path, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
363	STD		{ int sys_extattr_delete_file(const char *path, \
			    int attrnamespace, const char *attrname); }
364	STD		{ int sys_extattr_set_fd(int fd, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
365	STD		{ ssize_t sys_extattr_get_fd(int fd, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
366	STD		{ int sys_extattr_delete_fd(int fd, \
			    int attrnamespace, const char *attrname); }
367	STD		{ int sys_extattr_set_link(const char *path, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
368	STD		{ ssize_t sys_extattr_get_link(const char *path, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
369	STD		{ int sys_extattr_delete_link(const char *path, \
			    int attrnamespace, const char *attrname); }
370	STD		{ ssize_t sys_extattr_list_fd(int fd, \
			    int attrnamespace, void *data, size_t nbytes); }
371	STD		{ ssize_t sys_extattr_list_file(const char *path, \
			    int attrnamespace, void *data, size_t nbytes); }
372	STD		{ ssize_t sys_extattr_list_link(const char *path, \
			    int attrnamespace, void *data, size_t nbytes); }
373	STD		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
374	STD		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
375	STD		{ int sys_setxattr(const char *path, \
			    const char *name, void *value, size_t size, \
			    int flags); }
376	STD		{ int sys_lsetxattr(const char *path, \
			    const char *name, void *value, size_t size, \
			    int flags); }
377	STD		{ int sys_fsetxattr(int fd, \
			    const char *name, void *value, size_t size, \
			    int flags); }
378	STD		{ int sys_getxattr(const char *path, \
			    const char *name, void *value, size_t size); }
379	STD		{ int sys_lgetxattr(const char *path, \
			    const char *name, void *value, size_t size); }
380	STD		{ int sys_fgetxattr(int fd, \
			    const char *name, void *value, size_t size); }
381	STD		{ int sys_listxattr(const char *path, \
			    char *list, size_t size); }
382	STD		{ int sys_llistxattr(const char *path, \
			    char *list, size_t size); }
383	STD		{ int sys_flistxattr(int fd, \
			    char *list, size_t size); }
384	STD		{ int sys_removexattr(const char *path, \
			    const char *name); }
385	STD		{ int sys_lremovexattr(const char *path, \
			    const char *name); }
386	STD		{ int sys_fremovexattr(int fd, \
			    const char *name); }
387	STD		{ int sys___stat30(const char *path, struct stat *ub); }
388	STD		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD		{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD		{ int sys___getdents30(int fd, char *buf, size_t count); }
391	STD		{ int sys_posix_fadvise(int fd, off_t offset, \
			    off_t len, int advice); }
392	COMPAT_30	{ int sys___fhstat30(const struct compat_30_fhandle \
			    *fhp, struct stat *sb); }
393	STD		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
394	STD		{ int sys___socket30(int domain, int type, int protocol); }
395	STD		{ int sys___getfh30(const char *fname, void *fhp, \
			    size_t *fh_size); }
396	STD		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
			    int flags); }
397	STD		{ int sys___fhstatvfs140(const void *fhp, \
			    size_t fh_size, struct statvfs *buf, int flags); }
398	STD		{ int sys___fhstat40(const void *fhp, \
			    size_t fh_size, struct stat *sb); }

; Asynchronous I/O system calls
399	STD		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD		{ int sys_aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
405	STD		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
			    int nent, struct sigevent *sig); }

407	UNIMPL
408	UNIMPL
409	UNIMPL

410	STD		{ int sys___mount50(const char *type, \
			    const char *path, int flags, void *data, \
			    size_t data_len); }
411	STD		{ void *sys_mremap(void *old_address, size_t old_size, \
			    void *new_address, size_t new_size, int flags); }
@


1.171
log
@Add native mremap system call based on the UVM implementation for
Linux compat. Add code to enforce alignment of the new location.
Special thanks to wizd for helping with the man page.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.170 2007/07/14 15:38:40 dsl Exp $
d338 1
a338 1
169	COMPAT_10	{ int sys_semsys(int which, int a2, int a3, int a4, \
d454 1
a454 1
220	COMPAT_14	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD		{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD		{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD		{ int sys_semconfig(int flag); }
d618 1
a618 1
301	STD		{ int sys_____semctl13(int semid, int semnum, int cmd, \
@


1.171.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.175 2007/08/07 19:00:42 ad Exp $
d74 1
a74 1
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
d204 1
a204 1
84	COMPAT_43 	{ int sys_wait(void); } owait
d251 1
a251 1
116	STD MPSAFE	{ int sys_gettimeofday(struct timeval *tp, \
d338 1
a338 1
169	COMPAT_10 MPSAFE	{ int sys_semsys(int which, int a2, int a3, int a4, \
d454 1
a454 1
220	COMPAT_14 MPSAFE	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD MPSAFE	{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD MPSAFE	{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD MPSAFE	{ int sys_semconfig(int flag); }
d493 1
a493 1
232	STD MPSAFE	{ int sys_clock_gettime(clockid_t clock_id, \
d497 1
a497 1
234	STD MPSAFE	{ int sys_clock_getres(clockid_t clock_id, \
d618 1
a618 1
301	STD MPSAFE	{ int sys_____semctl13(int semid, int semnum, int cmd, \
d655 1
a655 2
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
@


1.171.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.171.2.1 2007/08/15 13:49:17 skrll Exp $
d40 1
d137 1
d140 3
d220 1
a220 1
96	STD MPSAFE	{ int sys_setpriority(int which, id_t who, int prio); }
d253 1
a253 1
117	STD MPSAFE	{ int sys_getrusage(int who, struct rusage *rusage); }
d293 1
a293 1
144	COMPAT_43 MPSAFE	{ int sys_getrlimit(int which, \
d589 1
d592 3
d639 2
a640 2
307	STD MPSAFE	{ int sys_getcontext(struct __ucontext *ucp); }
308	STD MPSAFE	{ int sys_setcontext(const struct __ucontext *ucp); }
d800 1
a800 1
400	STD MPSAFE	{ int sys_aio_error(const struct aiocb *aiocbp); }
d803 1
a803 1
403	STD MPSAFE	{ int sys_aio_return(struct aiocb *aiocbp); }
@


1.171.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.171.2.2 2007/09/03 10:23:04 skrll Exp $
d544 10
a553 22
257	STD		{ mqd_t sys_mq_open(const char * name, int oflag, \
			    mode_t mode, struct mq_attr *attr); }
258	STD		{ int sys_mq_close(mqd_t mqdes); }
259	STD		{ int sys_mq_unlink(const char *name); }
260	STD		{ int sys_mq_getattr(mqd_t mqdes, \
			    struct mq_attr *mqstat); }
261	STD		{ int sys_mq_setattr(mqd_t mqdes, \
			    const struct mq_attr *mqstat, \
			    struct mq_attr *omqstat); }
262	STD		{ int sys_mq_notify(mqd_t mqdes, \
			    const struct sigevent *notification); }
263	STD		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
			    size_t msg_len, unsigned msg_prio); }
264	STD		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
			    size_t msg_len, unsigned *msg_prio); }
265	STD		{ int sys_mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
266	STD		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
@


1.171.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.172 2007/08/04 10:52:58 ad Exp $
d338 1
a338 1
169	COMPAT_10 MPSAFE	{ int sys_semsys(int which, int a2, int a3, int a4, \
d454 1
a454 1
220	COMPAT_14 MPSAFE	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD MPSAFE	{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD MPSAFE	{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD MPSAFE	{ int sys_semconfig(int flag); }
d618 1
a618 1
301	STD MPSAFE	{ int sys_____semctl13(int semid, int semnum, int cmd, \
@


1.171.6.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.175 2007/08/07 19:00:42 ad Exp $
d74 1
a74 1
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
d204 1
a204 1
84	COMPAT_43 	{ int sys_wait(void); } owait
d251 1
a251 1
116	STD MPSAFE	{ int sys_gettimeofday(struct timeval *tp, \
d493 1
a493 1
232	STD MPSAFE	{ int sys_clock_gettime(clockid_t clock_id, \
d497 1
a497 1
234	STD MPSAFE	{ int sys_clock_getres(clockid_t clock_id, \
d655 1
a655 2
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
@


1.171.6.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.176 2007/08/15 12:08:38 ad Exp $
d40 1
d137 1
d140 3
d220 1
a220 1
96	STD MPSAFE	{ int sys_setpriority(int which, id_t who, int prio); }
d253 1
a253 1
117	STD MPSAFE	{ int sys_getrusage(int who, struct rusage *rusage); }
d293 1
a293 1
144	COMPAT_43 MPSAFE	{ int sys_getrlimit(int which, \
d589 1
d592 3
d639 2
a640 2
307	STD MPSAFE	{ int sys_getcontext(struct __ucontext *ucp); }
308	STD MPSAFE	{ int sys_setcontext(const struct __ucontext *ucp); }
d800 1
a800 1
400	STD MPSAFE	{ int sys_aio_error(const struct aiocb *aiocbp); }
d803 1
a803 1
403	STD MPSAFE	{ int sys_aio_return(struct aiocb *aiocbp); }
@


1.171.6.4
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.177 2007/09/07 18:56:09 rmind Exp $
d544 10
a553 22
257	STD		{ mqd_t sys_mq_open(const char * name, int oflag, \
			    mode_t mode, struct mq_attr *attr); }
258	STD		{ int sys_mq_close(mqd_t mqdes); }
259	STD		{ int sys_mq_unlink(const char *name); }
260	STD		{ int sys_mq_getattr(mqd_t mqdes, \
			    struct mq_attr *mqstat); }
261	STD		{ int sys_mq_setattr(mqd_t mqdes, \
			    const struct mq_attr *mqstat, \
			    struct mq_attr *omqstat); }
262	STD		{ int sys_mq_notify(mqd_t mqdes, \
			    const struct sigevent *notification); }
263	STD		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
			    size_t msg_len, unsigned msg_prio); }
264	STD		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
			    size_t msg_len, unsigned *msg_prio); }
265	STD		{ int sys_mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
266	STD		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
@


1.171.6.5
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.171.6.4 2007/10/02 18:29:05 joerg Exp $
d64 1
a64 2
0	INDIR		{ int sys_syscall(int code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
d403 1
a403 2
198	INDIR		{ quad_t sys___syscall(quad_t code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
d663 3
a665 5
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
				const char *name); }
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
				char *name, size_t len); }
; Syscalls 325-339 reserved for LWP syscalls.
@


1.171.6.6
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.171.6.5 2007/11/11 16:48:14 joerg Exp $
d669 2
a670 3
325	STD 		{ int sys__lwp_ctl(int features, \
				struct lwpctl **address); }
; Syscalls 326-339 reserved for LWP syscalls.
@


1.170
log
@Add sys___mount50() that includes an extra parameter for thre data length.
Mark sys_mount() as COMPAT_40.
Hmmm... the aio calls should have started at 400, not 399.
I've left 407-409 free.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.169 2007/04/30 14:44:30 rmind Exp $
d808 1
a812 1
; More interface changes
d816 2
@


1.169
log
@Import of POSIX Asynchronous I/O.
Seems to be quite stable. Some work still left to do.

Please note, that syscalls are not yet MP-safe, because
of the file and vnode subsystems.

Reviewed by: <tech-kern>, <ad>
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168 2007/03/06 16:09:21 drochner Exp $
d97 1
a97 1
21	STD		{ int sys_mount(const char *type, const char *path, \
d808 8
@


1.168
log
@make the first argument to profil(2) char*, for consistency with <unistd.h>
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.167 2007/03/04 06:03:10 christos Exp $
d796 12
@


1.168.4.1
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.169 2007/04/30 14:44:30 rmind Exp $
a795 12

; Asynchronous I/O system calls
399	STD		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD		{ int sys_aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
405	STD		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
			    int nent, struct sigevent *sig); }
@


1.168.2.1
log
@Pull in the initial set of changes for the vmlocking branch.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168 2007/03/06 16:09:21 drochner Exp $
d641 1
a641 1
309	STD MPSAFE	{ int sys__lwp_create(const struct __ucontext *ucp, \
@


1.168.2.2
log
@Mark another 65 syscalls as MP safe, for testing. More work is needed.
@
text
@d68 2
a69 2
3	STD MPSAFE	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE	{ ssize_t sys_write(int fd, const void *buf, \
d77 2
a78 2
9	STD MPSAFE	{ int sys_link(const char *path, const char *link); }
10	STD 		{ int sys_unlink(const char *path); }
d84 2
a85 2
15	STD MPSAFE	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE	{ int sys_chown(const char *path, uid_t uid, \
d90 1
a90 1
19	COMPAT_43 MPSAFE	{ long sys_lseek(int fd, long offset, int whence); } \
d122 3
a124 3
33	STD MPSAFE	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE	{ int sys_fchflags(int fd, u_long flags); }
d127 1
a127 1
38	COMPAT_43 MPSAFE	{ int sys_stat(const char *path, struct stat43 *ub); } \
d130 1
a130 1
40	COMPAT_43 MPSAFE	{ int sys_lstat(const char *path, \
d164 1
a164 1
57	STD MPSAFE	{ int sys_symlink(const char *path, \
d219 1
a219 1
95	STD MPSAFE	{ int sys_fsync(int fd); }
d257 1
a257 1
120	STD MPSAFE	{ ssize_t sys_readv(int fd, \
d259 1
a259 1
121	STD MPSAFE	{ ssize_t sys_writev(int fd, \
d263 2
a264 2
123	STD MPSAFE	{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD MPSAFE	{ int sys_fchmod(int fd, mode_t mode); }
d271 1
a271 1
129	COMPAT_43 MPSAFE	{ int sys_truncate(const char *path, long length); } \
d273 1
a273 1
130	COMPAT_43 MPSAFE	{ int sys_ftruncate(int fd, long length); } oftruncate
d275 1
a275 1
132	STD MPSAFE	{ int sys_mkfifo(const char *path, mode_t mode); }
d282 3
a284 3
136	STD MPSAFE	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE	{ int sys_rmdir(const char *path); }
138	STD MPSAFE	{ int sys_utimes(const char *path, \
d358 1
a358 1
173	STD MPSAFE	{ ssize_t sys_pread(int fd, void *buf, \
d360 1
a360 1
174	STD MPSAFE	{ ssize_t sys_pwrite(int fd, const void *buf, \
d392 1
a392 1
188	COMPAT_12 MPSAFE	{ int sys_stat(const char *path, struct stat12 *ub); } \
d395 1
a395 1
190	COMPAT_12 MPSAFE	{ int sys_lstat(const char *path, \
d409 1
a409 1
199	STD MPSAFE	{ off_t sys_lseek(int fd, int pad, off_t offset, \
d411 1
a411 1
200	STD MPSAFE	{ int sys_truncate(const char *path, int pad, \
d413 1
a413 1
201	STD MPSAFE	{ int sys_ftruncate(int fd, int pad, off_t length); }
d419 2
a420 2
205	STD MPSAFE	{ int sys_undelete(const char *path); }
206	STD MPSAFE	{ int sys_futimes(int fd, \
d565 1
a565 1
272	COMPAT_30 MPSAFE	{ int sys_getdents(int fd, char *buf, size_t count); }
d568 2
a569 2
274	STD MPSAFE	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE	{ int sys_lchown(const char *path, uid_t uid, \
d571 1
a571 1
276	STD MPSAFE	{ int sys_lutimes(const char *path, \
d574 1
a574 1
278	COMPAT_30 MPSAFE	{ int sys___stat13(const char *path, struct stat13 *ub); }
d576 1
a576 1
280	COMPAT_30 MPSAFE	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d581 1
a581 1
283	STD MPSAFE	{ int sys___posix_chown(const char *path, uid_t uid, \
d583 1
a583 1
284	STD MPSAFE	{ int sys___posix_fchown(int fd, uid_t uid, \
d585 1
a585 1
285	STD MPSAFE	{ int sys___posix_lchown(const char *path, uid_t uid, \
d595 1
a595 1
289	STD MPSAFE	{ ssize_t sys_preadv(int fd, \
d598 1
a598 1
290	STD MPSAFE	{ ssize_t sys_pwritev(int fd, \
d635 1
a635 1
304	STD MPSAFE	{ int sys_lchflags(const char *path, u_long flags); }
d702 1
a702 1
354	STD MPSAFE	{ int sys_fsync_range(int fd, int flags, off_t start, \
d778 1
a778 1
387	STD MPSAFE	{ int sys___stat30(const char *path, struct stat *ub); }
d780 2
a781 2
389	STD MPSAFE	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD MPSAFE	{ int sys___getdents30(int fd, char *buf, size_t count); }
@


1.168.2.3
log
@Mark another 8 syscalls MP safe, for testing.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.2 2007/04/06 12:31:13 ad Exp $
d71 1
a71 1
5	STD MPSAFE	{ int sys_open(const char *path, \
d73 1
a73 1
6	STD MPSAFE	{ int sys_close(int fd); }
d80 2
a81 2
12	STD MPSAFE	{ int sys_chdir(const char *path); }
13	STD MPSAFE	{ int sys_fchdir(int fd); }
d216 1
a216 1
93	STD MPSAFE	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d424 1
a424 1
209	STD MPSAFE	{ int sys_poll(struct pollfd *fds, u_int nfds, \
d746 1
a746 1
373	STD MPSAFE	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d749 1
a749 1
374	STD MPSAFE	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
@


1.168.2.4
log
@Mark SysV & POSIX semaphore system calls as MP safe.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.3 2007/04/10 00:23:02 ad Exp $
d338 1
a338 1
169	COMPAT_10 MPSAFE	{ int sys_semsys(int which, int a2, int a3, int a4, \
d454 1
a454 1
220	COMPAT_14 MPSAFE	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD MPSAFE	{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD MPSAFE	{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD MPSAFE	{ int sys_semconfig(int flag); }
d525 2
a526 2
247	STD MPSAFE	{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD MPSAFE	{ int sys__ksem_open(const char *name, int oflag, \
d528 6
a533 6
249	STD MPSAFE	{ int sys__ksem_unlink(const char *name); }
250	STD MPSAFE	{ int sys__ksem_close(semid_t id); }
251	STD MPSAFE	{ int sys__ksem_post(semid_t id); }
252	STD MPSAFE	{ int sys__ksem_wait(semid_t id); }
253	STD MPSAFE	{ int sys__ksem_trywait(semid_t id); }
254	STD MPSAFE	{ int sys__ksem_getvalue(semid_t id, \
d535 1
a535 1
255	STD MPSAFE	{ int sys__ksem_destroy(semid_t id); }
d618 1
a618 1
301	STD MPSAFE	{ int sys_____semctl13(int semid, int semnum, int cmd, \
@


1.168.2.5
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.4 2007/04/22 21:43:30 ad Exp $
a795 12

; Asynchronous I/O system calls
399	STD		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD		{ int sys_aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
405	STD		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
			    int nent, struct sigevent *sig); }
@


1.168.2.6
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.5 2007/06/08 14:17:26 ad Exp $
d97 1
a97 1
21	COMPAT_40	{ int sys_mount(const char *type, const char *path, \
a807 8
407	UNIMPL
408	UNIMPL
409	UNIMPL

; More interface changes
410	STD		{ int sys___mount50(const char *type, \
			    const char *path, int flags, void *data, \
			    size_t data_len); }
@


1.168.2.7
log
@Mark flock() MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.6 2007/07/15 13:27:46 ad Exp $
d274 1
a274 1
131	STD MPSAFE	{ int sys_flock(int fd, int how); }
@


1.168.2.8
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.7 2007/08/19 19:22:12 ad Exp $
d40 1
d74 1
a74 1
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
d137 1
d140 3
d204 1
a204 1
84	COMPAT_43 	{ int sys_wait(void); } owait
d220 1
a220 1
96	STD MPSAFE	{ int sys_setpriority(int which, id_t who, int prio); }
d251 1
a251 1
116	STD MPSAFE	{ int sys_gettimeofday(struct timeval *tp, \
d253 1
a253 1
117	STD MPSAFE	{ int sys_getrusage(int who, struct rusage *rusage); }
d293 1
a293 1
144	COMPAT_43 MPSAFE	{ int sys_getrlimit(int which, \
d493 1
a493 1
232	STD MPSAFE	{ int sys_clock_gettime(clockid_t clock_id, \
d497 1
a497 1
234	STD MPSAFE	{ int sys_clock_getres(clockid_t clock_id, \
d589 1
d592 3
d639 2
a640 2
307	STD MPSAFE	{ int sys_getcontext(struct __ucontext *ucp); }
308	STD MPSAFE	{ int sys_setcontext(const struct __ucontext *ucp); }
d643 1
a643 1
310	STD MPSAFE	{ int sys__lwp_exit(void); }
d652 1
a652 1
318	STD MPSAFE	{ int sys__lwp_kill(lwpid_t target, int signo); }
d655 1
a655 2
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
d684 1
a684 1
343	STD MPSAFE	{ int sys_rasctl(void *addr, size_t len, int op); }
d799 1
a799 1
400	STD MPSAFE	{ int sys_aio_error(const struct aiocb *aiocbp); }
d802 1
a802 1
403	STD MPSAFE	{ int sys_aio_return(struct aiocb *aiocbp); }
a807 1

d812 1
a815 2
411	STD		{ void *sys_mremap(void *old_address, size_t old_size, \
			    void *new_address, size_t new_size, int flags); }
@


1.168.2.9
log
@- mark nfssvc(2) MPSAFE and move the most of nfsd out of the kernel lock.
- remove unused ns_solock.
- remove some of KERNEL_LOCK/UNLOCK which are not necessary on this branch.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.8 2007/08/20 21:27:40 ad Exp $
d309 1
a309 1
155	STD MPSAFE	{ int sys_nfssvc(int flag, void *argp); }
@


1.168.2.10
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.9 2007/08/26 15:00:03 yamt Exp $
d544 10
a553 22
257	STD		{ mqd_t sys_mq_open(const char * name, int oflag, \
			    mode_t mode, struct mq_attr *attr); }
258	STD		{ int sys_mq_close(mqd_t mqdes); }
259	STD		{ int sys_mq_unlink(const char *name); }
260	STD		{ int sys_mq_getattr(mqd_t mqdes, \
			    struct mq_attr *mqstat); }
261	STD		{ int sys_mq_setattr(mqd_t mqdes, \
			    const struct mq_attr *mqstat, \
			    struct mq_attr *omqstat); }
262	STD		{ int sys_mq_notify(mqd_t mqdes, \
			    const struct sigevent *notification); }
263	STD		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
			    size_t msg_len, unsigned msg_prio); }
264	STD		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
			    size_t msg_len, unsigned *msg_prio); }
265	STD		{ int sys_mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
266	STD		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
@


1.168.2.11
log
@- sys_semop: remove the usage of the kernel_lock;
- Mark the POSIX message queues as MP-safe;

OK by <ad>.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.168.2.10 2007/10/09 13:44:31 ad Exp $
d544 1
a544 1
257	STD MPSAFE	{ mqd_t sys_mq_open(const char * name, int oflag, \
d546 3
a548 3
258	STD MPSAFE	{ int sys_mq_close(mqd_t mqdes); }
259	STD MPSAFE	{ int sys_mq_unlink(const char *name); }
260	STD MPSAFE	{ int sys_mq_getattr(mqd_t mqdes, \
d550 1
a550 1
261	STD MPSAFE	{ int sys_mq_setattr(mqd_t mqdes, \
d553 1
a553 1
262	STD MPSAFE	{ int sys_mq_notify(mqd_t mqdes, \
d555 1
a555 1
263	STD MPSAFE	{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d557 1
a557 1
264	STD MPSAFE	{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d559 1
a559 1
265	STD MPSAFE	{ int sys_mq_timedsend(mqd_t mqdes, \
d563 1
a563 1
266	STD MPSAFE	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
@


1.167
log
@Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.166 2007/02/26 12:19:00 drochner Exp $
d135 1
a135 1
44	STD MPSAFE	{ int sys_profil(void *samples, size_t size, \
@


1.166
log
@sync with lwp.h: _lwp_unpark_all() returns ssize_t
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.165 2007/02/10 11:32:21 ad Exp $
d107 1
a107 1
26	STD		{ int sys_ptrace(int req, pid_t pid, caddr_t addr, \
d135 1
a135 1
44	STD MPSAFE	{ int sys_profil(caddr_t samples, size_t size, \
d176 1
a176 1
65	COMPAT_12	{ int sys_msync(caddr_t addr, size_t len); }
d183 1
a183 1
71	COMPAT_43	{ int sys_mmap(caddr_t addr, size_t len, int prot, \
d224 1
a224 1
99	COMPAT_43	{ int sys_accept(int s, caddr_t name, \
d227 1
a227 1
101	COMPAT_43	{ int sys_send(int s, caddr_t buf, int len, \
d229 1
a229 1
102	COMPAT_43	{ int sys_recv(int s, caddr_t buf, int len, \
d248 1
a248 1
114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); } \
d265 2
a266 2
125	COMPAT_43	{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
			    int flags, caddr_t from, int *fromlenaddr); } \
d289 1
a289 1
141	COMPAT_43	{ int sys_getpeername(int fdes, caddr_t asa, \
d300 1
a300 1
			    int uid, caddr_t arg); }
d302 1
a302 1
150	COMPAT_43	{ int sys_getsockname(int fdec, caddr_t asa, \
d684 1
a684 1
343	STD		{ int sys_rasctl(caddr_t addr, size_t len, int op); }
@


1.165
log
@A quick hack to get things building again: put back the SA system calls
with no arguments, and alias them to sys_nosys. To be revisited.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.164 2007/02/10 10:24:44 ad Exp $
d657 1
a657 1
322	STD MPSAFE	{ size_t sys__lwp_unpark_all(const lwpid_t *targets, \
@


1.165.2.1
log
@- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.165 2007/02/10 11:32:21 ad Exp $
d657 1
a657 1
322	STD MPSAFE	{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
@


1.165.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.165.2.1 2007/02/27 16:54:32 yamt Exp $
d107 1
a107 1
26	STD		{ int sys_ptrace(int req, pid_t pid, void *addr, \
d135 1
a135 1
44	STD MPSAFE	{ int sys_profil(char *samples, size_t size, \
d176 1
a176 1
65	COMPAT_12	{ int sys_msync(void *addr, size_t len); }
d183 1
a183 1
71	COMPAT_43	{ int sys_mmap(void *addr, size_t len, int prot, \
d224 1
a224 1
99	COMPAT_43	{ int sys_accept(int s, void *name, \
d227 1
a227 1
101	COMPAT_43	{ int sys_send(int s, void *buf, int len, \
d229 1
a229 1
102	COMPAT_43	{ int sys_recv(int s, void *buf, int len, \
d248 1
a248 1
114	COMPAT_43	{ int sys_sendmsg(int s, void *msg, int flags); } \
d265 2
a266 2
125	COMPAT_43	{ int sys_recvfrom(int s, void *buf, size_t len, \
			    int flags, void *from, int *fromlenaddr); } \
d289 1
a289 1
141	COMPAT_43	{ int sys_getpeername(int fdes, void *asa, \
d300 1
a300 1
			    int uid, void *arg); }
d302 1
a302 1
150	COMPAT_43	{ int sys_getsockname(int fdec, void *asa, \
d684 1
a684 1
343	STD		{ int sys_rasctl(void *addr, size_t len, int op); }
@


1.165.2.3
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.165.2.2 2007/03/12 05:58:42 rmind Exp $
a795 12

; Asynchronous I/O system calls
399	STD		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD		{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD		{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD		{ int sys_aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
405	STD		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
			    int nent, struct sigevent *sig); }
@


1.164
log
@Fix arguments to _lwp_park/unpark/unpark_all to match userland.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.163 2007/02/09 21:55:31 ad Exp $
d667 8
a674 7
330	OBSOL		sys_sa_register
331	OBSOL		sys_sa_stacks
332	OBSOL		sys_sa_enable
333	OBSOL		sys_sa_setconcurrency
334	OBSOL		sys_sa_yield
335	OBSOL		sys_sa_preempt
336	OBSOL		sys_sa_unblockyield
@


1.163
log
@Merge newlock2 to head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.162 2007/01/16 05:28:45 ad Exp $
d655 4
a658 4
				struct __ucontext *ucp, void *hint); }
321	STD MPSAFE	{ int sys__lwp_unpark(lwpid_t target, void *hint); }
322	STD MPSAFE	{ int sys__lwp_unpark_all(const lwpid_t *targets, \
				size_t ntargets, void *hint); }
@


1.162
log
@Add sched_yield().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.161 2007/01/16 01:30:45 ad Exp $
a54 1
#include <sys/sa.h>
d74 1
a74 1
7	STD		{ int sys_wait4(int pid, int *status, int options, \
d93 1
a93 1
20	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
d100 1
a100 1
23	STD		{ int sys_setuid(uid_t uid); }
d104 1
a104 1
24	STD		{ uid_t sys_getuid(void); }
d106 1
a106 1
25	STD		{ uid_t sys_geteuid(void); }
d126 1
a126 1
37	STD		{ int sys_kill(int pid, int signum); }
d129 1
a129 1
39	STD		{ pid_t sys_getppid(void); }
d134 2
a135 2
43	STD		{ gid_t sys_getegid(void); }
44	STD		{ int sys_profil(caddr_t samples, size_t size, \
d143 1
a143 1
46	COMPAT_13	{ int sys_sigaction(int signum, \
d147 1
a147 1
47	STD		{ gid_t sys_getgid_with_egid(void); } getgid
d149 1
a149 1
47	STD		{ gid_t sys_getgid(void); }
d151 1
a151 1
48	COMPAT_13	{ int sys_sigprocmask(int how, \
d153 2
a154 2
49	STD		{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD		{ int sys___setlogin(const char *namebuf); }
d156 2
a157 2
52	COMPAT_13	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13	{ int sys_sigaltstack( \
d195 1
a195 1
79	STD		{ int sys_getgroups(int gidsetsize, \
d199 2
a200 2
81	STD		{ int sys_getpgrp(void); }
82	STD		{ int sys_setpgid(int pid, int pgid); }
d204 1
a204 1
84	COMPAT_43	{ int sys_wait(void); } owait
d220 1
a220 1
96	STD		{ int sys_setpriority(int which, id_t who, int prio); }
d226 1
a226 1
100	STD		{ int sys_getpriority(int which, id_t who); }
d231 1
a231 1
103	COMPAT_13	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d239 1
a239 1
108	COMPAT_43	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d241 4
a244 4
109	COMPAT_43	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43	{ int sys_sigstack(struct sigstack *nss, \
d298 1
a298 1
147	STD		{ int sys_setsid(void); }
d300 1
a300 1
			    int uid, void *arg); }
d376 1
a376 1
182	STD		{ int sys_setegid(gid_t egid); }
d422 1
a422 1
207	STD		{ pid_t sys_getpgid(pid_t pid); }
d467 1
a467 1
224	COMPAT_14	{ int sys_msgctl(int msqid, int cmd, \
d469 2
a470 2
225	STD		{ int sys_msgget(key_t key, int msgflg); }
226	STD		{ int sys_msgsnd(int msqid, const void *msgp, \
d472 1
a472 1
227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d475 4
a478 4
224	EXCL		compat_14_msgctl
225	EXCL		msgget
226	EXCL		msgsnd
227	EXCL		msgrcv
d511 1
a511 1
240	STD		{ int sys_nanosleep(const struct timespec *rqtp, \
d516 1
a516 1
244	STD		{ int sys___sigtimedwait(const sigset_t *set, \
d530 4
a533 4
251	STD		{ int sys__ksem_post(semid_t id); }
252	STD		{ int sys__ksem_wait(semid_t id); }
253	STD		{ int sys__ksem_trywait(semid_t id); }
254	STD		{ int sys__ksem_getvalue(semid_t id, \
d577 1
a577 1
281	STD		{ int sys___sigaltstack14( \
d587 1
a587 1
286	STD		{ pid_t sys_getsid(pid_t pid); }
d601 1
a601 1
291	COMPAT_16	{ int sys___sigaction14(int signum, \
d604 2
a605 2
292	STD		{ int sys___sigpending14(sigset_t *set); }
293	STD		{ int sys___sigprocmask14(int how, \
d608 2
a609 2
294	STD		{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16	{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
d624 1
a624 1
302	STD		{ int sys___msgctl13(int msqid, int cmd, \
d630 1
a630 1
303	STD		{ int sys___shmctl13(int shmid, int cmd, \
d636 2
a637 2
305	STD		{ int sys_issetugid(void); }
306	STD		{ int sys_utrace(const char *label, void *addr, \
d644 2
a645 2
311	STD		{ lwpid_t sys__lwp_self(void); }
312	STD		{ int sys__lwp_wait(lwpid_t wait_for, \
d647 5
a651 6
313	STD		{ int sys__lwp_suspend(lwpid_t target); }
314	STD		{ int sys__lwp_continue(lwpid_t target); }
315	STD		{ int sys__lwp_wakeup(lwpid_t target); }
316	STD		{ void *sys__lwp_getprivate(void); }
317	STD		{ void sys__lwp_setprivate(void *ptr); }
#if !defined(_KERNEL)
d653 7
a659 14
319	STD		{ int sys__lwp_detach(lwpid_t target); }
320	STD		{ int sys__lwp_park(const struct timespec *ts, \
				struct __ucontext *ucp, const void *hint); }
321	STD 		{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD 		{ int sys__lwp_unpark_all(const lwpid_t *targets, \
				size_t ntargets, const void *hint); }
#else
318	EXCL		sys__lwp_kill
319	EXCL		sys__lwp_detach
320	EXCL		sys__lwp_park
321	EXCL		sys__lwp_unpark
322	EXCL		sys__lwp_unpark_all
#endif
; Syscalls 323-329 reserved for remaining Solaris-compatible LWP calls.
d667 6
a672 9
; Scheduler activation syscalls
330	STD		{ int sys_sa_register(sa_upcall_t new, \
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
331	STD		{ int sys_sa_stacks(int num, stack_t *stacks); }
332	STD		{ int sys_sa_enable(void); }
333	STD		{ int sys_sa_setconcurrency(int concurrency); }
334	STD		{ int sys_sa_yield(void); }
335	STD		{ int sys_sa_preempt(int sa_id); }
a673 3
;
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
;
d677 1
a677 1
340	STD		{ int sys___sigaction_sigtramp(int signum, \
d696 1
a696 1
350	STD		{ int sys_sched_yield(void); }
@


1.161
log
@Add prototypes for: _lwp_kill, _lwp_detach, _lwp_park, _lwp_unpark,
_lwp_unpark_all, sched_yield.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.160 2006/10/17 15:06:18 christos Exp $
a710 1
#if !defined(KERNEL)
a711 3
#else
350	EXCL		sys_sched_yield
#endif
@


1.160
log
@according to the manual, the last argument of quotactl(2) is a void *,
not a caddr_t.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.159 2006/09/01 20:58:18 matt Exp $
d653 16
a668 6
; Syscalls 318-329 reserved for remaining Solaris-compatible LWP calls.
318	UNIMPL
319	UNIMPL
320	UNIMPL
321	UNIMPL
322	UNIMPL
d711 5
a715 1
350	UNIMPL		sys_sched_yield
@


1.159
log
@Don't conditionalize *sys_ptrace.  The lack of sys_ptrace will be dealt
with differently.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.158 2006/08/30 11:34:26 matt Exp $
d301 1
a301 1
			    int uid, caddr_t arg); }
@


1.159.2.1
log
@- Mark a few more syscalls as MPSAFE.
- Add lwp_kill().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.159 2006/09/01 20:58:18 matt Exp $
d105 1
a105 1
24	STD MPSAFE	{ uid_t sys_getuid(void); }
d107 1
a107 1
25	STD MPSAFE	{ uid_t sys_geteuid(void); }
d135 1
a135 1
43	STD MPSAFE	{ gid_t sys_getegid(void); }
d150 1
a150 1
47	STD MPSAFE	{ gid_t sys_getgid(void); }
d346 1
a346 1
170	COMPAT_10 MPSAFE { int sys_msgsys(int which, int a2, int a3, int a4, \
d349 1
a349 1
170	EXCL MPSAFE	1.0 msgsys
d468 1
a468 1
224	COMPAT_14 MPSAFE { int sys_msgctl(int msqid, int cmd, \
d470 2
a471 2
225	STD MPSAFE	{ int sys_msgget(key_t key, int msgflg); }
226	STD MPSAFE	{ int sys_msgsnd(int msqid, const void *msgp, \
d473 1
a473 1
227	STD MPSAFE	{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d476 4
a479 4
224	EXCL MPSAFE	compat_14_msgctl
225	EXCL MPSAFE	msgget
226	EXCL MPSAFE	msgsnd
227	EXCL MPSAFE	msgrcv
d625 1
a625 1
302	STD MPSAFE	{ int sys___msgctl13(int msqid, int cmd, \
d628 1
a628 1
302	EXCL MPSAFE	__msgctl13
d651 4
a654 4
316	STD MPSAFE	{ void *sys__lwp_getprivate(void); }
317	STD MPSAFE	{ void sys__lwp_setprivate(void *ptr); }
318	STD		{ void sys__lwp_kill(lwpid_t target, int signo); }
; Syscalls 319-329 reserved for remaining Solaris-compatible LWP calls.
@


1.159.2.2
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.159.2.1 2006/10/24 21:37:01 ad Exp $
d301 1
a301 1
			    int uid, void *arg); }
@


1.159.2.3
log
@Checkpoint work in progress.
@
text
@d101 1
a101 1
23	STD 		{ int sys_setuid(uid_t uid); }
d127 1
a127 1
37	STD 		{ int sys_kill(int pid, int signum); }
d130 1
a130 1
39	STD 		{ pid_t sys_getppid(void); }
d155 1
a155 1
50	STD	 	{ int sys___setlogin(const char *namebuf); }
d196 1
a196 1
79	STD 		{ int sys_getgroups(int gidsetsize, \
d200 2
a201 2
81	STD 	 	{ int sys_getpgrp(void); }
82	STD 		{ int sys_setpgid(int pid, int pgid); }
d221 1
a221 1
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
d227 1
a227 1
100	STD 		{ int sys_getpriority(int which, id_t who); }
d299 1
a299 1
147	STD	 	{ int sys_setsid(void); }
d301 1
a301 1
			    int uid, caddr_t arg); }
d346 1
a346 1
170	COMPAT_10	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d349 1
a349 1
170	EXCL		1.0 msgsys
d377 1
a377 1
182	STD 		{ int sys_setegid(gid_t egid); }
d423 1
a423 1
207	STD 		{ pid_t sys_getpgid(pid_t pid); }
d468 1
a468 1
224	COMPAT_14 	{ int sys_msgctl(int msqid, int cmd, \
d470 2
a471 2
225	STD 		{ int sys_msgget(key_t key, int msgflg); }
226	STD 		{ int sys_msgsnd(int msqid, const void *msgp, \
d473 1
a473 1
227	STD		{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d476 4
a479 4
224	EXCL 		compat_14_msgctl
225	EXCL 		msgget
226	EXCL 		msgsnd
227	EXCL 		msgrcv
d512 1
a512 1
240	STD 		{ int sys_nanosleep(const struct timespec *rqtp, \
d517 1
a517 1
244	STD 		{ int sys___sigtimedwait(const sigset_t *set, \
d578 1
a578 1
281	STD 		{ int sys___sigaltstack14( \
d606 1
a606 1
293	STD 		{ int sys___sigprocmask14(int how, \
d609 1
a609 1
294	STD 		{ int sys___sigsuspend14(const sigset_t *set); }
d625 1
a625 1
302	STD 		{ int sys___msgctl13(int msqid, int cmd, \
d628 1
a628 1
302	EXCL		__msgctl13
d653 6
a658 8
318	STD		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD		{ int sys__lwp_detach(lwpid_t target); }
320	STD		{ int sys__lwp_park(const struct timespec *ts, \
				struct __ucontext *ucp); }
321	STD 		{ int sys__lwp_unpark(lwpid_t target); }
322	STD 		{ int sys__lwp_unpark_all(const lwpid_t *targets, \
				size_t ntargets); }
; Syscalls 323-329 reserved for remaining Solaris-compatible LWP calls.
d682 1
a682 1
340	STD 		{ int sys___sigaction_sigtramp(int signum, \
d701 1
a701 1
350	STD		{ int sys_sched_yield(void); }
@


1.159.2.4
log
@Adjust arguments to _lwp_park() and friends so that in the best case
_lwp_unpark_all() only has to traverse one sleep queue.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.159.2.3 2006/12/29 20:27:44 ad Exp $
d656 2
a657 2
				struct __ucontext *ucp, void *hint); }
321	STD 		{ int sys__lwp_unpark(lwpid_t target, void *hint); }
d659 1
a659 1
				size_t ntargets, void *hint); }
@


1.159.2.5
log
@Remove support for SA. Ok core@@.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.159.2.4 2007/01/16 01:28:27 ad Exp $
d660 1
a660 1
; Syscalls 323-339 reserved for LWP syscalls.
d668 9
a676 6
330	OBSOL		sys_sa_register
331	OBSOL		sys_sa_stacks
332	OBSOL		sys_sa_enable
333	OBSOL		sys_sa_setconcurrency
334	OBSOL		sys_sa_yield
335	OBSOL		sys_sa_preempt
d678 3
@


1.159.2.6
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.162 2007/01/16 05:28:45 ad Exp $
d55 1
d697 1
a697 1
350	STD MPSAFE	{ int sys_sched_yield(void); }
@


1.159.2.7
log
@Mark another 50-60 syscalls as MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.159.2.6 2007/02/01 08:48:38 ad Exp $
d74 1
a74 1
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d93 1
a93 1
20	STD MPSAFE	{ pid_t sys_getpid_with_ppid(void); } getpid
d129 1
a129 1
39	STD MPSAFE	{ pid_t sys_getppid(void); }
d135 1
a135 1
44	STD MPSAFE	{ int sys_profil(caddr_t samples, size_t size, \
d143 1
a143 1
46	COMPAT_13 MPSAFE	{ int sys_sigaction(int signum, \
d147 1
a147 1
47	STD MPSAFE	{ gid_t sys_getgid_with_egid(void); } getgid
d151 1
a151 1
48	COMPAT_13 MPSAFE	{ int sys_sigprocmask(int how, \
d153 1
a153 1
49	STD MPSAFE	{ int sys___getlogin(char *namebuf, size_t namelen); }
d156 2
a157 2
52	COMPAT_13 MPSAFE	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 MPSAFE	{ int sys_sigaltstack( \
d195 1
a195 1
79	STD MPSAFE	{ int sys_getgroups(int gidsetsize, \
d199 1
a199 1
81	STD MPSAFE 	{ int sys_getpgrp(void); }
d204 1
a204 1
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
d226 1
a226 1
100	STD MPSAFE	{ int sys_getpriority(int which, id_t who); }
d231 1
a231 1
103	COMPAT_13 MPSAFE	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d239 1
a239 1
108	COMPAT_43 MPSAFE	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d241 4
a244 4
109	COMPAT_43 MPSAFE	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 MPSAFE	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MPSAFE	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MPSAFE	{ int sys_sigstack(struct sigstack *nss, \
d422 1
a422 1
207	STD MPSAFE	{ pid_t sys_getpgid(pid_t pid); }
d467 1
a467 1
224	COMPAT_14 MPSAFE { int sys_msgctl(int msqid, int cmd, \
d469 2
a470 2
225	STD MPSAFE	{ int sys_msgget(key_t key, int msgflg); }
226	STD MPSAFE	{ int sys_msgsnd(int msqid, const void *msgp, \
d472 1
a472 1
227	STD MPSAFE	{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d511 1
a511 1
240	STD MPSAFE	{ int sys_nanosleep(const struct timespec *rqtp, \
d516 1
a516 1
244	STD MPSAFE	{ int sys___sigtimedwait(const sigset_t *set, \
d530 4
a533 4
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
d577 1
a577 1
281	STD MPSAFE	{ int sys___sigaltstack14( \
d587 1
a587 1
286	STD MPSAFE	{ pid_t sys_getsid(pid_t pid); }
d601 1
a601 1
291	COMPAT_16 MPSAFE	{ int sys___sigaction14(int signum, \
d604 2
a605 2
292	STD MPSAFE	{ int sys___sigpending14(sigset_t *set); }
293	STD MPSAFE	{ int sys___sigprocmask14(int how, \
d608 2
a609 2
294	STD MPSAFE	{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 MPSAFE { int sys___sigreturn14(struct sigcontext *sigcntxp); }
d624 1
a624 1
302	STD MPSAFE	{ int sys___msgctl13(int msqid, int cmd, \
d630 1
a630 1
303	STD 		{ int sys___shmctl13(int shmid, int cmd, \
d636 2
a637 2
305	STD MPSAFE	{ int sys_issetugid(void); }
306	STD MPSAFE	{ int sys_utrace(const char *label, void *addr, \
d644 2
a645 2
311	STD MPSAFE	{ lwpid_t sys__lwp_self(void); }
312	STD MPSAFE	{ int sys__lwp_wait(lwpid_t wait_for, \
d647 3
a649 3
313	STD MPSAFE	{ int sys__lwp_suspend(lwpid_t target); }
314	STD MPSAFE	{ int sys__lwp_continue(lwpid_t target); }
315	STD MPSAFE	{ int sys__lwp_wakeup(lwpid_t target); }
d653 2
a654 2
319	STD MPSAFE	{ int sys__lwp_detach(lwpid_t target); }
320	STD MPSAFE	{ int sys__lwp_park(const struct timespec *ts, \
d656 2
a657 2
321	STD MPSAFE	{ int sys__lwp_unpark(lwpid_t target, void *hint); }
322	STD MPSAFE	{ int sys__lwp_unpark_all(const lwpid_t *targets, \
d677 1
a677 1
340	STD MPSAFE	{ int sys___sigaction_sigtramp(int signum, \
@


1.159.4.1
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.159 2006/09/01 20:58:18 matt Exp $
d301 1
a301 1
			    int uid, void *arg); }
@


1.158
log
@Add || defined(_KERNEL) to ptrace entry (like ktrace).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.157 2006/08/29 23:34:48 matt Exp $
a107 1
#if defined(PTRACE) || !defined(_KERNEL)
a109 3
#else
26	EXCL		ktrace
#endif
@


1.157
log
@Make PTRACE and COREDUMP optional.  Make the default (status quo) by putting
them in conf/std.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.156 2006/07/31 16:32:51 martin Exp $
d108 1
a108 1
#ifdef PTRACE
@


1.156
log
@Step 1 to make filehandles completely opaque to userland
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.155 2006/07/13 12:00:25 martin Exp $
d108 1
d111 3
@


1.155
log
@Fix alignement problems for fhandle_t, exposed by gcc4.1.

While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.154 2006/06/26 21:23:58 mrg Exp $
d613 2
a614 2
298	STD		{ int sys_fhopen(const fhandle_t *fhp, int flags); }
299	COMPAT_30	{ int sys_fhstat(const fhandle_t *fhp, \
d616 1
a616 1
300	COMPAT_20	{ int sys_fhstatfs(const fhandle_t *fhp, \
d715 1
a715 1
359	STD		{ int sys_fhstatvfs1(const fhandle_t *fhp, \
d788 2
a789 2
392	STD		{ int sys___fhstat30(const fhandle_t *fhp, \
			    struct stat *sb); }
d792 8
a799 1
395	STD		{ int sys___getfh30(const char *fname, fhandle_t *fhp, size_t *fh_size); }
@


1.154
log
@version the socket(2) syscall.  for compat30 socket, we use
EPROTONOSUPPORT instead of EAFNOSUPPORT.

from pavel@@ with a little bit of clean up from myself.

XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.153 2006/05/29 09:57:55 drochner Exp $
d326 2
a327 1
161	STD		{ int sys_getfh(const char *fname, fhandle_t *fhp); }
d792 1
@


1.153
log
@Extend "struct ntptimeval" for the needs of "timecounters".
Allocate a new syscall for ntp_gettime() and set up COMPAT_30 for
the old one.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.152 2006/05/04 17:48:56 christos Exp $
d222 1
a222 1
97	STD		{ int sys_socket(int domain, int type, int protocol); }
d790 1
@


1.153.2.1
log
@Merge from HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.155 2006/07/13 12:00:25 martin Exp $
d222 1
a222 1
97	COMPAT_30	{ int sys_socket(int domain, int type, int protocol); }
d326 1
a326 2
161	COMPAT_30	{ int sys_getfh(const char *fname, \
			    struct compat_30_fhandle *fhp); }
a789 2
394	STD		{ int sys___socket30(int domain, int type, int protocol); }
395	STD		{ int sys___getfh30(const char *fname, fhandle_t *fhp, size_t *fh_size); }
@


1.152
log
@fhstat needs to be versioned too (for ino_t). Pointed out by Izumi Tsutsui
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.151 2006/02/24 19:20:20 drochner Exp $
d363 1
a363 1
175	STD		{ int sys_ntp_gettime(struct ntptimeval *ntvp); }
d789 1
@


1.152.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.153 2006/05/29 09:57:55 drochner Exp $
d363 1
a363 1
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
a788 1
393	STD		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
@


1.151
log
@constify the __sysctl() kernel side
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.150 2005/11/29 22:52:02 yamt Exp $
d574 3
a576 3
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat30 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat30 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat30 *ub); }
d613 2
a614 2
299	STD		{ int sys_fhstat(const fhandle_t *fhp, \
			    struct stat *sb); }
d787 2
@


1.151.6.1
log
@Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
@
text
@d1 1
a1 1
	$NetBSD$
d574 3
a576 3
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d613 2
a614 2
299	COMPAT_30	{ int sys_fhstat(const fhandle_t *fhp, \
			    struct stat13 *sb); }
a786 2
392	STD		{ int sys___fhstat30(const fhandle_t *fhp, \
			    struct stat *sb); }
@


1.151.2.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.151 2006/02/24 19:20:20 drochner Exp $
d574 3
a576 3
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d613 2
a614 2
299	COMPAT_30	{ int sys_fhstat(const fhandle_t *fhp, \
			    struct stat13 *sb); }
a786 2
392	STD		{ int sys___fhstat30(const fhandle_t *fhp, \
			    struct stat *sb); }
@


1.151.2.2
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.151.2.1 2006/05/24 10:58:41 yamt Exp $
d363 1
a363 1
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
a788 1
393	STD		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
@


1.151.2.3
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.151.2.2 2006/06/26 12:52:57 yamt Exp $
d222 1
a222 1
97	COMPAT_30	{ int sys_socket(int domain, int type, int protocol); }
d326 1
a326 2
161	COMPAT_30	{ int sys_getfh(const char *fname, \
			    struct compat_30_fhandle *fhp); }
d612 2
a613 2
298	COMPAT_30	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d615 1
a615 1
300	COMPAT_20	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d714 1
a714 1
359	COMPAT_30	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d787 2
a788 2
392	COMPAT_30	{ int sys___fhstat30(const struct compat_30_fhandle \
			    *fhp, struct stat *sb); }
a789 9
394	STD		{ int sys___socket30(int domain, int type, int protocol); }
395	STD		{ int sys___getfh30(const char *fname, void *fhp, \
			    size_t *fh_size); }
396	STD		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
			    int flags); }
397	STD		{ int sys___fhstatvfs140(const void *fhp, \
			    size_t fh_size, struct statvfs *buf, int flags); }
398	STD		{ int sys___fhstat40(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
@


1.151.4.1
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.152 2006/05/04 17:48:56 christos Exp $
d574 3
a576 3
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d613 2
a614 2
299	COMPAT_30	{ int sys_fhstat(const fhandle_t *fhp, \
			    struct stat13 *sb); }
a786 2
392	STD		{ int sys___fhstat30(const fhandle_t *fhp, \
			    struct stat *sb); }
@


1.150
log
@merge yamt-readahead branch.
@
text
@d1 1
a1 1
	$NetBSD$
d414 2
a415 2
202	STD		{ int sys___sysctl(int *name, u_int namelen, \
			    void *old, size_t *oldlenp, void *new, \
@


1.150.4.1
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.159 2006/09/01 20:58:18 matt Exp $
d222 1
a222 1
97	COMPAT_30	{ int sys_socket(int domain, int type, int protocol); }
d326 1
a326 2
161	COMPAT_30	{ int sys_getfh(const char *fname, \
			    struct compat_30_fhandle *fhp); }
d363 1
a363 1
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d414 2
a415 2
202	STD		{ int sys___sysctl(const int *name, u_int namelen, \
			    void *old, size_t *oldlenp, const void *new, \
d574 3
a576 3
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d612 4
a615 4
298	COMPAT_30	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
			    struct stat13 *sb); }
300	COMPAT_20	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d714 1
a714 1
359	COMPAT_30	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
a786 12
392	COMPAT_30	{ int sys___fhstat30(const struct compat_30_fhandle \
			    *fhp, struct stat *sb); }
393	STD		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
394	STD		{ int sys___socket30(int domain, int type, int protocol); }
395	STD		{ int sys___getfh30(const char *fname, void *fhp, \
			    size_t *fh_size); }
396	STD		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
			    int flags); }
397	STD		{ int sys___fhstatvfs140(const void *fhp, \
			    size_t fh_size, struct statvfs *buf, int flags); }
398	STD		{ int sys___fhstat40(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
@


1.150.6.1
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.151 2006/02/24 19:20:20 drochner Exp $
d414 2
a415 2
202	STD		{ int sys___sysctl(const int *name, u_int namelen, \
			    void *old, size_t *oldlenp, const void *new, \
@


1.150.6.2
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.150.6.1 2006/04/22 11:39:59 simonb Exp $
d363 1
a363 1
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d574 3
a576 3
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d613 2
a614 2
299	COMPAT_30	{ int sys_fhstat(const fhandle_t *fhp, \
			    struct stat13 *sb); }
a786 3
392	STD		{ int sys___fhstat30(const fhandle_t *fhp, \
			    struct stat *sb); }
393	STD		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
@


1.150.2.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.150 2005/11/29 22:52:02 yamt Exp $
d414 2
a415 2
202	STD		{ int sys___sysctl(const int *name, u_int namelen, \
			    void *old, size_t *oldlenp, const void *new, \
@


1.149
log
@some of the extattr syscalls return ssize_t not int.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.148 2005/08/19 02:04:03 christos Exp $
d785 2
@


1.149.6.1
log
@add sys_posix_fadvise.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.149 2005/09/26 03:02:19 christos Exp $
a784 2
391	STD		{ int sys_posix_fadvise(int fd, off_t offset, \
			    size_t len, int advice); }
@


1.149.6.2
log
@change posix_fadvise prototype. (XSH/TC2/D6/68)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.149.6.1 2005/11/15 05:11:50 yamt Exp $
d786 1
a786 1
			    off_t len, int advice); }
@


1.148
log
@64 bit inode changes.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.147 2005/07/10 22:04:20 thorpej Exp $
d722 1
a722 1
362	STD		{ int sys_extattr_get_file(const char *path, \
d730 1
a730 1
365	STD		{ int sys_extattr_get_fd(int fd, \
d738 1
a738 1
368	STD		{ int sys_extattr_get_link(const char *path, \
d743 1
a743 1
370	STD		{ int sys_extattr_list_fd(int fd, \
d745 1
a745 1
371	STD		{ int sys_extattr_list_file(const char *path, \
d747 1
a747 1
372	STD		{ int sys_extattr_list_link(const char *path, \
@


1.147
log
@Add Linux-compatible {,fl}{get,set,list}xattr() system call interface
to the VFS extended attribute subsystem.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146 2005/05/29 21:07:49 christos Exp $
d565 1
a565 1
272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
d574 3
a576 3
278	STD		{ int sys___stat13(const char *path, struct stat *ub); }
279	STD		{ int sys___fstat13(int fd, struct stat *sb); }
280	STD		{ int sys___lstat13(const char *path, struct stat *ub); }
d781 4
@


1.146
log
@Argument for swapctl cannot be const, since it gets loaded with swap
statistics.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.145 2005/02/25 19:53:56 matt Exp $
d754 27
@


1.146.2.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146 2005/05/29 21:07:49 christos Exp $
d363 1
a363 1
175	COMPAT_30	{ int sys_ntp_gettime(struct ntptimeval30 *ntvp); }
d414 2
a415 2
202	STD		{ int sys___sysctl(const int *name, u_int namelen, \
			    void *old, size_t *oldlenp, const void *new, \
d565 1
a565 1
272	COMPAT_30	{ int sys_getdents(int fd, char *buf, size_t count); }
d574 3
a576 3
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d613 2
a614 2
299	COMPAT_30	{ int sys_fhstat(const fhandle_t *fhp, \
			    struct stat13 *sb); }
d722 1
a722 1
362	STD		{ ssize_t sys_extattr_get_file(const char *path, \
d730 1
a730 1
365	STD		{ ssize_t sys_extattr_get_fd(int fd, \
d738 1
a738 1
368	STD		{ ssize_t sys_extattr_get_link(const char *path, \
d743 1
a743 1
370	STD		{ ssize_t sys_extattr_list_fd(int fd, \
d745 1
a745 1
371	STD		{ ssize_t sys_extattr_list_file(const char *path, \
d747 1
a747 1
372	STD		{ ssize_t sys_extattr_list_link(const char *path, \
a753 36
375	STD		{ int sys_setxattr(const char *path, \
			    const char *name, void *value, size_t size, \
			    int flags); }
376	STD		{ int sys_lsetxattr(const char *path, \
			    const char *name, void *value, size_t size, \
			    int flags); }
377	STD		{ int sys_fsetxattr(int fd, \
			    const char *name, void *value, size_t size, \
			    int flags); }
378	STD		{ int sys_getxattr(const char *path, \
			    const char *name, void *value, size_t size); }
379	STD		{ int sys_lgetxattr(const char *path, \
			    const char *name, void *value, size_t size); }
380	STD		{ int sys_fgetxattr(int fd, \
			    const char *name, void *value, size_t size); }
381	STD		{ int sys_listxattr(const char *path, \
			    char *list, size_t size); }
382	STD		{ int sys_llistxattr(const char *path, \
			    char *list, size_t size); }
383	STD		{ int sys_flistxattr(int fd, \
			    char *list, size_t size); }
384	STD		{ int sys_removexattr(const char *path, \
			    const char *name); }
385	STD		{ int sys_lremovexattr(const char *path, \
			    const char *name); }
386	STD		{ int sys_fremovexattr(int fd, \
			    const char *name); }
387	STD		{ int sys___stat30(const char *path, struct stat *ub); }
388	STD		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD		{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD		{ int sys___getdents30(int fd, char *buf, size_t count); }
391	STD		{ int sys_posix_fadvise(int fd, off_t offset, \
			    off_t len, int advice); }
392	STD		{ int sys___fhstat30(const fhandle_t *fhp, \
			    struct stat *sb); }
393	STD		{ int sys___ntp_gettime30(struct ntptimeval *ntvp); }
@


1.146.2.2
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.1 2006/06/21 15:09:38 yamt Exp $
d222 1
a222 1
97	COMPAT_30	{ int sys_socket(int domain, int type, int protocol); }
d301 1
a301 1
			    int uid, void *arg); }
d326 1
a326 2
161	COMPAT_30	{ int sys_getfh(const char *fname, \
			    struct compat_30_fhandle *fhp); }
d612 2
a613 2
298	COMPAT_30	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d615 1
a615 1
300	COMPAT_20	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d714 1
a714 1
359	COMPAT_30	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d787 2
a788 2
392	COMPAT_30	{ int sys___fhstat30(const struct compat_30_fhandle \
			    *fhp, struct stat *sb); }
a789 9
394	STD		{ int sys___socket30(int domain, int type, int protocol); }
395	STD		{ int sys___getfh30(const char *fname, void *fhp, \
			    size_t *fh_size); }
396	STD		{ int sys___fhopen40(const void *fhp, size_t fh_size,\
			    int flags); }
397	STD		{ int sys___fhstatvfs140(const void *fhp, \
			    size_t fh_size, struct statvfs *buf, int flags); }
398	STD		{ int sys___fhstat40(const void *fhp, \
			    size_t fh_size, struct stat *sb); }
@


1.146.2.3
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.2 2006/12/30 20:50:06 yamt Exp $
d55 1
d75 1
a75 1
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d94 1
a94 1
20	STD MPSAFE	{ pid_t sys_getpid_with_ppid(void); } getpid
d101 1
a101 1
23	STD 		{ int sys_setuid(uid_t uid); }
d105 1
a105 1
24	STD MPSAFE	{ uid_t sys_getuid(void); }
d107 1
a107 1
25	STD MPSAFE	{ uid_t sys_geteuid(void); }
d127 1
a127 1
37	STD 		{ int sys_kill(int pid, int signum); }
d130 1
a130 1
39	STD MPSAFE	{ pid_t sys_getppid(void); }
d135 2
a136 2
43	STD MPSAFE	{ gid_t sys_getegid(void); }
44	STD MPSAFE	{ int sys_profil(caddr_t samples, size_t size, \
d144 1
a144 1
46	COMPAT_13 MPSAFE	{ int sys_sigaction(int signum, \
d148 1
a148 1
47	STD MPSAFE	{ gid_t sys_getgid_with_egid(void); } getgid
d150 1
a150 1
47	STD MPSAFE	{ gid_t sys_getgid(void); }
d152 1
a152 1
48	COMPAT_13 MPSAFE	{ int sys_sigprocmask(int how, \
d154 2
a155 2
49	STD MPSAFE	{ int sys___getlogin(char *namebuf, size_t namelen); }
50	STD	 	{ int sys___setlogin(const char *namebuf); }
d157 2
a158 2
52	COMPAT_13 MPSAFE	{ int sys_sigpending(void); } sigpending13
53	COMPAT_13 MPSAFE	{ int sys_sigaltstack( \
d196 1
a196 1
79	STD MPSAFE	{ int sys_getgroups(int gidsetsize, \
d200 2
a201 2
81	STD MPSAFE 	{ int sys_getpgrp(void); }
82	STD 		{ int sys_setpgid(int pid, int pgid); }
d205 1
a205 1
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
d221 1
a221 1
96	STD 		{ int sys_setpriority(int which, id_t who, int prio); }
d227 1
a227 1
100	STD MPSAFE	{ int sys_getpriority(int which, id_t who); }
d232 1
a232 1
103	COMPAT_13 MPSAFE	{ int sys_sigreturn(struct sigcontext13 *sigcntxp); } \
d240 1
a240 1
108	COMPAT_43 MPSAFE	{ int sys_sigvec(int signum, struct sigvec *nsv, \
d242 4
a245 4
109	COMPAT_43 MPSAFE	{ int sys_sigblock(int mask); } osigblock
110	COMPAT_43 MPSAFE	{ int sys_sigsetmask(int mask); } osigsetmask
111	COMPAT_13 MPSAFE	{ int sys_sigsuspend(int mask); } sigsuspend13
112	COMPAT_43 MPSAFE	{ int sys_sigstack(struct sigstack *nss, \
d299 1
a299 1
147	STD	 	{ int sys_setsid(void); }
d301 1
a301 1
			    int uid, caddr_t arg); }
d377 1
a377 1
182	STD 		{ int sys_setegid(gid_t egid); }
d423 1
a423 1
207	STD MPSAFE	{ pid_t sys_getpgid(pid_t pid); }
d468 1
a468 1
224	COMPAT_14 MPSAFE { int sys_msgctl(int msqid, int cmd, \
d470 2
a471 2
225	STD MPSAFE	{ int sys_msgget(key_t key, int msgflg); }
226	STD MPSAFE	{ int sys_msgsnd(int msqid, const void *msgp, \
d473 1
a473 1
227	STD MPSAFE	{ ssize_t sys_msgrcv(int msqid, void *msgp, \
d476 4
a479 4
224	EXCL 		compat_14_msgctl
225	EXCL 		msgget
226	EXCL 		msgsnd
227	EXCL 		msgrcv
d512 1
a512 1
240	STD MPSAFE	{ int sys_nanosleep(const struct timespec *rqtp, \
d517 1
a517 1
244	STD MPSAFE	{ int sys___sigtimedwait(const sigset_t *set, \
d531 4
a534 4
251	STD 		{ int sys__ksem_post(semid_t id); }
252	STD 		{ int sys__ksem_wait(semid_t id); }
253	STD 		{ int sys__ksem_trywait(semid_t id); }
254	STD 		{ int sys__ksem_getvalue(semid_t id, \
d578 1
a578 1
281	STD MPSAFE	{ int sys___sigaltstack14( \
d588 1
a588 1
286	STD MPSAFE	{ pid_t sys_getsid(pid_t pid); }
d602 1
a602 1
291	COMPAT_16 MPSAFE	{ int sys___sigaction14(int signum, \
d605 2
a606 2
292	STD MPSAFE	{ int sys___sigpending14(sigset_t *set); }
293	STD MPSAFE	{ int sys___sigprocmask14(int how, \
d609 2
a610 2
294	STD MPSAFE	{ int sys___sigsuspend14(const sigset_t *set); }
295	COMPAT_16 MPSAFE { int sys___sigreturn14(struct sigcontext *sigcntxp); }
d625 1
a625 1
302	STD MPSAFE	{ int sys___msgctl13(int msqid, int cmd, \
d631 1
a631 1
303	STD 		{ int sys___shmctl13(int shmid, int cmd, \
d637 2
a638 2
305	STD MPSAFE	{ int sys_issetugid(void); }
306	STD MPSAFE	{ int sys_utrace(const char *label, void *addr, \
d645 2
a646 2
311	STD MPSAFE	{ lwpid_t sys__lwp_self(void); }
312	STD MPSAFE	{ int sys__lwp_wait(lwpid_t wait_for, \
d648 11
a658 13
313	STD MPSAFE	{ int sys__lwp_suspend(lwpid_t target); }
314	STD MPSAFE	{ int sys__lwp_continue(lwpid_t target); }
315	STD MPSAFE	{ int sys__lwp_wakeup(lwpid_t target); }
316	STD MPSAFE	{ void *sys__lwp_getprivate(void); }
317	STD MPSAFE	{ void sys__lwp_setprivate(void *ptr); }
318	STD		{ int sys__lwp_kill(lwpid_t target, int signo); }
319	STD MPSAFE	{ int sys__lwp_detach(lwpid_t target); }
320	STD MPSAFE	{ int sys__lwp_park(const struct timespec *ts, \
				struct __ucontext *ucp, const void *hint); }
321	STD MPSAFE	{ int sys__lwp_unpark(lwpid_t target, const void *hint); }
322	STD MPSAFE	{ size_t sys__lwp_unpark_all(const lwpid_t *targets, \
				size_t ntargets, const void *hint); }
; Syscalls 323-339 reserved for LWP syscalls.
d666 13
a678 8
; Obsolete SA system calls.  Must remain until libc's major version is bumped.
330	STD MPSAFE	{ int sys_sa_register(void); }
331	STD MPSAFE	{ int sys_sa_stacks(void); }
332	STD MPSAFE	{ int sys_sa_enable(void); }
333	STD MPSAFE	{ int sys_sa_setconcurrency(void); }
334	STD MPSAFE	{ int sys_sa_yield(void); }
335	STD MPSAFE	{ int sys_sa_preempt(void); }
336	STD MPSAFE	{ int sys_sa_unblockyield(void); }
d682 1
a682 1
340	STD MPSAFE	{ int sys___sigaction_sigtramp(int signum, \
d701 1
a701 1
350	STD MPSAFE	{ int sys_sched_yield(void); }
@


1.146.2.4
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.3 2007/02/26 09:11:18 yamt Exp $
d40 1
d74 1
a74 1
7	STD 		{ int sys_wait4(int pid, int *status, int options, \
d97 1
a97 1
21	COMPAT_40	{ int sys_mount(const char *type, const char *path, \
d107 1
a107 1
26	STD		{ int sys_ptrace(int req, pid_t pid, void *addr, \
d135 1
a135 1
44	STD MPSAFE	{ int sys_profil(char *samples, size_t size, \
d137 1
d140 3
d176 1
a176 1
65	COMPAT_12	{ int sys_msync(void *addr, size_t len); }
d183 1
a183 1
71	COMPAT_43	{ int sys_mmap(void *addr, size_t len, int prot, \
d204 1
a204 1
84	COMPAT_43 	{ int sys_wait(void); } owait
d220 1
a220 1
96	STD MPSAFE	{ int sys_setpriority(int which, id_t who, int prio); }
d224 1
a224 1
99	COMPAT_43	{ int sys_accept(int s, void *name, \
d227 1
a227 1
101	COMPAT_43	{ int sys_send(int s, void *buf, int len, \
d229 1
a229 1
102	COMPAT_43	{ int sys_recv(int s, void *buf, int len, \
d248 1
a248 1
114	COMPAT_43	{ int sys_sendmsg(int s, void *msg, int flags); } \
d251 1
a251 1
116	STD MPSAFE	{ int sys_gettimeofday(struct timeval *tp, \
d253 1
a253 1
117	STD MPSAFE	{ int sys_getrusage(int who, struct rusage *rusage); }
d265 2
a266 2
125	COMPAT_43	{ int sys_recvfrom(int s, void *buf, size_t len, \
			    int flags, void *from, int *fromlenaddr); } \
d289 1
a289 1
141	COMPAT_43	{ int sys_getpeername(int fdes, void *asa, \
d293 1
a293 1
144	COMPAT_43 MPSAFE	{ int sys_getrlimit(int which, \
d300 1
a300 1
			    int uid, void *arg); }
d302 1
a302 1
150	COMPAT_43	{ int sys_getsockname(int fdec, void *asa, \
d338 1
a338 1
169	COMPAT_10 MPSAFE	{ int sys_semsys(int which, int a2, int a3, int a4, \
d454 1
a454 1
220	COMPAT_14 MPSAFE	{ int sys___semctl(int semid, int semnum, int cmd, \
d456 2
a457 2
221	STD MPSAFE	{ int sys_semget(key_t key, int nsems, int semflg); }
222	STD MPSAFE	{ int sys_semop(int semid, struct sembuf *sops, \
d459 1
a459 1
223	STD MPSAFE	{ int sys_semconfig(int flag); }
d493 1
a493 1
232	STD MPSAFE	{ int sys_clock_gettime(clockid_t clock_id, \
d497 1
a497 1
234	STD MPSAFE	{ int sys_clock_getres(clockid_t clock_id, \
d589 1
d592 3
d618 1
a618 1
301	STD MPSAFE	{ int sys_____semctl13(int semid, int semnum, int cmd, \
d639 2
a640 2
307	STD MPSAFE	{ int sys_getcontext(struct __ucontext *ucp); }
308	STD MPSAFE	{ int sys_setcontext(const struct __ucontext *ucp); }
d655 1
a655 2
				lwpid_t unpark, const void *hint, \
				const void *unparkhint); }
d657 1
a657 1
322	STD MPSAFE	{ ssize_t sys__lwp_unpark_all(const lwpid_t *targets, \
d684 1
a684 1
343	STD		{ int sys_rasctl(void *addr, size_t len, int op); }
a795 22

; Asynchronous I/O system calls
399	STD		{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
400	STD MPSAFE	{ int sys_aio_error(const struct aiocb *aiocbp); }
401	STD		{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD		{ int sys_aio_read(struct aiocb *aiocbp); }
403	STD MPSAFE	{ int sys_aio_return(struct aiocb *aiocbp); }
404	STD		{ int sys_aio_suspend(const struct aiocb *const *list, \
			    int nent, const struct timespec *timeout); }
405	STD		{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD		{ int sys_lio_listio(int mode, struct aiocb *const *list, \
			    int nent, struct sigevent *sig); }

407	UNIMPL
408	UNIMPL
409	UNIMPL

410	STD		{ int sys___mount50(const char *type, \
			    const char *path, int flags, void *data, \
			    size_t data_len); }
411	STD		{ void *sys_mremap(void *old_address, size_t old_size, \
			    void *new_address, size_t new_size, int flags); }
@


1.146.2.5
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.4 2007/09/03 14:41:11 yamt Exp $
d544 10
a553 22
257	STD		{ mqd_t sys_mq_open(const char * name, int oflag, \
			    mode_t mode, struct mq_attr *attr); }
258	STD		{ int sys_mq_close(mqd_t mqdes); }
259	STD		{ int sys_mq_unlink(const char *name); }
260	STD		{ int sys_mq_getattr(mqd_t mqdes, \
			    struct mq_attr *mqstat); }
261	STD		{ int sys_mq_setattr(mqd_t mqdes, \
			    const struct mq_attr *mqstat, \
			    struct mq_attr *omqstat); }
262	STD		{ int sys_mq_notify(mqd_t mqdes, \
			    const struct sigevent *notification); }
263	STD		{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
			    size_t msg_len, unsigned msg_prio); }
264	STD		{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
			    size_t msg_len, unsigned *msg_prio); }
265	STD		{ int sys_mq_timedsend(mqd_t mqdes, \
			    const char *msg_ptr, size_t msg_len, \
			    unsigned msg_prio, \
			    const struct timespec *abs_timeout); }
266	STD		{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
			    char *msg_ptr, size_t msg_len, unsigned *msg_prio, \
			    const struct timespec *abs_timeout); }
@


1.146.2.6
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.5 2007/10/27 11:35:37 yamt Exp $
d64 1
a64 2
0	INDIR		{ int sys_syscall(int code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
d403 1
a403 2
198	INDIR		{ quad_t sys___syscall(quad_t code, \
			    ... register_t args[SYS_MAXSYSARGS]); }
d663 4
a666 7
323	STD 		{ int sys__lwp_setname(lwpid_t target, \
				const char *name); }
324	STD 		{ int sys__lwp_getname(lwpid_t target, \
				char *name, size_t len); }
325	STD 		{ int sys__lwp_ctl(int features, \
				struct lwpctl **address); }
; Syscalls 326-339 reserved for LWP syscalls.
@


1.146.2.7
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.6 2007/11/15 11:44:53 yamt Exp $
d66 4
a69 4
1	STD MPSAFE	{ void sys_exit(int rval); }
2	STD MPSAFE	{ int sys_fork(void); }
3	STD MPSAFE	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE	{ ssize_t sys_write(int fd, const void *buf, \
d71 1
a71 1
5	STD MPSAFE	{ int sys_open(const char *path, \
d73 2
a74 2
6	STD MPSAFE	{ int sys_close(int fd); }
7	STD MPSAFE	{ int sys_wait4(int pid, int *status, int options, \
d76 3
a78 3
8	COMPAT_43 MPSAFE	{ int sys_creat(const char *path, mode_t mode); } ocreat
9	STD MPSAFE	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE	{ int sys_unlink(const char *path); }
d80 3
a82 3
12	STD MPSAFE	{ int sys_chdir(const char *path); }
13	STD MPSAFE	{ int sys_fchdir(int fd); }
14	STD MPSAFE	{ int sys_mknod(const char *path, mode_t mode, \
d84 2
a85 2
15	STD MPSAFE	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE	{ int sys_chown(const char *path, uid_t uid, \
d87 2
a88 2
17	STD MPSAFE	{ int sys_obreak(char *nsize); } break
18	COMPAT_20 MPSAFE	{ int sys_getfsstat(struct statfs12 *buf, \
d90 1
a90 1
19	COMPAT_43 MPSAFE	{ long sys_lseek(int fd, long offset, int whence); } \
d100 1
a100 1
23	STD MPSAFE	{ int sys_setuid(uid_t uid); }
d102 1
a102 1
24	STD MPSAFE	{ uid_t sys_getuid_with_euid(void); } getuid
d107 1
a107 1
26	STD MPSAFE	{ int sys_ptrace(int req, pid_t pid, void *addr, \
d109 1
a109 1
27	STD 		{ ssize_t sys_recvmsg(int s, struct msghdr *msg, \
d111 1
a111 1
28	STD 		{ ssize_t sys_sendmsg(int s, \
d113 1
a113 1
29	STD 		{ ssize_t sys_recvfrom(int s, void *buf, size_t len, \
d122 6
a127 6
33	STD MPSAFE	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE	{ void sys_sync(void); }
37	STD MPSAFE	{ int sys_kill(int pid, int signum); }
38	COMPAT_43 MPSAFE	{ int sys_stat(const char *path, struct stat43 *ub); } \
d130 1
a130 1
40	COMPAT_43 MPSAFE	{ int sys_lstat(const char *path, \
d132 2
a133 2
41	STD MPSAFE	{ int sys_dup(int fd); }
42	STD MPSAFE	{ int sys_pipe(void); }
d137 1
a137 1
45	STD MPSAFE	{ int sys_ktrace(const char *fname, int ops, \
d150 2
a151 2
50	STD MPSAFE 	{ int sys___setlogin(const char *namebuf); }
51	STD MPSAFE	{ int sys_acct(const char *path); }
d156 1
a156 1
54	STD MPSAFE	{ int sys_ioctl(int fd, \
d159 2
a160 2
56	STD MPSAFE	{ int sys_revoke(const char *path); }
57	STD MPSAFE	{ int sys_symlink(const char *path, \
d162 1
a162 1
58	STD MPSAFE	{ ssize_t sys_readlink(const char *path, char *buf, \
d164 1
a164 1
59	STD MPSAFE	{ int sys_execve(const char *path, \
d166 4
a169 4
60	STD MPSAFE	{ mode_t sys_umask(mode_t newmask); }
61	STD MPSAFE	{ int sys_chroot(const char *path); }
62	COMPAT_43 MPSAFE	{ int sys_fstat(int fd, struct stat43 *sb); } fstat43
63	COMPAT_43 MPSAFE	{ int sys_getkerninfo(int op, char *where, int *size, \
d171 2
a172 2
64	COMPAT_43 MPSAFE { int sys_getpagesize(void); } ogetpagesize
65	COMPAT_12 MPSAFE { int sys_msync(void *addr, size_t len); }
d174 1
a174 1
66	STD MPSAFE	{ int sys_vfork(void); }
d177 3
a179 3
69	STD MPSAFE	{ int sys_sbrk(intptr_t incr); }
70	STD MPSAFE	{ int sys_sstk(int incr); }
71	COMPAT_43 MPSAFE	{ int sys_mmap(void *addr, size_t len, int prot, \
d181 3
a183 3
72	STD MPSAFE	{ int sys_ovadvise(int anom); } vadvise
73	STD MPSAFE	{ int sys_munmap(void *addr, size_t len); }
74	STD MPSAFE	{ int sys_mprotect(void *addr, size_t len, \
d185 1
a185 1
75	STD MPSAFE	{ int sys_madvise(void *addr, size_t len, \
d189 1
a189 1
78	STD MPSAFE	{ int sys_mincore(void *addr, size_t len, \
d193 1
a193 1
80	STD MPSAFE	{ int sys_setgroups(int gidsetsize, \
d196 1
a196 1
82	STD MPSAFE	{ int sys_setpgid(int pid, int pgid); }
d200 2
a201 2
84	COMPAT_43 MPSAFE	{ int sys_wait(void); } owait
85	COMPAT_12 MPSAFE	{ int sys_swapon(const char *name); } oswapon
d204 1
a204 1
87	COMPAT_43 MPSAFE	{ int sys_gethostname(char *hostname, u_int len); } \
d206 1
a206 1
88	COMPAT_43 MPSAFE	{ int sys_sethostname(char *hostname, u_int len); } \
d208 2
a209 2
89	COMPAT_43 MPSAFE	{ int sys_getdtablesize(void); } ogetdtablesize
90	STD MPSAFE	{ int sys_dup2(int from, int to); }
d211 2
a212 2
92	STD MPSAFE	{ int sys_fcntl(int fd, int cmd, ... void *arg); }
93	STD MPSAFE	{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d215 1
a215 1
95	STD MPSAFE	{ int sys_fsync(int fd); }
d253 1
a253 1
120	STD MPSAFE	{ ssize_t sys_readv(int fd, \
d255 1
a255 1
121	STD MPSAFE	{ ssize_t sys_writev(int fd, \
d257 1
a257 1
122	STD MPSAFE	{ int sys_settimeofday(const struct timeval *tv, \
d259 2
a260 2
123	STD MPSAFE	{ int sys_fchown(int fd, uid_t uid, gid_t gid); }
124	STD MPSAFE	{ int sys_fchmod(int fd, mode_t mode); }
d264 4
a267 4
126	STD MPSAFE	{ int sys_setreuid(uid_t ruid, uid_t euid); }
127	STD MPSAFE	{ int sys_setregid(gid_t rgid, gid_t egid); }
128	STD MPSAFE	{ int sys_rename(const char *from, const char *to); }
129	COMPAT_43 MPSAFE	{ int sys_truncate(const char *path, long length); } \
d269 4
a272 4
130	COMPAT_43 MPSAFE	{ int sys_ftruncate(int fd, long length); } oftruncate
131	STD MPSAFE	{ int sys_flock(int fd, int how); }
132	STD MPSAFE	{ int sys_mkfifo(const char *path, mode_t mode); }
133	STD 		{ ssize_t sys_sendto(int s, const void *buf, \
d278 3
a280 3
136	STD MPSAFE	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE	{ int sys_rmdir(const char *path); }
138	STD MPSAFE	{ int sys_utimes(const char *path, \
d287 2
a288 2
142	COMPAT_43 MPSAFE	{ int32_t sys_gethostid(void); } ogethostid
143	COMPAT_43 MPSAFE	{ int sys_sethostid(int32_t hostid); } osethostid
d291 1
a291 1
145	COMPAT_43 MPSAFE	{ int sys_setrlimit(int which, \
d293 3
a295 3
146	COMPAT_43 MPSAFE	{ int sys_killpg(int pgid, int signum); } okillpg
147	STD MPSAFE 	{ int sys_setsid(void); }
148	STD MPSAFE	{ int sys_quotactl(const char *path, int cmd, \
d297 1
a297 1
149	COMPAT_43 MPSAFE	{ int sys_quota(void); } oquota
d314 1
a314 1
156	COMPAT_43 MPSAFE { int sys_getdirentries(int fd, char *buf, \
d316 1
a316 1
157	COMPAT_20 MPSAFE	{ int sys_statfs(const char *path, \
d318 1
a318 1
158	COMPAT_20 MPSAFE	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d321 1
a321 1
161	COMPAT_30 MPSAFE { int sys_getfh(const char *fname, \
d323 1
a323 1
162	COMPAT_09 MPSAFE { int sys_getdomainname(char *domainname, int len); } \
d325 1
a325 1
163	COMPAT_09 MPSAFE { int sys_setdomainname(char *domainname, int len); } \
d327 1
a327 1
164	COMPAT_09 MPSAFE	{ int sys_uname(struct outsname *name); } ouname
d341 1
a341 1
170	COMPAT_10 MPSAFE	{ int sys_msgsys(int which, int a2, int a3, int a4, \
d348 1
a348 1
171	COMPAT_10 MPSAFE	{ int sys_shmsys(int which, int a2, int a3, int a4); } \
d354 1
a354 1
173	STD MPSAFE	{ ssize_t sys_pread(int fd, void *buf, \
d356 1
a356 1
174	STD MPSAFE	{ ssize_t sys_pwrite(int fd, const void *buf, \
d371 3
a373 3
181	STD MPSAFE	{ int sys_setgid(gid_t gid); }
182	STD MPSAFE	{ int sys_setegid(gid_t egid); }
183	STD MPSAFE	{ int sys_seteuid(uid_t euid); }
d388 1
a388 1
188	COMPAT_12 MPSAFE	{ int sys_stat(const char *path, struct stat12 *ub); } \
d390 2
a391 2
189	COMPAT_12 MPSAFE	{ int sys_fstat(int fd, struct stat12 *sb); } fstat12
190	COMPAT_12 MPSAFE	{ int sys_lstat(const char *path, \
d393 2
a394 2
191	STD MPSAFE	{ long sys_pathconf(const char *path, int name); }
192	STD MPSAFE	{ long sys_fpathconf(int fd, int name); }
d396 1
a396 1
194	STD MPSAFE	{ int sys_getrlimit(int which, \
d398 1
a398 1
195	STD MPSAFE	{ int sys_setrlimit(int which, \
d400 1
a400 1
196	COMPAT_12 MPSAFE	{ int sys_getdirentries(int fd, char *buf, \
d402 1
a402 1
197	STD MPSAFE	{ void *sys_mmap(void *addr, size_t len, int prot, \
d406 1
a406 1
199	STD MPSAFE	{ off_t sys_lseek(int fd, int pad, off_t offset, \
d408 1
a408 1
200	STD MPSAFE	{ int sys_truncate(const char *path, int pad, \
d410 2
a411 2
201	STD MPSAFE	{ int sys_ftruncate(int fd, int pad, off_t length); }
202	STD MPSAFE	{ int sys___sysctl(const int *name, u_int namelen, \
d414 4
a417 4
203	STD MPSAFE	{ int sys_mlock(const void *addr, size_t len); }
204	STD MPSAFE	{ int sys_munlock(const void *addr, size_t len); }
205	STD MPSAFE	{ int sys_undelete(const char *path); }
206	STD MPSAFE	{ int sys_futimes(int fd, \
d421 1
a421 1
209	STD MPSAFE	{ int sys_poll(struct pollfd *fds, u_int nfds, \
d478 1
a478 1
228	STD MPSAFE	{ void *sys_shmat(int shmid, const void *shmaddr, \
d480 1
a480 1
229	COMPAT_14 MPSAFE { int sys_shmctl(int shmid, int cmd, \
d482 2
a483 2
230	STD MPSAFE	{ int sys_shmdt(const void *shmaddr); }
231	STD MPSAFE	{ int sys_shmget(key_t key, size_t size, int shmflg); }
d492 1
a492 1
233	STD MPSAFE	{ int sys_clock_settime(clockid_t clock_id, \
d510 3
a512 3
241	STD MPSAFE	{ int sys_fdatasync(int fd); }
242	STD MPSAFE	{ int sys_mlockall(int flags); }
243	STD MPSAFE	{ int sys_munlockall(void); }
d517 4
a520 1
246	STD MPSAFE	{ int sys_modctl(int cmd, void *arg); }
d522 2
a523 2
247	STD MPSAFE	{ int sys__ksem_init(unsigned int value, semid_t *idp); }
248	STD MPSAFE	{ int sys__ksem_open(const char *name, int oflag, \
d525 6
a530 6
249	STD MPSAFE	{ int sys__ksem_unlink(const char *name); }
250	STD MPSAFE	{ int sys__ksem_close(semid_t id); }
251	STD MPSAFE	{ int sys__ksem_post(semid_t id); }
252	STD MPSAFE	{ int sys__ksem_wait(semid_t id); }
253	STD MPSAFE	{ int sys__ksem_trywait(semid_t id); }
254	STD MPSAFE	{ int sys__ksem_getvalue(semid_t id, \
d532 1
a532 1
255	STD MPSAFE	{ int sys__ksem_destroy(semid_t id); }
d546 1
a546 1
257	STD MPSAFE	{ mqd_t sys_mq_open(const char * name, int oflag, \
d548 3
a550 3
258	STD MPSAFE	{ int sys_mq_close(mqd_t mqdes); }
259	STD MPSAFE	{ int sys_mq_unlink(const char *name); }
260	STD MPSAFE	{ int sys_mq_getattr(mqd_t mqdes, \
d552 1
a552 1
261	STD MPSAFE	{ int sys_mq_setattr(mqd_t mqdes, \
d555 1
a555 1
262	STD MPSAFE	{ int sys_mq_notify(mqd_t mqdes, \
d557 1
a557 1
263	STD MPSAFE	{ int sys_mq_send(mqd_t mqdes, const char *msg_ptr, \
d559 1
a559 1
264	STD MPSAFE	{ ssize_t sys_mq_receive(mqd_t mqdes, char *msg_ptr, \
d561 1
a561 1
265	STD MPSAFE	{ int sys_mq_timedsend(mqd_t mqdes, \
d565 1
a565 1
266	STD MPSAFE	{ ssize_t sys_mq_timedreceive(mqd_t mqdes, \
d571 1
a571 1
270	STD MPSAFE	{ int sys___posix_rename(const char *from, \
d573 3
a575 3
271	STD MPSAFE	{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30 MPSAFE	{ int sys_getdents(int fd, char *buf, size_t count); }
273	STD MPSAFE	{ int sys_minherit(void *addr, size_t len, \
d577 2
a578 2
274	STD MPSAFE	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE	{ int sys_lchown(const char *path, uid_t uid, \
d580 1
a580 1
276	STD MPSAFE	{ int sys_lutimes(const char *path, \
d582 4
a585 4
277	STD MPSAFE	{ int sys___msync13(void *addr, size_t len, int flags); }
278	COMPAT_30 MPSAFE	{ int sys___stat13(const char *path, struct stat13 *ub); }
279	COMPAT_30 MPSAFE	{ int sys___fstat13(int fd, struct stat13 *sb); }
280	COMPAT_30 MPSAFE	{ int sys___lstat13(const char *path, struct stat13 *ub); }
d589 2
a590 2
282	STD MPSAFE	{ int sys___vfork14(void); }
283	STD MPSAFE	{ int sys___posix_chown(const char *path, uid_t uid, \
d592 1
a592 1
284	STD MPSAFE	{ int sys___posix_fchown(int fd, uid_t uid, \
d594 1
a594 1
285	STD MPSAFE	{ int sys___posix_lchown(const char *path, uid_t uid, \
d597 2
a598 2
287	STD MPSAFE	{ pid_t sys___clone(int flags, void *stack); }
288	STD MPSAFE	{ int sys_fktrace(int fd, int ops, \
d600 1
a600 1
289	STD MPSAFE	{ ssize_t sys_preadv(int fd, \
d603 1
a603 1
290	STD MPSAFE	{ ssize_t sys_pwritev(int fd, \
d615 4
a618 4
296	STD MPSAFE	{ int sys___getcwd(char *bufp, size_t length); }
297	STD MPSAFE	{ int sys_fchroot(int fd); }
298	COMPAT_30 MPSAFE	{ int sys_fhopen(const struct compat_30_fhandle *fhp, int flags); }
299	COMPAT_30 MPSAFE	{ int sys_fhstat(const struct compat_30_fhandle *fhp, \
d620 1
a620 1
300	COMPAT_20 MPSAFE	{ int sys_fhstatfs(const struct compat_30_fhandle *fhp, \
d635 1
a635 1
303	STD MPSAFE	{ int sys___shmctl13(int shmid, int cmd, \
d640 1
a640 1
304	STD MPSAFE	{ int sys_lchflags(const char *path, u_long flags); }
d646 1
a646 1
309	STD MPSAFE	{ int sys__lwp_create(const struct __ucontext *ucp, \
d648 1
a648 1
310	STD MPSAFE	{ int sys__lwp_exit(void); }
d657 1
a657 1
318	STD MPSAFE	{ int sys__lwp_kill(lwpid_t target, int signo); }
d665 1
a665 1
323	STD MPSAFE	{ int sys__lwp_setname(lwpid_t target, \
d667 1
a667 1
324	STD MPSAFE	{ int sys__lwp_getname(lwpid_t target, \
d669 1
a669 1
325	STD MPSAFE	{ int sys__lwp_ctl(int features, \
d693 1
a693 1
343	STD MPSAFE	{ int sys_rasctl(void *addr, size_t len, int op); }
d699 7
a705 10

; Scheduling system calls.
346	STD MPSAFE	{ int sys__sched_setparam(pid_t pid, lwpid_t lid, \
			    const struct sched_param *params); }
347	STD MPSAFE	{ int sys__sched_getparam(pid_t pid, lwpid_t lid, \
			    struct sched_param *params); }
348	STD MPSAFE	{ int sys__sched_setaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, void *cpuset); }
349	STD MPSAFE	{ int sys__sched_getaffinity(pid_t pid, lwpid_t lid, \
			    size_t size, void *cpuset); }
d707 3
a709 3
351	UNIMPL
352	UNIMPL
353	UNIMPL
d711 1
a711 1
354	STD MPSAFE	{ int sys_fsync_range(int fd, int flags, off_t start, \
d713 2
a714 2
355	STD MPSAFE	{ int sys_uuidgen(struct uuid *store, int count); }
356	STD MPSAFE	{ int sys_getvfsstat(struct statvfs *buf, \
d716 1
a716 1
357	STD MPSAFE	{ int sys_statvfs1(const char *path, \
d718 1
a718 1
358	STD MPSAFE	{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
d720 1
a720 1
359	COMPAT_30 MPSAFE	{ int sys_fhstatvfs1(const struct compat_30_fhandle *fhp, \
d755 1
a755 1
373	STD MPSAFE	{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
d758 1
a758 1
374	STD MPSAFE	{ int sys_pollts(struct pollfd *fds, u_int nfds, \
d787 5
a791 5
387	STD MPSAFE	{ int sys___stat30(const char *path, struct stat *ub); }
388	STD MPSAFE	{ int sys___fstat30(int fd, struct stat *sb); }
389	STD MPSAFE	{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD MPSAFE	{ int sys___getdents30(int fd, char *buf, size_t count); }
391	STD MPSAFE	{ int sys_posix_fadvise(int fd, off_t offset, \
d793 1
a793 1
392	COMPAT_30 MPSAFE	{ int sys___fhstat30(const struct compat_30_fhandle \
d797 1
a797 1
395	STD MPSAFE	{ int sys___getfh30(const char *fname, void *fhp, \
d799 1
a799 1
396	STD MPSAFE	{ int sys___fhopen40(const void *fhp, size_t fh_size,\
d801 1
a801 1
397	STD MPSAFE	{ int sys___fhstatvfs140(const void *fhp, \
d803 1
a803 1
398	STD MPSAFE	{ int sys___fhstat40(const void *fhp, \
d807 1
a807 1
399	STD MPSAFE	{ int sys_aio_cancel(int fildes, struct aiocb *aiocbp); }
d809 2
a810 2
401	STD MPSAFE	{ int sys_aio_fsync(int op, struct aiocb *aiocbp); }
402	STD MPSAFE	{ int sys_aio_read(struct aiocb *aiocbp); }
d812 1
a812 1
404	STD MPSAFE	{ int sys_aio_suspend(const struct aiocb *const *list, \
d814 2
a815 2
405	STD MPSAFE	{ int sys_aio_write(struct aiocb *aiocbp); }
406	STD MPSAFE	{ int sys_lio_listio(int mode, struct aiocb *const *list, \
d825 1
a825 1
411	STD MPSAFE	{ void *sys_mremap(void *old_address, size_t old_size, \
a826 8

; Processor-sets system calls
412	STD MPSAFE	{ int sys_pset_create(psetid_t *psid); }
413	STD MPSAFE	{ int sys_pset_destroy(psetid_t psid); }
414	STD MPSAFE	{ int sys_pset_assign(psetid_t psid, cpuid_t cpuid, \
			    psetid_t *opsid); }
415	STD MPSAFE	{ int sys__pset_bind(idtype_t idtype, id_t first_id, \
			    id_t second_id, psetid_t psid, psetid_t *opsid); }
@


1.146.2.8
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.7 2008/01/21 09:46:26 yamt Exp $
d722 1
a722 1
360	STD MPSAFE	{ int sys_extattrctl(const char *path, int cmd, \
d725 1
a725 1
361	STD MPSAFE	{ int sys_extattr_set_file(const char *path, \
d728 1
a728 1
362	STD MPSAFE	{ ssize_t sys_extattr_get_file(const char *path, \
d731 1
a731 1
363	STD MPSAFE	{ int sys_extattr_delete_file(const char *path, \
d733 1
a733 1
364	STD MPSAFE	{ int sys_extattr_set_fd(int fd, \
d736 1
a736 1
365	STD MPSAFE	{ ssize_t sys_extattr_get_fd(int fd, \
d739 1
a739 1
366	STD MPSAFE	{ int sys_extattr_delete_fd(int fd, \
d741 1
a741 1
367	STD MPSAFE	{ int sys_extattr_set_link(const char *path, \
d744 1
a744 1
368	STD MPSAFE	{ ssize_t sys_extattr_get_link(const char *path, \
d747 1
a747 1
369	STD MPSAFE	{ int sys_extattr_delete_link(const char *path, \
d749 1
a749 1
370	STD MPSAFE	{ ssize_t sys_extattr_list_fd(int fd, \
d751 1
a751 1
371	STD MPSAFE	{ ssize_t sys_extattr_list_file(const char *path, \
d753 1
a753 1
372	STD MPSAFE	{ ssize_t sys_extattr_list_link(const char *path, \
d760 1
a760 1
375	STD MPSAFE	{ int sys_setxattr(const char *path, \
d763 1
a763 1
376	STD MPSAFE	{ int sys_lsetxattr(const char *path, \
d766 1
a766 1
377	STD MPSAFE	{ int sys_fsetxattr(int fd, \
d769 1
a769 1
378	STD MPSAFE	{ int sys_getxattr(const char *path, \
d771 1
a771 1
379	STD MPSAFE	{ int sys_lgetxattr(const char *path, \
d773 1
a773 1
380	STD MPSAFE	{ int sys_fgetxattr(int fd, \
d775 1
a775 1
381	STD MPSAFE	{ int sys_listxattr(const char *path, \
d777 1
a777 1
382	STD MPSAFE	{ int sys_llistxattr(const char *path, \
d779 1
a779 1
383	STD MPSAFE	{ int sys_flistxattr(int fd, \
d781 1
a781 1
384	STD MPSAFE	{ int sys_removexattr(const char *path, \
d783 1
a783 1
385	STD MPSAFE	{ int sys_lremovexattr(const char *path, \
d785 1
a785 1
386	STD MPSAFE	{ int sys_fremovexattr(int fd, \
d791 1
a791 1
391	COMPAT_40 MPSAFE	{ int sys_posix_fadvise(int fd, off_t offset, \
a834 2
416	STD MPSAFE	{ int sys___posix_fadvise50(int fd, int pad, \
			    off_t offset, off_t len, int advice); }
@


1.146.2.9
log
@mark sys_nfssvc MPSAFE.
@
text
@d1 1
a1 1
	$NetBSD$
d310 1
a310 1
155	STD MPSAFE	{ int sys_nfssvc(int flag, void *argp); }
@


1.146.2.10
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.9 2008/02/11 14:44:03 yamt Exp $
d699 1
a699 1
			    int policy, const struct sched_param *params); }
d701 1
a701 1
			    int *policy, struct sched_param *params); }
@


1.146.2.11
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.10 2008/02/11 14:59:58 yamt Exp $
d10 1
a10 1
;	type	one of STD, OBSOL, UNIMPL, IGNORED, NODEF, NOARGS, or one of
a18 1
;	IGNORED	syscall is a null op, but always succeeds
d97 1
a97 1
21	COMPAT_40 MPSAFE	{ int sys_mount(const char *type, const char *path, \
d99 1
a99 1
22	STD MPSAFE	{ int sys_unmount(const char *path, int flags); }
d791 2
a792 1
391	IGNORED		old posix_fadvise
d822 1
a822 1
410	STD MPSAFE	{ int sys___mount50(const char *type, \
@


1.146.2.12
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.11 2008/02/27 08:36:56 yamt Exp $
d13 2
a14 4
; Optional fields are specified after the type field
; (NOTE! they must be specified in this order):
;     MPSAFE:	the system call is MP-safe.
;     RUMP:	the system call can be called directly from rumps
d69 2
a70 2
3	STD MPSAFE RUMP	{ ssize_t sys_read(int fd, void *buf, size_t nbyte); }
4	STD MPSAFE RUMP	{ ssize_t sys_write(int fd, const void *buf, \
d72 1
a72 1
5	STD MPSAFE RUMP	{ int sys_open(const char *path, \
d74 1
a74 1
6	STD MPSAFE RUMP	{ int sys_close(int fd); }
d78 2
a79 2
9	STD MPSAFE RUMP	{ int sys_link(const char *path, const char *link); }
10	STD MPSAFE RUMP	{ int sys_unlink(const char *path); }
d81 3
a83 3
12	STD MPSAFE RUMP	{ int sys_chdir(const char *path); }
13	STD MPSAFE RUMP	{ int sys_fchdir(int fd); }
14	STD MPSAFE RUMP	{ int sys_mknod(const char *path, mode_t mode, \
d85 2
a86 2
15	STD MPSAFE RUMP	{ int sys_chmod(const char *path, mode_t mode); }
16	STD MPSAFE RUMP	{ int sys_chown(const char *path, uid_t uid, \
d100 1
a100 1
22	STD MPSAFE RUMP	{ int sys_unmount(const char *path, int flags); }
d123 4
a126 4
33	STD MPSAFE RUMP	{ int sys_access(const char *path, int flags); }
34	STD MPSAFE RUMP	{ int sys_chflags(const char *path, u_long flags); }
35	STD MPSAFE RUMP	{ int sys_fchflags(int fd, u_long flags); }
36	STD MPSAFE RUMP	{ void sys_sync(void); }
d161 1
a161 1
57	STD MPSAFE RUMP	{ int sys_symlink(const char *path, \
d163 1
a163 1
58	STD MPSAFE RUMP	{ ssize_t sys_readlink(const char *path, char *buf, \
d267 1
a267 1
128	STD MPSAFE RUMP	{ int sys_rename(const char *from, const char *to); }
d279 2
a280 2
136	STD MPSAFE RUMP	{ int sys_mkdir(const char *path, mode_t mode); }
137	STD MPSAFE RUMP	{ int sys_rmdir(const char *path); }
d409 1
a409 1
200	STD MPSAFE RUMP	{ int sys_truncate(const char *path, int pad, \
d575 2
a576 2
274	STD MPSAFE RUMP	{ int sys_lchmod(const char *path, mode_t mode); }
275	STD MPSAFE RUMP	{ int sys_lchown(const char *path, uid_t uid, \
@


1.146.2.13
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.146.2.12 2008/03/17 09:15:34 yamt Exp $
d694 2
a695 2
344	STD 		{ int sys_kqueue(void); }
345	STD 		{ int sys_kevent(int fd, \
@


1.145
log
@Add pselect and pollts
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.144 2005/02/19 22:15:51 matt Exp $
d564 1
a564 1
271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
@


1.144
log
@Add placeholders for sys_pselect and sys_pollts
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.143 2005/01/02 16:08:29 thorpej Exp $
d749 5
a753 2
373	UNIMPL		sys_pselect
374	UNIMPL		sys_pollts
@


1.143
log
@Add the system call and VFS infrastructure for file system extended
attributes.

From FreeBSD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.142 2004/05/10 22:28:24 kleink Exp $
d749 2
@


1.143.2.1
log
@sync with -current
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.145 2005/02/25 19:53:56 matt Exp $
a748 5
373	STD		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
374	STD		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
@


1.143.4.1
log
@sync with head.  xen and whitespace.  xen part is not finished.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.143 2005/01/02 16:08:29 thorpej Exp $
a748 5
373	STD		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
374	STD		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
@


1.142
log
@POSIX-2001: Change readlink(2)'s return type from int to ssize_t.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.141 2004/04/27 01:12:44 kleink Exp $
d716 33
@


1.141
log
@POSIX-2001: Add restrict keywords to gettimeofday(2) and setitimer(2);
further deprecate struct timezone usage by changing `tzp' argument to
gettimeofday() to void *; align utimes(2) declaration by changing `times`
argument from struct timeval * to struct timeval[2].  From Murray
Armfield in PR standards/25331.

In due curse, reflect these changes in futimes(2), lutimes(2), and
settimeofday(2).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.140 2004/04/25 22:18:08 kleink Exp $
d167 1
a167 1
58	STD		{ int sys_readlink(const char *path, char *buf, \
@


1.140
log
@POSIX-2001: Change the `who' argument to [gs]etpriority(2) from int
to id_t.  Partially addressing PR standards/25216 from Murray Armfield.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.139 2004/04/21 01:05:38 christos Exp $
d253 1
a253 1
			    struct timezone *tzp); }
d263 1
a263 1
			    const struct timezone *tzp); }
@


1.139
log
@Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.138 2004/03/26 15:18:54 drochner Exp $
d221 1
a221 1
96	STD		{ int sys_setpriority(int which, int who, int prio); }
d227 1
a227 1
100	STD		{ int sys_getpriority(int which, int who); }
@


1.138
log
@all ports define __HAVE_SIGINFO now, so remove the CPP conditionals
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.137 2004/03/14 00:45:21 cl Exp $
d89 2
a90 2
18	STD		{ int sys_getfsstat(struct statfs *buf, long bufsize, \
			    int flags); }
d321 3
a323 3
157	STD		{ int sys_statfs(const char *path, \
			    struct statfs *buf); }
158	STD		{ int sys_fstatfs(int fd, struct statfs *buf); }
d615 2
a616 2
300	STD		{ int sys_fhstatfs(const fhandle_t *fhp, \
			    struct statfs *buf); }
d708 8
@


1.137
log
@g/c sys_sa_unblockyield which has been unused since 2004/01/02
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.136 2004/01/29 02:00:03 tsarna Exp $
a608 1
#if defined(__HAVE_SIGINFO)
a609 3
#else
295	STD		{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
#endif
@


1.136
log
@uuidgen(2) syscall.  Originally from FreeBSD, ported by John Franklin in
PR#23470, with minor updates by me. This is only the syscall support
from that PR, for now.

Changes: port over fix from FreeBSD for multicast address generation.
Changed bcopy to memcpy.  For now, #ifdef notyet the portions of
kern_uuid.c that are meant to be used by (currently nonexistent) other
things in the kernel.  Added syscall to COMPAT_FREEBSD as well, though
that's currently not useful, as any program new enough to use this call
also uses other syscalls we don't (yet) emulate.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.135 2004/01/02 18:52:17 cl Exp $
d678 1
a678 2
336	STD		{ int sys_sa_unblockyield(int sa_id, \
				void *up_preempted, stack_t *up_stack); }
@


1.135
log
@kernel part of no-syscall upcall stack return:  libpthread registers
an offset between ss_sp and struct sa_stackinfo_t (located in struct
__pthread_st) when calling sa_register.  The kernel increments the
sast_gen counter in struct sastack when an upcall stack is used.
libpthread increments the sasi_stackgen counter in struct
sa_stackinfo_t when an upcall stack is freed.  The kernel compares the
two counters to decide if a stack is free or in use.

- add struct sa_stackinfo_t with sasi_stackgen to count stack use in
  userland
- add sast_gen to struct sastack to count stack use in kernel
- add SA_FLAG_STACKINFO to enable the stackinfo_offset argument in the
  sa_register syscall
- add sa_stackinfo_offset to struct sadata for offset between ss_sp
  and struct sa_stackinfo_t
- add ssize_t stackinfo_offset argument to sa_register, initialize
  struct sadata's sa_stackinfo_offset from it if SA_FLAG_STACKINFO is
  set
- add sa_getstack, sa_getstack0, sa_stackused and sa_setstackfree
  functions to find/use/free upcall stacks and use these where
  appropriate
- don't record stack for upcall in sa_upcall0
- pass sau to sa_switchcall instead of l2 (l2 = curlwp in sa_switchcall)
- add sa_vp_blocker to struct sadata to pass recently blocked lwp to
  sa_switchcall
- delay finding a stack for blocked upcalls to sa_switchcall
- add sa_stacknext to struct sadata pointing to next most likely free
  upcall stack; also g/c sa_stackslist in struct sadata and sast_list
  in struct sastack
- add L_SA_WOKEN flag: LWP is on sa_woken queue
- add L_SA_RECYCLE flag: LWP should be recycled in sa_setwoken
- replace l_upcallstack with L_SA_WOKEN/L_SA_RECYCLE/L_SA_BLOCKING
  flags
- g/c now unused sast_blocker in struct sastack
- make sa_switchcall, sa_upcall0 and sa_upcall_getstate static in
  kern_sa.c
- call sa_upcall_userret only once in userret
- split sa_makeupcalls out of sa_upcall_userret and use to process
  the sa_upcalls queue
- on process exit: mark LWPs sleeping in saunblock interruptible; also
  there are no LWPs sleeping on l->l_upcallstack anymore; also clear
  sa_wokenq_head to prevent unblocked upcalls

additional changes:
- cleanup timerupcall sa_vp == curlwp check
- add check in sa_yield if we didn't block on our way here and we
  wouldn't any longer be the LWP on the VP
- invalidate sa_vp_ofaultaddr after resolving pagefault
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.134 2003/11/15 01:19:38 thorpej Exp $
d712 1
@


1.134
log
@Kernel portion of the fsync_range(2) system call.  Written by Bill
Studenmund, and contributed by Wasabi Systems, Inc.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.133 2003/09/30 20:36:10 christos Exp $
d671 2
a672 1
				sa_upcall_t *old, int flags); }
@


1.133
log
@#ifdef _LIBC the semid_t syscalls since we don't define semid_t in userland
except in the libc case.
XXX: Should we define __semid_t instead and make those visible from userland
again? Only ktrace and syscall() get affected.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.132 2003/09/26 23:08:24 matt Exp $
d708 3
@


1.132
log
@Constify __sigaction_sigtramp argument 'void * tramp'.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.131 2003/09/23 14:34:07 christos Exp $
d524 1
a524 1
#if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
@


1.131
log
@__sigaction14 should have been COMPAT_16 a while ago. GC it now.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.130 2003/09/16 13:46:25 cl Exp $
d688 1
a688 1
			    void *tramp, int vers); }
@


1.130
log
@fix SA/pthread pagefault failure:
- prevent BLOCKED upcalls on double page faults and during upcalls
- make libpthread handle blocked threads which hold locks
- prevent UNBLOCKED upcalls from overtaking their BLOCKED upcall
this adds a new syscall sa_unblockyield
see also http://mail-index.netbsd.org/tech-kern/2003/09/15/0020.html
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.129 2003/09/10 16:43:35 christos Exp $
d601 1
a601 1
291	STD		{ int sys___sigaction14(int signum, \
@


1.129
log
@we don't need sigreturn and sigcode glue if we are not compat_16 anymore.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.128 2003/03/18 18:08:49 christos Exp $
d677 2
d680 1
a680 1
; Syscalls 336-339 are reserved for other scheduler activation syscalls.
a681 1
336	UNIMPL
@


1.128
log
@_lwp_setprivate returns void
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.127 2003/02/15 20:54:39 jdolecek Exp $
d609 3
d613 1
@


1.128.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.142 2004/05/10 22:28:24 kleink Exp $
d89 2
a90 2
18	COMPAT_20	{ int sys_getfsstat(struct statfs12 *buf, \
			    long bufsize, int flags); }
d167 1
a167 1
58	STD		{ ssize_t sys_readlink(const char *path, char *buf, \
d221 1
a221 1
96	STD		{ int sys_setpriority(int which, id_t who, int prio); }
d227 1
a227 1
100	STD		{ int sys_getpriority(int which, id_t who); }
d253 1
a253 1
			    void *tzp); }
d263 1
a263 1
			    const void *tzp); }
d321 3
a323 3
157	COMPAT_20	{ int sys_statfs(const char *path, \
			    struct statfs12 *buf); }
158	COMPAT_20	{ int sys_fstatfs(int fd, struct statfs12 *buf); }
d524 1
a524 1
#if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
d601 1
a601 1
291	COMPAT_16	{ int sys___sigaction14(int signum, \
d609 1
a609 1
295	COMPAT_16	{ int sys___sigreturn14(struct sigcontext *sigcntxp); }
d615 2
a616 2
300	COMPAT_20	{ int sys_fhstatfs(const fhandle_t *fhp, \
			    struct statfs12 *buf); }
d667 1
a667 2
				sa_upcall_t *old, int flags, \
				ssize_t stackinfo_offset); }
a672 1
336	OBSOL		sys_sa_unblockyield
d674 1
a674 1
; Syscalls 337-339 are reserved for other scheduler activation syscalls.
d676 1
d683 1
a683 1
			    const void *tramp, int vers); }
a702 12

354	STD		{ int sys_fsync_range(int fd, int flags, off_t start, \
			    off_t length); }
355	STD		{ int sys_uuidgen(struct uuid *store, int count); }
356	STD		{ int sys_getvfsstat(struct statvfs *buf, \
			    size_t bufsize, int flags); }
357	STD		{ int sys_statvfs1(const char *path, \
			    struct statvfs *buf, int flags); }
358	STD		{ int sys_fstatvfs1(int fd, struct statvfs *buf, \
			    int flags); }
359	STD		{ int sys_fhstatvfs1(const fhandle_t *fhp, \
			    struct statvfs *buf, int flags); }
@


1.128.2.2
log
@Sync with HEAD.
@
text
@@


1.128.2.3
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.128.2.1 2004/08/03 10:52:55 skrll Exp $
@


1.128.2.4
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.128.2.3 2004/09/21 13:35:14 skrll Exp $
a715 33
360	STD		{ int sys_extattrctl(const char *path, int cmd, \
			    const char *filename, int attrnamespace, \
			    const char *attrname); }
361	STD		{ int sys_extattr_set_file(const char *path, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
362	STD		{ int sys_extattr_get_file(const char *path, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
363	STD		{ int sys_extattr_delete_file(const char *path, \
			    int attrnamespace, const char *attrname); }
364	STD		{ int sys_extattr_set_fd(int fd, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
365	STD		{ int sys_extattr_get_fd(int fd, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
366	STD		{ int sys_extattr_delete_fd(int fd, \
			    int attrnamespace, const char *attrname); }
367	STD		{ int sys_extattr_set_link(const char *path, \
			    int attrnamespace, const char *attrname, \
			    const void *data, size_t nbytes); }
368	STD		{ int sys_extattr_get_link(const char *path, \
			    int attrnamespace, const char *attrname, \
			    void *data, size_t nbytes); }
369	STD		{ int sys_extattr_delete_link(const char *path, \
			    int attrnamespace, const char *attrname); }
370	STD		{ int sys_extattr_list_fd(int fd, \
			    int attrnamespace, void *data, size_t nbytes); }
371	STD		{ int sys_extattr_list_file(const char *path, \
			    int attrnamespace, void *data, size_t nbytes); }
372	STD		{ int sys_extattr_list_link(const char *path, \
			    int attrnamespace, void *data, size_t nbytes); }
@


1.128.2.5
log
@Sync with HEAD.

Hi Perry!
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.128.2.4 2005/01/17 19:32:26 skrll Exp $
a748 5
373	STD		{ int sys_pselect(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, const struct timespec *ts, \
			    const sigset_t *mask); }
374	STD		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
			    const struct timespec *ts, const sigset_t *mask); }
@


1.128.2.6
log
@Sync with HEAD. Here we go again...
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.128.2.5 2005/03/04 16:52:01 skrll Exp $
d564 2
a565 2
271	STD		{ int sys_swapctl(int cmd, void *arg, int misc); }
272	COMPAT_30	{ int sys_getdents(int fd, char *buf, size_t count); }
d574 3
a576 3
278	COMPAT_30	{ int sys___stat13(const char *path, struct stat30 *ub); }
279	COMPAT_30	{ int sys___fstat13(int fd, struct stat30 *sb); }
280	COMPAT_30	{ int sys___lstat13(const char *path, struct stat30 *ub); }
d722 1
a722 1
362	STD		{ ssize_t sys_extattr_get_file(const char *path, \
d730 1
a730 1
365	STD		{ ssize_t sys_extattr_get_fd(int fd, \
d738 1
a738 1
368	STD		{ ssize_t sys_extattr_get_link(const char *path, \
d743 1
a743 1
370	STD		{ ssize_t sys_extattr_list_fd(int fd, \
d745 1
a745 1
371	STD		{ ssize_t sys_extattr_list_file(const char *path, \
d747 1
a747 1
372	STD		{ ssize_t sys_extattr_list_link(const char *path, \
a753 31
375	STD		{ int sys_setxattr(const char *path, \
			    const char *name, void *value, size_t size, \
			    int flags); }
376	STD		{ int sys_lsetxattr(const char *path, \
			    const char *name, void *value, size_t size, \
			    int flags); }
377	STD		{ int sys_fsetxattr(int fd, \
			    const char *name, void *value, size_t size, \
			    int flags); }
378	STD		{ int sys_getxattr(const char *path, \
			    const char *name, void *value, size_t size); }
379	STD		{ int sys_lgetxattr(const char *path, \
			    const char *name, void *value, size_t size); }
380	STD		{ int sys_fgetxattr(int fd, \
			    const char *name, void *value, size_t size); }
381	STD		{ int sys_listxattr(const char *path, \
			    char *list, size_t size); }
382	STD		{ int sys_llistxattr(const char *path, \
			    char *list, size_t size); }
383	STD		{ int sys_flistxattr(int fd, \
			    char *list, size_t size); }
384	STD		{ int sys_removexattr(const char *path, \
			    const char *name); }
385	STD		{ int sys_lremovexattr(const char *path, \
			    const char *name); }
386	STD		{ int sys_fremovexattr(int fd, \
			    const char *name); }
387	STD		{ int sys___stat30(const char *path, struct stat *ub); }
388	STD		{ int sys___fstat30(int fd, struct stat *sb); }
389	STD		{ int sys___lstat30(const char *path, struct stat *ub); }
390	STD		{ int sys___getdents30(int fd, char *buf, size_t count); }
@


1.128.2.7
log
@Sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.150 2005/11/29 22:52:02 yamt Exp $
a784 2
391	STD		{ int sys_posix_fadvise(int fd, off_t offset, \
			    off_t len, int advice); }
@


1.127
log
@add __sigtimedwait(2) - wait for specified set of signals, with optional
timeout
the semantics of 'timeout' parameter differ to POSIX for the syscall
(not const, may be modified by kernel if interrupted from the wait) -
libc will provide appropriate wrapper

since sigwaitinfo(2) will be implemented as wrapper around sigtimedwait()
too, remove it's reserved slot and move sigqueue slot 'up', freeing
slot #246
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.126 2003/01/24 01:27:21 thorpej Exp $
d651 1
a651 1
317	STD		{ int sys__lwp_setprivate(void *ptr); }
@


1.126
log
@Reserve slots for the p1003.1b scheduler system calls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.125 2003/01/24 01:23:27 thorpej Exp $
d516 8
a523 3
244	UNIMPL		sys_sigwaitinfo
245	UNIMPL		sys_sigtimedwait
246	UNIMPL		sys_sigqueue
@


1.125
log
@Reserve slots for p1003.1b message queue calls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.124 2003/01/24 01:17:53 thorpej Exp $
d687 11
@


1.124
log
@Allocate a slot for _ksem_timedwait(), although it is not currently
implemented.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.123 2003/01/23 23:29:46 thorpej Exp $
d544 10
a553 10
257	UNIMPL
258	UNIMPL
259	UNIMPL
260	UNIMPL
261	UNIMPL
262	UNIMPL
263	UNIMPL
264	UNIMPL
265	UNIMPL
266	UNIMPL
@


1.123
log
@Allow the _ksem_*() syscalls to be properly seen by ktruss/kdump.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.122 2003/01/20 20:24:21 christos Exp $
d531 1
d542 1
a543 1
256	UNIMPL
@


1.122
log
@sys_ksem -> sys__ksem
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.121 2003/01/20 20:04:28 christos Exp $
d519 1
a519 1
#ifdef P1003_1B_SEMAPHORE
@


1.121
log
@actually, remove ksem.h
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.120 2003/01/20 20:03:38 christos Exp $
d520 2
a521 2
247	STD		{ int sys_ksem_init(unsigned int value, semid_t *idp); }
248	STD		{ int sys_ksem_open(const char *name, int oflag, \
d523 6
a528 6
249	STD 		{ int sys_ksem_unlink(const char *name); }
250	STD		{ int sys_ksem_close(semid_t id); }
251	STD		{ int sys_ksem_post(semid_t id); }
252	STD		{ int sys_ksem_wait(semid_t id); }
253	STD		{ int sys_ksem_trywait(semid_t id); }
254	STD		{ int sys_ksem_getvalue(semid_t id, \
d530 1
a530 1
255	STD		{ int sys_ksem_destroy(semid_t id); }
d532 9
a540 9
247	EXCL		sys_ksem_init
248	EXCL		sys_ksem_open
249	EXCL 		sys_ksem_unlink
250	EXCL		sys_ksem_close
251	EXCL		sys_ksem_post
252	EXCL		sys_ksem_wait
253	EXCL		sys_ksem_trywait
254	EXCL		sys_ksem_getvalue
255	EXCL		sys_ksem_destroy
@


1.120
log
@semaphore.h -> ksem.h
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.119 2003/01/20 20:02:57 christos Exp $
a55 1
#include <sys/ksem.h>
@


1.119
log
@add support for p1003.1b semaphores. From FreeBSD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.118 2003/01/18 10:06:35 thorpej Exp $
d56 1
a56 1
#include <sys/semaphore.h>
@


1.118
log
@Merge the nathanw_sa branch.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.117 2002/12/19 23:51:00 thorpej Exp $
d46 1
d56 1
d520 23
a542 9
247	UNIMPL
248	UNIMPL
249	UNIMPL
250	UNIMPL
251	UNIMPL
252	UNIMPL
253	UNIMPL
254	UNIMPL
255	UNIMPL
@


1.117
log
@Reserve syscall slots for sigwaitinfo(2), sigtimedwait(2), and
sigqueue(2).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.116 2002/10/23 09:14:24 jdolecek Exp $
d54 1
d154 1
a154 1
50	STD		{ int sys_setlogin(const char *namebuf); }
d498 9
a506 5
235	UNIMPL		timer_create
236	UNIMPL		timer_delete
237	UNIMPL		timer_settime
238	UNIMPL		timer_gettime
239	UNIMPL		timer_getoverrun
d617 15
a631 18
			    size_t len); }
;
; Syscalls 307 and 308 are reserved for getcontext and setcontext
;
307	UNIMPL
308	UNIMPL
;
; Syscalls 309-339 are reserved for LWP and scheduler activation syscalls.
;
309	UNIMPL
310	UNIMPL
311	UNIMPL
312	UNIMPL
313	UNIMPL
314	UNIMPL
315	UNIMPL
316	UNIMPL
317	UNIMPL
d644 11
a654 6
330	UNIMPL
331	UNIMPL
332	UNIMPL
333	UNIMPL
334	UNIMPL
335	UNIMPL
@


1.116
log
@merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.115 2002/09/04 07:45:41 jdolecek Exp $
d510 3
a512 3
244	UNIMPL
245	UNIMPL
246	UNIMPL
@


1.115
log
@claim syscall slots for kqueue(2) and kevent(2)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.114 2002/08/28 07:16:39 gmcgarry Exp $
d659 5
a663 2
344	UNIMPL		kqueue
345	UNIMPL		kevent
@


1.114
log
@MI kernel support for user-level Restartable Atomic Sequences (RAS).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.113 2002/08/07 04:52:53 briggs Exp $
d659 2
@


1.113
log
@New syscalls: sys_pmc_get_info and sys_pmc_control.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.112 2002/07/04 23:32:14 thorpej Exp $
d658 1
@


1.112
log
@Add kernel support for having userland provide the signal trampoline:

* struct sigacts gets a new sigact_sigdesc structure, which has the
  sigaction and the trampoline/version.  Version 0 means "legacy kernel
  provided trampoline".  Other versions are coordinated with machine-
  dependent code in libc.
* sigaction1() grows two more arguments -- the trampoline pointer and
  the trampoline version.
* A new __sigaction_sigtramp() system call is provided to register a
  trampoline along with a signal handler.
* The handler is no longer passed to sensig() functions.  Instead,
  sendsig() looks up the handler by peeking in the sigacts for the
  process getting the signal (since it has to look in there for the
  trampoline anyway).
* Native sendsig() functions now select the appropriate trampoline and
  its arguments based on the trampoline version in the sigacts.

Changes to libc to use the new facility will be checked in later.  Kernel
version not bumped; we will ride the 1.6C bump made recently.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.111 2002/05/03 00:20:56 eeh Exp $
d656 2
@


1.111
log
@Use #if defined(_LP64) to determine if we're generating 64-bit binaries,
not #if defined(alpha).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.110 2001/07/01 18:06:11 thorpej Exp $
d652 4
@


1.111.2.1
log
@catch up with -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.112 2002/07/04 23:32:14 thorpej Exp $
a651 4
340	STD		{ int sys___sigaction_sigtramp(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa, \
			    void *tramp, int vers); }
@


1.111.2.2
log
@catch up with -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.114 2002/08/28 07:16:39 gmcgarry Exp $
a655 3
341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD		{ int sys_rasctl(caddr_t addr, size_t len, int op); }
@


1.110
log
@Linux-compatible clone(2) system call, lifted from the Linux
compatibility module.  Based on patches from Bang Jun-Young <bjy@@mogua.org>.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.109 2001/04/10 11:03:56 kleink Exp $
d335 1
a335 1
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
d342 1
a342 1
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
d349 1
a349 1
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
@


1.110.2.1
log
@add sys_kqueue (340) and sys_kevent (341)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.110 2001/07/01 18:06:11 thorpej Exp $
a651 6
;
340	STD		{ int sys_kqueue(void); }
341	STD		{ int sys_kevent(int fd, \
			    const struct kevent *changelist, int nchanges, \
			    struct kevent *eventlist, int nevents, \
			    const struct timespec *timeout); }
@


1.110.2.2
log
@kevent(2): change type of 'nchanges' and 'nevents' from int to size_t
change discussed on bsd-api list
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.110.2.1 2001/07/10 13:45:49 lukem Exp $
d655 2
a656 2
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
@


1.110.2.3
log
@catch up with -current on kqueue branch
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.110.2.2 2002/06/07 08:22:36 jdolecek Exp $
d335 1
a335 1
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
d342 1
a342 1
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
d349 1
a349 1
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
@


1.110.2.4
log
@sync kqueue branch with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.110.2.3 2002/06/23 17:49:37 jdolecek Exp $
d652 3
a654 9
340	STD		{ int sys___sigaction_sigtramp(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa, \
			    void *tramp, int vers); }
341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
343	STD		{ int sys_rasctl(caddr_t addr, size_t len, int op); }
344	STD		{ int sys_kqueue(void); }
345	STD		{ int sys_kevent(int fd, \
@


1.110.2.5
log
@sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.110.2.4 2002/09/06 08:48:12 jdolecek Exp $
@


1.109
log
@Slight indentation nit.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108 2001/01/27 07:47:26 thorpej Exp $
d562 1
a562 1
287	UNIMPL
@


1.108
log
@getpid(2), our first MP-safe syscall!
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.107 2001/01/08 18:25:35 nathanw Exp $
d612 1
a612 1
				size_t len); }
@


1.108.2.1
log
@Initial commit of scheduler activations and lightweight process support.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108 2001/01/27 07:47:26 thorpej Exp $
d613 14
a626 11
307	STD		{ int sys_getcontext(struct __ucontext *ucp); }
308	STD		{ int sys_setcontext(const struct __ucontext *ucp); }
309	STD		{ int sys__lwp_create(const struct __ucontext *ucp, \
				u_long flags, lwpid_t *new_lwp); }
310	STD		{ int sys__lwp_exit(void); }
311	STD		{ lwpid_t sys__lwp_self(void); }
312	STD		{ int sys__lwp_wait(lwpid_t wait_for, \
				lwpid_t *departed); }
313	STD		{ int sys__lwp_suspend(lwpid_t target); }
314	STD		{ int sys__lwp_continue(lwpid_t target); }
; Syscalls 315-329 reserved for remaining Solaris-compatible LWP calls.
d642 6
a647 11
; Scheduler activation syscalls
330	STD		{ int sys_sa_register(sa_upcall_t new, \
				sa_upcall_t *old); }
331	STD		{ int sys_sa_stacks(int num, stack_t *stacks); }
332	STD		{ int sys_sa_enable(void); }
333	STD		{ int sys_sa_setconcurrency(int concurrency); }
334	STD		{ int sys_sa_yield(void); }
335	STD		{ int sys_sa_preempt(int sa_id); }
;
; Syscalls 336-339 are reserved for other scheduler activation syscalls.
;
@


1.108.2.2
log
@Catch up to -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.1 2001/03/05 22:49:45 nathanw Exp $
@


1.108.2.3
log
@Catch up with -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.2 2001/06/21 20:07:05 nathanw Exp $
d562 1
a562 1
287	STD		{ pid_t sys___clone(int flags, void *stack); }
@


1.108.2.4
log
@Implement POSIX realtime timers, and reimplement getitimer() and setitimer()
in terms of them.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.3 2001/08/24 00:11:40 nathanw Exp $
d497 5
a501 9
235	STD		{ int sys_timer_create(clockid_t clock_id, \
			    struct sigevent *evp, timer_t *timerid); }
236	STD		{ int sys_timer_delete(timer_t timerid); }
237	STD		{ int sys_timer_settime(timer_t timerid, int flags, \
			    const struct itimerspec *value, \
			    struct itimerspec *ovalue); }
238	STD		{ int sys_timer_gettime(timer_t timerid, struct \
			    itimerspec *value); }
239	STD		{ int sys_timer_getoverrun(timer_t timerid); }
@


1.108.2.5
log
@Add a system call, _lwp_wakeup(), to wake up LWPs that are sleeping
interruptably. This is necessary when another thread has requested the
cancellation of a thread that is sleeping in the kernel.

This interface is slightly klugey. It might be better handled with a _lwp_kill()
interface, but that requires all of the machinery to deliver signals to
individual LWPs, which is large, complicated, and not clearly necessary.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.4 2001/11/17 01:10:17 nathanw Exp $
d627 2
a628 2
315	STD		{ int sys__lwp_wakeup(lwpid_t target); }
; Syscalls 316-329 reserved for remaining Solaris-compatible LWP calls.
@


1.108.2.6
log
@Rename the setlogin system call to __setlogin.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.5 2002/01/28 18:29:52 nathanw Exp $
d153 1
a153 1
50	STD		{ int sys___setlogin(const char *namebuf); }
@


1.108.2.7
log
@#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.6 2002/02/25 00:37:34 nathanw Exp $
a53 1
#include <sys/sa.h>
@


1.108.2.8
log
@Catch up to -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.7 2002/05/29 21:33:15 nathanw Exp $
d336 1
a336 1
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
d343 1
a343 1
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
d350 1
a350 1
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
@


1.108.2.9
log
@Catch up to -current.
@
text
@d1 1
a1 1
	$NetBSD$
a658 4
340	STD		{ int sys___sigaction_sigtramp(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa, \
			    void *tramp, int vers); }
@


1.108.2.10
log
@Catch up to -current.
@
text
@a662 2
341	STD		{ int sys_pmc_get_info(int ctr, int op, void *args); }
342	STD		{ int sys_pmc_control(int ctr, int op, void *args); }
@


1.108.2.11
log
@Add "flags" parameter to sys_sa_register().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.10 2002/08/13 02:20:08 nathanw Exp $
d646 1
a646 1
				sa_upcall_t *old, int flags); }
@


1.108.2.12
log
@Catch up to -current.
@
text
@d1 1
a1 1
	$NetBSD$
a664 3
343	STD		{ int sys_rasctl(caddr_t addr, size_t len, int op); }
344	UNIMPL		kqueue
345	UNIMPL		kevent
@


1.108.2.13
log
@Catch up to -current
@
text
@d666 2
a667 5
344	STD		{ int sys_kqueue(void); }
345	STD		{ int sys_kevent(int fd, \
			    const struct kevent *changelist, size_t nchanges, \
			    struct kevent *eventlist, size_t nevents, \
			    const struct timespec *timeout); }
@


1.108.2.14
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.108.2.13 2002/11/11 22:14:03 nathanw Exp $
d515 3
a517 3
244	UNIMPL		sys_sigwaitinfo
245	UNIMPL		sys_sigtimedwait
246	UNIMPL		sys_sigqueue
@


1.108.2.15
log
@Implement _lwp_getprivate(2) and _lwp_setprivate(2).
@
text
@d1 1
a1 1
	$NetBSD$
d629 3
a631 3
316	STD		{ void *sys__lwp_getprivate(void); }
317	STD		{ int sys__lwp_setprivate(void *ptr); }
; Syscalls 318-329 reserved for remaining Solaris-compatible LWP calls.
@


1.107
log
@Reserve system call slots for getcontext, setcontext, LWPs, and
scheduler activations.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.106 2001/01/05 21:42:08 jdolecek Exp $
d13 3
d92 1
a92 1
20	STD		{ pid_t sys_getpid_with_ppid(void); } getpid
d94 1
a94 1
20	STD		{ pid_t sys_getpid(void); }
@


1.106
log
@utrace(2): rename 'id' parameter to 'label'
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.105 2000/12/28 11:10:15 jdolecek Exp $
d610 39
@


1.105
log
@add utrace(2) - this syscall allows to add user ktrace entries
idea from FreeBSD, but added argument (const char *id) so that it's possible
to differentiate between entries from different sources
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.104 2000/12/09 07:04:48 mycroft Exp $
d608 1
a608 1
306	STD		{ int sys_utrace(const char *id, void *addr, \
@


1.104
log
@Define 3 new functions:
* sys_getpid_with_ppid()
* sys_getuid_with_euid()
* sys_getgid_with_egid()
that do the retval[1] hack.  Use them when COMPAT_43 is defined.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.103 2000/12/09 05:27:31 mycroft Exp $
d608 2
@


1.103
log
@Add the %% separators.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.102 2000/08/07 17:59:33 bjh21 Exp $
d88 3
d92 1
d97 3
d101 1
d142 3
d146 1
@


1.102
log
@Changes to syscalls.master to exclude ntp_adjtime(2) entirely if NTP is not
defined.  Changes to other files will follow in a moment.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.101 2000/04/21 16:15:39 minoura Exp $
d52 2
@


1.101
log
@Add native issetugid() call.
Implementation from compat/freebsd.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.100 2000/04/17 14:31:22 mrg Exp $
d39 1
d343 1
d345 1
d347 3
@


1.100
log
@implement lchflags(2), which does the chflags(2) dance without following
symlinks, and thus can operate on symlinks.  remove a bogus comment in
chflags(1) that claims symlinks do not have file flags.

XXX: todo -- make chflags(1) use lchflags(2) when given the right options.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.99 2000/01/31 15:12:30 christos Exp $
d587 1
@


1.99
log
@__semctl13 -> ____semctl13 because this now is not called directly.
The fourth argument to it is a pointer to union semun not union semun,
because passing structs and unions to syscalls cannot be handled portably.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.98 2000/01/23 01:01:30 mycroft Exp $
d586 1
@


1.98
log
@Use proper varargs format for __semctl13.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.97 1999/08/25 05:05:48 thorpej Exp $
d569 2
a570 2
301	STD		{ int sys___semctl13(int semid, int semnum, int cmd, \
			    ... union __semun arg); }
d572 1
a572 1
301	EXCL		__semctl13
@


1.97
log
@Overhaul of the SVID IPC facilities, primarily to use the types specified
by the Single UNIX Specification version 2, rather than the SVR2-derived
types.  While I was here, I did a namespace sweep to expose the constants
and strucutures, and structure members described by SUSv2; documentation
updates coming shortly.

Fixes kern/8158.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.96 1999/07/12 23:01:27 thorpej Exp $
d570 1
a570 1
			    union __semun arg); }
@


1.97.2.1
log
@Update thorpej_scsipi to -current as of a month ago
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.102 2000/08/07 17:59:33 bjh21 Exp $
a38 1
#include "opt_ntp.h"
a341 1
; For some reason, ntp_gettime doesn't want to raise SIGSYS when it's excluded.
a342 1
#if defined(NTP) || !defined(_KERNEL)
a343 3
#else
176	EXCL		ntp_adjtime
#endif
d569 2
a570 2
301	STD		{ int sys_____semctl13(int semid, int semnum, int cmd, \
			    ... union __semun *arg); }
d572 1
a572 1
301	EXCL		____semctl13
a585 2
304	STD		{ int sys_lchflags(const char *path, u_long flags); }
305	STD		{ int sys_issetugid(void); }
@


1.97.2.2
log
@Sync with HEAD (for UBC fixes).
@
text
@d1 1
a1 1
	$NetBSD$
a52 2
%%

a85 3
#ifdef COMPAT_43
20	STD		{ pid_t sys_getpid_with_ppid(void); } getpid
#else
a86 1
#endif
a90 3
#ifdef COMPAT_43
24	STD		{ uid_t sys_getuid_with_euid(void); } getuid
#else
a91 1
#endif
a131 3
#ifdef COMPAT_43
47	STD		{ gid_t sys_getgid_with_egid(void); } getgid
#else
a132 1
#endif
@


1.97.2.3
log
@Sync with HEAD
@
text
@a607 2
306	STD		{ int sys_utrace(const char *id, void *addr, \
				size_t len); }
@


1.97.2.4
log
@Sync with head (for UBC+NFS fixes, mostly).
@
text
@d608 1
a608 1
306	STD		{ int sys_utrace(const char *label, void *addr, \
a609 39
;
; Syscalls 307 and 308 are reserved for getcontext and setcontext
;
307	UNIMPL
308	UNIMPL
;
; Syscalls 309-339 are reserved for LWP and scheduler activation syscalls.
;
309	UNIMPL
310	UNIMPL
311	UNIMPL
312	UNIMPL
313	UNIMPL
314	UNIMPL
315	UNIMPL
316	UNIMPL
317	UNIMPL
318	UNIMPL
319	UNIMPL
320	UNIMPL
321	UNIMPL
322	UNIMPL
323	UNIMPL
324	UNIMPL
325	UNIMPL
326	UNIMPL
327	UNIMPL
328	UNIMPL
329	UNIMPL
330	UNIMPL
331	UNIMPL
332	UNIMPL
333	UNIMPL
334	UNIMPL
335	UNIMPL
336	UNIMPL
337	UNIMPL
338	UNIMPL
339	UNIMPL
@


1.97.2.5
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.97.2.4 2001/01/18 09:23:45 bouyer Exp $
a12 3
; An optional field, MPSAFE, after the type field, indicates that
; the system call is MP-safe.
;
d89 1
a89 1
20	STD 		{ pid_t sys_getpid_with_ppid(void); } getpid
d91 1
a91 1
20	STD MPSAFE	{ pid_t sys_getpid(void); }
@


1.97.2.6
log
@Sync with HEAD
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.97.2.5 2001/02/11 19:16:49 bouyer Exp $
d612 1
a612 1
			    size_t len); }
@


1.96
log
@Remove two lines that were apparently added by accident.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.95 1999/07/12 21:55:21 kleink Exp $
d429 2
a430 2
220	STD		{ int sys___semctl(int semid, int semnum, int cmd, \
			    union semun *arg); }
d436 1
a436 1
220	EXCL		semctl
d442 2
a443 2
224	STD		{ int sys_msgctl(int msqid, int cmd, \
			    struct msqid_ds *buf); }
d450 1
a450 1
224	EXCL		msgctl
d458 2
a459 2
229	STD		{ int sys_shmctl(int shmid, int cmd, \
			    struct shmid_ds *buf); }
d464 1
a464 1
229	EXCL		shmctl
d568 18
@


1.95
log
@XSH5: change function signature to `void *sbrk(intptr_t)'.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.94 1999/06/29 22:15:31 wrstuden Exp $
a567 2
301	STD		{ int sys_getcontext(struct ucontext *ucp); }
302	STD		{ int sys_setcontext(const struct ucontext *ucp); }
@


1.94
log
@Add fhopen, fhstat, fhstatfs.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.93 1999/06/15 23:28:16 thorpej Exp $
d162 1
a162 1
69	STD		{ int sys_sbrk(int incr); }
d568 2
@


1.93
log
@Add mlockall at #242 and munlockall at #243.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.92 1999/06/09 04:25:30 christos Exp $
a305 1
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
a306 3
#else
161	EXCL		getfh
#endif
d563 5
@


1.92
log
@Add EXCL keyword as described in tech_kern, and fix comments. Make the
vtrace syscall UNIMPL because it is.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.91 1999/06/08 03:07:39 thorpej Exp $
d489 2
a490 2
242	UNIMPL
243	UNIMPL
@


1.91
log
@mincore: caddr_t -> void *
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.90 1999/03/28 17:29:52 kleink Exp $
d17 1
d122 1
a122 1
#ifdef KTRACE
d126 1
a126 1
45	UNIMPL		ktrace
a230 3
#ifdef TRACE
115	STD		{ int sys_vtrace(int request, int value); }
#else
a231 1
#endif
d294 1
a294 1
#if defined(NFS) || defined(NFSSERVER)
d297 1
a297 1
155	UNIMPL
d306 1
a306 1
#if defined(NFS) || defined(NFSSERVER)
d309 1
a309 1
161	UNIMPL		getfh
d321 1
a321 1
#if defined(SYSVSEM) && !defined(alpha)
d325 1
a325 1
169	UNIMPL		1.0 semsys
d328 1
a328 1
#if defined(SYSVMSG) && !defined(alpha)
d332 1
a332 1
170	UNIMPL		1.0 msgsys
d335 1
a335 1
#if defined(SYSVSHM) && !defined(alpha)
d339 1
a339 1
171	UNIMPL		1.0 shmsys
d357 2
a358 2
#ifdef LFS
184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
d360 1
a360 1
185	STD		{ int lfs_markv(fsid_t *fsidp, \
d362 8
a369 7
186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
#else
184	UNIMPL
185	UNIMPL
186	UNIMPL
187	UNIMPL
d408 1
a408 1
#ifdef LKM
d420 10
a429 10
210	UNIMPL
211	UNIMPL
212	UNIMPL
213	UNIMPL
214	UNIMPL
215	UNIMPL
216	UNIMPL
217	UNIMPL
218	UNIMPL
219	UNIMPL
d432 1
a432 1
#ifdef SYSVSEM
d440 4
a443 4
220	UNIMPL		semctl
221	UNIMPL		semget
222	UNIMPL		semop
223	UNIMPL		semconfig
d445 1
a445 1
#ifdef SYSVMSG
d454 4
a457 4
224	UNIMPL		msgctl
225	UNIMPL		msgget
226	UNIMPL		msgsnd
227	UNIMPL		msgrcv
d459 1
a459 1
#ifdef SYSVSHM
d467 4
a470 4
228	UNIMPL		shmat
229	UNIMPL		shmctl
230	UNIMPL		shmdt
231	UNIMPL		shmget
d544 1
a544 1
#ifdef KTRACE
d548 1
a548 1
288	UNIMPL
@


1.90
log
@Sync __getlogin()'s namelen argument with the libc-internal declaration
(u_int vs. size_t).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.89 1999/03/22 17:01:55 sommerfe Exp $
d173 1
a173 1
78	STD		{ int sys_mincore(caddr_t addr, size_t len, \
@


1.90.2.1
log
@Pull up revision 1.101 (via patch, requested by sommerfeld):
  Introduce the issetugid() system call.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.90 1999/03/28 17:29:52 kleink Exp $
d553 2
a568 11

298	UNIMPL
299	UNIMPL
300	UNIMPL
301	UNIMPL
302	UNIMPL
303	UNIMPL
304	UNIMPL
305	STD		{ int sys_issetugid(void); }
			    const struct iovec *iovp, int iovcnt, \
			    int pad, off_t offset); }
@


1.90.2.2
log
@Correct error in previous pullup.
@
text
@a552 2
			    const struct iovec *iovp, int iovcnt, \
			    int pad, off_t offset); }
d576 2
a577 1

@


1.90.4.1
log
@Sync w/ -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.93 1999/06/15 23:28:16 thorpej Exp $
a16 1
;	EXCL	implemented, but not included in system
d121 1
a121 1
#if defined(KTRACE) || !defined(_KERNEL)
d125 1
a125 1
45	EXCL		ktrace
d173 1
a173 1
78	STD		{ int sys_mincore(void *addr, size_t len, \
d230 3
d234 1
d297 1
a297 1
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
d300 1
a300 1
155	EXCL		nfssvc
d309 1
a309 1
#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
d312 1
a312 1
161	EXCL		getfh
d324 1
a324 1
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
d328 1
a328 1
169	EXCL		1.0 semsys
d331 1
a331 1
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
d335 1
a335 1
170	EXCL		1.0 msgsys
d338 1
a338 1
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
d342 1
a342 1
171	EXCL		1.0 shmsys
d360 2
a361 2
#if defined(LFS) || !defined(_KERNEL)
184	STD		{ int sys_lfs_bmapv(fsid_t *fsidp, \
d363 1
a363 1
185	STD		{ int sys_lfs_markv(fsid_t *fsidp, \
d365 7
a371 8
186	STD		{ int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD		{ int sys_lfs_segwait(fsid_t *fsidp, \
			    struct timeval *tv); }
#else
184	EXCL		lfs_bmapv
185	EXCL		lfs_markv
186	EXCL		lfs_segclean
187	EXCL		lfs_segwait
d410 1
a410 1
#if defined(LKM) || !defined(_KERNEL)
d422 10
a431 10
210	EXCL		lkmnosys
211	EXCL		lkmnosys
212	EXCL		lkmnosys
213	EXCL		lkmnosys
214	EXCL		lkmnosys
215	EXCL		lkmnosys
216	EXCL		lkmnosys
217	EXCL		lkmnosys
218	EXCL		lkmnosys
219	EXCL		lkmnosys
d434 1
a434 1
#if defined(SYSVSEM) || !defined(_KERNEL)
d442 4
a445 4
220	EXCL		semctl
221	EXCL		semget
222	EXCL		semop
223	EXCL		semconfig
d447 1
a447 1
#if defined(SYSVMSG) || !defined(_KERNEL)
d456 4
a459 4
224	EXCL		msgctl
225	EXCL		msgget
226	EXCL		msgsnd
227	EXCL		msgrcv
d461 1
a461 1
#if defined(SYSVSHM) || !defined(_KERNEL)
d469 4
a472 4
228	EXCL		shmat
229	EXCL		shmctl
230	EXCL		shmdt
231	EXCL		shmget
d491 2
a492 2
242	STD		{ int sys_mlockall(int flags); }
243	STD		{ int sys_munlockall(void); }
d546 1
a546 1
#if defined(KTRACE) || !defined(_KERNEL)
d550 1
a550 1
288	EXCL		ktrace
@


1.90.4.2
log
@Sync w/ -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.90.4.1 1999/06/21 01:24:04 thorpej Exp $
d306 1
d308 3
a566 5
298	STD		{ int sys_fhopen(const fhandle_t *fhp, int flags); }
299	STD		{ int sys_fhstat(const fhandle_t *fhp, \
			    struct stat *sb); }
300	STD		{ int sys_fhstatfs(const fhandle_t *fhp, \
			    struct statfs *buf); }
@


1.90.4.3
log
@Update from trunk.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.90.4.2 1999/07/01 23:43:21 thorpej Exp $
d162 1
a162 1
69	STD		{ int sys_sbrk(intptr_t incr); }
@


1.89
log
@Change namei cache to record vnode->(parent,name) entries (for directories).
Add kernel implementation of getcwd() which uses this cache, falling
back to reading the filesystem on a cache miss.
Along for the ride: add new VOP_FSYNC flag FSYNC_RECLAIM indicating
that a reclaim is being done, so only a "shallow" fsync is needed.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.88 1999/02/10 18:02:28 kleink Exp $
d133 1
a133 1
49	STD		{ int sys___getlogin(char *namebuf, u_int namelen); }
@


1.88
log
@* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.87 1998/12/10 15:09:18 christos Exp $
d567 2
@


1.87
log
@defopt COMPAT_43
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.86 1998/11/26 16:07:05 kleink Exp $
d99 1
a99 1
			    int *fromlenaddr); }
d101 1
a101 1
			    int *anamelen); }
d103 1
a103 1
			    int *alen); }
d105 1
a105 1
			    int *alen); }
d203 1
a203 1
			    int namelen); }
d214 1
a214 1
			    int namelen); }
d216 1
a216 1
			    const void *val, int valsize); }
d239 1
a239 1
			    void *val, int *avalsize); }
d262 1
a262 1
			    int tolen); }
@


1.86
log
@getpgid(2) returns a value of type pid_t.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.85 1998/10/19 22:17:41 tron Exp $
d40 1
@


1.85
log
@Defopt SYSVMSG, SYSVSEM and SYSVSHM.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.84 1998/09/12 10:48:29 mycroft Exp $
d402 1
a402 1
207	STD		{ int sys_getpgid(pid_t pid); }
@


1.84
log
@Fix thinko in previous.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.83 1998/09/12 00:47:13 mycroft Exp $
d39 1
@


1.83
log
@Version sys_sigreturn, to avoid breaking programs that use it explicitly.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.82 1998/09/11 12:50:11 mycroft Exp $
d209 1
a209 1
103	COMPAT_13	{ int sys_sigreturn(struct sigcontext *sigcntxp); } \
@


1.82
log
@Substantial signal handling changes:
* Increase the size of sigset_t to accomodate 128 signals -- adding new
  versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and
  sys_sigsuspend() to handle the changed arguments.
* Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(),
  sys_sigpending() and sys_sigsuspend() into separate functions, and call them
  from all the emulations rather than hard-coding everything.  (Avoids uses
  the stackgap crap for these system calls.)
* Add a new flag (p_checksig) to indicate that a process may have signals
  pending and userret() needs to do the full (slow) check.
* Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE.
* Correct emulation bugs with restoring SS_ONSTACK.
* Make the signal mask in the sigcontext always use the emulated mask format.
* Store signals internally in sigaction structures, rather than maintaining a
  bunch of little sigsets for each SA_* bit.
* Keep track of where we put the signal trampoline, rather than figuring it out
  in *_sendsig().
* Issue a warning when a non-emulated sigaction bit is observed.
* Add missing emulated signals, and a native SIGPWR (currently not used).
* Implement the `not reset when caught' semantics for relevant signals.

Note: Only code touched by the i386 port has been modified.  Other ports and
emulations need to be updated.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp $
d209 2
a210 1
103	STD		{ int sys_sigreturn(struct sigcontext *sigcntxp); }
d564 1
@


1.81
log
@* defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.80 1998/07/02 01:23:33 thorpej Exp $
d125 3
a127 3
46	STD		{ int sys_sigaction(int signum, \
			    const struct sigaction *nsa, \
			    struct sigaction *osa); }
d129 2
a130 1
48	STD		{ int sys_sigprocmask(int how, sigset_t mask); }
d134 4
a137 3
52	STD		{ int sys_sigpending(void); }
53	COMPAT_13	{ int sys_sigaltstack(const struct sigaltstack13 \
			    *nss, struct sigaltstack13 *oss); } sigaltstack13
d220 1
a220 1
111	STD		{ int sys_sigsuspend(int mask); }
d531 3
a533 2
281	STD		{ int sys___sigaltstack14(const struct sigaltstack \
			    *nss, struct sigaltstack *oss); }
d555 8
@


1.80
log
@Argh, pad the off_t args in pread/pwrite/preadv/pwritev.  System call
numbers don't change since the window of brokenness was so small (1 day).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.79 1998/06/30 19:33:11 thorpej Exp $
d38 1
@


1.79
log
@Add positional read and write system calls:
- pread() (#173) and pwrite() (#174), which are defined by XPG4.2.  System
  call numbers match Solaris.
- preadv() (#289) and pwritev() (#290), which are the positional cousins
  of readv() and writev(), but not defined by any standard.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.78 1998/06/25 22:16:40 thorpej Exp $
d340 1
a340 1
			    size_t nbyte, off_t offset); }
d342 1
a342 1
			    size_t nbyte, off_t offset); }
d547 1
a547 1
			    off_t offset); }
d550 1
a550 1
			    off_t offset); }
@


1.78
log
@defopt NFSSERVER
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.77 1998/06/25 21:16:03 thorpej Exp $
d339 4
a342 2
173	UNIMPL
174	UNIMPL
d545 6
@


1.77
log
@defopt KTRACE
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.76 1998/06/05 20:31:36 kleink Exp $
d37 1
@


1.76
log
@Per IEEE Std 1003.1b-1993, implement the fdatasync() system call which is
identical to fsync() with the expecption of not being required to synchronize
file status information.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.75 1998/05/30 22:21:03 kleink Exp $
d35 2
@


1.75
log
@Per XSH98, const'ify the `addr' arguments to mlock() and munlock().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.74 1998/05/07 17:08:42 kleink Exp $
d479 1
a479 1
241	UNIMPL		fktrace
@


1.74
log
@Several SYSV IPC prototype changes.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.73 1998/05/02 18:33:21 christos Exp $
d387 2
a388 2
203	STD		{ int sys_mlock(void *addr, size_t len); }
204	STD		{ int sys_munlock(void *addr, size_t len); }
@


1.73
log
@New fktrace syscall from Darren Reed [with fixes from me]
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.72 1998/03/27 13:02:21 kleink Exp $
d428 1
a428 1
			    u_int nsops); }
d440 4
a443 4
226	STD		{ int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
			    int msgflg); }
227	STD		{ int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
			    long msgtyp, int msgflg); }
d451 1
a451 1
228	STD		{ void *sys_shmat(int shmid, void *shmaddr, \
d455 2
a456 2
230	STD		{ int sys_shmdt(void *shmaddr); }
231	STD		{ int sys_shmget(key_t key, int size, int shmflg); }
@


1.72
log
@Per X/Open CAE Spec Issue 5 Version 2, change the buffer size argument of
readlink() from type `int' to type `size_t'.  This isn't an ABI change, since
the calling convention of our only LP64 platform (the Alpha) already promotes
this argument to a `long'.

This may not be the final action on this matter; readlink() still returns
an `int', which may change in a future revision of the standard.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.71 1998/02/25 21:29:45 perry Exp $
d479 1
a479 1
241	UNIMPL
d533 7
@


1.71
log
@change second parm of sysarch() from char * to void *
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.70 1998/02/19 00:52:14 thorpej Exp $
d139 1
a139 1
			    int count); }
@


1.70
log
@Include the NFS and LFS option headers.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.69 1998/02/14 20:01:05 kleink Exp $
d310 1
a310 1
165	STD		{ int sys_sysarch(int op, char *parms); }
@


1.69
log
@Implement __posix_chown(), __posix_fchown() and __posix_lchown().  Also,
rename posix_rename() to __posix_rename() to follow this convention.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.68 1998/02/14 00:39:33 thorpej Exp $
d34 4
a37 1
; #include's are copied to the syscall switch definition file only.
@


1.68
log
@Reserve syscalls 283, 284, and 285 for 3 up-coming POSIX systems calls,
per kleink.  Add XPG4.2's getsid(2) at #286.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.67 1998/01/04 03:45:21 thorpej Exp $
d505 1
a505 1
270	STD		{ int sys_posix_rename(const char *from, \
d523 6
a528 3
283	UNIMPL		__posix_chown
284	UNIMPL		__posix_fchown
285	UNIMPL		__posix_lchown
@


1.67
log
@Add __vfork14() system call at #282.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.66 1997/11/29 18:38:26 kleink Exp $
d523 4
@


1.66
log
@Modify the recent sigaltstack() interface change to use the __RENAME() scheme;
add __sigaltstack14().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.63.2.1 1997/11/04 21:27:05 thorpej Exp $
d146 1
d522 1
@


1.65
log
@In XPG4.2, the ss_size member of type stack_t (struct sigaltstack) is specified
to be of type size_t; since this imposes an interface change on the Alpha
(sizeof(int) != sizeof(size_t)), allocate a new system call number and make
the previous version a compatibility system call.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.64 1997/11/04 21:24:18 thorpej Exp $
d519 2
a520 2
281	STD		{ int sys_sigaltstack(const struct sigaltstack *nss, \
			    struct sigaltstack *oss); }
@


1.64
log
@Fix slight argument bogosity with getgroups(), setgroups(), select(),
and swapctl().  For the former three, they use an 'int' in their user-land
prototype which was a 'u_int' in the kernel, which screwed up automatic
generation/checking of lint syscall stubs.  For the latter, the user-land
prototype uses a "const char *", but the syscall just used "char *".

From Chris Demetriou <cgd@@pa.dec.com>.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.63 1997/10/20 22:05:06 thorpej Exp $
d127 2
a128 2
53	STD		{ int sys_sigaltstack(const struct sigaltstack *nss, \
			    struct sigaltstack *oss); }
d519 2
@


1.63
log
@Fix the shared library versioning snafu caused by the recent changes
to the stat(2) family and msync(2).  This uses a primitive function
versioning scheme.

This reverts the libc shared library major version from 13 to 12, and
adds a few new interfaces to bring us to libc version 12.20.

From Frank van der Linden <fvdl@@NetBSD.ORG>.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.62 1997/10/19 03:25:55 mycroft Exp $
d163 1
a163 1
79	STD		{ int sys_getgroups(u_int gidsetsize, \
d165 1
a165 1
80	STD		{ int sys_setgroups(u_int gidsetsize, \
d184 1
a184 1
93	STD		{ int sys_select(u_int nd, fd_set *in, fd_set *ou, \
d506 1
a506 1
271	STD		{ int sys_swapctl(int cmd, void *arg, int misc); }
@


1.63.2.1
log
@Pull up from trunk: Fix syscall argument type bogons.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.64 1997/11/04 21:24:18 thorpej Exp $
d163 1
a163 1
79	STD		{ int sys_getgroups(int gidsetsize, \
d165 1
a165 1
80	STD		{ int sys_setgroups(int gidsetsize, \
d184 1
a184 1
93	STD		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
d506 1
a506 1
271	STD		{ int sys_swapctl(int cmd, const void *arg, int misc); }
@


1.62
log
@umask(2) accepts and returns a mode_t.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.61 1997/10/18 16:35:25 christos Exp $
d515 4
a518 4
277	STD		{ int sys_msync(void *addr, size_t len, int flags); }
278	STD		{ int sys_stat(const char *path, struct stat *ub); }
279	STD		{ int sys_fstat(int fd, struct stat *sb); }
280	STD		{ int sys_lstat(const char *path, struct stat *ub); }
@


1.61
log
@Fixed missed const char * in lstat (thanks enami) and changed caddr_t -> void *
in the mman family.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.60 1997/10/16 23:41:31 christos Exp $
d139 1
a139 1
60	STD		{ int sys_umask(int newmask); }
@


1.60
log
@change char *path to const char *path
change int to mode_t's and to dev_t's as appropriate
add new new stat syscem calls and make the old ones compatibility.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.59 1997/10/15 17:27:53 mycroft Exp $
d130 1
a130 1
			    u_long com, ... caddr_t data); }
d154 2
a155 2
73	STD		{ int sys_munmap(caddr_t addr, size_t len); }
74	STD		{ int sys_mprotect(caddr_t addr, size_t len, \
d157 1
a157 1
75	STD		{ int sys_madvise(caddr_t addr, size_t len, \
d372 1
a372 1
197	STD		{ caddr_t sys_mmap(caddr_t addr, size_t len, int prot, \
d383 2
a384 2
203	STD		{ int sys_mlock(caddr_t addr, size_t len); }
204	STD		{ int sys_munlock(caddr_t addr, size_t len); }
d508 1
a508 1
273	STD		{ int sys_minherit(caddr_t addr, size_t len, \
d515 1
a515 1
277	STD		{ int sys_msync(caddr_t addr, size_t len, int flags); }
d518 1
a518 1
280	STD		{ int sys_lstat(char *path, struct stat *ub); }
@


1.59
log
@Adjust u_int arguments of some system calls to int, to match user-level
prototypes.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.58 1997/10/15 17:04:20 mycroft Exp $
d55 1
a55 1
			    int flags, ... int mode); }
d59 1
a59 1
8	COMPAT_43	{ int sys_creat(char *path, int mode); } ocreat
d65 3
a67 2
14	STD		{ int sys_mknod(const char *path, int mode, int dev); }
15	STD		{ int sys_chmod(const char *path, int mode); }
d102 2
a103 1
38	COMPAT_43	{ int sys_stat(char *path, struct ostat *ub); } ostat
d105 2
a106 1
40	COMPAT_43	{ int sys_lstat(char *path, struct ostat *ub); } olstat
d141 1
a141 1
62	COMPAT_43	{ int sys_fstat(int fd, struct ostat *sb); } ofstat
d145 1
a145 1
65	STD		{ int sys_msync(caddr_t addr, size_t len); }
d235 1
a235 1
124	STD		{ int sys_fchmod(int fd, int mode); }
d242 1
a242 1
129	COMPAT_43	{ int sys_truncate(char *path, long length); } \
d246 1
a246 1
132	STD		{ int sys_mkfifo(const char *path, int mode); }
d253 1
a253 1
136	STD		{ int sys_mkdir(const char *path, int mode); }
d358 5
a362 3
188	STD		{ int sys_stat(const char *path, struct stat *ub); }
189	STD		{ int sys_fstat(int fd, struct stat *sb); }
190	STD		{ int sys_lstat(const char *path, struct stat *ub); }
d510 1
a510 1
274	STD		{ int sys_lchmod(const char *path, int mode); }
d515 4
@


1.58
log
@Adjust u_int arguments of some system calls to int, to match user-level
prototypes.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.57 1997/10/10 02:03:47 fvdl Exp $
d104 1
a104 1
41	STD		{ int sys_dup(u_int fd); }
d160 2
a161 1
79	STD		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
d178 1
a178 1
90	STD		{ int sys_dup2(u_int from, u_int to); }
@


1.57
log
@Add getdents(). Rename getdirentries to compat_12_getdirentries.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.56 1997/10/03 15:06:18 enami Exp $
d165 1
a165 1
83	STD		{ int sys_setitimer(u_int which, \
d170 1
a170 1
86	STD		{ int sys_getitimer(u_int which, \
d224 2
a225 2
120	STD		{ ssize_t sys_readv(int fd, const struct iovec *iovp, \
			    u_int iovcnt); }
d227 1
a227 1
			    const struct iovec *iovp, u_int iovcnt); }
d260 4
a263 4
144	COMPAT_43	{ int sys_getrlimit(u_int which, \
			    struct ogetrlimit *rlp); } ogetrlimit
145	COMPAT_43	{ int sys_setrlimit(u_int which, \
			    struct ogetrlimit *rlp); } osetrlimit
d360 3
a362 2
194	STD		{ int sys_getrlimit(u_int which, struct rlimit *rlp); }
195	STD		{ int sys_setrlimit(u_int which, \
@


1.56
log
@Add system call lchmod (#274), lchown (#275) and lutimes (#276).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.55 1997/09/09 08:05:35 veego Exp $
d363 1
a363 1
196	STD		{ int sys_getdirentries(int fd, char *buf, \
d500 1
a500 2
; 272 will be getdents() shortly
272	UNIMPL
@


1.55
log
@Ups.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.54 1997/09/09 08:04:11 veego Exp $
d504 5
@


1.54
log
@Move sys_minherit from 250 to 273 and add a comment why 240-269 are
reserved.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.53 1997/09/08 18:03:32 chuck Exp $
d477 1
a478 1
250	UNIMPL
@


1.53
log
@add sys_minherit (from openbsd)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.52 1997/06/12 22:05:37 mrg Exp $
d463 3
a476 2
250	STD		{ int sys_minherit(caddr_t addr, size_t len, \
			    int inherit); }
d478 1
d500 4
@


1.52
log
@swapon back to compat_12 syscall..
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.50 1997/06/12 14:23:46 mrg Exp $
d474 2
a475 1
250	UNIMPL
@


1.52.4.1
log
@Update marc-pcmcia branch from trunk.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.55 1997/09/09 08:05:35 veego Exp $
a462 3
;
; Syscalls 240-269 are reserved for other IEEE Std1003.1b syscalls
;
a496 4
; 272 will be getdents() shortly
272	UNIMPL
273	STD		{ int sys_minherit(caddr_t addr, size_t len, \
			    int inherit); }
@


1.52.4.2
log
@Update marc-pcmcia branch from trunk.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.52.4.1 1997/09/16 03:51:06 thorpej Exp $
d363 1
a363 1
196	COMPAT_12	{ int sys_getdirentries(int fd, char *buf, \
d500 2
a501 1
272	STD		{ int sys_getdents(int fd, char *buf, size_t count); }
a503 5
274	STD		{ int sys_lchmod(const char *path, int mode); }
275	STD		{ int sys_lchown(const char *path, uid_t uid, \
			    gid_t gid); }
276	STD		{ int sys_lutimes(const char *path, \
			    const struct timeval *tptr); }
@


1.51
log
@for now, leave swapon(8) in place.
@
text
@d169 1
a169 1
85	STD		{ int sys_swapon(const char *name); }
@


1.50
log
@add sys_swapctl(), and deprecate, with COMPAT_12, sys_swapon
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.49 1997/05/18 19:56:48 kleink Exp $
d169 1
a169 1
85	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
@


1.49
log
@Add posix_rename() syscall.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.48 1997/04/16 14:41:31 jtc Exp $
d169 1
a169 1
85	STD		{ int sys_swapon(const char *name); }
d496 1
@


1.48
log
@Add POSIX.1b nanosleep().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.47 1997/01/31 02:34:53 thorpej Exp $
d411 1
a411 1
; System calls 220-240 are reserved for use by NetBSD
d453 1
a453 1
				struct timespec *tp); }
d455 1
a455 1
				const struct timespec *tp); }
d457 1
a457 1
				struct timespec *tp); }
d464 32
a495 1
				struct timespec *rmtp); }
@


1.48.2.1
log
@re-merge mrg-vm-swap into -current, and call it mrg-vm-swap2.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.48 1997/04/16 14:41:31 jtc Exp $
d169 1
a169 1
85	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
a464 1
241	STD		{ int sys_swapon(int cmd, void *arg, int misc); }
@


1.48.2.2
log
@move to swapctl
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.48.2.1 1997/05/04 15:20:08 mrg Exp $
d464 2
a465 32
			    struct timespec *rmtp); }
241	STD		{ int sys_swapctl(int cmd, void *arg, int misc); }
242	UNIMPL
243	UNIMPL
244	UNIMPL
245	UNIMPL
246	UNIMPL
247	UNIMPL
248	UNIMPL
249	UNIMPL
250	UNIMPL
251	UNIMPL
252	UNIMPL
253	UNIMPL
254	UNIMPL
255	UNIMPL
256	UNIMPL
257	UNIMPL
258	UNIMPL
259	UNIMPL
260	UNIMPL
261	UNIMPL
262	UNIMPL
263	UNIMPL
264	UNIMPL
265	UNIMPL
266	UNIMPL
267	UNIMPL
268	UNIMPL
269	UNIMPL
270	STD		{ int sys_posix_rename(const char *from, \
			    const char *to); }
@


1.48.2.3
log
@move swapctl() to syscall 271.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.48.2.2 1997/06/01 09:22:56 mrg Exp $
d465 1
a465 1
241	UNIMPL
a495 1
271	STD		{ int sys_swapctl(int cmd, void *arg, int misc); }
@


1.47
log
@NFSCLIENT -> NFS
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.46 1996/12/22 08:04:06 cgd Exp $
d463 2
a464 1
240	UNIMPL		nanosleep
@


1.47.2.1
log
@initial work for dynamic swap additions.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.47 1997/01/31 02:34:53 thorpej Exp $
d169 1
a169 1
85	COMPAT_12	{ int sys_swapon(const char *name); }
a463 1
241	STD		{ int sys_swapon(int cmd, void *arg, int misc); }
@


1.47.2.2
log
@swapon has a new syscall number; deal with oswapon.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.47.2.1 1997/02/12 12:26:16 mrg Exp $
d169 1
a169 1
85	COMPAT_12	{ int sys_swapon(const char *name); } oswapon
@


1.46
log
@* (slight) general cleanup
* change in-kernel syscall prototypes to match user-land prototypes in
  the following ways:
    + add 'const' where appropriate.
    + make the following "safe" type changes where appropriate:
	caddr_t -> struct msghdr *
	caddr_t -> struct sockaddr *
	caddr_t -> void *
	char * -> void *
	int -> uid_t (safe because uid_t not used as index/count)
	int -> gid_t (safe because gid_t not used as index/count)
	u_int -> size_t
    + change "int" to "u_long" in flags arguments to chflags() and
      fchflags().  This is safe because the arguments are used as
      flag bits and there's nothing that would cause the top bit
      of the int to be set yet, and because the user-land definitions
      already specified u_long, so a u_long's worth of argument was
      already being passed in.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.45 1996/12/22 07:47:43 cgd Exp $
d280 1
a280 1
#if defined(NFSCLIENT) || defined(NFSSERVER)
d292 1
a292 1
#if defined(NFSCLIENT) || defined(NFSSERVER)
@


1.46.2.1
log
@Snapshot of work-in-progress, committed to private branch.

These changes implement machine-independent root device and file system
selection.  Notable features:

	- All ports behave in a consistent manner regarding root
	  device selection.
	- No more "options GENERIC"; all kernels have the ability
	  to boot with RB_ASKNAME to select root device and file system
	  type.
	- Root file system type can be wildcarded; a machine-independent
	  function will try all possible file systems for the selected
	  root device until one succeeds.
	- If the root file system fails to mount, the operator will
	  be given the chance to select a new root device and file
	  system type, rather than having the machine simply panic.
	- nfs_mountroot() no longer panics if any part of the NFS
	  mount process fails; it now returns an error, giving the
	  operator a chance to recover.
	- New, more consistent, config(8) grammar.  The constructs:

		config netbsd swap generic
		config netbsd root on nfs

	  have been replaced with:

		config netbsd root on ? type ?
		config netbsd root on ? type nfs

	  Additionally, the operator may select or wildcard root file
	  system type in the kernel configuration file:

		config netbsd root on cd0a type cd9660

	  config(8) now requires that a "root" specification be
	  made.  "root" may be wired down or wildcarded.  "swap" and
	  "dump" specifications are optional, and follow previous
	  semantics.

	- config(8) has a new "file-system" keyword, used to configure
	  file systems into the kernel.  Eventually, this will be used
	  to generate the default vfssw[].

	- "options NFSCLIENT" is obsolete, and is replaced by
	  "file-system NFS".  "options NFSSERVER" still exists, since
	  NFS server support is independent of the NFS file system
	  client.

	- sys/arch/<foo>/<foo>/swapgeneric.c is no longer used, and
	  will be removed; all information is now generated by config(8).

As of this commit, all ports except arm32 have been updated to use
the new setroot().  Only SPARC, i386, and Alpha ports have been
tested at this time.  Port masters should test these changes on their
ports, and report any problems back to me.

More changes are on their way, including RB_ASKNAME support in
nfs_mountroot() (to prompt for server address and path) and, potentially,
the ability to select rarp/bootparam or bootp in nfs_mountroot().
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.46 1996/12/22 08:04:06 cgd Exp $
d280 1
a280 1
#if defined(NFS) || defined(NFSSERVER)
d292 1
a292 1
#if defined(NFS) || defined(NFSSERVER)
@


1.45
log
@change ntp_gettime's struct ntptimeval *'s name to match kern_ntptime.c
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.44 1996/12/22 07:00:57 cgd Exp $
d51 5
a55 3
3	STD		{ ssize_t sys_read(int fd, char *buf, u_int nbyte); }
4	STD		{ ssize_t sys_write(int fd, char *buf, u_int nbyte); }
5	STD		{ int sys_open(char *path, int flags, ... int mode); }
d60 2
a61 2
9	STD		{ int sys_link(char *path, char *link); }
10	STD		{ int sys_unlink(char *path); }
d63 1
a63 1
12	STD		{ int sys_chdir(char *path); }
d65 4
a68 3
14	STD		{ int sys_mknod(char *path, int mode, int dev); }
15	STD		{ int sys_chmod(char *path, int mode); }
16	STD		{ int sys_chown(char *path, int uid, int gid); }
d75 3
a77 3
21	STD		{ int sys_mount(char *type, char *path, int flags, \
			    caddr_t data); }
22	STD		{ int sys_unmount(char *path, int flags); }
d85 8
a92 5
28	STD		{ ssize_t sys_sendmsg(int s, caddr_t msg, int flags); }
29	STD		{ ssize_t sys_recvfrom(int s, caddr_t buf, size_t len, \
			    int flags, caddr_t from, int *fromlenaddr); }
30	STD		{ int sys_accept(int s, caddr_t name, int *anamelen); }
31	STD		{ int sys_getpeername(int fdes, caddr_t asa, \
d94 1
a94 1
32	STD		{ int sys_getsockname(int fdes, caddr_t asa, \
d96 3
a98 3
33	STD		{ int sys_access(char *path, int flags); }
34	STD		{ int sys_chflags(char *path, int flags); }
35	STD		{ int sys_fchflags(int fd, int flags); }
d110 2
a111 2
45	STD		{ int sys_ktrace(char *fname, int ops, int facs, \
			    int pid); }
d115 2
a116 1
46	STD		{ int sys_sigaction(int signum, struct sigaction *nsa, \
d121 2
a122 2
50	STD		{ int sys_setlogin(char *namebuf); }
51	STD		{ int sys_acct(char *path); }
d124 1
a124 1
53	STD		{ int sys_sigaltstack(struct sigaltstack *nss, \
d126 2
a127 1
54	STD		{ int sys_ioctl(int fd, u_long com, ... caddr_t data); }
d129 7
a135 5
56	STD		{ int sys_revoke(char *path); }
57	STD		{ int sys_symlink(char *path, char *link); }
58	STD		{ int sys_readlink(char *path, char *buf, int count); }
59	STD		{ int sys_execve(char *path, char **argp, \
			    char **envp); }
d137 1
a137 1
61	STD		{ int sys_chroot(char *path); }
d161 2
a162 1
80	STD		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
d166 2
a167 1
			    struct itimerval *itv, struct itimerval *oitv); }
d169 1
a169 1
85	STD		{ int sys_swapon(char *name); }
d186 4
a189 3
98	STD		{ int sys_connect(int s, caddr_t name, int namelen); }
99	COMPAT_43	{ int sys_accept(int s, caddr_t name, int *anamelen); } \
			    oaccept
d196 2
a197 1
104	STD		{ int sys_bind(int s, caddr_t name, int namelen); }
d199 1
a199 1
			    caddr_t val, int valsize); }
d222 1
a222 1
			    caddr_t val, int *avalsize); }
d224 1
a224 1
120	STD		{ ssize_t sys_readv(int fd, struct iovec *iovp, \
d226 5
a230 5
121	STD		{ ssize_t sys_writev(int fd, struct iovec *iovp, \
			    u_int iovcnt); }
122	STD		{ int sys_settimeofday(struct timeval *tv, \
			    struct timezone *tzp); }
123	STD		{ int sys_fchown(int fd, int uid, int gid); }
d235 3
a237 3
126	STD		{ int sys_setreuid(int ruid, int euid); }
127	STD		{ int sys_setregid(int rgid, int egid); }
128	STD		{ int sys_rename(char *from, char *to); }
d242 4
a245 3
132	STD		{ int sys_mkfifo(char *path, int mode); }
133	STD		{ ssize_t sys_sendto(int s, caddr_t buf, size_t len, \
			    int flags, caddr_t to, int tolen); }
d249 4
a252 3
136	STD		{ int sys_mkdir(char *path, int mode); }
137	STD		{ int sys_rmdir(char *path); }
138	STD		{ int sys_utimes(char *path, struct timeval *tptr); }
d254 1
a254 1
140	STD		{ int sys_adjtime(struct timeval *delta, \
d266 2
a267 2
148	STD		{ int sys_quotactl(char *path, int cmd, int uid, \
			    caddr_t arg); }
d281 1
a281 1
155	STD		{ int sys_nfssvc(int flag, caddr_t argp); }
d287 2
a288 1
157	STD		{ int sys_statfs(char *path, struct statfs *buf); }
d293 1
a293 1
161	STD		{ int sys_getfh(char *fname, fhandle_t *fhp); }
d354 1
a354 1
188	STD		{ int sys_stat(char *path, struct stat *ub); }
d356 2
a357 2
190	STD		{ int sys_lstat(char *path, struct stat *ub); }
191	STD		{ long sys_pathconf(char *path, int name); }
d361 2
a362 1
195	STD		{ int sys_setrlimit(u_int which, struct rlimit *rlp); }
d370 2
a371 1
200	STD		{ int sys_truncate(char *path, int pad, off_t length); }
d378 3
a380 2
205	STD		{ int sys_undelete(char *path); }
206	STD		{ int sys_futimes(int fd, struct timeval *tptr); }
@


1.44
log
@* fix return types.  previously, most things returned 'int.' which was
  wrong for a bunch of functions:
	void:		sys_exit, sys_sync
	ssize_t:	sys_read, sys_write, sys_recvmsg, sys_sendmsg,
			sys_recvfrom, sys_readv, sys_writev, sys_sendto
	long:		sys_pathconf, sys_fpathconf
	void *:		sys_shmat

* Note that sys_open, sys_ioctl, and sys_fcntl are defined such that their
  last argument is optional.

These changes should not have any real effect, because right now this
information is not actually used for anything.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.43 1996/12/22 06:46:50 cgd Exp $
d313 1
a313 1
175	STD		{ int sys_ntp_gettime(struct ntptimeval *tp); }
@


1.43
log
@mark syscall() and __syscall() as INDIR syscalls
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.42 1996/12/22 06:23:38 cgd Exp $
d49 1
a49 1
1	STD		{ int sys_exit(int rval); }
d51 3
a53 3
3	STD		{ int sys_read(int fd, char *buf, u_int nbyte); }
4	STD		{ int sys_write(int fd, char *buf, u_int nbyte); }
5	STD		{ int sys_open(char *path, int flags, int mode); }
d80 1
a80 1
27	STD		{ int sys_recvmsg(int s, struct msghdr *msg, \
d82 2
a83 2
28	STD		{ int sys_sendmsg(int s, caddr_t msg, int flags); }
29	STD		{ int sys_recvfrom(int s, caddr_t buf, size_t len, \
d93 1
a93 1
36	STD		{ int sys_sync(void); }
d119 1
a119 1
54	STD		{ int sys_ioctl(int fd, u_long com, caddr_t data); }
d167 1
a167 1
92	STD		{ int sys_fcntl(int fd, int cmd, void *arg); }
d210 1
a210 1
120	STD		{ int sys_readv(int fd, struct iovec *iovp, \
d212 1
a212 1
121	STD		{ int sys_writev(int fd, struct iovec *iovp, \
d229 1
a229 1
133	STD		{ int sys_sendto(int s, caddr_t buf, size_t len, \
d340 2
a341 2
191	STD		{ int sys_pathconf(char *path, int name); }
192	STD		{ int sys_fpathconf(int fd, int name); }
d420 2
a421 1
228	STD		{ int sys_shmat(int shmid, void *shmaddr, int shmflg); }
@


1.42
log
@ntp_gettime()'s argument is a struct ntptimeval *, not a struct timex *
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.41 1996/12/06 20:05:31 thorpej Exp $
d19 2
d48 1
a48 1
0	STD		{ int sys_nosys(void); } syscall
d349 1
a349 1
198	STD		{ int sys_nosys(void); } __syscall
@


1.41
log
@Back out this piece of revision 1.38:

>- Optional systems calls are "UNIMPL" if the support is not being
>  compiled into the kernel.

It had implications that didn't occur to me at the time.  *sigh*
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.40 1996/12/03 00:28:31 thorpej Exp $
d311 1
a311 1
175	STD		{ int sys_ntp_gettime(struct timex *tp); }
@


1.40
log
@Include sys_getfh() if NFSSERVER || NFSCLIENT.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.39 1996/11/15 22:44:28 jtc Exp $
a310 1
#ifdef NTP
a312 4
#else
175	UNIMPL		ntp_gettime
176	UNIMPL		ntp_adjtime
#endif
@


1.39
log
@Add clock_gettime, clock_settime, and clock_getres
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.38 1996/11/14 04:51:11 thorpej Exp $
d273 1
a273 1
#ifdef NFSCLIENT
@


1.38
log
@Make ntp_gettime() and ntp_adjtime() like other system calls:
- The functions that implement them and the argument names are
  prepended with "sys_".
- Optional systems calls are "UNIMPL" if the support is not being
  compiled into the kernel.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.37 1996/09/19 04:52:12 jtc Exp $
d434 12
@


1.37
log
@renamed sys_getlogin to sys___getlogin.  required by libc namespace conventions
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.36 1996/09/07 14:16:42 mycroft Exp $
d311 7
a317 2
175	STD		{ int ntp_gettime(struct timex *tp); }
176	STD		{ int ntp_adjtime(struct timex *tp); }
@


1.36
log
@Modify poll(2) prototype.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.35 1996/09/07 12:41:01 mycroft Exp $
d111 1
a111 1
49	STD		{ int sys_getlogin(char *namebuf, u_int namelen); }
@


1.35
log
@Implement poll(2).
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.34 1996/08/09 10:32:31 mrg Exp $
d361 1
a361 1
209	STD		{ int sys_poll(struct pollfd *fds, size_t nfds, \
@


1.34
log
@Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.33 1996/06/23 11:06:54 mycroft Exp $
d361 2
a362 1
209	UNIMPL
@


1.33
log
@Implement setre[ug]id() compatibly with 4.3BSD, SunOS, and Linux.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
d118 1
a118 1
55	STD		{ int sys_reboot(int opt); }
d359 2
a360 2
207	UNIMPL
208	UNIMPL
@


1.32
log
@Add futimes(), at position 206.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.31 1996/02/27 04:20:41 jonathan Exp $
d219 2
a220 2
126	COMPAT_43	{ int sys_setreuid(int ruid, int euid); } osetreuid
127	COMPAT_43	{ int sys_setregid(int rgid, int egid); } osetregid
@


1.32.4.1
log
@From trunk:
Implement setre[ug]id() for real.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.33 1996/06/23 11:06:54 mycroft Exp $
d219 2
a220 2
126	STD		{ int sys_setreuid(int ruid, int euid); }
127	STD		{ int sys_setregid(int rgid, int egid); }
@


1.31
log
@Add NTP kernel precision timekeeping from Dave Mill's xntp distribution
and the "kernel.tar.Z" distribution on louie.udel.edu, which is older than
xntp 3.4y or 3.5a, but contains newer kernel source fragments.

This commit adds support for a new kernel configuration option, NTP.
If NTP is selected, then the system clock should be run at "HZ", which
must be defined at compile time to be one value from:
  60, 64, 100, 128, 256, 512, 1024.

Powers of 2 are ideal; 60 and 100 are supported but are marginally less
accurate.

If NTP is not configured, there should be no change in behavior relative
to pre-NTP kernels.

These changes have been tested extensively with xntpd 3.4y on a decstation;
almost identical kernel mods work on an i386.  No pulse-per-second (PPS)
line discipline support is included, due to unavailability of hardware
to test it.

With this in-kernel PLL support for NetBSD, both xntp 3.4y and xntp
3.5a user-level code need minor changes. xntp's prototype for
syscall() is  correct for FreeBSD, but not for NetBSD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.30 1995/11/22 23:07:29 cgd Exp $
d358 1
a358 1
206	UNIMPL
@


1.30
log
@change definition of profil() to make it 64-bit friendly.  This has
no practical consequence on 32-bit systems.  old prototype was
int profil(char *, int, int, int), and new one is int profile(char *,
size_t, u_long, u_int).  the size_t is the size of the buffer,
and the u_long is the 'starting offset'.  (I changed the last int
to u_int, because it's treated as a u_int everywhere, and isn't
logically a signed value.)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.29 1995/10/10 01:32:53 mycroft Exp $
d311 2
a312 2
175	UNIMPL
176	UNIMPL
@


1.29
log
@Add aliases for all compat functions.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.28 1995/10/07 06:28:38 mycroft Exp $
d99 2
a100 2
44	STD		{ int sys_profil(caddr_t samples, u_int size, \
			    u_int offset, u_int scale); }
@


1.28
log
@Prefix names of system call implementation functions with `sys_'.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.27 1995/03/09 17:28:28 mycroft Exp $
d55 1
a55 1
8	COMPAT_43	{ int sys_creat(char *path, int mode); }
d67 2
a68 1
19	COMPAT_43	{ long sys_lseek(int fd, long offset, int whence); }
d93 1
a93 1
38	COMPAT_43	{ int sys_stat(char *path, struct ostat *ub); }
d95 1
a95 1
40	COMPAT_43	{ int sys_lstat(char *path, struct ostat *ub); }
d126 1
a126 1
62	COMPAT_43	{ int sys_fstat(int fd, struct ostat *sb); }
d128 2
a129 2
			    int arg); }
64	COMPAT_43	{ int sys_getpagesize(void); }
d137 1
a137 1
			    int flags, int fd, long pos); }
d154 1
a154 1
84	COMPAT_43	{ int sys_wait(void); }
d158 5
a162 3
87	COMPAT_43	{ int sys_gethostname(char *hostname, u_int len); }
88	COMPAT_43	{ int sys_sethostname(char *hostname, u_int len); }
89	COMPAT_43	{ int sys_getdtablesize(void); }
d173 2
a174 1
99	COMPAT_43	{ int sys_accept(int s, caddr_t name, int *anamelen); }
d177 1
a177 1
			    int flags); }
d179 1
a179 1
			    int flags); }
d187 3
a189 3
			    struct sigvec *osv); }
109	COMPAT_43	{ int sys_sigblock(int mask); }
110	COMPAT_43	{ int sys_sigsetmask(int mask); }
d192 1
a192 1
			    struct sigstack *oss); }
d194 3
a196 2
			    int flags); }
114	COMPAT_43	{ int sys_sendmsg(int s, caddr_t msg, int flags); }
d217 4
a220 3
			    int flags, caddr_t from, int *fromlenaddr); }
126	COMPAT_43	{ int sys_setreuid(int ruid, int euid); }
127	COMPAT_43	{ int sys_setregid(int rgid, int egid); }
d222 3
a224 2
129	COMPAT_43	{ int sys_truncate(char *path, long length); }
130	COMPAT_43	{ int sys_ftruncate(int fd, long length); }
d239 3
a241 3
			    int *alen); }
142	COMPAT_43	{ int32_t sys_gethostid(void); }
143	COMPAT_43	{ int sys_sethostid(int32_t hostid); }
d243 1
a243 1
			    struct ogetrlimit *rlp); }
d245 2
a246 2
			    struct ogetrlimit *rlp); }
146	COMPAT_43	{ int sys_killpg(int pgid, int signum); }
d250 1
a250 1
149	COMPAT_43	{ int sys_quota(void); }
d252 1
a252 1
			    int *alen); }
d268 1
a268 1
			    u_int count, long *basep); }
d278 5
a282 3
162	COMPAT_09	{ int sys_getdomainname(char *domainname, int len); }
163	COMPAT_09	{ int sys_setdomainname(char *domainname, int len); }
164	COMPAT_09	{ int sys_uname(struct outsname *name); }
d290 1
a290 1
			    int a5); }
d297 1
a297 1
			    int a5, int a6); }
d303 2
a304 1
171	COMPAT_10	{ int sys_shmsys(int which, int a2, int a3, int a4); }
@


1.27
log
@Make memory map syscalls consistently use size_t.
@
text
@d1 2
a2 1
	$NetBSD: syscalls.master,v 1.26 1995/01/06 00:08:17 cgd Exp $
d46 8
a53 8
0	STD		{ int nosys(void); } syscall
1	STD		{ int exit(int rval); }
2	STD		{ int fork(void); }
3	STD		{ int read(int fd, char *buf, u_int nbyte); }
4	STD		{ int write(int fd, char *buf, u_int nbyte); }
5	STD		{ int open(char *path, int flags, int mode); }
6	STD		{ int close(int fd); }
7	STD		{ int wait4(int pid, int *status, int options, \
d55 3
a57 3
8	COMPAT_43	{ int creat(char *path, int mode); }
9	STD		{ int link(char *path, char *link); }
10	STD		{ int unlink(char *path); }
d59 7
a65 7
12	STD		{ int chdir(char *path); }
13	STD		{ int fchdir(int fd); }
14	STD		{ int mknod(char *path, int mode, int dev); }
15	STD		{ int chmod(char *path, int mode); }
16	STD		{ int chown(char *path, int uid, int gid); }
17	STD		{ int obreak(char *nsize); } break
18	STD		{ int getfsstat(struct statfs *buf, long bufsize, \
d67 3
a69 3
19	COMPAT_43	{ long lseek(int fd, long offset, int whence); }
20	STD		{ pid_t getpid(void); }
21	STD		{ int mount(char *type, char *path, int flags, \
d71 5
a75 5
22	STD		{ int unmount(char *path, int flags); }
23	STD		{ int setuid(uid_t uid); }
24	STD		{ uid_t getuid(void); }
25	STD		{ uid_t geteuid(void); }
26	STD		{ int ptrace(int req, pid_t pid, caddr_t addr, \
d77 4
a80 3
27	STD		{ int recvmsg(int s, struct msghdr *msg, int flags); }
28	STD		{ int sendmsg(int s, caddr_t msg, int flags); }
29	STD		{ int recvfrom(int s, caddr_t buf, size_t len, \
d82 17
a98 15
30	STD		{ int accept(int s, caddr_t name, int *anamelen); }
31	STD		{ int getpeername(int fdes, caddr_t asa, int *alen); }
32	STD		{ int getsockname(int fdes, caddr_t asa, int *alen); }
33	STD		{ int access(char *path, int flags); }
34	STD		{ int chflags(char *path, int flags); }
35	STD		{ int fchflags(int fd, int flags); }
36	STD		{ int sync(void); }
37	STD		{ int kill(int pid, int signum); }
38	COMPAT_43	{ int stat(char *path, struct ostat *ub); }
39	STD		{ pid_t getppid(void); }
40	COMPAT_43	{ int lstat(char *path, struct ostat *ub); }
41	STD		{ int dup(u_int fd); }
42	STD		{ int pipe(void); }
43	STD		{ gid_t getegid(void); }
44	STD		{ int profil(caddr_t samples, u_int size, \
d101 1
a101 1
45	STD		{ int ktrace(char *fname, int ops, int facs, \
d106 1
a106 1
46	STD		{ int sigaction(int signum, struct sigaction *nsa, \
d108 7
a114 7
47	STD		{ gid_t getgid(void); }
48	STD		{ int sigprocmask(int how, sigset_t mask); }
49	STD		{ int getlogin(char *namebuf, u_int namelen); }
50	STD		{ int setlogin(char *namebuf); }
51	STD		{ int acct(char *path); }
52	STD		{ int sigpending(void); }
53	STD		{ int sigaltstack(struct sigaltstack *nss, \
d116 11
a126 10
54	STD		{ int ioctl(int fd, u_long com, caddr_t data); }
55	STD		{ int reboot(int opt); }
56	STD		{ int revoke(char *path); }
57	STD		{ int symlink(char *path, char *link); }
58	STD		{ int readlink(char *path, char *buf, int count); }
59	STD		{ int execve(char *path, char **argp, char **envp); }
60	STD		{ int umask(int newmask); }
61	STD		{ int chroot(char *path); }
62	COMPAT_43	{ int fstat(int fd, struct ostat *sb); }
63	COMPAT_43	{ int getkerninfo(int op, char *where, int *size, \
d128 3
a130 3
64	COMPAT_43	{ int getpagesize(void); }
65	STD		{ int msync(caddr_t addr, size_t len); }
66	STD		{ int vfork(void); }
d133 3
a135 3
69	STD		{ int sbrk(int incr); }
70	STD		{ int sstk(int incr); }
71	COMPAT_43	{ int mmap(caddr_t addr, size_t len, int prot, \
d137 6
a142 4
72	STD		{ int ovadvise(int anom); } vadvise
73	STD		{ int munmap(caddr_t addr, size_t len); }
74	STD		{ int mprotect(caddr_t addr, size_t len, int prot); }
75	STD		{ int madvise(caddr_t addr, size_t len, int behav); }
d145 16
a160 14
78	STD		{ int mincore(caddr_t addr, size_t len, char *vec); }
79	STD		{ int getgroups(u_int gidsetsize, gid_t *gidset); }
80	STD		{ int setgroups(u_int gidsetsize, gid_t *gidset); }
81	STD		{ int getpgrp(void); }
82	STD		{ int setpgid(int pid, int pgid); }
83	STD		{ int setitimer(u_int which, struct itimerval *itv, \
			    struct itimerval *oitv); }
84	COMPAT_43	{ int wait(void); }
85	STD		{ int swapon(char *name); }
86	STD		{ int getitimer(u_int which, struct itimerval *itv); }
87	COMPAT_43	{ int gethostname(char *hostname, u_int len); }
88	COMPAT_43	{ int sethostname(char *hostname, u_int len); }
89	COMPAT_43	{ int getdtablesize(void); }
90	STD		{ int dup2(u_int from, u_int to); }
d162 2
a163 2
92	STD		{ int fcntl(int fd, int cmd, void *arg); }
93	STD		{ int select(u_int nd, fd_set *in, fd_set *ou, \
d166 13
a178 11
95	STD		{ int fsync(int fd); }
96	STD		{ int setpriority(int which, int who, int prio); }
97	STD		{ int socket(int domain, int type, int protocol); }
98	STD		{ int connect(int s, caddr_t name, int namelen); }
99	COMPAT_43	{ int accept(int s, caddr_t name, int *anamelen); }
100	STD		{ int getpriority(int which, int who); }
101	COMPAT_43	{ int send(int s, caddr_t buf, int len, int flags); }
102	COMPAT_43	{ int recv(int s, caddr_t buf, int len, int flags); }
103	STD		{ int sigreturn(struct sigcontext *sigcntxp); }
104	STD		{ int bind(int s, caddr_t name, int namelen); }
105	STD		{ int setsockopt(int s, int level, int name, \
d180 1
a180 1
106	STD		{ int listen(int s, int backlog); }
d182 1
a182 1
108	COMPAT_43	{ int sigvec(int signum, struct sigvec *nsv, \
d184 4
a187 4
109	COMPAT_43	{ int sigblock(int mask); }
110	COMPAT_43	{ int sigsetmask(int mask); }
111	STD		{ int sigsuspend(int mask); }
112	COMPAT_43	{ int sigstack(struct sigstack *nss, \
d189 3
a191 2
113	COMPAT_43	{ int recvmsg(int s, struct omsghdr *msg, int flags); }
114	COMPAT_43	{ int sendmsg(int s, caddr_t msg, int flags); }
d193 1
a193 1
115	STD		{ int vtrace(int request, int value); }
d197 1
a197 1
116	STD		{ int gettimeofday(struct timeval *tp, \
d199 2
a200 2
117	STD		{ int getrusage(int who, struct rusage *rusage); }
118	STD		{ int getsockopt(int s, int level, int name, \
d203 3
a205 2
120	STD		{ int readv(int fd, struct iovec *iovp, u_int iovcnt); }
121	STD		{ int writev(int fd, struct iovec *iovp, \
d207 1
a207 1
122	STD		{ int settimeofday(struct timeval *tv, \
d209 3
a211 3
123	STD		{ int fchown(int fd, int uid, int gid); }
124	STD		{ int fchmod(int fd, int mode); }
125	COMPAT_43	{ int recvfrom(int s, caddr_t buf, size_t len, \
d213 8
a220 8
126	COMPAT_43	{ int setreuid(int ruid, int euid); }
127	COMPAT_43	{ int setregid(int rgid, int egid); }
128	STD		{ int rename(char *from, char *to); }
129	COMPAT_43	{ int truncate(char *path, long length); }
130	COMPAT_43	{ int ftruncate(int fd, long length); }
131	STD		{ int flock(int fd, int how); }
132	STD		{ int mkfifo(char *path, int mode); }
133	STD		{ int sendto(int s, caddr_t buf, size_t len, \
d222 6
a227 6
134	STD		{ int shutdown(int s, int how); }
135	STD		{ int socketpair(int domain, int type, int protocol, \
			    int *rsv); }
136	STD		{ int mkdir(char *path, int mode); }
137	STD		{ int rmdir(char *path); }
138	STD		{ int utimes(char *path, struct timeval *tptr); }
d229 1
a229 1
140	STD		{ int adjtime(struct timeval *delta, \
d231 11
a241 8
141	COMPAT_43	{ int getpeername(int fdes, caddr_t asa, int *alen); }
142	COMPAT_43	{ int32_t gethostid(void); }
143	COMPAT_43	{ int sethostid(int32_t hostid); }
144	COMPAT_43	{ int getrlimit(u_int which, struct ogetrlimit *rlp); }
145	COMPAT_43	{ int setrlimit(u_int which, struct ogetrlimit *rlp); }
146	COMPAT_43	{ int killpg(int pgid, int signum); }
147	STD		{ int setsid(void); }
148	STD		{ int quotactl(char *path, int cmd, int uid, \
d243 3
a245 2
149	COMPAT_43	{ int quota(void); }
150	COMPAT_43	{ int getsockname(int fdec, caddr_t asa, int *alen); }
d256 1
a256 1
155	STD		{ int nfssvc(int flag, caddr_t argp); }
d260 4
a263 4
156	COMPAT_43	{ int getdirentries(int fd, char *buf, u_int count, \
			    long *basep); }
157	STD		{ int statfs(char *path, struct statfs *buf); }
158	STD		{ int fstatfs(int fd, struct statfs *buf); }
d267 1
a267 1
161	STD		{ int getfh(char *fname, fhandle_t *fhp); }
d271 4
a274 4
162	COMPAT_09	{ int getdomainname(char *domainname, int len); }
163	COMPAT_09	{ int setdomainname(char *domainname, int len); }
164	COMPAT_09	{ int uname(struct outsname *name); }
165	STD		{ int sysarch(int op, char *parms); }
d280 1
a280 1
169	COMPAT_10	{ int semsys(int which, int a2, int a3, int a4, \
d287 1
a287 1
170	COMPAT_10	{ int msgsys(int which, int a2, int a3, int a4, \
d294 1
a294 1
171	COMPAT_10	{ int shmsys(int which, int a2, int a3, int a4); }
d309 3
a311 3
181	STD		{ int setgid(gid_t gid); }
182	STD		{ int setegid(gid_t egid); }
183	STD		{ int seteuid(uid_t euid); }
d325 5
a329 5
188	STD		{ int stat(char *path, struct stat *ub); }
189	STD		{ int fstat(int fd, struct stat *sb); }
190	STD		{ int lstat(char *path, struct stat *ub); }
191	STD		{ int pathconf(char *path, int name); }
192	STD		{ int fpathconf(int fd, int name); }
d331 5
a335 5
194	STD		{ int getrlimit(u_int which, struct rlimit *rlp); }
195	STD		{ int setrlimit(u_int which, struct rlimit *rlp); }
196	STD		{ int getdirentries(int fd, char *buf, u_int count, \
			    long *basep); }
197	STD		{ caddr_t mmap(caddr_t addr, size_t len, int prot, \
d337 2
a338 2
198	STD		{ int nosys(void); } __syscall
199	STD		{ off_t lseek(int fd, int pad, off_t offset, \
d340 8
a347 7
200	STD		{ int truncate(char *path, int pad, off_t length); }
201	STD		{ int ftruncate(int fd, int pad, off_t length); }
202	STD		{ int __sysctl(int *name, u_int namelen, void *old, \
			    size_t *oldlenp, void *new, size_t newlen); }
203	STD		{ int mlock(caddr_t addr, size_t len); }
204	STD		{ int munlock(caddr_t addr, size_t len); }
205	STD		{ int undelete(char *path); }
d356 10
a365 10
210	NODEF		{ int lkmnosys(void); }
211	NODEF		{ int lkmnosys(void); }
212	NODEF		{ int lkmnosys(void); }
213	NODEF		{ int lkmnosys(void); }
214	NODEF		{ int lkmnosys(void); }
215	NODEF		{ int lkmnosys(void); }
216	NODEF		{ int lkmnosys(void); }
217	NODEF		{ int lkmnosys(void); }
218	NODEF		{ int lkmnosys(void); }
219	NODEF		{ int lkmnosys(void); }
d380 1
a380 1
220	STD		{ int __semctl(int semid, int semnum, int cmd, \
d382 2
a383 2
221	STD		{ int semget(key_t key, int nsems, int semflg); }
222	STD		{ int semop(int semid, struct sembuf *sops, \
d385 1
a385 1
223	STD		{ int semconfig(int flag); }
d393 1
a393 1
224	STD		{ int msgctl(int msqid, int cmd, \
d395 2
a396 2
225	STD		{ int msgget(key_t key, int msgflg); }
226	STD		{ int msgsnd(int msqid, void *msgp, size_t msgsz, \
d398 1
a398 1
227	STD		{ int msgrcv(int msqid, void *msgp, size_t msgsz, \
d407 2
a408 2
228	STD		{ int shmat(int shmid, void *shmaddr, int shmflg); }
229	STD		{ int shmctl(int shmid, int cmd, \
d410 2
a411 2
230	STD		{ int shmdt(void *shmaddr); }
231	STD		{ int shmget(key_t key, int size, int shmflg); }
@


1.26
log
@obsolete resuba, per ragge.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.25 1994/12/14 16:29:57 mycroft Exp $
d124 1
a124 1
65	STD		{ int msync(caddr_t addr, int len); }
d130 1
a130 1
71	COMPAT_43	{ int mmap(caddr_t addr, int len, int prot, \
d133 3
a135 3
73	STD		{ int munmap(caddr_t addr, int len); }
74	STD		{ int mprotect(caddr_t addr, int len, int prot); }
75	STD		{ int madvise(caddr_t addr, int len, int behav); }
d138 1
a138 1
78	STD		{ int mincore(caddr_t addr, int len, char *vec); }
@


1.25
log
@Add undelete syscall, per CSRG.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.24 1994/10/21 00:14:36 mycroft Exp $
d190 1
a190 5
#ifdef vax
119	STD		{ int resuba(int value); }
#else
119	UNIMPL		resuba
#endif
@


1.24
log
@Fix typos.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.23 1994/10/20 04:23:12 cgd Exp $
d333 1
a333 1
205	UNIMPL
@


1.23
log
@update for new syscall args description mechanism
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.22 1994/06/29 06:33:10 cgd Exp $
d10 1
a10 1
;		the copatibility options defined in syscalls.conf.
d15 1
a15 1
;	UNIMP	unimplemented, not included in system
@


1.22
log
@New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'
@
text
@d1 1
a1 1
 	$NetBSD$
a2 2
; System call name/number master file.
; Processed to created init_sysent.c, syscalls.c and syscall.h.
d4 4
a7 1
; Columns: number type nargs name altname/comments
d9 3
a11 6
;	type	one of STD, OBSOL, UNIMPL, NODEF, COMPAT, NCOMPAT, LIBCOMPAT
;	nargs	number of arguments
;	name	name of syscall routine
;	altname	name of system call if different
;		for UNIMPL/OBSOL, name continues with comments

d14 18
a31 6
;	COMPAT	included on COMPAT #ifdef
;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
;	OBSOL	obsolete, not included in system, only specifies name
;	NODEF	do everything except include in syscall.h
;	NCOMPAT	included on NetBSD COMPAT #ifdef
;	UNIMPL	not implemented, placeholder only
d33 5
a37 1
; #ifdef's, etc. may be included, and are copied to the output files.
d45 51
a95 45
0	STD	0 nosys syscall
1	STD	1 exit
2	STD	0 fork
3	STD	3 read
4	STD	3 write
5	STD	3 open
6	STD	1 close
7	STD	4 wait4
8	COMPAT	2 creat
9	STD	2 link
10	STD	1 unlink
11	OBSOL	2 execv
12	STD	1 chdir
13	STD	1 fchdir
14	STD	3 mknod
15	STD	2 chmod
16	STD	3 chown
17	STD	1 obreak break
18	STD	3 getfsstat
19	COMPAT	3 lseek
20	STD	0 getpid
21	STD	4 mount
22	STD	2 unmount
23	STD	1 setuid
24	STD	0 getuid
25	STD	0 geteuid
26	STD	4 ptrace
27	STD	3 recvmsg
28	STD	3 sendmsg
29	STD	6 recvfrom
30	STD	3 accept
31	STD	3 getpeername
32	STD	3 getsockname
33	STD	2 access
34	STD	2 chflags
35	STD	2 fchflags
36	STD	0 sync
37	STD	2 kill
38	COMPAT	2 stat
39	STD	0 getppid
40	COMPAT	2 lstat
41	STD	2 dup
42	STD	0 pipe
43	STD	0 getegid
44	STD	4 profil
d97 2
a98 1
45	STD	4 ktrace
d100 1
a100 1
45	UNIMPL	0 ktrace
d102 78
a179 69
46	STD	3 sigaction
47	STD	0 getgid
48	STD	2 sigprocmask
49	STD	2 getlogin
50	STD	1 setlogin
51	STD	1 acct
52	STD	0 sigpending
53	STD	2 sigaltstack
54	STD	3 ioctl
55	STD	1 reboot
56	STD	1 revoke
57	STD	2 symlink
58	STD	3 readlink
59	STD	3 execve
60	STD	1 umask
61	STD	1 chroot
62	COMPAT	2 fstat
63	COMPAT	4 getkerninfo
64	COMPAT	0 getpagesize
65	STD	2 msync
66	STD	0 vfork
67	OBSOL	0 vread
68	OBSOL	0 vwrite
69	STD	1 sbrk
70	STD	1 sstk
71	COMPAT	7 mmap
72	STD	1 ovadvise vadvise
73	STD	2 munmap
74	STD	3 mprotect
75	STD	3 madvise
76	OBSOL	0 vhangup
77	OBSOL	0 vlimit
78	STD	3 mincore
79	STD	2 getgroups
80	STD	2 setgroups
81	STD	0 getpgrp
82	STD	2 setpgid
83	STD	3 setitimer
84	COMPAT	0 wait
85	STD	1 swapon
86	STD	2 getitimer
87	COMPAT	2 gethostname
88	COMPAT	2 sethostname
89	COMPAT	0 getdtablesize
90	STD	2 dup2
91	UNIMPL	2 getdopt
92	STD	3 fcntl
93	STD	5 select
94	UNIMPL	2 setdopt
95	STD	1 fsync
96	STD	3 setpriority
97	STD	3 socket
98	STD	3 connect
99	COMPAT	3 accept
100	STD	2 getpriority
101	COMPAT	4 send
102	COMPAT	4 recv
103	STD	1 sigreturn
104	STD	3 bind
105	STD	5 setsockopt
106	STD	2 listen
107	OBSOL	0 vtimes
108	COMPAT	3 sigvec
109	COMPAT	1 sigblock
110	COMPAT	1 sigsetmask
111	STD	1 sigsuspend
112	COMPAT	2 sigstack
113	COMPAT	3 recvmsg
114	COMPAT	3 sendmsg
d181 1
a181 1
115	STD	2 vtrace
d183 1
a183 1
115	OBSOL	2 vtrace
d185 5
a189 3
116	STD	2 gettimeofday
117	STD	2 getrusage
118	STD	5 getsockopt
d191 1
a191 1
119	STD	1 resuba
d193 1
a193 1
119	UNIMPL	0 nosys
d195 38
a232 31
120	STD	3 readv
121	STD	3 writev
122	STD	2 settimeofday
123	STD	3 fchown
124	STD	2 fchmod
125	COMPAT	6 recvfrom
126	COMPAT	2 setreuid
127	COMPAT	2 setregid
128	STD	2 rename
129	COMPAT	2 truncate
130	COMPAT	2 ftruncate
131	STD	2 flock
132	STD	2 mkfifo
133	STD	6 sendto
134	STD	2 shutdown
135	STD	5 socketpair
136	STD	2 mkdir
137	STD	1 rmdir
138	STD	2 utimes
139	OBSOL	0 4.2 sigreturn
140	STD	2 adjtime
141	COMPAT	3 getpeername
142	COMPAT	0 gethostid
143	COMPAT	1 sethostid
144	COMPAT	2 getrlimit
145	COMPAT	2 setrlimit
146	COMPAT	2 killpg
147	STD	0 setsid
148	STD	4 quotactl
149	COMPAT	4 quota
150	COMPAT	3 getsockname
d238 4
a241 4
151	UNIMPL	0 nosys
152	UNIMPL	0 nosys
153	UNIMPL	0 nosys
154	UNIMPL	0 nosys
d243 1
a243 1
155	STD	2 nfssvc
d245 1
a245 1
155	UNIMPL	0 nosys
d247 6
a252 5
156	COMPAT	4 getdirentries
157	STD	2 statfs
158	STD	2 fstatfs
159	UNIMPL	0 nosys
160	UNIMPL	0 nosys
d254 1
a254 1
161	STD	2 getfh
d256 1
a256 1
161	UNIMPL	0 nosys
d258 11
a268 9
162	NCOMPAT	2 getdomainname
163	NCOMPAT	2 setdomainname
164	NCOMPAT	1 uname
165	STD	2 sysarch
166	UNIMPL	0 nosys
167	UNIMPL	0 nosys
168	UNIMPL	0 nosys
#ifdef SYSVSEM
169	STD	5 semsys
d270 1
a270 1
169	UNIMPL	0 nosys
d272 4
a275 2
#ifdef SYSVMSG
170	STD	6 msgsys
d277 1
a277 1
170	UNIMPL	0 nosys
d279 3
a281 2
#ifdef SYSVSHM
171	STD	4 shmsys
d283 1
a283 1
171	UNIMPL	0 nosys
d285 9
a293 9
172	UNIMPL	0 nosys
173	UNIMPL	0 nosys
174	UNIMPL	0 nosys
175	UNIMPL	0 nosys
176	UNIMPL	0 nosys
177	UNIMPL	0 nosys
178	UNIMPL	0 nosys
179	UNIMPL	0 nosys
180	UNIMPL	0 nosys
d296 3
a298 3
181	STD	1 setgid
182	STD	1 setegid
183	STD	1 seteuid
d300 38
a337 32
184	STD	3 lfs_bmapv
185	STD	3 lfs_markv
186	STD	2 lfs_segclean
187	STD	2 lfs_segwait
#else
184	UNIMPL	0 nosys
185	UNIMPL	0 nosys
186	UNIMPL	0 nosys
187	UNIMPL	0 nosys
#endif
188	STD	2 stat
189	STD	2 fstat
190	STD	2 lstat
191	STD	2 pathconf
192	STD	2 fpathconf
193	UNIMPL	0 nosys
194	STD	2 getrlimit
195	STD	2 setrlimit
196	STD	4 getdirentries
197	STD	8 mmap
198	STD	0 nosys __syscall
199	STD	5 lseek
200	STD	4 truncate
201	STD	4 ftruncate
202	STD	6 __sysctl
203	STD	2 mlock
204	STD	2 munlock
205	UNIMPL	0 nosys
206	UNIMPL	0 nosys
207	UNIMPL	0 nosys
208	UNIMPL	0 nosys
209	UNIMPL	0 nosys
d342 10
a351 10
210	NODEF	0 lkmnosys
211	NODEF	0 lkmnosys
212	NODEF	0 lkmnosys
213	NODEF	0 lkmnosys
214	NODEF	0 lkmnosys
215	NODEF	0 lkmnosys
216	NODEF	0 lkmnosys
217	NODEF	0 lkmnosys
218	NODEF	0 lkmnosys
219	NODEF	0 lkmnosys
d353 10
a362 10
210	UNIMPL	0 nosys
211	UNIMPL	0 nosys
212	UNIMPL	0 nosys
213	UNIMPL	0 nosys
214	UNIMPL	0 nosys
215	UNIMPL	0 nosys
216	UNIMPL	0 nosys
217	UNIMPL	0 nosys
218	UNIMPL	0 nosys
219	UNIMPL	0 nosys
d364 40
@


1.21
log
@make getdtablesize COMPAT_43; should be COMPAT_44 or _09, but that has probs
@
text
@d1 2
a2 2
 	$Id: syscalls.master,v 1.20 1994/06/08 11:28:45 mycroft Exp $
;	from: @@(#)syscalls.master	8.2 (Berkeley) 1/13/94
@


1.20
log
@Update to 4.4-Lite fs code.
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.18 1994/05/07 00:39:06 cgd Exp $
d124 1
a124 1
89	STD	0 getdtablesize
@


1.19
log
@add support for 'NCOMPAT' to deal with NetBSD compat defines
@
text
@d2 1
a2 1
;	from: @@(#)syscalls.master	7.26 (Berkeley) 3/25/91
d203 2
a204 2
#if defined(NFSSERVER)
155	STD	5 nfssvc
d208 1
a208 1
156	STD	4 getdirentries
d212 1
a213 1
160	STD	0 async_daemon
a215 1
160	UNIMPL	0 nosys
d273 1
a273 1
196	UNIMPL	0 nosys
@


1.18
log
@do the syscall shuffle.  this is most of the rest
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.17 1994/05/01 05:02:24 cgd Exp $
d8 1
a8 1
;	type	one of STD, OBSOL, UNIMPL, NODEF, COMPAT
d20 1
d219 3
a221 3
162	COMPAT	2 getdomainname
163	COMPAT	2 setdomainname
164	COMPAT	1 uname
@


1.17
log
@kill damned off_t weirdness, also upgrade get- and setrlimit.
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.16 1994/04/29 04:29:14 cgd Exp $
d87 1
a87 5
#ifdef notyet
53	STD	3 sigaltstack
#else
53	UNIMPL	3 sigaltstack
#endif
d97 2
a98 2
63	STD	4 getkerninfo
64	STD	0 getpagesize
d121 2
a122 2
87	STD	2 gethostname
88	STD	2 sethostname
d146 1
a146 1
112	STD	2 sigstack
d184 2
a185 2
142	STD	0 gethostid
143	STD	1 sethostid
d202 1
a202 1
#ifdef NFSSERVER
d218 3
a220 3
162	STD	2 getdomainname
163	STD 	2 setdomainname
164	STD	1 uname
d268 2
a269 2
191	UNIMPL	0 nosys
192	UNIMPL	0 nosys
d279 3
a281 3
202	UNIMPL	0 nosys
203	UNIMPL	0 nosys
204	UNIMPL	0 nosys
@


1.16
log
@kill 'aliases'
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.15 1994/04/16 23:19:06 cgd Exp $
d161 3
d165 1
d190 2
a191 2
144	STD	2 getrlimit
145	STD	2 setrlimit
d258 6
d268 1
d275 2
a276 2
194	UNIMPL	0 nosys
195	UNIMPL	0 nosys
d283 4
a286 5
; XXX THE FOLLOWING FOUR ENTRIES ARE TEMPORARY
202	COMPAT	8 nmmap
203	COMPAT	5 nlseek
204	COMPAT	4 ntruncate
205	COMPAT	4 nftruncate
@


1.15
log
@start to phase out temp. off_t syscalls
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.14 1994/04/07 00:15:29 cgd Exp $
d31 1
a31 1
1	STD	1 rexit exit
d63 1
a63 1
33	STD	2 saccess access
d85 1
a85 1
51	STD	1 sysacct acct
d267 1
a267 1
197	STD	8 smmap mmap
@


1.14
log
@kill two LIBCOMPATs
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.13 1994/04/02 08:03:17 cgd Exp $
d267 1
a267 2
; XXX THE FOLLOWING FIVE ENTRIES ARE TEMPORARY
197	COMPAT	8 nmmap
d269 3
a271 3
199	COMPAT	5 nlseek
200	COMPAT	4 ntruncate
201	COMPAT	4 nftruncate
d273 4
a276 4
202	STD	8 smmap mmap
203	STD	5 lseek
204	STD	4 truncate
205	STD	4 ftruncate
@


1.13
log
@some temporary syscall shuffling
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.12 1994/03/27 08:34:59 cgd Exp $
d168 2
a169 2
126	LIBCOMPAT	2 setreuid
127	LIBCOMPAT	2 setregid
@


1.12
log
@do the syscall shuffle
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.11 1994/03/08 23:57:00 cgd Exp $
d267 11
a277 9
197	STD	8 smmap mmap
198	UNIMPL	0 nosys
199	STD	5 lseek
200	STD	4 truncate
201	STD	4 ftruncate
202	UNIMPL	0 nosys
203	UNIMPL	0 nosys
204	UNIMPL	0 nosys
205	UNIMPL	0 nosys
@


1.11
log
@move LKM syscalls to 210 -> 219, and fix comment
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.10 1993/12/12 19:28:21 deraadt Exp $
d49 1
a49 1
19	STD	3 lseek
d68 1
a68 1
38	STD	2 stat
d70 1
a70 1
40	STD	2 lstat
d100 1
a100 1
62	STD	2 fstat
d109 1
a109 1
71	STD	6 smmap mmap
d171 2
a172 2
129	STD	2 truncate
130	STD	2 ftruncate
d258 3
a260 3
188	UNIMPL	0 nosys
189	UNIMPL	0 nosys
190	UNIMPL	0 nosys
d267 1
a267 1
197	UNIMPL	0 nosys
d269 3
a271 3
199	UNIMPL	0 nosys
200	UNIMPL	0 nosys
201	UNIMPL	0 nosys
@


1.10
log
@make syscall#0 "syscall", like in 4.4 (causes SYS_syscall to be defined)
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.9 1993/11/14 13:08:09 cgd Exp $
a269 15
;
; Syscalls 200-109 are reserved for dynamically loaded syscalls
;
#ifdef LKM
200	NODEF	0 lkmnosys
201	NODEF	0 lkmnosys
202	NODEF	0 lkmnosys
203	NODEF	0 lkmnosys
204	NODEF	0 lkmnosys
205	NODEF	0 lkmnosys
206	NODEF	0 lkmnosys
207	NODEF	0 lkmnosys
208	NODEF	0 lkmnosys
209	NODEF	0 lkmnosys
#else	/* !LKM */
d280 25
@


1.9
log
@Add the System V message queue and semaphore facilities.  Implemented
by Daniel Boulet <danny@@BouletFermat.ab.ca>
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.8 1993/10/02 09:51:40 mycroft Exp $
d30 1
a30 1
0	UNIMPL	0 indir or out-of-range
@


1.8
log
@Put back the $'s in the RCS id that the last commit removed.
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.6 1993/06/07 19:52:42 cgd Exp $
d225 3
d229 4
d234 1
@


1.7
log
@Add sysarch() syscall.
@
text
@d1 1
a1 1
 	syscalls.master,v 1.6 1993/06/07 19:52:42 cgd Exp
@


1.6
log
@add support for terry lambert's loadable kernel modules.
needs a bit of cleanup, but overall: SLICK!
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.5 1993/05/20 02:55:11 cgd Exp $
a160 3
#ifdef vax
119	STD	1 resuba
#else
a161 1
#endif
d221 1
a221 1
165	UNIMPL	0 nosys
@


1.6.4.1
log
@Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.6 1993/06/07 19:52:42 cgd Exp $
d161 3
d165 1
d225 1
a225 1
165	STD	2 sysarch
@


1.6.4.2
log
@make syscall#0 "syscall", like in 4.4
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.6.4.1 1993/09/24 08:51:40 mycroft Exp $
d30 1
a30 1
0	STD	0 nosys syscall
@


1.6.4.3
log
@update from trunk
@
text
@d1 1
a1 1
 	$Id: syscalls.master,v 1.6.4.2 1993/11/10 00:52:35 deraadt Exp $
a224 3
#ifdef SYSVSEM
169	STD	5 semsys
#else
a225 4
#endif
#ifdef SYSVMSG
170	STD	6 msgsys
#else
a226 1
#endif
@


1.5
log
@add $Id$ strings, and clean up file headers where necessary
@
text
@d1 1
a1 1
 	$Id$
d8 1
a8 1
;	type	one of STD, OBSOL, UNIMPL, COMPAT
d19 1
d257 35
@


1.4
log
@getpgrp actually takes void.  ask the IEEE...
@
text
@d1 2
a2 1
	@@(#)syscalls.master	7.26 (Berkeley) 3/25/91
@


1.3
log
@diffs for uname (posix!) system call, provided by John Brezak <brezak@@osf.org>
@
text
@d117 1
a117 1
81	STD	1 getpgrp
@


1.2
log
@forgot to update syscalls.master.  the makesyscalls.sh generated stuff
is now updated
@
text
@d222 1
a222 1
164	UNIMPL	0 nosys
@


1.1
log
@used by makesyscalls.sh to produce init_sysent.c, syscalls.c ../sys/syscall.h
edit this to add/delete/ifdef system calls
@
text
@d204 1
a204 1
#ifdef NFS
d213 1
a213 1
#ifdef NFS
@


1.1.1.1
log
@Import 4.4BSD-Lite for reference
@
text
@d1 1
a1 1
	@@(#)syscalls.master	8.2 (Berkeley) 1/13/94
d28 2
a29 2
0	STD	0 nosys syscall
1	STD	1 exit
d47 1
a47 1
19	COMPAT	3 lseek
d61 1
a61 1
33	STD	2 access
d66 1
a66 1
38	COMPAT	2 stat
d68 1
a68 1
40	COMPAT	2 lstat
d83 1
a83 1
51	STD	1 acct
d85 5
a89 1
53	STD	2 sigaltstack
d98 3
a100 3
62	COMPAT	2 fstat
63	COMPAT	4 getkerninfo
64	COMPAT	0 getpagesize
d107 1
a107 1
71	COMPAT	7 mmap
d117 1
a117 1
81	STD	0 getpgrp
d123 2
a124 2
87	COMPAT	2 gethostname
88	COMPAT	2 sethostname
d148 1
a148 1
112	COMPAT	2 sigstack
d170 2
a171 2
126	COMPAT	2 setreuid
127	COMPAT	2 setregid
d173 2
a174 2
129	COMPAT	2 truncate
130	COMPAT	2 ftruncate
d186 4
a189 4
142	COMPAT	0 gethostid
143	COMPAT	1 sethostid
144	COMPAT	2 getrlimit
145	COMPAT	2 setrlimit
d205 1
a205 1
155	STD	2 nfssvc
d209 1
a209 1
156	COMPAT	4 getdirentries
a212 1
160	UNIMPL	0 nosys
d214 1
d217 1
d220 2
a221 2
162	UNIMPL	0 nosys
163	UNIMPL	0 nosys
a247 6
#ifdef LFS
184	STD	3 lfs_bmapv
185	STD	3 lfs_markv
186	STD	2 lfs_segclean
187	STD	2 lfs_segwait
#else
d252 3
a254 24
#endif
188	STD	2 stat
189	STD	2 fstat
190	STD	2 lstat
191	STD	2 pathconf
192	STD	2 fpathconf
193	UNIMPL	0 nosys
194	STD	2 getrlimit
195	STD	2 setrlimit
196	STD	4 getdirentries
197	STD	8 mmap
198	STD	0 nosys __syscall
199	STD	5 lseek
200	STD	4 truncate
201	STD	4 ftruncate
202	STD	6 __sysctl
203	STD	2 mlock
204	STD	2 munlock
205	UNIMPL	0 nosys
206	UNIMPL	0 nosys
207	UNIMPL	0 nosys
208	UNIMPL	0 nosys
209	UNIMPL	0 nosys
210	UNIMPL	0 nosys
@


1.1.1.2
log
@Import 4.4BSD-Lite2
@
text
@d1 5
a5 5
	@@(#)syscalls.master	8.6 (Berkeley) 3/30/95
; System call name/number "master" file.
; (See syscalls.conf to see what it is processed into.)
;
; Fields: number type [type-dependent ...]
d7 6
a12 3
;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
;		the compatibility options defined in syscalls.conf.
;
d15 5
a19 16
;	OBSOL	obsolete, not included in system
;	UNIMPL	unimplemented, not included in system
;	NODEF	included, but don't define the syscall number
;	NOARGS	included, but don't define the syscall args structure
;
; The compat options are defined in the syscalls.conf file, and the
; compat option name is prefixed to the syscall name.  Other than
; that, they're like NODEF (for 'compat' options), or STD (for
; 'libcompat' options).
;
; The type-dependent arguments are as follows:
; For STD, NODEF, NOARGS, and compat syscalls:
;	{ pseudo-proto } [alias]
; For other syscalls:
;	[comment]
;
a20 7
; #include's are copied to the syscall switch definition file only.

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
d28 45
a72 51
0	STD		{ int nosys(void); } syscall
1	STD		{ int exit(int rval); }
2	STD		{ int fork(void); }
3	STD		{ int read(int fd, char *buf, u_int nbyte); }
4	STD		{ int write(int fd, char *buf, u_int nbyte); }
5	STD		{ int open(char *path, int flags, int mode); }
6	STD		{ int close(int fd); }
7	STD		{ int wait4(int pid, int *status, int options, \
			    struct rusage *rusage); }
8	COMPAT_43	{ int creat(char *path, int mode); }
9	STD		{ int link(char *path, char *link); }
10	STD		{ int unlink(char *path); }
11	OBSOL		execv
12	STD		{ int chdir(char *path); }
13	STD		{ int fchdir(int fd); }
14	STD		{ int mknod(char *path, int mode, int dev); }
15	STD		{ int chmod(char *path, int mode); }
16	STD		{ int chown(char *path, int uid, int gid); }
17	STD		{ int obreak(char *nsize); } break
18	STD		{ int getfsstat(struct statfs *buf, long bufsize, \
			    int flags); }
19	COMPAT_43	{ long lseek(int fd, long offset, int whence); }
20	STD		{ pid_t getpid(void); }
21	STD		{ int mount(char *type, char *path, int flags, \
			    caddr_t data); }
22	STD		{ int unmount(char *path, int flags); }
23	STD		{ int setuid(uid_t uid); }
24	STD		{ uid_t getuid(void); }
25	STD		{ uid_t geteuid(void); }
26	STD		{ int ptrace(int req, pid_t pid, caddr_t addr, \
			    int data); }
27	STD		{ int recvmsg(int s, struct msghdr *msg, int flags); }
28	STD		{ int sendmsg(int s, caddr_t msg, int flags); }
29	STD		{ int recvfrom(int s, caddr_t buf, size_t len, \
			    int flags, caddr_t from, int *fromlenaddr); }
30	STD		{ int accept(int s, caddr_t name, int *anamelen); }
31	STD		{ int getpeername(int fdes, caddr_t asa, int *alen); }
32	STD		{ int getsockname(int fdes, caddr_t asa, int *alen); }
33	STD		{ int access(char *path, int flags); }
34	STD		{ int chflags(char *path, int flags); }
35	STD		{ int fchflags(int fd, int flags); }
36	STD		{ int sync(void); }
37	STD		{ int kill(int pid, int signum); }
38	COMPAT_43	{ int stat(char *path, struct ostat *ub); }
39	STD		{ pid_t getppid(void); }
40	COMPAT_43	{ int lstat(char *path, struct ostat *ub); }
41	STD		{ int dup(u_int fd); }
42	STD		{ int pipe(void); }
43	STD		{ gid_t getegid(void); }
44	STD		{ int profil(caddr_t samples, u_int size, \
			    u_int offset, u_int scale); }
d74 1
a74 2
45	STD		{ int ktrace(char *fname, int ops, int facs, \
			    int pid); }
d76 1
a76 1
45	UNIMPL		ktrace
d78 69
a146 78
46	STD		{ int sigaction(int signum, struct sigaction *nsa, \
			    struct sigaction *osa); }
47	STD		{ gid_t getgid(void); }
48	STD		{ int sigprocmask(int how, sigset_t mask); }
49	STD		{ int getlogin(char *namebuf, u_int namelen); }
50	STD		{ int setlogin(char *namebuf); }
51	STD		{ int acct(char *path); }
52	STD		{ int sigpending(void); }
53	STD		{ int sigaltstack(struct sigaltstack *nss, \
			    struct sigaltstack *oss); }
54	STD		{ int ioctl(int fd, u_long com, caddr_t data); }
55	STD		{ int reboot(int opt); }
56	STD		{ int revoke(char *path); }
57	STD		{ int symlink(char *path, char *link); }
58	STD		{ int readlink(char *path, char *buf, int count); }
59	STD		{ int execve(char *path, char **argp, char **envp); }
60	STD		{ int umask(int newmask); }
61	STD		{ int chroot(char *path); }
62	COMPAT_43	{ int fstat(int fd, struct ostat *sb); }
63	COMPAT_43	{ int getkerninfo(int op, char *where, int *size, \
			    int arg); }
64	COMPAT_43	{ int getpagesize(void); }
65	STD		{ int msync(caddr_t addr, int len); }
66	STD		{ int vfork(void); }
67	OBSOL		vread
68	OBSOL		vwrite
69	STD		{ int sbrk(int incr); }
70	STD		{ int sstk(int incr); }
71	COMPAT_43	{ int mmap(caddr_t addr, int len, int prot, \
			    int flags, int fd, long pos); }
72	STD		{ int ovadvise(int anom); } vadvise
73	STD		{ int munmap(caddr_t addr, int len); }
74	STD		{ int mprotect(caddr_t addr, int len, int prot); }
75	STD		{ int madvise(caddr_t addr, int len, int behav); }
76	OBSOL		vhangup
77	OBSOL		vlimit
78	STD		{ int mincore(caddr_t addr, int len, char *vec); }
79	STD		{ int getgroups(u_int gidsetsize, gid_t *gidset); }
80	STD		{ int setgroups(u_int gidsetsize, gid_t *gidset); }
81	STD		{ int getpgrp(void); }
82	STD		{ int setpgid(int pid, int pgid); }
83	STD		{ int setitimer(u_int which, struct itimerval *itv, \
			    struct itimerval *oitv); }
84	COMPAT_43	{ int wait(void); }
85	STD		{ int swapon(char *name); }
86	STD		{ int getitimer(u_int which, struct itimerval *itv); }
87	COMPAT_43	{ int gethostname(char *hostname, u_int len); }
88	COMPAT_43	{ int sethostname(char *hostname, u_int len); }
89	STD		{ int getdtablesize(void); }
90	STD		{ int dup2(u_int from, u_int to); }
91	UNIMPL		getdopt
92	STD		{ int fcntl(int fd, int cmd, void *arg); }
93	STD		{ int select(u_int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
94	UNIMPL		setdopt
95	STD		{ int fsync(int fd); }
96	STD		{ int setpriority(int which, int who, int prio); }
97	STD		{ int socket(int domain, int type, int protocol); }
98	STD		{ int connect(int s, caddr_t name, int namelen); }
99	COMPAT_43	{ int accept(int s, caddr_t name, int *anamelen); }
100	STD		{ int getpriority(int which, int who); }
101	COMPAT_43	{ int send(int s, caddr_t buf, int len, int flags); }
102	COMPAT_43	{ int recv(int s, caddr_t buf, int len, int flags); }
103	STD		{ int sigreturn(struct sigcontext *sigcntxp); }
104	STD		{ int bind(int s, caddr_t name, int namelen); }
105	STD		{ int setsockopt(int s, int level, int name, \
			    caddr_t val, int valsize); }
106	STD		{ int listen(int s, int backlog); }
107	OBSOL		vtimes
108	COMPAT_43	{ int sigvec(int signum, struct sigvec *nsv, \
			    struct sigvec *osv); }
109	COMPAT_43	{ int sigblock(int mask); }
110	COMPAT_43	{ int sigsetmask(int mask); }
111	STD		{ int sigsuspend(int mask); }
112	COMPAT_43	{ int sigstack(struct sigstack *nss, \
			    struct sigstack *oss); }
113	COMPAT_43	{ int recvmsg(int s, struct omsghdr *msg, int flags); }
114	COMPAT_43	{ int sendmsg(int s, caddr_t msg, int flags); }
d148 1
a148 1
115	STD		{ int vtrace(int request, int value); }
d150 1
a150 1
115	OBSOL		vtrace
d152 3
a154 5
116	STD		{ int gettimeofday(struct timeval *tp, \
			    struct timezone *tzp); }
117	STD		{ int getrusage(int who, struct rusage *rusage); }
118	STD		{ int getsockopt(int s, int level, int name, \
			    caddr_t val, int *avalsize); }
d156 1
a156 1
119	STD		{ int resuba(int value); }
d158 1
a158 1
119	UNIMPL		resuba
d160 31
a190 38
120	STD		{ int readv(int fd, struct iovec *iovp, u_int iovcnt); }
121	STD		{ int writev(int fd, struct iovec *iovp, \
			    u_int iovcnt); }
122	STD		{ int settimeofday(struct timeval *tv, \
			    struct timezone *tzp); }
123	STD		{ int fchown(int fd, int uid, int gid); }
124	STD		{ int fchmod(int fd, int mode); }
125	COMPAT_43	{ int recvfrom(int s, caddr_t buf, size_t len, \
			    int flags, caddr_t from, int *fromlenaddr); }
126	COMPAT_43	{ int setreuid(int ruid, int euid); }
127	COMPAT_43	{ int setregid(int rgid, int egid); }
128	STD		{ int rename(char *from, char *to); }
129	COMPAT_43	{ int truncate(char *path, long length); }
130	COMPAT_43	{ int ftruncate(int fd, long length); }
131	STD		{ int flock(int fd, int how); }
132	STD		{ int mkfifo(char *path, int mode); }
133	STD		{ int sendto(int s, caddr_t buf, size_t len, \
			    int flags, caddr_t to, int tolen); }
134	STD		{ int shutdown(int s, int how); }
135	STD		{ int socketpair(int domain, int type, int protocol, \
			    int *rsv); }
136	STD		{ int mkdir(char *path, int mode); }
137	STD		{ int rmdir(char *path); }
138	STD		{ int utimes(char *path, struct timeval *tptr); }
139	OBSOL		4.2 sigreturn
140	STD		{ int adjtime(struct timeval *delta, \
			    struct timeval *olddelta); }
141	COMPAT_43	{ int getpeername(int fdes, caddr_t asa, int *alen); }
142	COMPAT_43	{ int32_t gethostid(void); }
143	COMPAT_43	{ int sethostid(int32_t hostid); }
144	COMPAT_43	{ int getrlimit(u_int which, struct ogetrlimit *rlp); }
145	COMPAT_43	{ int setrlimit(u_int which, struct ogetrlimit *rlp); }
146	COMPAT_43	{ int killpg(int pgid, int signum); }
147	STD		{ int setsid(void); }
148	STD		{ int quotactl(char *path, int cmd, int uid, \
			    caddr_t arg); }
149	COMPAT_43	{ int quota(void); }
150	COMPAT_43	{ int getsockname(int fdec, caddr_t asa, int *alen); }
d196 4
a199 4
151	UNIMPL
152	UNIMPL
153	UNIMPL
154	UNIMPL
d201 1
a201 1
155	STD		{ int nfssvc(int flag, caddr_t argp); }
d203 1
a203 1
155	UNIMPL		nfssvc
d205 5
a209 6
156	COMPAT_43	{ int getdirentries(int fd, char *buf, u_int count, \
			    long *basep); }
157	STD		{ int statfs(char *path, struct statfs *buf); }
158	STD		{ int fstatfs(int fd, struct statfs *buf); }
159	UNIMPL
160	UNIMPL
d211 1
a211 1
161	STD		{ int getfh(char *fname, fhandle_t *fhp); }
d213 1
a213 1
161	UNIMPL		getfh
d215 11
a225 12
162	UNIMPL		getdomainname
163	UNIMPL		setdomainname
164	UNIMPL
165	UNIMPL
166	UNIMPL
167	UNIMPL
168	UNIMPL
169	UNIMPL		semsys
170	UNIMPL		msgsys
; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
#if defined(SYSVSHM) && !defined(alpha)
171	COMPAT_43	{ int shmsys(int which, int a2, int a3, int a4); }
d227 1
a227 1
171	UNIMPL		shmsys
d229 9
a237 9
172	UNIMPL
173	UNIMPL
174	UNIMPL
175	UNIMPL
176	UNIMPL
177	UNIMPL
178	UNIMPL
179	UNIMPL
180	UNIMPL
d239 4
a242 4
; Syscalls 180-209 are used by/reserved for BSD
181	STD		{ int setgid(gid_t gid); }
182	STD		{ int setegid(gid_t egid); }
183	STD		{ int seteuid(uid_t euid); }
d244 4
a247 64
184	STD		{ int lfs_bmapv(fsid_t *fsidp, \
			    struct block_info *blkiov, int blkcnt); }
185	STD		{ int lfs_markv(fsid_t *fsidp, \
			    struct block_info *blkiov, int blkcnt); }
186	STD		{ int lfs_segclean(fsid_t *fsidp, u_long segment); }
187	STD		{ int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
#else
184	UNIMPL		lfs_bmapv
185	UNIMPL		lfs_markv
186	UNIMPL		lfs_segclean
187	UNIMPL		lfs_segwait
#endif
188	STD		{ int stat(char *path, struct stat *ub); }
189	STD		{ int fstat(int fd, struct stat *sb); }
190	STD		{ int lstat(char *path, struct stat *ub); }
191	STD		{ int pathconf(char *path, int name); }
192	STD		{ int fpathconf(int fd, int name); }
193	UNIMPL
194	STD		{ int getrlimit(u_int which, struct rlimit *rlp); }
195	STD		{ int setrlimit(u_int which, struct rlimit *rlp); }
196	STD		{ int getdirentries(int fd, char *buf, u_int count, \
			    long *basep); }
197	STD		{ caddr_t mmap(caddr_t addr, size_t len, int prot, \
			    int flags, int fd, long pad, off_t pos); }
198	STD		{ int nosys(void); } __syscall
199	STD		{ off_t lseek(int fd, int pad, off_t offset, \
			    int whence); }
200	STD		{ int truncate(char *path, int pad, off_t length); }
201	STD		{ int ftruncate(int fd, int pad, off_t length); }
202	STD		{ int __sysctl(int *name, u_int namelen, void *old, \
			    size_t *oldlenp, void *new, size_t newlen); }
203	STD		{ int mlock(caddr_t addr, size_t len); }
204	STD		{ int munlock(caddr_t addr, size_t len); }
205	STD		{ int undelete(char *path); }
206	UNIMPL
207	UNIMPL
208	UNIMPL
209	UNIMPL
; Syscalls 210-219 are used by/reserved for vendor-specific system calls
210	UNIMPL
211	UNIMPL
212	UNIMPL
213	UNIMPL
214	UNIMPL
215	UNIMPL
216	UNIMPL
217	UNIMPL
218	UNIMPL
219	UNIMPL
; System calls 220-240 are reserved for use by BSD
220	UNIMPL		semctl
221	UNIMPL		semget
222	UNIMPL		semop
223	UNIMPL		semconfig
224	UNIMPL		msgctl
225	UNIMPL		msgget
226	UNIMPL		msgsnd
227	UNIMPL		msgrcv
#if defined(SYSVSHM) && 0
228	STD		{ int shmat(int shmid, void *shmaddr, int shmflg); }
229	STD		{ int shmctl(int shmid, int cmd, \
			    struct shmid_ds *buf); }
230	STD		{ int shmdt(void *shmaddr); }
231	STD		{ int shmget(key_t key, int size, int shmflg); }
d249 4
a252 4
228	UNIMPL		shmat
229	UNIMPL		shmctl
230	UNIMPL		shmdt
231	UNIMPL		shmget
d254 23
@
