head 1.77; access; symbols netbsd-11-0-RC4:1.77 netbsd-11-0-RC3:1.77 netbsd-11-0-RC2:1.77 netbsd-11-0-RC1:1.77 perseant-exfatfs-base-20250801:1.77 netbsd-11:1.77.0.12 netbsd-11-base:1.77 netbsd-10-1-RELEASE:1.77 perseant-exfatfs-base-20240630:1.77 perseant-exfatfs:1.77.0.10 perseant-exfatfs-base:1.77 netbsd-8-3-RELEASE:1.69 netbsd-9-4-RELEASE:1.69 netbsd-10-0-RELEASE:1.77 netbsd-10-0-RC6:1.77 netbsd-10-0-RC5:1.77 netbsd-10-0-RC4:1.77 netbsd-10-0-RC3:1.77 netbsd-10-0-RC2:1.77 thorpej-ifq:1.77.0.8 thorpej-ifq-base:1.77 thorpej-altq-separation:1.77.0.6 thorpej-altq-separation-base:1.77 netbsd-10-0-RC1:1.77 netbsd-10:1.77.0.4 netbsd-10-base:1.77 bouyer-sunxi-drm:1.77.0.2 bouyer-sunxi-drm-base:1.77 netbsd-9-3-RELEASE:1.69 thorpej-i2c-spi-conf2:1.71.0.16 thorpej-i2c-spi-conf2-base:1.71 thorpej-futex2:1.71.0.14 thorpej-futex2-base:1.71 thorpej-cfargs2:1.71.0.12 thorpej-cfargs2-base:1.71 cjep_sun2x-base1:1.71 cjep_sun2x:1.71.0.10 cjep_sun2x-base:1.71 cjep_staticlib_x-base1:1.71 netbsd-9-2-RELEASE:1.69 cjep_staticlib_x:1.71.0.8 cjep_staticlib_x-base:1.71 thorpej-i2c-spi-conf:1.71.0.6 thorpej-i2c-spi-conf-base:1.71 thorpej-cfargs:1.71.0.4 thorpej-cfargs-base:1.71 thorpej-futex:1.71.0.2 thorpej-futex-base:1.71 netbsd-9-1-RELEASE:1.69 bouyer-xenpvh-base2:1.70 phil-wifi-20200421:1.70 bouyer-xenpvh-base1:1.70 phil-wifi-20200411:1.70 bouyer-xenpvh:1.70.0.6 bouyer-xenpvh-base:1.70 is-mlppp:1.70.0.4 is-mlppp-base:1.70 phil-wifi-20200406:1.70 netbsd-8-2-RELEASE:1.69 ad-namecache-base3:1.70 netbsd-9-0-RELEASE:1.69 netbsd-9-0-RC2:1.69 ad-namecache-base2:1.70 ad-namecache-base1:1.70 ad-namecache:1.70.0.2 ad-namecache-base:1.70 netbsd-9-0-RC1:1.69 phil-wifi-20191119:1.70 netbsd-9:1.69.0.22 netbsd-9-base:1.69 phil-wifi-20190609:1.69 netbsd-8-1-RELEASE:1.69 netbsd-8-1-RC1:1.69 isaki-audio2:1.69.0.20 isaki-audio2-base:1.69 pgoyette-compat-merge-20190127:1.69 pgoyette-compat-20190127:1.69 pgoyette-compat-20190118:1.69 pgoyette-compat-1226:1.69 pgoyette-compat-1126:1.69 pgoyette-compat-1020:1.69 pgoyette-compat-0930:1.69 pgoyette-compat-0906:1.69 netbsd-7-2-RELEASE:1.67 pgoyette-compat-0728:1.69 netbsd-8-0-RELEASE:1.69 phil-wifi:1.69.0.18 phil-wifi-base:1.69 pgoyette-compat-0625:1.69 netbsd-8-0-RC2:1.69 pgoyette-compat-0521:1.69 pgoyette-compat-0502:1.69 pgoyette-compat-0422:1.69 netbsd-8-0-RC1:1.69 pgoyette-compat-0415:1.69 pgoyette-compat-0407:1.69 pgoyette-compat-0330:1.69 pgoyette-compat-0322:1.69 pgoyette-compat-0315:1.69 netbsd-7-1-2-RELEASE:1.67 pgoyette-compat:1.69.0.16 pgoyette-compat-base:1.69 netbsd-7-1-1-RELEASE:1.67 tls-maxphys-base-20171202:1.69 matt-nb8-mediatek:1.69.0.14 matt-nb8-mediatek-base:1.69 nick-nhusb-base-20170825:1.69 perseant-stdc-iso10646:1.69.0.12 perseant-stdc-iso10646-base:1.69 netbsd-8:1.69.0.10 netbsd-8-base:1.69 prg-localcount2-base3:1.69 prg-localcount2-base2:1.69 prg-localcount2-base1:1.69 prg-localcount2:1.69.0.8 prg-localcount2-base:1.69 pgoyette-localcount-20170426:1.69 bouyer-socketcan-base1:1.69 jdolecek-ncq:1.69.0.6 jdolecek-ncq-base:1.69 pgoyette-localcount-20170320:1.69 netbsd-7-1:1.67.0.8 netbsd-7-1-RELEASE:1.67 netbsd-7-1-RC2:1.67 nick-nhusb-base-20170204:1.69 netbsd-7-nhusb-base-20170116:1.67 bouyer-socketcan:1.69.0.4 bouyer-socketcan-base:1.69 pgoyette-localcount-20170107:1.69 netbsd-7-1-RC1:1.67 nick-nhusb-base-20161204:1.69 pgoyette-localcount-20161104:1.69 netbsd-7-0-2-RELEASE:1.67 nick-nhusb-base-20161004:1.69 localcount-20160914:1.69 netbsd-7-nhusb:1.67.0.6 netbsd-7-nhusb-base:1.67 pgoyette-localcount-20160806:1.69 pgoyette-localcount-20160726:1.69 pgoyette-localcount:1.69.0.2 pgoyette-localcount-base:1.69 nick-nhusb-base-20160907:1.69 nick-nhusb-base-20160529:1.69 netbsd-7-0-1-RELEASE:1.67 nick-nhusb-base-20160422:1.69 nick-nhusb-base-20160319:1.69 nick-nhusb-base-20151226:1.69 netbsd-7-0:1.67.0.4 netbsd-7-0-RELEASE:1.67 nick-nhusb-base-20150921:1.69 netbsd-7-0-RC3:1.67 netbsd-7-0-RC2:1.67 netbsd-7-0-RC1:1.67 nick-nhusb-base-20150606:1.69 nick-nhusb-base-20150406:1.69 nick-nhusb:1.68.0.2 nick-nhusb-base:1.68 netbsd-5-2-3-RELEASE:1.38.4.1 netbsd-5-1-5-RELEASE:1.38.4.1 netbsd-6-0-6-RELEASE:1.60.6.2 netbsd-6-1-5-RELEASE:1.60.6.2 netbsd-7:1.67.0.2 netbsd-7-base:1.67 yamt-pagecache-base9:1.66 yamt-pagecache-tag8:1.59.4.3 netbsd-6-1-4-RELEASE:1.60.6.2 netbsd-6-0-5-RELEASE:1.60.6.2 tls-earlyentropy:1.65.0.2 tls-earlyentropy-base:1.67 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.65 riastradh-drm2-base3:1.65 netbsd-6-1-3-RELEASE:1.60.6.2 netbsd-6-0-4-RELEASE:1.60.6.2 netbsd-5-2-2-RELEASE:1.38.4.1 netbsd-5-1-4-RELEASE:1.38.4.1 netbsd-6-1-2-RELEASE:1.60.6.2 netbsd-6-0-3-RELEASE:1.60.6.2 netbsd-5-2-1-RELEASE:1.38.4.1 netbsd-5-1-3-RELEASE:1.38.4.1 rmind-smpnet-nbase:1.66 netbsd-6-1-1-RELEASE:1.60.6.2 riastradh-drm2-base2:1.62 riastradh-drm2-base1:1.62 riastradh-drm2:1.62.0.10 riastradh-drm2-base:1.62 rmind-smpnet:1.62.0.4 rmind-smpnet-base:1.66 netbsd-6-1:1.60.6.2.0.6 netbsd-6-0-2-RELEASE:1.60.6.2 netbsd-6-1-RELEASE:1.60.6.2 khorben-n900:1.62.0.8 netbsd-6-1-RC4:1.60.6.2 netbsd-6-1-RC3:1.60.6.2 agc-symver:1.62.0.6 agc-symver-base:1.62 netbsd-6-1-RC2:1.60.6.2 netbsd-6-1-RC1:1.60.6.2 yamt-pagecache-base8:1.62 netbsd-5-2:1.38.4.1.0.10 netbsd-6-0-1-RELEASE:1.60.6.2 yamt-pagecache-base7:1.62 netbsd-5-2-RELEASE:1.38.4.1 netbsd-5-2-RC1:1.38.4.1 matt-nb6-plus-nbase:1.60.6.2 yamt-pagecache-base6:1.62 netbsd-6-0:1.60.6.2.0.4 netbsd-6-0-RELEASE:1.60.6.2 netbsd-6-0-RC2:1.60.6.2 tls-maxphys:1.62.0.2 tls-maxphys-base:1.67 matt-nb6-plus:1.60.6.2.0.2 matt-nb6-plus-base:1.60.6.2 netbsd-6-0-RC1:1.60.6.2 jmcneill-usbmp-base10:1.61 yamt-pagecache-base5:1.61 jmcneill-usbmp-base9:1.60 yamt-pagecache-base4:1.60 jmcneill-usbmp-base8:1.60 jmcneill-usbmp-base7:1.60 jmcneill-usbmp-base6:1.60 jmcneill-usbmp-base5:1.60 jmcneill-usbmp-base4:1.60 jmcneill-usbmp-base3:1.60 jmcneill-usbmp-pre-base2:1.60 jmcneill-usbmp-base2:1.60 netbsd-6:1.60.0.6 netbsd-6-base:1.60 netbsd-5-1-2-RELEASE:1.38.4.1 netbsd-5-1-1-RELEASE:1.38.4.1 jmcneill-usbmp:1.60.0.4 jmcneill-usbmp-base:1.60 jmcneill-audiomp3:1.60.0.2 jmcneill-audiomp3-base:1.60 yamt-pagecache-base3:1.59 yamt-pagecache-base2:1.59 yamt-pagecache:1.59.0.4 yamt-pagecache-base:1.59 rmind-uvmplock-nbase:1.59 cherry-xenmp:1.59.0.2 cherry-xenmp-base:1.59 bouyer-quota2-nbase:1.57 bouyer-quota2:1.57.0.4 bouyer-quota2-base:1.57 jruoho-x86intr:1.57.0.2 jruoho-x86intr-base:1.57 matt-mips64-premerge-20101231:1.57 matt-nb5-mips64-premerge-20101231:1.38.4.1 matt-nb5-pq3:1.38.4.1.0.8 matt-nb5-pq3-base:1.38.4.1 netbsd-5-1:1.38.4.1.0.6 netbsd-5-1-RELEASE:1.38.4.1 uebayasi-xip-base4:1.57 uebayasi-xip-base3:1.56 yamt-nfs-mp-base11:1.56 netbsd-5-1-RC4:1.38.4.1 matt-nb5-mips64-k15:1.38.4.1 uebayasi-xip-base2:1.56 yamt-nfs-mp-base10:1.56 netbsd-5-1-RC3:1.38.4.1 netbsd-5-1-RC2:1.38.4.1 uebayasi-xip-base1:1.55 netbsd-5-1-RC1:1.38.4.1 rmind-uvmplock:1.55.0.4 rmind-uvmplock-base:1.59 yamt-nfs-mp-base9:1.55 uebayasi-xip:1.55.0.2 uebayasi-xip-base:1.55 netbsd-5-0-2-RELEASE:1.38.4.1 matt-nb5-mips64-premerge-20091211:1.38.4.1 matt-premerge-20091211:1.55 yamt-nfs-mp-base8:1.54 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.38.4.1 matt-nb4-mips64-k7-u2a-k9b:1.38.4.1 matt-nb5-mips64-u1-k1-k5:1.38.4.1 yamt-nfs-mp-base7:1.54 matt-nb5-mips64:1.38.4.1.0.4 netbsd-5-0-1-RELEASE:1.38.4.1 jymxensuspend-base:1.54 yamt-nfs-mp-base6:1.54 yamt-nfs-mp-base5:1.54 yamt-nfs-mp-base4:1.50 jym-xensuspend-nbase:1.54 yamt-nfs-mp-base3:1.50 nick-hppapmap-base4:1.50 nick-hppapmap-base3:1.50 netbsd-5-0:1.38.4.1.0.2 netbsd-5-0-RELEASE:1.38.4.1 netbsd-5-0-RC4:1.38.4.1 netbsd-5-0-RC3:1.38.4.1 nick-hppapmap-base2:1.50 netbsd-5-0-RC2:1.38.4.1 jym-xensuspend:1.50.0.2 jym-xensuspend-base:1.50 netbsd-5-0-RC1:1.38.4.1 christos-time_t-nbase:1.44 christos-time_t-base:1.44 christos-time_t:1.44.0.2 haad-dm-base2:1.43 haad-nbase2:1.43 ad-audiomp2:1.43.0.2 ad-audiomp2-base:1.43 netbsd-5:1.38.0.4 netbsd-5-base:1.38 nick-hppapmap:1.38.0.2 nick-hppapmap-base:1.50 matt-mips64-base2:1.38 matt-mips64:1.15.0.14 haad-dm-base1:1.38 wrstuden-revivesa-base-4:1.38 netbsd-4-0-1-RELEASE:1.7.4.2 wrstuden-revivesa-base-3:1.36 wrstuden-revivesa-base-2:1.36 wrstuden-fixsa-newbase:1.7.4.2 nick-csl-alignment-base5:1.15 haad-dm:1.35.0.2 haad-dm-base:1.43 wrstuden-revivesa-base-1:1.35 simonb-wapbl-nbase:1.36 yamt-pf42-base4:1.35 simonb-wapbl:1.34.0.2 simonb-wapbl-base:1.36 yamt-pf42-base3:1.34 hpcarm-cleanup-nbase:1.33 yamt-pf42-baseX:1.33 yamt-pf42-base2:1.33 yamt-nfs-mp-base2:1.33 wrstuden-revivesa:1.33.0.6 wrstuden-revivesa-base:1.35 yamt-nfs-mp:1.33.0.4 yamt-nfs-mp-base:1.33 yamt-pf42:1.33.0.2 yamt-pf42-base:1.33 ad-socklock-base1:1.31 yamt-lazymbuf-base15:1.31 yamt-lazymbuf-base14:1.31 keiichi-mipv6-nbase:1.31 mjf-devfs2:1.31.0.6 mjf-devfs2-base:1.47 nick-net80211-sync:1.31.0.4 nick-net80211-sync-base:1.31 keiichi-mipv6:1.31.0.2 keiichi-mipv6-base:1.31 bouyer-xeni386-merge1:1.20.6.2 matt-armv6-prevmlocking:1.15.8.2 wrstuden-fixsa-base-1:1.7.4.2 vmlocking2-base3:1.25 netbsd-4-0:1.7.4.2.0.6 netbsd-4-0-RELEASE:1.7.4.2 bouyer-xeni386-nbase:1.27 yamt-kmem-base3:1.20 cube-autoconf:1.20.0.8 cube-autoconf-base:1.20 yamt-kmem-base2:1.20 bouyer-xeni386:1.20.0.6 bouyer-xeni386-base:1.27 yamt-kmem:1.20.0.4 yamt-kmem-base:1.20 vmlocking2-base2:1.20 reinoud-bufcleanup-nbase:1.20 vmlocking2:1.20.0.2 vmlocking2-base1:1.20 netbsd-4-0-RC5:1.7.4.2 matt-nb4-arm:1.7.4.2.0.4 matt-nb4-arm-base:1.7.4.2 matt-armv6-nbase:1.31 jmcneill-base:1.18 netbsd-4-0-RC4:1.7.4.2 mjf-devfs:1.18.0.2 mjf-devfs-base:1.30 bouyer-xenamd64-base2:1.20 vmlocking-nbase:1.20 yamt-x86pmap-base4:1.15 bouyer-xenamd64:1.15.0.12 bouyer-xenamd64-base:1.20 netbsd-4-0-RC3:1.7.4.2 yamt-x86pmap-base3:1.15 yamt-x86pmap-base2:1.15 netbsd-4-0-RC2:1.7.4.2 yamt-x86pmap:1.15.0.10 yamt-x86pmap-base:1.15 netbsd-4-0-RC1:1.7.4.2 matt-armv6:1.15.0.8 matt-armv6-base:1.26 matt-mips64-base:1.15 jmcneill-pm:1.15.0.6 jmcneill-pm-base:1.20 hpcarm-cleanup:1.15.0.4 hpcarm-cleanup-base:1.31 nick-csl-alignment:1.15.0.2 nick-csl-alignment-base:1.15 yamt-idlelwp-base8:1.15 wrstuden-fixsa:1.7.4.2.0.2 wrstuden-fixsa-base:1.7.4.2 thorpej-atomic:1.14.0.2 thorpej-atomic-base:1.14 reinoud-bufcleanup:1.13.0.6 reinoud-bufcleanup-base:1.20 mjf-ufs-trans:1.13.0.4 mjf-ufs-trans-base:1.15 vmlocking:1.13.0.2 vmlocking-base:1.15 ad-audiomp:1.11.0.4 ad-audiomp-base:1.11 yamt-idlelwp:1.11.0.2 post-newlock2-merge:1.10 newlock2-nbase:1.9 yamt-splraiseipl-base5:1.7 yamt-splraiseipl-base4:1.7 yamt-splraiseipl-base3:1.7 abandoned-netbsd-4-base:1.3 abandoned-netbsd-4:1.3.0.2 yamt-splraiseipl-base2:1.7 yamt-splraiseipl:1.7.0.2 yamt-splraiseipl-base:1.7 yamt-pdpolicy-base9:1.7 rpaulo-netinet-merge-pcb-base:1.6 rpaulo-netinet-merge-pcb:1.6.0.4 newlock2:1.6.0.2 newlock2-base:1.9 yamt-pdpolicy-base8:1.3 yamt-pdpolicy-base7:1.3 netbsd-4:1.7.0.4 netbsd-4-base:1.7 yamt-pdpolicy-base6:1.3 yamt-lazymbuf:1.2.0.16 chap-midi-nbase:1.2 gdamore-uart:1.2.0.14 gdamore-uart-base:1.2 simonb-timcounters-final:1.2.10.2 yamt-pdpolicy-base5:1.2 chap-midi:1.2.0.12 chap-midi-base:1.2 simonb-timecounters-base:1.2 simonb-timecounters:1.2.0.10 yamt-pdpolicy-base4:1.2 yamt-pdpolicy-base3:1.2 peter-altq-base:1.2 peter-altq:1.2.0.8 yamt-pdpolicy-base2:1.2 elad-kernelauth-base:1.2 elad-kernelauth:1.2.0.6 yamt-pdpolicy:1.2.0.4 yamt-pdpolicy-base:1.2 yamt-uio_vmspace-base5:1.2 yamt-uio_vmspace:1.2.0.2; locks; strict; comment @# @; 1.77 date 2021.12.02.04.29.48; author ryo; state Exp; branches; next 1.76; commitid mKCsBN5foUfbX1jD; 1.76 date 2021.11.27.21.15.07; author ryo; state Exp; branches; next 1.75; commitid SP8YswSb7ot2GtiD; 1.75 date 2021.09.20.02.20.03; author thorpej; state Exp; branches; next 1.74; commitid K8mXaSHdBZI2AD9D; 1.74 date 2021.09.20.00.09.02; author thorpej; state Exp; branches; next 1.73; commitid iO2ZHyElTHo8RC9D; 1.73 date 2021.09.19.23.51.37; author thorpej; state Exp; branches; next 1.72; commitid pcMYBy9yows8LC9D; 1.72 date 2021.09.19.23.01.50; author thorpej; state Exp; branches; next 1.71; commitid b0960e1aU60LtC9D; 1.71 date 2020.04.26.18.53.33; author thorpej; state Exp; branches 1.71.2.1; next 1.70; commitid xaklHg2Aa3B2wV5C; 1.70 date 2019.11.09.23.44.31; author jdolecek; state Exp; branches; next 1.69; commitid yAyQ8W3yCAgtyeKB; 1.69 date 2015.03.08.17.10.44; author christos; state Exp; branches 1.69.18.1; next 1.68; commitid 0PYHrNSyVfuIgPcy; 1.68 date 2014.11.22.13.12.22; author njoly; state Exp; branches 1.68.2.1; next 1.67; commitid 7KmoD9xSIkW9mbZx; 1.67 date 2014.05.29.10.47.00; author njoly; state Exp; branches; next 1.66; commitid 9DMyljK6mta2fqCx; 1.66 date 2014.05.04.10.08.53; author njoly; state Exp; branches; next 1.65; commitid QXU6DtO3KihnPczx; 1.65 date 2013.11.18.19.23.27; author christos; state Exp; branches 1.65.2.1; next 1.64; commitid XBeZ82F1YZkUgNdx; 1.64 date 2013.11.18.01.32.52; author chs; state Exp; branches; next 1.63; commitid InrPzbhD2HRBlHdx; 1.63 date 2013.11.07.19.37.19; author njoly; state Exp; branches; next 1.62; commitid PzBxf4c3pzynHncx; 1.62 date 2012.07.13.18.21.33; author christos; state Exp; branches 1.62.2.1 1.62.4.1; next 1.61; 1.61 date 2012.05.10.19.40.46; author christos; state Exp; branches; next 1.60; 1.60 date 2011.11.18.04.08.56; author christos; state Exp; branches 1.60.4.1 1.60.6.1; next 1.59; 1.59 date 2011.05.30.17.50.32; author alnsn; state Exp; branches 1.59.4.1; next 1.58; 1.58 date 2011.04.10.15.47.21; author christos; state Exp; branches; next 1.57; 1.57 date 2010.11.02.18.14.06; author chs; state Exp; branches 1.57.2.1; next 1.56; 1.56 date 2010.07.07.01.30.35; author chs; state Exp; branches; next 1.55; 1.55 date 2009.11.24.10.42.44; author njoly; state Exp; branches 1.55.2.1 1.55.4.1; next 1.54; 1.54 date 2009.06.08.13.34.23; author njoly; state Exp; branches; next 1.53; 1.53 date 2009.06.05.16.45.33; author njoly; state Exp; branches; next 1.52; 1.52 date 2009.06.04.17.59.30; author njoly; state Exp; branches; next 1.51; 1.51 date 2009.06.02.16.54.39; author njoly; state Exp; branches; next 1.50; 1.50 date 2009.01.30.13.55.51; author njoly; state Exp; branches 1.50.2.1; next 1.49; 1.49 date 2009.01.20.12.00.58; author njoly; state Exp; branches; next 1.48; 1.48 date 2009.01.17.22.28.53; author njoly; state Exp; branches; next 1.47; 1.47 date 2009.01.16.13.10.47; author njoly; state Exp; branches; next 1.46; 1.46 date 2009.01.13.22.27.43; author pooka; state Exp; branches; next 1.45; 1.45 date 2009.01.11.02.45.49; author christos; state Exp; branches; next 1.44; 1.44 date 2008.12.12.23.36.18; author njoly; state Exp; branches 1.44.2.1; next 1.43; 1.43 date 2008.12.06.23.14.03; author njoly; state Exp; branches; next 1.42; 1.42 date 2008.12.05.23.30.19; author njoly; state Exp; branches; next 1.41; 1.41 date 2008.12.01.14.18.44; author njoly; state Exp; branches; next 1.40; 1.40 date 2008.11.19.18.36.04; author ad; state Exp; branches; next 1.39; 1.39 date 2008.11.12.18.07.41; author njoly; state Exp; branches; next 1.38; 1.38 date 2008.10.06.14.53.01; author njoly; state Exp; branches 1.38.2.1 1.38.4.1; next 1.37; 1.37 date 2008.09.22.13.07.46; author njoly; state Exp; branches; next 1.36; 1.36 date 2008.07.24.12.09.56; author njoly; state Exp; branches; next 1.35; 1.35 date 2008.06.16.19.57.43; author christos; state Exp; branches 1.35.2.1; next 1.34; 1.34 date 2008.05.20.17.31.56; author njoly; state Exp; branches 1.34.2.1; next 1.33; 1.33 date 2008.04.17.17.47.23; author njoly; state Exp; branches 1.33.2.1 1.33.4.1 1.33.6.1; next 1.32; 1.32 date 2008.04.04.12.57.55; author njoly; state Exp; branches; next 1.31; 1.31 date 2008.02.20.21.49.56; author njoly; state Exp; branches 1.31.6.1; next 1.30; 1.30 date 2008.02.17.21.49.17; author njoly; state Exp; branches; next 1.29; 1.29 date 2008.02.04.22.23.43; author dsl; state Exp; branches; next 1.28; 1.28 date 2008.02.02.22.57.05; author dsl; state Exp; branches; next 1.27; 1.27 date 2008.01.15.22.38.35; author njoly; state Exp; branches; next 1.26; 1.26 date 2008.01.07.12.11.52; author njoly; state Exp; branches; next 1.25; 1.25 date 2007.12.26.13.50.48; author njoly; state Exp; branches; next 1.24; 1.24 date 2007.12.24.15.56.20; author njoly; state Exp; branches; next 1.23; 1.23 date 2007.12.24.14.25.30; author njoly; state Exp; branches; next 1.22; 1.22 date 2007.12.21.22.26.22; author njoly; state Exp; branches; next 1.21; 1.21 date 2007.12.20.23.02.57; author dsl; state Exp; branches; next 1.20; 1.20 date 2007.11.16.12.56.50; author njoly; state Exp; branches 1.20.2.1 1.20.6.1; next 1.19; 1.19 date 2007.11.07.00.24.30; author njoly; state Exp; branches; next 1.18; 1.18 date 2007.10.31.22.35.34; author dsl; state Exp; branches 1.18.2.1; next 1.17; 1.17 date 2007.10.31.21.04.02; author njoly; state Exp; branches; next 1.16; 1.16 date 2007.10.27.09.16.24; author njoly; state Exp; branches; next 1.15; 1.15 date 2007.04.20.13.37.05; author njoly; state Exp; branches 1.15.6.1 1.15.8.1 1.15.12.1; next 1.14; 1.14 date 2007.04.11.11.45.55; author njoly; state Exp; branches; next 1.13; 1.13 date 2007.03.05.05.10.04; author christos; state Exp; branches 1.13.2.1 1.13.4.1; next 1.12; 1.12 date 2007.03.04.06.01.25; author christos; state Exp; branches; next 1.11; 1.11 date 2007.02.16.20.49.06; author njoly; state Exp; branches 1.11.2.1; next 1.10; 1.10 date 2007.02.09.21.55.21; author ad; state Exp; branches; next 1.9; 1.9 date 2007.02.08.12.29.39; author njoly; state Exp; branches; next 1.8; 1.8 date 2007.02.07.15.32.52; author njoly; state Exp; branches; next 1.7; 1.7 date 2006.09.13.19.55.49; author manu; state Exp; branches 1.7.4.1; next 1.6; 1.6 date 2006.09.06.12.01.23; author manu; state Exp; branches 1.6.2.1 1.6.4.1; next 1.5; 1.5 date 2006.09.06.08.32.00; author manu; state Exp; branches; next 1.4; 1.4 date 2006.09.05.08.17.09; author manu; state Exp; branches; next 1.3; 1.3 date 2006.06.25.16.15.39; author manu; state Exp; branches; next 1.2; 1.2 date 2006.02.15.15.23.18; author manu; state Exp; branches 1.2.2.1 1.2.4.1 1.2.10.1 1.2.14.1 1.2.16.1; next 1.1; 1.1 date 2006.02.09.19.18.57; author manu; state Exp; branches; next ; 1.71.2.1 date 2020.12.16.03.07.43; author thorpej; state Exp; branches; next 1.71.2.2; commitid XCsy1jfO8U1rMUzC; 1.71.2.2 date 2020.12.17.03.05.32; author thorpej; state Exp; branches; next 1.71.2.3; commitid RoDlbdMrHntCJ2AC; 1.71.2.3 date 2021.01.03.16.12.43; author thorpej; state Exp; branches; next ; commitid lep5vmbI7tfVxiCC; 1.69.18.1 date 2020.04.13.08.04.16; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.68.2.1 date 2015.04.06.15.18.06; author skrll; state Exp; branches; next ; commitid pz01Zhy7RP6iGxgy; 1.65.2.1 date 2014.08.10.06.54.33; author tls; state Exp; branches; next ; commitid 2GsD4EyIRMJSBMLx; 1.62.2.1 date 2014.08.20.00.03.33; author tls; state Exp; branches; next 1.62.2.2; commitid jTnpym9Qu0o4R1Nx; 1.62.2.2 date 2017.12.03.11.36.55; author jdolecek; state Exp; branches; next ; commitid XcIYRZTAh1LmerhA; 1.62.4.1 date 2014.05.18.17.45.33; author rmind; state Exp; branches; next ; commitid mL5ZYSzpqK6QS2Bx; 1.60.4.1 date 2012.06.02.11.09.14; author mrg; state Exp; branches; next ; 1.60.6.1 date 2012.05.19.15.19.42; author riz; state Exp; branches; next 1.60.6.2; 1.60.6.2 date 2012.07.20.23.12.47; author riz; state Exp; branches; next ; 1.59.4.1 date 2012.04.17.00.07.19; author yamt; state Exp; branches; next 1.59.4.2; 1.59.4.2 date 2012.05.23.10.07.53; author yamt; state Exp; branches; next 1.59.4.3; 1.59.4.3 date 2012.10.30.17.20.45; author yamt; state Exp; branches; next 1.59.4.4; 1.59.4.4 date 2014.05.22.11.40.17; author yamt; state Exp; branches; next ; commitid VUUXuyNWnt3AKwBx; 1.57.2.1 date 2011.06.06.09.07.29; author jruoho; state Exp; branches; next ; 1.55.2.1 date 2010.08.17.06.45.51; author uebayasi; state Exp; branches; next 1.55.2.2; 1.55.2.2 date 2010.11.06.08.08.26; author uebayasi; state Exp; branches; next ; 1.55.4.1 date 2011.03.05.20.52.52; author rmind; state Exp; branches; next 1.55.4.2; 1.55.4.2 date 2011.04.21.01.41.41; author rmind; state Exp; branches; next 1.55.4.3; 1.55.4.3 date 2011.05.31.03.04.30; author rmind; state Exp; branches; next ; 1.50.2.1 date 2009.07.23.23.31.42; author jym; state Exp; branches; next ; 1.44.2.1 date 2008.12.12.23.36.18; author christos; state dead; branches; next 1.44.2.2; 1.44.2.2 date 2009.01.04.01.58.39; author christos; state Exp; branches; next ; 1.38.2.1 date 2009.01.19.13.17.31; author skrll; state Exp; branches; next 1.38.2.2; 1.38.2.2 date 2009.03.03.18.30.07; author skrll; state Exp; branches; next ; 1.38.4.1 date 2008.11.20.03.03.05; author snj; state Exp; branches; next 1.38.4.2; 1.38.4.2 date 2015.03.18.17.20.09; author snj; state Exp; branches; next ; commitid BppXFwurdhCQZ6ey; 1.35.2.1 date 2008.10.19.22.16.14; author haad; state Exp; branches; next 1.35.2.2; 1.35.2.2 date 2008.12.13.01.13.57; author haad; state Exp; branches; next ; 1.34.2.1 date 2008.06.18.16.33.03; author simonb; state Exp; branches; next 1.34.2.2; 1.34.2.2 date 2008.07.28.14.37.26; author simonb; state Exp; branches; next ; 1.33.2.1 date 2008.06.04.02.05.04; author yamt; state Exp; branches; next 1.33.2.2; 1.33.2.2 date 2008.06.17.09.14.24; author yamt; state Exp; branches; next ; 1.33.4.1 date 2009.05.04.08.12.23; author yamt; state Exp; branches; next 1.33.4.2; 1.33.4.2 date 2009.06.20.07.20.17; author yamt; state Exp; branches; next 1.33.4.3; 1.33.4.3 date 2010.03.11.15.03.17; author yamt; state Exp; branches; next 1.33.4.4; 1.33.4.4 date 2010.08.11.22.53.09; author yamt; state Exp; branches; next ; 1.33.6.1 date 2008.05.10.23.48.56; author wrstuden; state Exp; branches; next 1.33.6.2; 1.33.6.2 date 2008.05.14.01.35.08; author wrstuden; state Exp; branches; next 1.33.6.3; 1.33.6.3 date 2008.06.23.04.30.54; author wrstuden; state Exp; branches; next 1.33.6.4; 1.33.6.4 date 2008.09.18.04.36.45; author wrstuden; state Exp; branches; next 1.33.6.5; 1.33.6.5 date 2008.10.10.22.29.46; author skrll; state Exp; branches; next ; 1.31.6.1 date 2008.06.02.13.23.04; author mjf; state Exp; branches; next 1.31.6.2; 1.31.6.2 date 2008.06.29.09.33.03; author mjf; state Exp; branches; next 1.31.6.3; 1.31.6.3 date 2008.09.28.10.40.16; author mjf; state Exp; branches; next 1.31.6.4; 1.31.6.4 date 2009.01.17.13.28.45; author mjf; state Exp; branches; next ; 1.20.2.1 date 2007.12.26.19.49.22; author ad; state Exp; branches; next ; 1.20.6.1 date 2008.01.02.21.52.48; author bouyer; state Exp; branches; next 1.20.6.2; 1.20.6.2 date 2008.01.08.22.10.47; author bouyer; state Exp; branches; next 1.20.6.3; 1.20.6.3 date 2008.01.19.12.15.00; author bouyer; state Exp; branches; next ; 1.18.2.1 date 2007.11.19.00.47.30; author mjf; state Exp; branches; next 1.18.2.2; 1.18.2.2 date 2007.12.27.00.44.16; author mjf; state Exp; branches; next 1.18.2.3; 1.18.2.3 date 2008.02.18.21.05.27; author mjf; state Exp; branches; next ; 1.15.6.1 date 2007.10.28.20.11.03; author joerg; state Exp; branches; next 1.15.6.2; 1.15.6.2 date 2007.10.31.23.14.03; author joerg; state Exp; branches; next 1.15.6.3; 1.15.6.3 date 2007.11.04.21.03.20; author jmcneill; state Exp; branches; next 1.15.6.4; 1.15.6.4 date 2007.11.11.16.47.17; author joerg; state Exp; branches; next 1.15.6.5; 1.15.6.5 date 2007.11.21.21.53.57; author joerg; state Exp; branches; next ; 1.15.8.1 date 2007.11.06.23.25.06; author matt; state Exp; branches; next 1.15.8.2; 1.15.8.2 date 2007.11.08.10.59.46; author matt; state Exp; branches; next 1.15.8.3; 1.15.8.3 date 2008.01.09.01.51.20; author matt; state Exp; branches; next 1.15.8.4; 1.15.8.4 date 2008.03.23.02.04.33; author matt; state Exp; branches; next ; 1.15.12.1 date 2007.11.13.16.00.39; author bouyer; state Exp; branches; next 1.15.12.2; 1.15.12.2 date 2007.11.18.19.35.14; author bouyer; state Exp; branches; next ; 1.13.2.1 date 2007.05.27.14.35.12; author ad; state Exp; branches; next ; 1.13.4.1 date 2007.07.11.20.04.22; author mjf; state Exp; branches; next ; 1.11.2.1 date 2007.04.15.16.03.15; author yamt; state Exp; branches; next 1.11.2.2; 1.11.2.2 date 2007.05.07.10.55.14; author yamt; state Exp; branches; next ; 1.7.4.1 date 2007.03.31.16.40.34; author bouyer; state Exp; branches; next 1.7.4.2; 1.7.4.2 date 2007.04.20.20.26.04; author bouyer; state Exp; branches; next ; 1.6.2.1 date 2006.11.18.21.39.11; author ad; state Exp; branches; next 1.6.2.2; 1.6.2.2 date 2007.01.30.13.51.34; author ad; state Exp; branches; next 1.6.2.3; 1.6.2.3 date 2007.02.09.21.03.50; author ad; state Exp; branches; next ; 1.6.4.1 date 2006.09.06.12.01.23; author rpaulo; state dead; branches; next 1.6.4.2; 1.6.4.2 date 2006.09.09.02.45.52; author rpaulo; state Exp; branches; next ; 1.2.2.1 date 2006.02.15.15.23.18; author yamt; state dead; branches; next 1.2.2.2; 1.2.2.2 date 2006.02.18.15.38.59; author yamt; state Exp; branches; next ; 1.2.4.1 date 2006.06.26.12.46.18; author yamt; state Exp; branches; next 1.2.4.2; 1.2.4.2 date 2006.09.14.12.31.23; author yamt; state Exp; branches; next ; 1.2.10.1 date 2006.02.15.15.23.18; author simonb; state dead; branches; next 1.2.10.2; 1.2.10.2 date 2006.04.22.11.38.14; author simonb; state Exp; branches; next ; 1.2.14.1 date 2006.07.13.17.49.14; author gdamore; state Exp; branches; next ; 1.2.16.1 date 2006.02.15.15.23.18; author yamt; state dead; branches; next 1.2.16.2; 1.2.16.2 date 2006.06.21.14.59.27; author yamt; state Exp; branches; next 1.2.16.3; 1.2.16.3 date 2006.12.30.20.47.38; author yamt; state Exp; branches; next 1.2.16.4; 1.2.16.4 date 2007.02.26.09.09.25; author yamt; state Exp; branches; next 1.2.16.5; 1.2.16.5 date 2007.09.03.14.32.30; author yamt; state Exp; branches; next 1.2.16.6; 1.2.16.6 date 2007.10.27.11.29.43; author yamt; state Exp; branches; next 1.2.16.7; 1.2.16.7 date 2007.11.15.11.43.52; author yamt; state Exp; branches; next 1.2.16.8; 1.2.16.8 date 2007.12.07.17.28.41; author yamt; state Exp; branches; next 1.2.16.9; 1.2.16.9 date 2008.01.21.09.41.33; author yamt; state Exp; branches; next 1.2.16.10; 1.2.16.10 date 2008.02.04.09.23.09; author yamt; state Exp; branches; next 1.2.16.11; 1.2.16.11 date 2008.02.11.14.59.33; author yamt; state Exp; branches; next 1.2.16.12; 1.2.16.12 date 2008.02.27.08.36.30; author yamt; state Exp; branches; next ; desc @@ 1.77 log @add prlimit64(2) syscall to COMPAT_LINUX and COMPAT_LINUX32 @ text @ $NetBSD: syscalls.master,v 1.76 2021/11/27 21:15:07 ryo Exp $ ; NetBSD i386 COMPAT_LINUX32 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. ; ; types: ; STD always included ; OBSOL obsolete, not included in system ; UNIMPL unimplemented, not included in system ; NODEF included, but don't define the syscall number ; ; 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 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include %% 0 NOARGS { int|linux_sys||nosys(void); } syscall 1 STD { int|linux32_sys||exit(int rval); } 2 NOARGS { int|sys||fork(void); } 3 NOARGS { netbsd32_ssize_t|netbsd32||read(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 4 NOARGS { netbsd32_ssize_t|netbsd32||write(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int|linux32_sys||open(netbsd32_charp path, int flags, \ linux_umode_t mode); } 6 NOARGS { int|netbsd32||close(int fd); } 7 STD { int|linux32_sys||waitpid(int pid, netbsd32_intp status, \ int options);} 8 STD { int|linux32_sys||creat(netbsd32_charp path, linux_umode_t mode); } 9 NOARGS { int|netbsd32||link(netbsd32_charp path, \ netbsd32_charp link); } 10 STD { int|linux32_sys||unlink(netbsd32_charp path); } 11 NOARGS { int|netbsd32||execve(netbsd32_charp path, \ netbsd32_charpp argp, netbsd32_charpp envp); } 12 NOARGS { int|netbsd32||chdir(netbsd32_charp path); } 13 STD { int|linux32_sys||time(linux32_timep_t t); } 14 STD { int|linux32_sys||mknod(netbsd32_charp path, \ linux_umode_t mode, unsigned dev); } 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, linux_umode_t mode); } 16 STD { int|linux32_sys||lchown16(netbsd32_charp path, \ linux32_uid16_t uid, linux32_gid16_t gid); } 17 STD { int|linux32_sys||break(netbsd32_charp nsize); } 18 OBSOL ostat 19 NOARGS { netbsd32_long|compat_43_netbsd32||olseek(int fd, \ netbsd32_long offset, int whence); } 20 NOARGS { pid_t|sys||getpid(void); } 21 UNIMPL mount 22 UNIMPL umount 23 NOARGS linux_setuid16 { int|netbsd32||setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t|sys||getuid(void); } 25 STD { int|linux32_sys||stime(linux32_timep_t t); } 26 STD { int|linux32_sys||ptrace(int request, int pid, \ int addr, int data); } 27 STD { int|linux32_sys||alarm(unsigned int secs); } 28 OBSOL ofstat 29 NOARGS { int|linux_sys||pause(void); } 30 STD { int|linux32_sys||utime(netbsd32_charp path, \ linux32_utimbufp_t times); } 31 OBSOL stty 32 OBSOL gtty 33 NOARGS { int|netbsd32||access(netbsd32_charp path, \ int flags); } 34 STD { int|linux32_sys||nice(int incr); } 35 OBSOL ftime 36 NOARGS { int|sys||sync(void); } 37 STD { int|linux32_sys||kill(int pid, int signum); } 38 NOARGS { int|netbsd32||__posix_rename(netbsd32_charp from, \ netbsd32_charp to); } 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, linux_umode_t mode); } 40 NOARGS { int|netbsd32||rmdir(netbsd32_charp path); } 41 NOARGS { int|netbsd32||dup(int fd); } 42 STD { int|linux32_sys||pipe(netbsd32_intp fd); } 43 STD { int|linux32_sys||times(linux32_tmsp_t tms); } 44 OBSOL prof 45 STD { int|linux32_sys||brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int|netbsd32||setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t|sys||getgid(void); } 48 STD { int|linux32_sys||signal(int signum, \ linux32_handlerp_t handler); } 49 NOARGS linux_geteuid16 { uid_t|sys||geteuid(void); } 50 NOARGS linux_getegid16 { gid_t|sys||getegid(void); } 51 NOARGS { int|netbsd32||acct(netbsd32_charp path); } 52 OBSOL phys 53 OBSOL lock 54 STD { int|linux32_sys||ioctl(int fd, netbsd32_u_long com, \ netbsd32_charp data); } 55 STD { int|linux32_sys||fcntl(int fd, \ int cmd, netbsd32_voidp arg); } 56 OBSOL mpx 57 NOARGS { int|netbsd32||setpgid(int pid, int pgid); } 58 OBSOL ulimit 59 STD { int|linux32_sys||oldolduname( \ linux32_oldold_utsnamep_t up); } 60 NOARGS { int|netbsd32||umask(int newmask); } 61 NOARGS { int|netbsd32||chroot(netbsd32_charp path); } 62 UNIMPL ustat 63 NOARGS { int|netbsd32||dup2(int from, int to); } 64 NOARGS { pid_t|sys||getppid(void); } 65 NOARGS { int|sys||getpgrp(void); } 66 NOARGS { int|sys||setsid(void); } 67 UNIMPL sigaction 68 STD { int|linux32_sys||siggetmask(void); } 69 STD { int|linux32_sys||sigsetmask(linux32_old_sigset_t mask); } 70 STD { int|linux32_sys||setreuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid); } 71 STD { int|linux32_sys||setregid16(linux32_gid16_t rgid, \ linux32_gid16_t egid); } 72 UNIMPL sigsuspend 73 UNIMPL sigpending 74 NOARGS { int|compat_43_netbsd32||osethostname(netbsd32_charp hostname, \ u_int len); } 75 STD { int|linux32_sys||setrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 76 STD { int|linux32_sys||getrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 77 NOARGS { int|compat_50_netbsd32||getrusage(int who, \ netbsd32_rusage50p_t rusage); } 78 STD { int|linux32_sys||gettimeofday(netbsd32_timeval50p_t tp, \ netbsd32_timezonep_t tzp); } 79 STD { int|linux32_sys||settimeofday(netbsd32_timeval50p_t tp, \ netbsd32_timezonep_t tzp); } 80 STD { int|linux32_sys||getgroups16(int gidsetsize, \ linux32_gid16p_t gidset); } 81 STD { int|linux32_sys||setgroups16(int gidsetsize, \ linux32_gid16p_t gidset); } 82 STD { int|linux32_sys||oldselect(linux32_oldselectp_t lsp); } 83 NOARGS { int|netbsd32||symlink(netbsd32_charp path, \ netbsd32_charp link); } 84 NOARGS { int|compat_43_netbsd32||lstat43(netbsd32_charp \ path, netbsd32_stat43p_t ub); } 85 NOARGS { int|netbsd32||readlink(netbsd32_charp path, \ netbsd32_charp buf, netbsd32_size_t count); } 86 UNIMPL uselib 87 STD { int|linux32_sys||swapon(netbsd32_charp name); } 88 STD { int|linux32_sys||reboot(int magic1, int magic2, int cmd, \ netbsd32_voidp arg); } 89 STD { int|linux32_sys||readdir(int fd, netbsd32_voidp dent, \ unsigned int count); } 90 STD { int|linux32_sys||old_mmap(linux32_oldmmapp lmp); } 91 NOARGS { int|netbsd32||munmap(netbsd32_voidp addr, \ netbsd32_size_t len); } 92 NOARGS { int|compat_43_netbsd32||otruncate(netbsd32_charp path, \ netbsd32_long length); } 93 NOARGS { int|compat_43_netbsd32||oftruncate(int fd, \ netbsd32_long length); } 94 NOARGS { int|netbsd32||fchmod(int fd, linux_umode_t mode); } 95 STD { int|linux32_sys||fchown16(int fd, linux32_uid16_t uid, \ linux32_gid16_t gid); } 96 STD { int|linux32_sys||getpriority(int which, int who); } 97 NOARGS { int|netbsd32||setpriority(int which, int who, int prio); } 98 NOARGS { int|netbsd32||profil(netbsd32_voidp samples, \ netbsd32_size_t size, netbsd32_u_long offset, \ u_int scale); } 99 STD { int|linux32_sys||statfs(netbsd32_charp path, \ linux32_statfsp sp); } 100 STD { int|linux32_sys||fstatfs(int fd, linux32_statfsp sp); } 101 NOARGS { int|linux_sys||ioperm(unsigned int lo, \ unsigned int hi, int val); } 102 STD { int|linux32_sys||socketcall(int what, netbsd32_voidp args); } 103 UNIMPL syslog 104 NOARGS { int|compat_50_netbsd32||setitimer(int which, \ netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); } 105 NOARGS { int|compat_50_netbsd32||getitimer(int which, \ netbsd32_itimerval50p_t itv); } 106 STD { int|linux32_sys||stat(netbsd32_charp path, \ linux32_statp sp); } 107 STD { int|linux32_sys||lstat(netbsd32_charp path, \ linux32_statp sp); } 108 STD { int|linux32_sys||fstat(int fd, \ linux32_statp sp); } 109 STD { int|linux32_sys||olduname(linux32_oldutsnamep_t up); } 110 NOARGS { int|linux_sys||iopl(int level); } 111 UNIMPL vhangup 112 UNIMPL idle 113 UNIMPL vm86old 114 STD { int|linux32_sys||wait4(int pid, netbsd32_intp status, \ int options, netbsd32_rusage50p_t rusage); } 115 STD { int|linux32_sys||swapoff(netbsd32_charp path); } 116 STD { int|linux32_sys||sysinfo(linux32_sysinfop_t arg); } 117 STD { int|linux32_sys||ipc(int what, int a1, int a2, int a3, \ netbsd32_voidp ptr); } 118 NOARGS { int|netbsd32||fsync(int fd); } 119 STD { int|linux32_sys||sigreturn(linux32_sigcontextp_t scp); } 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack, \ netbsd32_voidp parent_tidptr, netbsd32_voidp tls, \ netbsd32_voidp child_tidptr); } 121 STD { int|linux32_sys||setdomainname(netbsd32_charp domainname, \ int len); } 122 STD { int|linux32_sys||uname(linux32_utsnamep up); } 123 STD { int|linux32_sys||modify_ldt(int func, netbsd32_charp ptr, \ netbsd32_size_t bytecount); } 124 UNIMPL adjtimex 125 STD { int|linux32_sys||mprotect(netbsd32_voidp start, \ netbsd32_size_t len, int prot); } 126 UNIMPL sigprocmask 127 UNIMPL create_module 128 UNIMPL init_module 129 UNIMPL delete_module 130 UNIMPL get_kernel_syms 131 UNIMPL quotactl 132 NOARGS { int|netbsd32||getpgid(pid_t pid); } 133 NOARGS { int|netbsd32||fchdir(int fd); } 134 UNIMPL bdflush 135 UNIMPL sysfs 136 STD { int|linux32_sys||personality(netbsd32_u_long per); } 137 UNIMPL afs_syscall 138 NOARGS setfsuid16 { int|linux32_sys||setfsuid(uid_t uid); } 139 NOARGS setfsgid16 { int|linux32_sys||setfsgid(gid_t gid); } 140 STD { int|linux32_sys||llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_voidp res, int whence); } 141 STD { int|linux32_sys||getdents(int fd, \ linux32_direntp_t dent, unsigned int count); } 142 STD { int|linux32_sys||select(int nfds, \ netbsd32_fd_setp_t readfds, \ netbsd32_fd_setp_t writefds, \ netbsd32_fd_setp_t exceptfds, \ netbsd32_timeval50p_t timeout); } 143 NOARGS { int|netbsd32||flock(int fd, int how); } 144 NOARGS { int|netbsd32|13|msync(netbsd32_voidp addr, \ netbsd32_size_t len, int flags); } 145 NOARGS { int|netbsd32||readv(int fd, \ netbsd32_iovecp_t iovp, int iovcnt); } 146 NOARGS { netbsd32_ssize_t|netbsd32||writev(int fd, \ netbsd32_iovecp_t iovp, int iovcnt); } 147 NOARGS { pid_t|netbsd32||getsid(pid_t pid); } 148 STD { int|linux32_sys||fdatasync(int fd); } 149 STD { int|linux32_sys||__sysctl(linux32___sysctlp_t lsp); } 150 NOARGS { int|netbsd32||mlock(netbsd32_voidp addr, \ netbsd32_size_t len); } 151 NOARGS { int|netbsd32||munlock(netbsd32_voidp addr, \ netbsd32_size_t len); } 152 NOARGS { int|netbsd32||mlockall(int flags); } 153 NOARGS { int|sys||munlockall(void); } 154 STD { int|linux32_sys||sched_setparam(pid_t pid, \ const linux32_sched_paramp_t sp); } 155 STD { int|linux32_sys||sched_getparam(pid_t pid, \ linux32_sched_paramp_t sp); } 156 STD { int|linux32_sys||sched_setscheduler(pid_t pid, \ int policy, linux32_sched_paramp_t sp); } 157 STD { int|linux32_sys||sched_getscheduler(pid_t pid); } 158 NOARGS { int|linux_sys||sched_yield(void); } 159 STD { int|linux32_sys||sched_get_priority_max(int policy); } 160 STD { int|linux32_sys||sched_get_priority_min(int policy); } 161 UNIMPL sched_rr_get_interval 162 STD { int|linux32_sys||nanosleep(linux32_timespecp_t rqtp, \ linux32_timespecp_t rmtp); } 163 STD { int|linux32_sys||mremap(netbsd32_voidp old_address, \ netbsd32_size_t old_size, netbsd32_size_t new_size, \ netbsd32_u_long flags); } 164 STD { int|linux32_sys||setresuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid, linux32_uid16_t suid); } 165 STD { int|linux32_sys||getresuid16(linux32_uid16p_t ruid, \ linux32_uid16p_t euid, linux32_uid16p_t suid); } 166 UNIMPL vm86 167 UNIMPL query_module 168 NOARGS { int|netbsd32||poll(netbsd32_pollfdp_t fds, u_int nfds, \ int timeout); } 169 UNIMPL nfsservctl 170 STD { int|linux32_sys||setresgid16(linux32_gid16_t rgid, \ linux32_gid16_t egid, linux32_gid16_t sgid); } 171 STD { int|linux32_sys||getresgid16(linux32_gid16p_t rgid, \ linux32_gid16p_t egid, linux32_gid16p_t sgid); } 172 UNIMPL prctl 173 STD { int|linux32_sys||rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int|linux32_sys||rt_sigaction(int signum, \ linux32_sigactionp_t nsa, \ linux32_sigactionp_t osa, \ netbsd32_size_t sigsetsize); } 175 STD { int|linux32_sys||rt_sigprocmask(int how, \ linux32_sigsetp_t set, \ linux32_sigsetp_t oset, \ netbsd32_size_t sigsetsize); } 176 STD { int|linux32_sys||rt_sigpending(linux32_sigsetp_t set, \ netbsd32_size_t sigsetsize); } 177 STD { int|linux32_sys||rt_sigtimedwait( \ const linux32_sigsetp_t set, \ linux32_siginfop_t info, \ const linux32_timespecp_t timeout); } 178 STD { int|linux32_sys||rt_queueinfo(int pid, int sig, \ linux32_siginfop_t uinfo); } 179 STD { int|linux32_sys||rt_sigsuspend(linux32_sigsetp_t unewset, \ netbsd32_size_t sigsetsize); } 180 STD { netbsd32_ssize_t|linux32_sys||pread(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ netbsd32_off_t offset); } 181 STD { netbsd32_ssize_t|linux32_sys||pwrite(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ netbsd32_off_t offset); } 182 STD { int|linux32_sys||chown16(netbsd32_charp path, \ linux32_uid16_t uid, linux32_gid16_t gid); } 183 NOARGS { int|netbsd32||__getcwd(netbsd32_charp bufp, \ netbsd32_size_t length); } 184 UNIMPL capget 185 UNIMPL capset 186 UNIMPL sigaltstack 187 UNIMPL sendfile 188 UNIMPL getpmsg 189 UNIMPL putpmsg 190 NOARGS { int|sys|14|vfork(void); } 191 STD { int|linux32_sys||ugetrlimit(int which, \ netbsd32_orlimitp_t rlp); } 192 STD { linux32_off_t|linux32_sys||mmap2(netbsd32_u_long addr, \ netbsd32_size_t len, int prot, int flags, int fd, \ linux32_off_t offset); } 193 STD { int|linux32_sys||truncate64(netbsd32_charp path, \ uint32_t lenlo, uint32_t lenhi); } 194 STD { int|linux32_sys||ftruncate64(unsigned int fd, \ uint32_t lenlo, uint32_t lenhi); } 195 STD { int|linux32_sys||stat64(netbsd32_charp path, \ linux32_stat64p sp); } 196 STD { int|linux32_sys||lstat64(netbsd32_charp path, \ linux32_stat64p sp); } 197 STD { int|linux32_sys||fstat64(int fd, \ linux32_stat64p sp); } 198 NOARGS { int|netbsd32||__posix_lchown(netbsd32_charp path, \ uid_t uid, gid_t gid); } 199 NOARGS { uid_t|sys||getuid(void); } 200 NOARGS { gid_t|sys||getgid(void); } 201 NOARGS { uid_t|sys||geteuid(void); } 202 NOARGS { gid_t|sys||getegid(void); } 203 NOARGS { int|netbsd32||setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int|netbsd32||setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int|netbsd32||getgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 206 NOARGS { int|netbsd32||setgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 207 NOARGS { int|netbsd32||__posix_fchown(int fd, uid_t uid, gid_t gid); } 208 STD { int|linux32_sys||setresuid(uid_t ruid, uid_t euid, \ uid_t suid); } 209 STD { int|linux32_sys||getresuid(linux32_uidp_t ruid, \ linux32_uidp_t euid, linux32_uidp_t suid); } 210 STD { int|linux32_sys||setresgid(gid_t rgid, gid_t egid, \ gid_t sgid); } 211 STD { int|linux32_sys||getresgid(linux32_gidp_t rgid, \ linux32_gidp_t egid, linux32_gidp_t sgid); } 212 NOARGS { int|netbsd32||__posix_chown(netbsd32_charp path, \ uid_t uid, gid_t gid); } 213 NOARGS { int|netbsd32||setuid(uid_t uid); } 214 NOARGS { int|netbsd32||setgid(gid_t gid); } 215 STD { int|linux32_sys||setfsuid(uid_t uid); } 216 STD { int|linux32_sys||setfsgid(gid_t gid); } 217 UNIMPL pivot_root 218 NOARGS { int|netbsd32||mincore(netbsd32_voidp addr, \ netbsd32_size_t len, netbsd32_charp vec); } 219 NOARGS { int|netbsd32||madvise(netbsd32_voidp addr, \ netbsd32_size_t len, int behav); } 220 STD { int|linux32_sys||getdents64(int fd, \ linux32_dirent64p_t dent, unsigned int count); } ; fcntl64() - Exactly the same as fcntl() #define linux32_sys_fcntl64 linux32_sys_fcntl #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 221 NOARGS { int|linux32_sys||fcntl64(int fd, \ int cmd, netbsd32_voidp arg); } 222 UNIMPL /* unused */ 223 UNIMPL /* unused */ 224 NOARGS { pid_t|linux_sys||gettid(void); } 225 UNIMPL readahead 226 NOARGS { int|netbsd32||setxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size, int flags); } 227 NOARGS { int|netbsd32||lsetxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size, int flags); } 228 NOARGS { int|netbsd32||fsetxattr(int fd, netbsd32_charp name, \ netbsd32_voidp value, netbsd32_size_t size, int flags); } 229 NOARGS { ssize_t|netbsd32||getxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size); } 230 NOARGS { ssize_t|netbsd32||lgetxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size); } 231 NOARGS { ssize_t|netbsd32||fgetxattr(int fd, netbsd32_charp name, \ netbsd32_voidp value, netbsd32_size_t size); } 232 NOARGS { ssize_t|netbsd32||listxattr(netbsd32_charp path, \ netbsd32_charp list, netbsd32_size_t size); } 233 NOARGS { ssize_t|netbsd32||llistxattr(netbsd32_charp path, \ netbsd32_charp list, netbsd32_size_t size); } 234 NOARGS { ssize_t|netbsd32||flistxattr(int fd, netbsd32_charp list, \ netbsd32_size_t size); } 235 NOARGS { int|netbsd32||removexattr(netbsd32_charp path, \ netbsd32_charp name); } 236 NOARGS { int|netbsd32||lremovexattr(netbsd32_charp path, \ netbsd32_charp name); } 237 NOARGS { int|netbsd32||fremovexattr(int fd, netbsd32_charp name); } 238 STD { int|linux32_sys||tkill(int tid, int sig); } 239 UNIMPL sendfile64 240 STD { int|linux32_sys||futex(linux32_intp_t uaddr, int op, int val, \ linux32_timespecp_t timeout, linux32_intp_t uaddr2, \ int val3); } 241 STD { int|linux32_sys||sched_setaffinity(pid_t pid, \ unsigned int len, linux32_ulongp_t mask); } 242 STD { int|linux32_sys||sched_getaffinity(pid_t pid, \ unsigned int len, linux32_ulongp_t mask); } 243 STD { int|linux32_sys||set_thread_area(linux32_user_descp_t desc); } 244 STD { int|linux32_sys||get_thread_area(linux32_user_descp_t desc); } 245 UNIMPL io_setup 246 UNIMPL io_destroy 247 UNIMPL io_getevents 248 UNIMPL io_submit 249 UNIMPL io_cancel 250 STD { int|linux32_sys||fadvise64(int fd, uint32_t offlo, \ uint32_t offhi, linux32_size_t len, int advice); } 251 UNIMPL /* unused */ 252 STD { int|linux32_sys||exit_group(int error_code); } 253 UNIMPL lookup_dcookie 254 UNIMPL epoll_create 255 UNIMPL epoll_ctl 256 UNIMPL epoll_wait 257 UNIMPL remap_file_pages 258 STD { int|linux32_sys||set_tid_address(linux32_intp_t tid); } 259 STD { int|linux32_sys||timer_create(clockid_t clockid, \ struct linux32_sigevent *evp, timer_t *timerid); } 260 STD { int|linux32_sys||timer_settime(timer_t timerid, \ int flags, const struct linux32_itimerspec *tim, \ struct linux32_itimerspec *otim); } 261 STD { int|linux32_sys||timer_gettime(timer_t timerid, \ struct linux32_itimerspec *tim); } 262 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } 263 NOARGS { int|sys||timer_delete(timer_t timerid); } 264 STD { int|linux32_sys||clock_settime(clockid_t which, \ linux32_timespecp_t tp); } 265 STD { int|linux32_sys||clock_gettime(clockid_t which, \ linux32_timespecp_t tp); } 266 STD { int|linux32_sys||clock_getres(clockid_t which, \ linux32_timespecp_t tp); } 267 STD { int|linux32_sys||clock_nanosleep(clockid_t which, int flags, \ linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); } 268 STD { int|linux32_sys||statfs64(netbsd32_charp path, \ netbsd32_size_t sz, linux32_statfs64p sp); } 269 STD { int|linux32_sys||fstatfs64(int fd, \ netbsd32_size_t sz, linux32_statfs64p sp); } 270 STD { int|linux32_sys||tgkill(int tgid, int tid, int sig); } 271 NOARGS { int|compat_50_netbsd32||utimes(netbsd32_charp path, \ netbsd32_timeval50p_t tptr); } 272 STD { int|linux32_sys||fadvise64_64(int fd, uint32_t offlo, \ uint32_t offhi, uint32_t lenlo, uint32_t lenhi, int advice); } 273 UNIMPL vserver 274 UNIMPL mbind 275 UNIMPL get_mempolicy 276 UNIMPL set_mempolicy 277 UNIMPL mq_open 278 UNIMPL mq_unlink 279 UNIMPL mq_timedsend 280 UNIMPL mq_timedreceive 281 UNIMPL mq_notify 282 UNIMPL mq_getsetattr 283 UNIMPL kexec_load 284 UNIMPL waitid 285 UNIMPL /* unused */ 286 UNIMPL add_key 287 UNIMPL request_key 288 UNIMPL keyctl 289 UNIMPL ioprio_set 290 UNIMPL ioprio_get 291 UNIMPL inotify_init 292 UNIMPL inotify_add_watch 293 UNIMPL inotify_rm_watch 294 UNIMPL migrate_pages 295 STD { int|linux32_sys||openat(int fd, netbsd32_charp path, \ int flags, ... linux_umode_t mode); } 296 NOARGS { int|netbsd32||mkdirat(int fd, netbsd32_charp path, \ linux_umode_t mode); } 297 STD { int|linux32_sys||mknodat(int fd, netbsd32_charp path, \ linux_umode_t mode, unsigned dev); } 298 STD { int|linux32_sys||fchownat(int fd, netbsd32_charp path, \ uid_t owner, gid_t group, int flag); } 299 UNIMPL futimesat 300 STD { int|linux32_sys||fstatat64(int fd, netbsd32_charp path, \ linux32_stat64p sp, int flag); } 301 STD { int|linux32_sys||unlinkat(int fd, netbsd32_charp path, \ int flag); } 302 NOARGS { int|netbsd32||renameat(int fromfd, netbsd32_charp from, \ int tofd, netbsd32_charp to); } 303 STD { int|linux32_sys||linkat(int fd1, netbsd32_charp name1, \ int fd2, netbsd32_charp name2, int flags); } 304 NOARGS { int|netbsd32||symlinkat(netbsd32_charp path1, int fd, \ netbsd32_charp path2); } 305 NOARGS { int|netbsd32||readlinkat(int fd, netbsd32_charp path, \ netbsd32_charp buf, linux32_size_t bufsize); } 306 STD { int|linux32_sys||fchmodat(int fd, netbsd32_charp path, \ linux_umode_t mode); } 307 STD { int|linux32_sys||faccessat(int fd, netbsd32_charp path, \ int amode); } 308 STD { int|linux32_sys||pselect6(int nfds, \ netbsd32_fd_setp_t readfds, \ netbsd32_fd_setp_t writefds, \ netbsd32_fd_setp_t exceptfds, \ linux32_timespecp_t timeout, \ linux32_sized_sigsetp_t ss); } 309 STD { int|linux32_sys||ppoll(netbsd32_pollfdp_t fds, u_int nfds, \ linux32_timespecp_t timeout, linux32_sigsetp_t sigset); } 310 UNIMPL unshare ; ; The netbsd32 native robust list calls have different ; argument names / types, but they are ABI-compatible ; with linux32. ; 311 NOARGS { int|netbsd32||__futex_set_robust_list( \ netbsd32_voidp head, netbsd32_size_t len); } 312 NOARGS { int|netbsd32||__futex_get_robust_list(lwpid_t lwpid, \ netbsd32_voidp headp, netbsd32_size_tp lenp); } 313 UNIMPL splice 314 UNIMPL sync_file_range 315 UNIMPL tee 316 UNIMPL vmsplice 317 UNIMPL move_pages 318 UNIMPL getcpu 319 UNIMPL epoll_wait 320 STD { int|linux32_sys||utimensat(int fd, netbsd32_charp path, \ linux32_timespecp_t times, int flag); } 321 UNIMPL signalfd 322 NOARGS { int|linux_sys||timerfd_create(clockid_t clock_id, \ int flags); } 323 STD { int|linux32_sys||eventfd(unsigned int initval); } 324 STD { int|linux32_sys||fallocate(int fd, int mode, \ off_t offset, off_t len); } 325 STD { int|linux32_sys||timerfd_settime(int fd, int flags, \ const struct linux32_itimerspec *tim, \ struct linux32_itimerspec *otim); } 326 STD { int|linux32_sys||timerfd_gettime(int fd, \ struct linux32_itimerspec *tim); } 327 UNIMPL signalfd4 328 STD { int|linux32_sys||eventfd2(unsigned int initval, \ int flags); } 329 UNIMPL epoll_create1 330 STD { int|linux32_sys||dup3(int from, int to, int flags); } 331 STD { int|linux32_sys||pipe2(netbsd32_intp fd, int flags); } 332 UNIMPL inotify_init1 333 STD { int|linux32_sys||preadv(int fd, \ const netbsd32_iovecp_t iovp, int iovcnt, \ netbsd32_u_long off_lo, netbsd32_u_long off_hi); } 334 STD { int|linux32_sys||pwritev(int fd, \ const netbsd32_iovecp_t iovp, int iovcnt, \ netbsd32_u_long off_lo, netbsd32_u_long off_hi); } 335 UNIMPL rt_tgsigqueueinfo 336 UNIMPL perf_counter_open 337 UNIMPL recvmmsg 338 UNIMPL fanotify_init 339 UNIMPL fanotify_mark 340 STD { int|linux32_sys||prlimit64(pid_t pid, int which, \ netbsd32_rlimitp_t new_rlp, netbsd32_rlimitp_t old_rlp); } 341 UNIMPL name_to_handle_at 342 UNIMPL open_by_handle_at 343 UNIMPL clock_adjtime 344 UNIMPL syncfs 345 UNIMPL sendmmsg 346 UNIMPL setns 347 UNIMPL process_vm_readv 348 UNIMPL process_vm_writev 349 UNIMPL kcmp 350 UNIMPL finit_module @ 1.76 log @Add pselect6(2) system call to COMPAT_LINUX32 @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.75 2021/09/20 02:20:03 thorpej Exp $ d586 2 a587 1 340 UNIMPL prlimit64 @ 1.75 log @Add preadv(2) and pwritev(2) system calls to COMPAT_LINUX and COMPAT_LINUX32. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.74 2021/09/20 00:09:02 thorpej Exp $ d530 6 a535 1 308 UNIMPL pselect6 @ 1.74 log @Add the eventfd system calls to COMPAT_LINUX and COMPAT_LINUX32. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.73 2021/09/19 23:51:37 thorpej Exp $ d570 6 a575 2 333 UNIMPL preadv 334 UNIMPL pwritev @ 1.73 log @Add the timerfd syscalls to COMPAT_LINUX and COMPAT_LINUX32. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.72 2021/09/19 23:01:50 thorpej Exp $ d555 1 a555 1 323 UNIMPL eventfd d564 2 a565 1 328 UNIMPL eventfd2 @ 1.72 log @Add the POSIX timer syscalls (timer_create(), timer_settime(), timer_gettime(), timer_getoverrun(), and timer_delete()) to COMPAT_LINUX and COMPAT_LINUX32. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.71 2020/04/26 18:53:33 thorpej Exp $ d553 2 a554 1 322 UNIMPL timerfd_create d558 5 a562 2 325 UNIMPL timerfd_settime 326 UNIMPL timerfd_gettime @ 1.71 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.70 2019/11/09 23:44:31 jdolecek Exp $ d457 9 a465 5 259 UNIMPL timer_create 260 UNIMPL timer_settime 261 UNIMPL timer_gettime 262 UNIMPL timer_getoverrun 263 UNIMPL timer_delete @ 1.71.2.1 log @Add eventfd glue to COMPAT_LINUX32. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.71 2020/04/26 18:53:33 thorpej Exp $ d550 1 a550 1 323 STD { int|linux32_sys||eventfd(unsigned int initval); } d556 1 a556 2 328 STD { int|linux32_sys||eventfd2(unsigned int initval, \ int flags); } @ 1.71.2.2 log @Add POSIX timer and timerfd support to COMPAT_LINUX32. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp $ d457 5 a461 9 259 STD { int|linux32_sys||timer_create(clockid_t clockid, \ struct linux32_sigevent *evp, timer_t *timerid); } 260 STD { int|linux32_sys||timer_settime(timer_t timerid, \ int flags, const struct linux32_itimerspec *tim, \ struct linux32_itimerspec *otim); } 261 STD { int|linux32_sys||timer_gettime(timer_t timerid, \ struct linux32_itimerspec *tim); } 262 NOARGS { int|sys||timer_getoverrun(timer_t timerid); } 263 NOARGS { int|sys||timer_delete(timer_t timerid); } d549 1 a549 2 322 NOARGS { int|linux_sys||timerfd_create(clockid_t clock_id, \ int flags); } d553 2 a554 5 325 STD { int|linux32_sys||timerfd_settime(int fd, int flags, \ const struct linux32_itimerspec *new_value, \ struct linux32_itimerspec *old_value); } 326 STD { int|linux32_sys||timerfd_gettime(int fd, \ struct linux32_itimerspec *curr_value); } @ 1.71.2.3 log @Add preadv(2) and pwritev(2). @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.71.2.2 2020/12/17 03:05:32 thorpej Exp $ d570 2 a571 6 333 STD { int|linux32_sys||preadv(int fd, \ const netbsd32_iovecp_t iovp, int iovcnt, \ netbsd32_u_long off_lo, netbsd32_u_long off_hi); } 334 STD { int|linux32_sys||pwritev(int fd, \ const netbsd32_iovecp_t iovp, int iovcnt, \ netbsd32_u_long off_lo, netbsd32_u_long off_hi); } @ 1.70 log @add dummy implementation of linux fallocate() which just returns EOPNOTSUPP; this is needed so that glibc falls back to emulation and apps behaving properly, since EOPNOTSUPP is a documented and expected return code, but ENOSYS is not right now there are no filesystems in NetBSD tree supporting the fallocate VOP, so no point trying to map this to a native call supposed to help with problem reported in https://mail-index.netbsd.org/tech-kern/2019/11/03/msg025641.html @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.69 2015/03/08 17:10:44 christos Exp $ d530 9 a538 4 311 STD { int|linux32_sys||set_robust_list( \ linux32_robust_list_headp_t head, linux32_size_t len); } 312 STD { int|linux32_sys||get_robust_list(linux32_pid_t pid, \ linux32_robust_list_headpp_t head, linux32_sizep_t len); } @ 1.69 log @fix inconsistent names @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.68 2014/11/22 13:12:22 njoly Exp $ d546 2 a547 1 324 UNIMPL fallocate @ 1.69.18.1 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 $NetBSD$ d546 1 a546 2 324 STD { int|linux32_sys||fallocate(int fd, int mode, \ off_t offset, off_t len); } @ 1.68 log @Add ppoll(2) for compat linux32. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.67 2014/05/29 10:47:00 njoly Exp $ d91 1 a91 1 netbsd32_long offset, int chence); } d125 1 a125 1 linux32_handler_t handler); } d177 1 a177 1 85 NOARGS { int|netbsd32||readlink(netbsd32_charp name, \ @ 1.68.2.1 log @Sync with HEAD @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.69 2015/03/08 17:10:44 christos Exp $ d91 1 a91 1 netbsd32_long offset, int whence); } d125 1 a125 1 linux32_handlerp_t handler); } d177 1 a177 1 85 NOARGS { int|netbsd32||readlink(netbsd32_charp path, \ @ 1.67 log @Add utimes(2) support. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.66 2014/05/04 10:08:53 njoly Exp $ d527 2 a528 1 309 UNIMPL ppoll @ 1.66 log @Fix pread/pwrite syscalls which need a 64bit offset argument. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.65 2013/11/18 19:23:27 christos Exp $ d475 2 a476 1 271 UNIMPL utimes @ 1.65 log @Fix extended attribute syscalls to use the proper types and call their netbsd32 counterparts for now. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.64 2013/11/18 01:32:52 chs Exp $ d331 1 a331 1 linux32_off_t offset); } d334 1 a334 1 linux32_off_t offset); } @ 1.65.2.1 log @Rebase. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.67 2014/05/29 10:47:00 njoly Exp $ d331 1 a331 1 netbsd32_off_t offset); } d334 1 a334 1 netbsd32_off_t offset); } d475 1 a475 2 271 NOARGS { int|compat_50_netbsd32||utimes(netbsd32_charp path, \ netbsd32_timeval50p_t tptr); } @ 1.64 log @implement the *at() syscalls. bring the unimplemented syscall list up to date. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.63 2013/11/07 19:37:19 njoly Exp $ d404 27 a430 21 226 NOARGS { int|linux_sys||setxattr(char *path, char *name, \ void *value, size_t size, int flags); } 227 NOARGS { int|linux_sys||lsetxattr(char *path, char *name, \ void *value, size_t size, int flags); } 228 NOARGS { int|linux_sys||fsetxattr(int fd, char *name, \ void *value, size_t size, int flags); } 229 NOARGS { ssize_t|linux_sys||getxattr(char *path, char *name, \ void *value, size_t size); } 230 NOARGS { ssize_t|linux_sys||lgetxattr(char *path, char *name, \ void *value, size_t size); } 231 NOARGS { ssize_t|linux_sys||fgetxattr(int fd, char *name, \ void *value, size_t size); } 232 NOARGS { ssize_t|linux_sys||listxattr(char *path, char *list, \ size_t size); } 233 NOARGS { ssize_t|linux_sys||llistxattr(char *path, char *list, \ size_t size); } 234 NOARGS { ssize_t|linux_sys||flistxattr(int fd, char *list, \ size_t size); } 235 NOARGS { int|linux_sys||removexattr(char *path, char *name); } 236 NOARGS { int|linux_sys||lremovexattr(char *path, char *name); } 237 NOARGS { int|linux_sys||fremovexattr(int fd, char *name); } @ 1.63 log @Fix dup/dup2/dup3 argument types (u_int -> int). @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.62 2012/07/13 18:21:33 christos Exp $ d46 2 a52 1 #include d71 1 a71 1 int mode); } d75 1 a75 1 8 STD { int|linux32_sys||creat(netbsd32_charp path, int mode); } d84 2 a85 2 int mode, int dev); } 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, int mode); } d115 1 a115 1 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, int mode); } d192 1 a192 1 94 NOARGS { int|netbsd32||fchmod(int fd, int mode); } d494 8 a501 4 295 UNIMPL openat 296 UNIMPL mkdirat 297 UNIMPL mknodat 298 UNIMPL fchownat d503 16 a518 8 300 UNIMPL fstatat64 301 UNIMPL unlinkat 302 UNIMPL renameat 303 UNIMPL linkat 304 UNIMPL symlinkat 305 UNIMPL readlinkat 306 UNIMPL fchmodat 307 UNIMPL faccessat d533 2 a534 1 320 UNIMPL utimensat d552 13 @ 1.62 log @add xattr stubs @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.61 2012/05/10 19:40:46 christos Exp $ d116 1 a116 1 41 NOARGS { int|netbsd32||dup(u_int fd); } @ 1.62.2.1 log @Rebase to HEAD as of a few days ago. @ text @d1 1 a1 1 $NetBSD$ a45 2 #include d51 1 d70 1 a70 1 linux_umode_t mode); } d74 1 a74 1 8 STD { int|linux32_sys||creat(netbsd32_charp path, linux_umode_t mode); } d83 2 a84 2 linux_umode_t mode, unsigned dev); } 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, linux_umode_t mode); } d114 1 a114 1 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, linux_umode_t mode); } d116 1 a116 1 41 NOARGS { int|netbsd32||dup(int fd); } d191 1 a191 1 94 NOARGS { int|netbsd32||fchmod(int fd, linux_umode_t mode); } d330 1 a330 1 netbsd32_off_t offset); } d333 1 a333 1 netbsd32_off_t offset); } d403 21 a423 27 226 NOARGS { int|netbsd32||setxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size, int flags); } 227 NOARGS { int|netbsd32||lsetxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size, int flags); } 228 NOARGS { int|netbsd32||fsetxattr(int fd, netbsd32_charp name, \ netbsd32_voidp value, netbsd32_size_t size, int flags); } 229 NOARGS { ssize_t|netbsd32||getxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size); } 230 NOARGS { ssize_t|netbsd32||lgetxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size); } 231 NOARGS { ssize_t|netbsd32||fgetxattr(int fd, netbsd32_charp name, \ netbsd32_voidp value, netbsd32_size_t size); } 232 NOARGS { ssize_t|netbsd32||listxattr(netbsd32_charp path, \ netbsd32_charp list, netbsd32_size_t size); } 233 NOARGS { ssize_t|netbsd32||llistxattr(netbsd32_charp path, \ netbsd32_charp list, netbsd32_size_t size); } 234 NOARGS { ssize_t|netbsd32||flistxattr(int fd, netbsd32_charp list, \ netbsd32_size_t size); } 235 NOARGS { int|netbsd32||removexattr(netbsd32_charp path, \ netbsd32_charp name); } 236 NOARGS { int|netbsd32||lremovexattr(netbsd32_charp path, \ netbsd32_charp name); } 237 NOARGS { int|netbsd32||fremovexattr(int fd, netbsd32_charp name); } d468 1 a468 2 271 NOARGS { int|compat_50_netbsd32||utimes(netbsd32_charp path, \ netbsd32_timeval50p_t tptr); } d493 4 a496 8 295 STD { int|linux32_sys||openat(int fd, netbsd32_charp path, \ int flags, ... linux_umode_t mode); } 296 NOARGS { int|netbsd32||mkdirat(int fd, netbsd32_charp path, \ linux_umode_t mode); } 297 STD { int|linux32_sys||mknodat(int fd, netbsd32_charp path, \ linux_umode_t mode, unsigned dev); } 298 STD { int|linux32_sys||fchownat(int fd, netbsd32_charp path, \ uid_t owner, gid_t group, int flag); } d498 8 a505 16 300 STD { int|linux32_sys||fstatat64(int fd, netbsd32_charp path, \ linux32_stat64p sp, int flag); } 301 STD { int|linux32_sys||unlinkat(int fd, netbsd32_charp path, \ int flag); } 302 NOARGS { int|netbsd32||renameat(int fromfd, netbsd32_charp from, \ int tofd, netbsd32_charp to); } 303 STD { int|linux32_sys||linkat(int fd1, netbsd32_charp name1, \ int fd2, netbsd32_charp name2, int flags); } 304 NOARGS { int|netbsd32||symlinkat(netbsd32_charp path1, int fd, \ netbsd32_charp path2); } 305 NOARGS { int|netbsd32||readlinkat(int fd, netbsd32_charp path, \ netbsd32_charp buf, linux32_size_t bufsize); } 306 STD { int|linux32_sys||fchmodat(int fd, netbsd32_charp path, \ linux_umode_t mode); } 307 STD { int|linux32_sys||faccessat(int fd, netbsd32_charp path, \ int amode); } d520 1 a520 2 320 STD { int|linux32_sys||utimensat(int fd, netbsd32_charp path, \ linux32_timespecp_t times, int flag); } a537 13 338 UNIMPL fanotify_init 339 UNIMPL fanotify_mark 340 UNIMPL prlimit64 341 UNIMPL name_to_handle_at 342 UNIMPL open_by_handle_at 343 UNIMPL clock_adjtime 344 UNIMPL syncfs 345 UNIMPL sendmmsg 346 UNIMPL setns 347 UNIMPL process_vm_readv 348 UNIMPL process_vm_writev 349 UNIMPL kcmp 350 UNIMPL finit_module @ 1.62.2.2 log @update from HEAD @ text @d91 1 a91 1 netbsd32_long offset, int whence); } d125 1 a125 1 linux32_handlerp_t handler); } d177 1 a177 1 85 NOARGS { int|netbsd32||readlink(netbsd32_charp path, \ d527 1 a527 2 309 STD { int|linux32_sys||ppoll(netbsd32_pollfdp_t fds, u_int nfds, \ linux32_timespecp_t timeout, linux32_sigsetp_t sigset); } @ 1.62.4.1 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.62 2012/07/13 18:21:33 christos Exp $ a45 2 #include d51 1 d70 1 a70 1 linux_umode_t mode); } d74 1 a74 1 8 STD { int|linux32_sys||creat(netbsd32_charp path, linux_umode_t mode); } d83 2 a84 2 linux_umode_t mode, unsigned dev); } 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, linux_umode_t mode); } d114 1 a114 1 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, linux_umode_t mode); } d116 1 a116 1 41 NOARGS { int|netbsd32||dup(int fd); } d191 1 a191 1 94 NOARGS { int|netbsd32||fchmod(int fd, linux_umode_t mode); } d330 1 a330 1 netbsd32_off_t offset); } d333 1 a333 1 netbsd32_off_t offset); } d403 21 a423 27 226 NOARGS { int|netbsd32||setxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size, int flags); } 227 NOARGS { int|netbsd32||lsetxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size, int flags); } 228 NOARGS { int|netbsd32||fsetxattr(int fd, netbsd32_charp name, \ netbsd32_voidp value, netbsd32_size_t size, int flags); } 229 NOARGS { ssize_t|netbsd32||getxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size); } 230 NOARGS { ssize_t|netbsd32||lgetxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size); } 231 NOARGS { ssize_t|netbsd32||fgetxattr(int fd, netbsd32_charp name, \ netbsd32_voidp value, netbsd32_size_t size); } 232 NOARGS { ssize_t|netbsd32||listxattr(netbsd32_charp path, \ netbsd32_charp list, netbsd32_size_t size); } 233 NOARGS { ssize_t|netbsd32||llistxattr(netbsd32_charp path, \ netbsd32_charp list, netbsd32_size_t size); } 234 NOARGS { ssize_t|netbsd32||flistxattr(int fd, netbsd32_charp list, \ netbsd32_size_t size); } 235 NOARGS { int|netbsd32||removexattr(netbsd32_charp path, \ netbsd32_charp name); } 236 NOARGS { int|netbsd32||lremovexattr(netbsd32_charp path, \ netbsd32_charp name); } 237 NOARGS { int|netbsd32||fremovexattr(int fd, netbsd32_charp name); } d493 4 a496 8 295 STD { int|linux32_sys||openat(int fd, netbsd32_charp path, \ int flags, ... linux_umode_t mode); } 296 NOARGS { int|netbsd32||mkdirat(int fd, netbsd32_charp path, \ linux_umode_t mode); } 297 STD { int|linux32_sys||mknodat(int fd, netbsd32_charp path, \ linux_umode_t mode, unsigned dev); } 298 STD { int|linux32_sys||fchownat(int fd, netbsd32_charp path, \ uid_t owner, gid_t group, int flag); } d498 8 a505 16 300 STD { int|linux32_sys||fstatat64(int fd, netbsd32_charp path, \ linux32_stat64p sp, int flag); } 301 STD { int|linux32_sys||unlinkat(int fd, netbsd32_charp path, \ int flag); } 302 NOARGS { int|netbsd32||renameat(int fromfd, netbsd32_charp from, \ int tofd, netbsd32_charp to); } 303 STD { int|linux32_sys||linkat(int fd1, netbsd32_charp name1, \ int fd2, netbsd32_charp name2, int flags); } 304 NOARGS { int|netbsd32||symlinkat(netbsd32_charp path1, int fd, \ netbsd32_charp path2); } 305 NOARGS { int|netbsd32||readlinkat(int fd, netbsd32_charp path, \ netbsd32_charp buf, linux32_size_t bufsize); } 306 STD { int|linux32_sys||fchmodat(int fd, netbsd32_charp path, \ linux_umode_t mode); } 307 STD { int|linux32_sys||faccessat(int fd, netbsd32_charp path, \ int amode); } d520 1 a520 2 320 STD { int|linux32_sys||utimensat(int fd, netbsd32_charp path, \ linux32_timespecp_t times, int flag); } a537 13 338 UNIMPL fanotify_init 339 UNIMPL fanotify_mark 340 UNIMPL prlimit64 341 UNIMPL name_to_handle_at 342 UNIMPL open_by_handle_at 343 UNIMPL clock_adjtime 344 UNIMPL syncfs 345 UNIMPL sendmmsg 346 UNIMPL setns 347 UNIMPL process_vm_readv 348 UNIMPL process_vm_writev 349 UNIMPL kcmp 350 UNIMPL finit_module @ 1.61 log @Fix rt_sigtimedwait(): It is wishful thinking that: 1. declaring a 32 bit syscall with 64 bit pointers 2. passing a struct with 32 bit pointers to a 64 bit function is going to work. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.60 2011/11/18 04:08:56 christos Exp $ d403 21 a423 12 226 UNIMPL setxattr 227 UNIMPL lsetxattr 228 UNIMPL fsetxattr 229 UNIMPL getxattr 230 UNIMPL lgetxattr 231 UNIMPL fgetxattr 232 UNIMPL listxattr 233 UNIMPL llistxattr 234 UNIMPL flistxattr 235 UNIMPL removexattr 236 UNIMPL lremovexattr 237 UNIMPL fremovexattr @ 1.60 log @add sigtimedwait support @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.59 2011/05/30 17:50:32 alnsn Exp $ d321 3 a323 3 const linux32_sigset_t *set, \ linux32_siginfo_t *info, \ const struct linux_timespec32 *timeout); } @ 1.60.4.1 log @sync to latest -current. @ text @d1 1 a1 1 $NetBSD$ d321 3 a323 3 const linux32_sigsetp_t set, \ linux32_siginfop_t info, \ const linux32_timespecp_t timeout); } @ 1.60.6.1 log @Pull up following revision(s) (requested by christos in ticket #263): sys/compat/linux32/arch/amd64/linux32_syscallargs.h: revision 1.66 sys/compat/linux32/arch/amd64/syscalls.master: revision 1.61 sys/compat/linux32/common/linux32_signal.c: revision 1.16 sys/compat/linux32/arch/amd64/linux32_syscall.h: revision 1.66 sys/compat/linux32/arch/amd64/linux32_sysent.c: revision 1.66 sys/compat/linux32/arch/amd64/linux32_syscalls.c: revision 1.66 regen Fix rt_sigtimedwait(): It is wishful thinking that: 1. declaring a 32 bit syscall with 64 bit pointers 2. passing a struct with 32 bit pointers to a 64 bit function is going to work. @ text @d1 1 a1 1 $NetBSD$ d321 3 a323 3 const linux32_sigsetp_t set, \ linux32_siginfop_t info, \ const linux32_timespecp_t timeout); } @ 1.60.6.2 log @Pull up following revision(s) (requested by christos in ticket #424): sys/compat/linux32/arch/amd64/linux32_syscallargs.h: revision 1.67 sys/compat/linux32/arch/amd64/syscalls.master: revision 1.62 sys/compat/linux32/arch/amd64/linux32_syscall.h: revision 1.67 sys/compat/linux32/arch/amd64/linux32_sysent.c: revision 1.67 sys/compat/linux32/arch/amd64/linux32_syscalls.c: revision 1.67 add xattr stubs regen @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.60.6.1 2012/05/19 15:19:42 riz Exp $ d403 12 a414 21 226 NOARGS { int|linux_sys||setxattr(char *path, char *name, \ void *value, size_t size, int flags); } 227 NOARGS { int|linux_sys||lsetxattr(char *path, char *name, \ void *value, size_t size, int flags); } 228 NOARGS { int|linux_sys||fsetxattr(int fd, char *name, \ void *value, size_t size, int flags); } 229 NOARGS { ssize_t|linux_sys||getxattr(char *path, char *name, \ void *value, size_t size); } 230 NOARGS { ssize_t|linux_sys||lgetxattr(char *path, char *name, \ void *value, size_t size); } 231 NOARGS { ssize_t|linux_sys||fgetxattr(int fd, char *name, \ void *value, size_t size); } 232 NOARGS { ssize_t|linux_sys||listxattr(char *path, char *list, \ size_t size); } 233 NOARGS { ssize_t|linux_sys||llistxattr(char *path, char *list, \ size_t size); } 234 NOARGS { ssize_t|linux_sys||flistxattr(int fd, char *list, \ size_t size); } 235 NOARGS { int|linux_sys||removexattr(char *path, char *name); } 236 NOARGS { int|linux_sys||lremovexattr(char *path, char *name); } 237 NOARGS { int|linux_sys||fremovexattr(int fd, char *name); } @ 1.59 log @Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.58 2011/04/10 15:47:21 christos Exp $ d320 4 a323 1 177 UNIMPL rt_sigtimedwait @ 1.59.4.1 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.59 2011/05/30 17:50:32 alnsn Exp $ d320 1 a320 4 177 STD { int|linux32_sys||rt_sigtimedwait( \ const linux32_sigset_t *set, \ linux32_siginfo_t *info, \ const struct linux_timespec32 *timeout); } @ 1.59.4.2 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.59.4.1 2012/04/17 00:07:19 yamt Exp $ d321 3 a323 3 const linux32_sigsetp_t set, \ linux32_siginfop_t info, \ const linux32_timespecp_t timeout); } @ 1.59.4.3 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.59.4.2 2012/05/23 10:07:53 yamt Exp $ d403 12 a414 21 226 NOARGS { int|linux_sys||setxattr(char *path, char *name, \ void *value, size_t size, int flags); } 227 NOARGS { int|linux_sys||lsetxattr(char *path, char *name, \ void *value, size_t size, int flags); } 228 NOARGS { int|linux_sys||fsetxattr(int fd, char *name, \ void *value, size_t size, int flags); } 229 NOARGS { ssize_t|linux_sys||getxattr(char *path, char *name, \ void *value, size_t size); } 230 NOARGS { ssize_t|linux_sys||lgetxattr(char *path, char *name, \ void *value, size_t size); } 231 NOARGS { ssize_t|linux_sys||fgetxattr(int fd, char *name, \ void *value, size_t size); } 232 NOARGS { ssize_t|linux_sys||listxattr(char *path, char *list, \ size_t size); } 233 NOARGS { ssize_t|linux_sys||llistxattr(char *path, char *list, \ size_t size); } 234 NOARGS { ssize_t|linux_sys||flistxattr(int fd, char *list, \ size_t size); } 235 NOARGS { int|linux_sys||removexattr(char *path, char *name); } 236 NOARGS { int|linux_sys||lremovexattr(char *path, char *name); } 237 NOARGS { int|linux_sys||fremovexattr(int fd, char *name); } @ 1.59.4.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.59.4.3 2012/10/30 17:20:45 yamt Exp $ a45 2 #include d51 1 d70 1 a70 1 linux_umode_t mode); } d74 1 a74 1 8 STD { int|linux32_sys||creat(netbsd32_charp path, linux_umode_t mode); } d83 2 a84 2 linux_umode_t mode, unsigned dev); } 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, linux_umode_t mode); } d114 1 a114 1 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, linux_umode_t mode); } d116 1 a116 1 41 NOARGS { int|netbsd32||dup(int fd); } d191 1 a191 1 94 NOARGS { int|netbsd32||fchmod(int fd, linux_umode_t mode); } d330 1 a330 1 netbsd32_off_t offset); } d333 1 a333 1 netbsd32_off_t offset); } d403 21 a423 27 226 NOARGS { int|netbsd32||setxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size, int flags); } 227 NOARGS { int|netbsd32||lsetxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size, int flags); } 228 NOARGS { int|netbsd32||fsetxattr(int fd, netbsd32_charp name, \ netbsd32_voidp value, netbsd32_size_t size, int flags); } 229 NOARGS { ssize_t|netbsd32||getxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size); } 230 NOARGS { ssize_t|netbsd32||lgetxattr(netbsd32_charp path, \ netbsd32_charp name, netbsd32_voidp value, \ netbsd32_size_t size); } 231 NOARGS { ssize_t|netbsd32||fgetxattr(int fd, netbsd32_charp name, \ netbsd32_voidp value, netbsd32_size_t size); } 232 NOARGS { ssize_t|netbsd32||listxattr(netbsd32_charp path, \ netbsd32_charp list, netbsd32_size_t size); } 233 NOARGS { ssize_t|netbsd32||llistxattr(netbsd32_charp path, \ netbsd32_charp list, netbsd32_size_t size); } 234 NOARGS { ssize_t|netbsd32||flistxattr(int fd, netbsd32_charp list, \ netbsd32_size_t size); } 235 NOARGS { int|netbsd32||removexattr(netbsd32_charp path, \ netbsd32_charp name); } 236 NOARGS { int|netbsd32||lremovexattr(netbsd32_charp path, \ netbsd32_charp name); } 237 NOARGS { int|netbsd32||fremovexattr(int fd, netbsd32_charp name); } d493 4 a496 8 295 STD { int|linux32_sys||openat(int fd, netbsd32_charp path, \ int flags, ... linux_umode_t mode); } 296 NOARGS { int|netbsd32||mkdirat(int fd, netbsd32_charp path, \ linux_umode_t mode); } 297 STD { int|linux32_sys||mknodat(int fd, netbsd32_charp path, \ linux_umode_t mode, unsigned dev); } 298 STD { int|linux32_sys||fchownat(int fd, netbsd32_charp path, \ uid_t owner, gid_t group, int flag); } d498 8 a505 16 300 STD { int|linux32_sys||fstatat64(int fd, netbsd32_charp path, \ linux32_stat64p sp, int flag); } 301 STD { int|linux32_sys||unlinkat(int fd, netbsd32_charp path, \ int flag); } 302 NOARGS { int|netbsd32||renameat(int fromfd, netbsd32_charp from, \ int tofd, netbsd32_charp to); } 303 STD { int|linux32_sys||linkat(int fd1, netbsd32_charp name1, \ int fd2, netbsd32_charp name2, int flags); } 304 NOARGS { int|netbsd32||symlinkat(netbsd32_charp path1, int fd, \ netbsd32_charp path2); } 305 NOARGS { int|netbsd32||readlinkat(int fd, netbsd32_charp path, \ netbsd32_charp buf, linux32_size_t bufsize); } 306 STD { int|linux32_sys||fchmodat(int fd, netbsd32_charp path, \ linux_umode_t mode); } 307 STD { int|linux32_sys||faccessat(int fd, netbsd32_charp path, \ int amode); } d520 1 a520 2 320 STD { int|linux32_sys||utimensat(int fd, netbsd32_charp path, \ linux32_timespecp_t times, int flag); } a537 13 338 UNIMPL fanotify_init 339 UNIMPL fanotify_mark 340 UNIMPL prlimit64 341 UNIMPL name_to_handle_at 342 UNIMPL open_by_handle_at 343 UNIMPL clock_adjtime 344 UNIMPL syncfs 345 UNIMPL sendmmsg 346 UNIMPL setns 347 UNIMPL process_vm_readv 348 UNIMPL process_vm_writev 349 UNIMPL kcmp 350 UNIMPL finit_module @ 1.58 log @add pipe2 and dup3 @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.57 2010/11/02 18:14:06 chs Exp $ d428 2 a429 1 250 UNIMPL fadvise64 d457 2 a458 1 272 UNIMPL fadvise64_64 @ 1.57 log @implement the following syscalls for linux32: truncate64 ftruncate64 profil ioperm iopl setdomainname modify_ldt statfs64 fstatfs64 note that iopl(), ioperm() and modify_ldt() just call the respective 64-bit handlers, which don't do anything yet. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.56 2010/07/07 01:30:35 chs Exp $ d516 2 a517 2 330 UNIMPL dup3 331 UNIMPL pipe2 @ 1.57.2.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.59 2011/05/30 17:50:32 alnsn Exp $ d428 1 a428 2 250 STD { int|linux32_sys||fadvise64(int fd, uint32_t offlo, \ uint32_t offhi, linux32_size_t len, int advice); } d456 1 a456 2 272 STD { int|linux32_sys||fadvise64_64(int fd, uint32_t offlo, \ uint32_t offhi, uint32_t lenlo, uint32_t lenhi, int advice); } d516 2 a517 2 330 STD { int|linux32_sys||dup3(int from, int to, int flags); } 331 STD { int|linux32_sys||pipe2(netbsd32_intp fd, int flags); } @ 1.56 log @many changes for COMPAT_LINUX: - update the linux syscall table for each platform. - support new-style (NPTL) linux pthreads on all platforms. clone() with CLONE_THREAD uses 1 process with many LWPs instead of separate processes. - move the contents of sys__lwp_setprivate() into a new lwp_setprivate() and use that everywhere. - update linux_release[] and linux32_release[] to "2.6.18". - adjust placement of emul fork/exec/exit hooks as needed and adjust other emul code to match. - convert all struct emul definitions to use named initializers. - change the pid allocator to allow multiple pids to refer to the same proc. - remove a few fields from struct proc that are no longer needed. - disable the non-functional "vdso" code in linux32/amd64, glibc works fine without it. - fix a race in the futex code where we could miss a wakeup after a requeue operation. - redo futex locking to be a little more efficient. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.55 2009/11/24 10:42:44 njoly Exp $ d196 3 a198 1 98 UNIMPL profil d202 2 a203 1 101 UNIMPL ioperm d217 1 a217 1 110 UNIMPL iopl d232 2 a233 1 121 UNIMPL setdomainname d235 2 a236 1 123 UNIMPL modify_ldt d347 4 a350 2 193 UNIMPL truncate64 194 UNIMPL ftruncate64 d450 4 a453 2 268 UNIMPL statfs64 269 UNIMPL fstatfs64 @ 1.55 log @Update personality(2) to match Linux definition where the argument is an unsigned long. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.54 2009/06/08 13:34:23 njoly Exp $ d63 1 a63 1 1 NOARGS { int|netbsd32||exit(int rval); } d91 1 a91 1 20 STD { pid_t|linux_sys||getpid(void); } d143 1 a143 1 64 STD { pid_t|linux_sys||getppid(void); } d226 3 a228 1 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack); } d274 2 a275 1 154 UNIMPL sched_setparam d391 1 a391 1 224 STD { pid_t|linux_sys||gettid(void); } d405 1 a405 1 238 UNIMPL tkill d407 9 a415 5 240 UNIMPL futex 241 UNIMPL sched_setaffinity 242 UNIMPL sched_getaffinity 243 UNIMPL set_thread_area 244 UNIMPL get_thread_area d429 1 a429 1 258 UNIMPL set_tid_address d445 1 a445 1 270 UNIMPL tgkill d459 56 @ 1.55.4.1 log @sync with head @ text @d1 1 a1 1 $NetBSD$ d63 1 a63 1 1 STD { int|linux32_sys||exit(int rval); } d91 1 a91 1 20 NOARGS { pid_t|sys||getpid(void); } d143 1 a143 1 64 NOARGS { pid_t|sys||getppid(void); } d196 1 a196 3 98 NOARGS { int|netbsd32||profil(netbsd32_voidp samples, \ netbsd32_size_t size, netbsd32_u_long offset, \ u_int scale); } d200 1 a200 2 101 NOARGS { int|linux_sys||ioperm(unsigned int lo, \ unsigned int hi, int val); } d214 1 a214 1 110 NOARGS { int|linux_sys||iopl(int level); } d226 2 a227 5 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack, \ netbsd32_voidp parent_tidptr, netbsd32_voidp tls, \ netbsd32_voidp child_tidptr); } 121 STD { int|linux32_sys||setdomainname(netbsd32_charp domainname, \ int len); } d229 1 a229 2 123 STD { int|linux32_sys||modify_ldt(int func, netbsd32_charp ptr, \ netbsd32_size_t bytecount); } d272 1 a272 2 154 STD { int|linux32_sys||sched_setparam(pid_t pid, \ const linux32_sched_paramp_t sp); } d339 2 a340 4 193 STD { int|linux32_sys||truncate64(netbsd32_charp path, \ uint32_t lenlo, uint32_t lenhi); } 194 STD { int|linux32_sys||ftruncate64(unsigned int fd, \ uint32_t lenlo, uint32_t lenhi); } d388 1 a388 1 224 NOARGS { pid_t|linux_sys||gettid(void); } d402 1 a402 1 238 STD { int|linux32_sys||tkill(int tid, int sig); } d404 5 a408 9 240 STD { int|linux32_sys||futex(linux32_intp_t uaddr, int op, int val, \ linux32_timespecp_t timeout, linux32_intp_t uaddr2, \ int val3); } 241 STD { int|linux32_sys||sched_setaffinity(pid_t pid, \ unsigned int len, linux32_ulongp_t mask); } 242 STD { int|linux32_sys||sched_getaffinity(pid_t pid, \ unsigned int len, linux32_ulongp_t mask); } 243 STD { int|linux32_sys||set_thread_area(linux32_user_descp_t desc); } 244 STD { int|linux32_sys||get_thread_area(linux32_user_descp_t desc); } d422 1 a422 1 258 STD { int|linux32_sys||set_tid_address(linux32_intp_t tid); } d436 3 a438 5 268 STD { int|linux32_sys||statfs64(netbsd32_charp path, \ netbsd32_size_t sz, linux32_statfs64p sp); } 269 STD { int|linux32_sys||fstatfs64(int fd, \ netbsd32_size_t sz, linux32_statfs64p sp); } 270 STD { int|linux32_sys||tgkill(int tgid, int tid, int sig); } a451 56 284 UNIMPL waitid 285 UNIMPL /* unused */ 286 UNIMPL add_key 287 UNIMPL request_key 288 UNIMPL keyctl 289 UNIMPL ioprio_set 290 UNIMPL ioprio_get 291 UNIMPL inotify_init 292 UNIMPL inotify_add_watch 293 UNIMPL inotify_rm_watch 294 UNIMPL migrate_pages 295 UNIMPL openat 296 UNIMPL mkdirat 297 UNIMPL mknodat 298 UNIMPL fchownat 299 UNIMPL futimesat 300 UNIMPL fstatat64 301 UNIMPL unlinkat 302 UNIMPL renameat 303 UNIMPL linkat 304 UNIMPL symlinkat 305 UNIMPL readlinkat 306 UNIMPL fchmodat 307 UNIMPL faccessat 308 UNIMPL pselect6 309 UNIMPL ppoll 310 UNIMPL unshare 311 STD { int|linux32_sys||set_robust_list( \ linux32_robust_list_headp_t head, linux32_size_t len); } 312 STD { int|linux32_sys||get_robust_list(linux32_pid_t pid, \ linux32_robust_list_headpp_t head, linux32_sizep_t len); } 313 UNIMPL splice 314 UNIMPL sync_file_range 315 UNIMPL tee 316 UNIMPL vmsplice 317 UNIMPL move_pages 318 UNIMPL getcpu 319 UNIMPL epoll_wait 320 UNIMPL utimensat 321 UNIMPL signalfd 322 UNIMPL timerfd_create 323 UNIMPL eventfd 324 UNIMPL fallocate 325 UNIMPL timerfd_settime 326 UNIMPL timerfd_gettime 327 UNIMPL signalfd4 328 UNIMPL eventfd2 329 UNIMPL epoll_create1 330 UNIMPL dup3 331 UNIMPL pipe2 332 UNIMPL inotify_init1 333 UNIMPL preadv 334 UNIMPL pwritev 335 UNIMPL rt_tgsigqueueinfo 336 UNIMPL perf_counter_open 337 UNIMPL recvmmsg @ 1.55.4.2 log @sync with head @ text @d516 2 a517 2 330 STD { int|linux32_sys||dup3(int from, int to, int flags); } 331 STD { int|linux32_sys||pipe2(netbsd32_intp fd, int flags); } @ 1.55.4.3 log @sync with head @ text @d428 1 a428 2 250 STD { int|linux32_sys||fadvise64(int fd, uint32_t offlo, \ uint32_t offhi, linux32_size_t len, int advice); } d456 1 a456 2 272 STD { int|linux32_sys||fadvise64_64(int fd, uint32_t offlo, \ uint32_t offhi, uint32_t lenlo, uint32_t lenhi, int advice); } @ 1.55.2.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD$ d63 1 a63 1 1 STD { int|linux32_sys||exit(int rval); } d91 1 a91 1 20 NOARGS { pid_t|sys||getpid(void); } d143 1 a143 1 64 NOARGS { pid_t|sys||getppid(void); } d226 1 a226 3 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack, \ netbsd32_voidp parent_tidptr, netbsd32_voidp tls, \ netbsd32_voidp child_tidptr); } d272 1 a272 2 154 STD { int|linux32_sys||sched_setparam(pid_t pid, \ const linux32_sched_paramp_t sp); } d388 1 a388 1 224 NOARGS { pid_t|linux_sys||gettid(void); } d402 1 a402 1 238 STD { int|linux32_sys||tkill(int tid, int sig); } d404 5 a408 9 240 STD { int|linux32_sys||futex(linux32_intp_t uaddr, int op, int val, \ linux32_timespecp_t timeout, linux32_intp_t uaddr2, \ int val3); } 241 STD { int|linux32_sys||sched_setaffinity(pid_t pid, \ unsigned int len, linux32_ulongp_t mask); } 242 STD { int|linux32_sys||sched_getaffinity(pid_t pid, \ unsigned int len, linux32_ulongp_t mask); } 243 STD { int|linux32_sys||set_thread_area(linux32_user_descp_t desc); } 244 STD { int|linux32_sys||get_thread_area(linux32_user_descp_t desc); } d422 1 a422 1 258 STD { int|linux32_sys||set_tid_address(linux32_intp_t tid); } d438 1 a438 1 270 STD { int|linux32_sys||tgkill(int tgid, int tid, int sig); } a451 56 284 UNIMPL waitid 285 UNIMPL /* unused */ 286 UNIMPL add_key 287 UNIMPL request_key 288 UNIMPL keyctl 289 UNIMPL ioprio_set 290 UNIMPL ioprio_get 291 UNIMPL inotify_init 292 UNIMPL inotify_add_watch 293 UNIMPL inotify_rm_watch 294 UNIMPL migrate_pages 295 UNIMPL openat 296 UNIMPL mkdirat 297 UNIMPL mknodat 298 UNIMPL fchownat 299 UNIMPL futimesat 300 UNIMPL fstatat64 301 UNIMPL unlinkat 302 UNIMPL renameat 303 UNIMPL linkat 304 UNIMPL symlinkat 305 UNIMPL readlinkat 306 UNIMPL fchmodat 307 UNIMPL faccessat 308 UNIMPL pselect6 309 UNIMPL ppoll 310 UNIMPL unshare 311 STD { int|linux32_sys||set_robust_list( \ linux32_robust_list_headp_t head, linux32_size_t len); } 312 STD { int|linux32_sys||get_robust_list(linux32_pid_t pid, \ linux32_robust_list_headpp_t head, linux32_sizep_t len); } 313 UNIMPL splice 314 UNIMPL sync_file_range 315 UNIMPL tee 316 UNIMPL vmsplice 317 UNIMPL move_pages 318 UNIMPL getcpu 319 UNIMPL epoll_wait 320 UNIMPL utimensat 321 UNIMPL signalfd 322 UNIMPL timerfd_create 323 UNIMPL eventfd 324 UNIMPL fallocate 325 UNIMPL timerfd_settime 326 UNIMPL timerfd_gettime 327 UNIMPL signalfd4 328 UNIMPL eventfd2 329 UNIMPL epoll_create1 330 UNIMPL dup3 331 UNIMPL pipe2 332 UNIMPL inotify_init1 333 UNIMPL preadv 334 UNIMPL pwritev 335 UNIMPL rt_tgsigqueueinfo 336 UNIMPL perf_counter_open 337 UNIMPL recvmmsg @ 1.55.2.2 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.55.2.1 2010/08/17 06:45:51 uebayasi Exp $ d196 1 a196 3 98 NOARGS { int|netbsd32||profil(netbsd32_voidp samples, \ netbsd32_size_t size, netbsd32_u_long offset, \ u_int scale); } d200 1 a200 2 101 NOARGS { int|linux_sys||ioperm(unsigned int lo, \ unsigned int hi, int val); } d214 1 a214 1 110 NOARGS { int|linux_sys||iopl(int level); } d229 1 a229 2 121 STD { int|linux32_sys||setdomainname(netbsd32_charp domainname, \ int len); } d231 1 a231 2 123 STD { int|linux32_sys||modify_ldt(int func, netbsd32_charp ptr, \ netbsd32_size_t bytecount); } d342 2 a343 4 193 STD { int|linux32_sys||truncate64(netbsd32_charp path, \ uint32_t lenlo, uint32_t lenhi); } 194 STD { int|linux32_sys||ftruncate64(unsigned int fd, \ uint32_t lenlo, uint32_t lenhi); } d443 2 a444 4 268 STD { int|linux32_sys||statfs64(netbsd32_charp path, \ netbsd32_size_t sz, linux32_statfs64p sp); } 269 STD { int|linux32_sys||fstatfs64(int fd, \ netbsd32_size_t sz, linux32_statfs64p sp); } @ 1.54 log @Add rt_queueinfo(2) support. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.53 2009/06/05 16:45:33 njoly Exp $ d243 1 a243 1 136 STD { int|linux32_sys||personality(int per); } @ 1.53 log @Add fstatfs syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.52 2009/06/04 17:59:30 njoly Exp $ d313 2 a314 1 178 UNIMPL rt_queueinfo @ 1.52 log @Add stat/lstat/fstat syscalls. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.51 2009/06/02 16:54:39 njoly Exp $ d199 1 a199 1 100 UNIMPL fstatfs @ 1.51 log @Add siggetmask/sigsetmask syscalls. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.50 2009/01/30 13:55:51 njoly Exp $ d207 6 a212 3 106 UNIMPL stat 107 UNIMPL lstat 108 UNIMPL fstat @ 1.50 log @Add mincore syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.49 2009/01/20 12:00:58 njoly Exp $ d147 2 a148 2 68 UNIMPL siggetmask 69 UNIMPL sigsetmask @ 1.50.2.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.54 2009/06/08 13:34:23 njoly Exp $ d147 2 a148 2 68 STD { int|linux32_sys||siggetmask(void); } 69 STD { int|linux32_sys||sigsetmask(linux32_old_sigset_t mask); } d199 1 a199 1 100 STD { int|linux32_sys||fstatfs(int fd, linux32_statfsp sp); } d207 3 a209 6 106 STD { int|linux32_sys||stat(netbsd32_charp path, \ linux32_statp sp); } 107 STD { int|linux32_sys||lstat(netbsd32_charp path, \ linux32_statp sp); } 108 STD { int|linux32_sys||fstat(int fd, \ linux32_statp sp); } d310 1 a310 2 178 STD { int|linux32_sys||rt_queueinfo(int pid, int sig, \ linux32_siginfop_t uinfo); } @ 1.49 log @Add basic support for linux32 personality(2) syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.48 2009/01/17 22:28:53 njoly Exp $ d371 2 a372 1 218 UNIMPL mincore @ 1.48 log @Convert linux/linux32 wait(4) to use a compat50 rusage structure. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.47 2009/01/16 13:10:47 njoly Exp $ d240 1 a240 1 136 UNIMPL personality @ 1.47 log @Update some syscalls that now needs compat50 timeval structure. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.46 2009/01/13 22:27:43 pooka Exp $ d216 1 a216 1 int options, netbsd32_rusagep_t rusage); } @ 1.46 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.45 2009/01/11 02:45:49 christos Exp $ d163 1 a163 1 78 STD { int|linux32_sys||gettimeofday(netbsd32_timevalp_t tp, \ d165 1 a165 1 79 STD { int|linux32_sys||settimeofday(netbsd32_timevalp_t tp, \ d252 1 a252 1 netbsd32_timevalp_t timeout); } @ 1.45 log @merge christos-time_t @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.44.2.1 2009/01/04 01:58:39 christos Exp $ d62 4 a65 4 0 NOARGS { int linux_sys_nosys(void); } syscall 1 NOARGS { int netbsd32_exit(int rval); } 2 NOARGS { int sys_fork(void); } 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \ d67 1 a67 1 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \ d69 1 a69 1 5 STD { int linux32_sys_open(netbsd32_charp path, int flags, \ d71 2 a72 2 6 NOARGS { int netbsd32_close(int fd); } 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \ d74 2 a75 2 8 STD { int linux32_sys_creat(netbsd32_charp path, int mode); } 9 NOARGS { int netbsd32_link(netbsd32_charp path, \ d77 2 a78 2 10 STD { int linux32_sys_unlink(netbsd32_charp path); } 11 NOARGS { int netbsd32_execve(netbsd32_charp path, \ d80 3 a82 3 12 NOARGS { int netbsd32_chdir(netbsd32_charp path); } 13 STD { int linux32_sys_time(linux32_timep_t t); } 14 STD { int linux32_sys_mknod(netbsd32_charp path, \ d84 2 a85 2 15 NOARGS { int netbsd32_chmod(netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(netbsd32_charp path, \ d87 1 a87 1 17 STD { int linux32_sys_break(netbsd32_charp nsize); } d89 1 a89 1 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \ d91 1 a91 1 20 STD { pid_t linux_sys_getpid(void); } d94 4 a97 4 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); } 25 STD { int linux32_sys_stime(linux32_timep_t t); } 26 STD { int linux32_sys_ptrace(int request, int pid, \ d99 1 a99 1 27 STD { int linux32_sys_alarm(unsigned int secs); } d101 2 a102 2 29 NOARGS { int linux_sys_pause(void); } 30 STD { int linux32_sys_utime(netbsd32_charp path, \ d106 1 a106 1 33 NOARGS { int netbsd32_access(netbsd32_charp path, \ d108 1 a108 1 34 STD { int linux32_sys_nice(int incr); } d110 3 a112 3 36 NOARGS { int sys_sync(void); } 37 STD { int linux32_sys_kill(int pid, int signum); } 38 NOARGS { int netbsd32___posix_rename(netbsd32_charp from, \ d114 5 a118 5 39 NOARGS { int netbsd32_mkdir(netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(netbsd32_charp path); } 41 NOARGS { int netbsd32_dup(u_int fd); } 42 STD { int linux32_sys_pipe(netbsd32_intp fd); } 43 STD { int linux32_sys_times(linux32_tmsp_t tms); } d120 4 a123 4 45 STD { int linux32_sys_brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); } 48 STD { int linux32_sys_signal(int signum, \ d125 3 a127 3 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); } 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); } 51 NOARGS { int netbsd32_acct(netbsd32_charp path); } d130 1 a130 1 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \ d132 1 a132 1 55 STD { int linux32_sys_fcntl(int fd, \ d135 1 a135 1 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); } d137 1 a137 1 59 STD { int linux32_sys_oldolduname( \ d139 2 a140 2 60 NOARGS { int netbsd32_umask(int newmask); } 61 NOARGS { int netbsd32_chroot(netbsd32_charp path); } d142 4 a145 4 63 NOARGS { int netbsd32_dup2(int from, int to); } 64 STD { pid_t linux_sys_getppid(void); } 65 NOARGS { int sys_getpgrp(void); } 66 NOARGS { int sys_setsid(void); } d149 1 a149 1 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \ d151 1 a151 1 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \ d155 1 a155 1 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \ d157 1 a157 1 75 STD { int linux32_sys_setrlimit(u_int which, \ d159 1 a159 1 76 STD { int linux32_sys_getrlimit(u_int which, \ d161 1 a161 1 77 NOARGS { int compat_50_netbsd32_getrusage(int who, \ d163 1 a163 1 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \ d165 1 a165 1 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \ d167 1 a167 1 80 STD { int linux32_sys_getgroups16(int gidsetsize, \ d169 1 a169 1 81 STD { int linux32_sys_setgroups16(int gidsetsize, \ d171 2 a172 2 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); } 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \ d174 1 a174 1 84 NOARGS { int compat_43_netbsd32_lstat43(netbsd32_charp \ d176 1 a176 1 85 NOARGS { int netbsd32_readlink(netbsd32_charp name, \ d179 2 a180 2 87 STD { int linux32_sys_swapon(netbsd32_charp name); } 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \ d182 1 a182 1 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ d184 2 a185 2 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); } 91 NOARGS { int netbsd32_munmap(netbsd32_voidp addr, \ d187 1 a187 1 92 NOARGS { int compat_43_netbsd32_otruncate(netbsd32_charp path, \ d189 1 a189 1 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \ d191 2 a192 2 94 NOARGS { int netbsd32_fchmod(int fd, int mode); } 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \ d194 2 a195 2 96 STD { int linux32_sys_getpriority(int which, int who); } 97 NOARGS { int netbsd32_setpriority(int which, int who, int prio); } d197 1 a197 1 99 STD { int linux32_sys_statfs(netbsd32_charp path, \ d201 1 a201 1 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); } d203 1 a203 1 104 NOARGS { int compat_50_netbsd32_setitimer(int which, \ d205 1 a205 1 105 NOARGS { int compat_50_netbsd32_getitimer(int which, \ d210 1 a210 1 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } d215 1 a215 1 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \ d217 3 a219 3 115 STD { int linux32_sys_swapoff(netbsd32_charp path); } 116 STD { int linux32_sys_sysinfo(linux32_sysinfop_t arg); } 117 STD { int linux32_sys_ipc(int what, int a1, int a2, int a3, \ d221 3 a223 3 118 NOARGS { int netbsd32_fsync(int fd); } 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); } 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); } d225 1 a225 1 122 STD { int linux32_sys_uname(linux32_utsnamep up); } d228 1 a228 1 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ d236 2 a237 2 132 NOARGS { int netbsd32_getpgid(pid_t pid); } 133 NOARGS { int netbsd32_fchdir(int fd); } d242 3 a244 3 138 NOARGS setfsuid16 { int linux32_sys_setfsuid(uid_t uid); } 139 NOARGS setfsgid16 { int linux32_sys_setfsgid(gid_t gid); } 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \ d246 1 a246 1 141 STD { int linux32_sys_getdents(int fd, \ d248 1 a248 1 142 STD { int linux32_sys_select(int nfds, \ d253 2 a254 2 143 NOARGS { int netbsd32_flock(int fd, int how); } 144 NOARGS { int netbsd32___msync13(netbsd32_voidp addr, \ d256 1 a256 1 145 NOARGS { int netbsd32_readv(int fd, \ d258 1 a258 1 146 NOARGS { netbsd32_ssize_t netbsd32_writev(int fd, \ d260 4 a263 4 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); } 148 STD { int linux32_sys_fdatasync(int fd); } 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); } 150 NOARGS { int netbsd32_mlock(netbsd32_voidp addr, \ d265 1 a265 1 151 NOARGS { int netbsd32_munlock(netbsd32_voidp addr, \ d267 2 a268 2 152 NOARGS { int netbsd32_mlockall(int flags); } 153 NOARGS { int sys_munlockall(void); } d270 1 a270 1 155 STD { int linux32_sys_sched_getparam(pid_t pid, \ d272 1 a272 1 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \ d274 4 a277 4 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } 158 NOARGS { int linux_sys_sched_yield(void); } 159 STD { int linux32_sys_sched_get_priority_max(int policy); } 160 STD { int linux32_sys_sched_get_priority_min(int policy); } d279 1 a279 1 162 STD { int linux32_sys_nanosleep(linux32_timespecp_t rqtp, \ d281 1 a281 1 163 STD { int linux32_sys_mremap(netbsd32_voidp old_address, \ d284 1 a284 1 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \ d286 1 a286 1 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \ d290 1 a290 1 168 NOARGS { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \ d293 1 a293 1 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \ d295 1 a295 1 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \ d298 2 a299 2 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int linux32_sys_rt_sigaction(int signum, \ d303 1 a303 1 175 STD { int linux32_sys_rt_sigprocmask(int how, \ d307 1 a307 1 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \ d311 1 a311 1 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \ d313 1 a313 1 180 STD { netbsd32_ssize_t linux32_sys_pread(int fd, \ d316 1 a316 1 181 STD { netbsd32_ssize_t linux32_sys_pwrite(int fd, \ d319 1 a319 1 182 STD { int linux32_sys_chown16(netbsd32_charp path, \ d321 1 a321 1 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \ d329 2 a330 2 190 NOARGS { int sys___vfork14(void); } 191 STD { int linux32_sys_ugetrlimit(int which, \ d332 1 a332 1 192 STD { linux32_off_t linux32_sys_mmap2(netbsd32_u_long addr, \ d337 1 a337 1 195 STD { int linux32_sys_stat64(netbsd32_charp path, \ d339 1 a339 1 196 STD { int linux32_sys_lstat64(netbsd32_charp path, \ d341 1 a341 1 197 STD { int linux32_sys_fstat64(int fd, \ d343 1 a343 1 198 NOARGS { int netbsd32___posix_lchown(netbsd32_charp path, \ d345 7 a351 7 199 NOARGS { uid_t sys_getuid(void); } 200 NOARGS { gid_t sys_getgid(void); } 201 NOARGS { uid_t sys_geteuid(void); } 202 NOARGS { gid_t sys_getegid(void); } 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \ d353 1 a353 1 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \ d355 2 a356 2 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } 208 STD { int linux32_sys_setresuid(uid_t ruid, uid_t euid, \ d358 1 a358 1 209 STD { int linux32_sys_getresuid(linux32_uidp_t ruid, \ d360 1 a360 1 210 STD { int linux32_sys_setresgid(gid_t rgid, gid_t egid, \ d362 1 a362 1 211 STD { int linux32_sys_getresgid(linux32_gidp_t rgid, \ d364 1 a364 1 212 NOARGS { int netbsd32___posix_chown(netbsd32_charp path, \ d366 4 a369 4 213 NOARGS { int netbsd32_setuid(uid_t uid); } 214 NOARGS { int netbsd32_setgid(gid_t gid); } 215 STD { int linux32_sys_setfsuid(uid_t uid); } 216 STD { int linux32_sys_setfsgid(gid_t gid); } d372 1 a372 1 219 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, \ d374 1 a374 1 220 STD { int linux32_sys_getdents64(int fd, \ d379 1 a379 1 221 NOARGS { int linux32_sys_fcntl64(int fd, \ d383 1 a383 1 224 STD { pid_t linux_sys_gettid(void); } d411 1 a411 1 252 STD { int linux32_sys_exit_group(int error_code); } d423 1 a423 1 264 STD { int linux32_sys_clock_settime(clockid_t which, \ d425 1 a425 1 265 STD { int linux32_sys_clock_gettime(clockid_t which, \ d427 1 a427 1 266 STD { int linux32_sys_clock_getres(clockid_t which, \ d429 1 a429 1 267 STD { int linux32_sys_clock_nanosleep(clockid_t which, int flags, \ @ 1.44 log @Add clock_nanosleep syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.43 2008/12/06 23:14:03 njoly Exp $ d161 2 a162 2 77 NOARGS { int netbsd32_getrusage(int who, \ netbsd32_rusagep_t rusage); } d203 4 a206 4 104 NOARGS { int netbsd32_setitimer(int which, \ netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } 105 NOARGS { int netbsd32_getitimer(int which, \ netbsd32_itimervalp_t itv); } @ 1.44.2.1 log @file syscalls.master was added on branch christos-time_t on 2009-01-04 01:58:39 +0000 @ text @d1 446 @ 1.44.2.2 log @use compat_50 syscalls where appropriate. @ text @a0 446 $NetBSD: syscalls.master,v 1.44.2.1 2009/01/04 01:58:39 christos Exp $ ; NetBSD i386 COMPAT_LINUX32 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. ; ; types: ; STD always included ; OBSOL obsolete, not included in system ; UNIMPL unimplemented, not included in system ; NODEF included, but don't define the syscall number ; ; 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 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include %% 0 NOARGS { int linux_sys_nosys(void); } syscall 1 NOARGS { int netbsd32_exit(int rval); } 2 NOARGS { int sys_fork(void); } 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int linux32_sys_open(netbsd32_charp path, int flags, \ int mode); } 6 NOARGS { int netbsd32_close(int fd); } 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \ int options);} 8 STD { int linux32_sys_creat(netbsd32_charp path, int mode); } 9 NOARGS { int netbsd32_link(netbsd32_charp path, \ netbsd32_charp link); } 10 STD { int linux32_sys_unlink(netbsd32_charp path); } 11 NOARGS { int netbsd32_execve(netbsd32_charp path, \ netbsd32_charpp argp, netbsd32_charpp envp); } 12 NOARGS { int netbsd32_chdir(netbsd32_charp path); } 13 STD { int linux32_sys_time(linux32_timep_t t); } 14 STD { int linux32_sys_mknod(netbsd32_charp path, \ int mode, int dev); } 15 NOARGS { int netbsd32_chmod(netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(netbsd32_charp path, \ linux32_uid16_t uid, linux32_gid16_t gid); } 17 STD { int linux32_sys_break(netbsd32_charp nsize); } 18 OBSOL ostat 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \ netbsd32_long offset, int chence); } 20 STD { pid_t linux_sys_getpid(void); } 21 UNIMPL mount 22 UNIMPL umount 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); } 25 STD { int linux32_sys_stime(linux32_timep_t t); } 26 STD { int linux32_sys_ptrace(int request, int pid, \ int addr, int data); } 27 STD { int linux32_sys_alarm(unsigned int secs); } 28 OBSOL ofstat 29 NOARGS { int linux_sys_pause(void); } 30 STD { int linux32_sys_utime(netbsd32_charp path, \ linux32_utimbufp_t times); } 31 OBSOL stty 32 OBSOL gtty 33 NOARGS { int netbsd32_access(netbsd32_charp path, \ int flags); } 34 STD { int linux32_sys_nice(int incr); } 35 OBSOL ftime 36 NOARGS { int sys_sync(void); } 37 STD { int linux32_sys_kill(int pid, int signum); } 38 NOARGS { int netbsd32___posix_rename(netbsd32_charp from, \ netbsd32_charp to); } 39 NOARGS { int netbsd32_mkdir(netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(netbsd32_charp path); } 41 NOARGS { int netbsd32_dup(u_int fd); } 42 STD { int linux32_sys_pipe(netbsd32_intp fd); } 43 STD { int linux32_sys_times(linux32_tmsp_t tms); } 44 OBSOL prof 45 STD { int linux32_sys_brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); } 48 STD { int linux32_sys_signal(int signum, \ linux32_handler_t handler); } 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); } 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); } 51 NOARGS { int netbsd32_acct(netbsd32_charp path); } 52 OBSOL phys 53 OBSOL lock 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \ netbsd32_charp data); } 55 STD { int linux32_sys_fcntl(int fd, \ int cmd, netbsd32_voidp arg); } 56 OBSOL mpx 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); } 58 OBSOL ulimit 59 STD { int linux32_sys_oldolduname( \ linux32_oldold_utsnamep_t up); } 60 NOARGS { int netbsd32_umask(int newmask); } 61 NOARGS { int netbsd32_chroot(netbsd32_charp path); } 62 UNIMPL ustat 63 NOARGS { int netbsd32_dup2(int from, int to); } 64 STD { pid_t linux_sys_getppid(void); } 65 NOARGS { int sys_getpgrp(void); } 66 NOARGS { int sys_setsid(void); } 67 UNIMPL sigaction 68 UNIMPL siggetmask 69 UNIMPL sigsetmask 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid); } 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \ linux32_gid16_t egid); } 72 UNIMPL sigsuspend 73 UNIMPL sigpending 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \ u_int len); } 75 STD { int linux32_sys_setrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 76 STD { int linux32_sys_getrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 77 NOARGS { int compat_50_netbsd32_getrusage(int who, \ netbsd32_rusage50p_t rusage); } 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 80 STD { int linux32_sys_getgroups16(int gidsetsize, \ linux32_gid16p_t gidset); } 81 STD { int linux32_sys_setgroups16(int gidsetsize, \ linux32_gid16p_t gidset); } 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); } 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \ netbsd32_charp link); } 84 NOARGS { int compat_43_netbsd32_lstat43(netbsd32_charp \ path, netbsd32_stat43p_t ub); } 85 NOARGS { int netbsd32_readlink(netbsd32_charp name, \ netbsd32_charp buf, netbsd32_size_t count); } 86 UNIMPL uselib 87 STD { int linux32_sys_swapon(netbsd32_charp name); } 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \ netbsd32_voidp arg); } 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ unsigned int count); } 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); } 91 NOARGS { int netbsd32_munmap(netbsd32_voidp addr, \ netbsd32_size_t len); } 92 NOARGS { int compat_43_netbsd32_otruncate(netbsd32_charp path, \ netbsd32_long length); } 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \ netbsd32_long length); } 94 NOARGS { int netbsd32_fchmod(int fd, int mode); } 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \ linux32_gid16_t gid); } 96 STD { int linux32_sys_getpriority(int which, int who); } 97 NOARGS { int netbsd32_setpriority(int which, int who, int prio); } 98 UNIMPL profil 99 STD { int linux32_sys_statfs(netbsd32_charp path, \ linux32_statfsp sp); } 100 UNIMPL fstatfs 101 UNIMPL ioperm 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); } 103 UNIMPL syslog 104 NOARGS { int compat_50_netbsd32_setitimer(int which, \ netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); } 105 NOARGS { int compat_50_netbsd32_getitimer(int which, \ netbsd32_itimerval50p_t itv); } 106 UNIMPL stat 107 UNIMPL lstat 108 UNIMPL fstat 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } 110 UNIMPL iopl 111 UNIMPL vhangup 112 UNIMPL idle 113 UNIMPL vm86old 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \ int options, netbsd32_rusagep_t rusage); } 115 STD { int linux32_sys_swapoff(netbsd32_charp path); } 116 STD { int linux32_sys_sysinfo(linux32_sysinfop_t arg); } 117 STD { int linux32_sys_ipc(int what, int a1, int a2, int a3, \ netbsd32_voidp ptr); } 118 NOARGS { int netbsd32_fsync(int fd); } 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); } 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); } 121 UNIMPL setdomainname 122 STD { int linux32_sys_uname(linux32_utsnamep up); } 123 UNIMPL modify_ldt 124 UNIMPL adjtimex 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ netbsd32_size_t len, int prot); } 126 UNIMPL sigprocmask 127 UNIMPL create_module 128 UNIMPL init_module 129 UNIMPL delete_module 130 UNIMPL get_kernel_syms 131 UNIMPL quotactl 132 NOARGS { int netbsd32_getpgid(pid_t pid); } 133 NOARGS { int netbsd32_fchdir(int fd); } 134 UNIMPL bdflush 135 UNIMPL sysfs 136 UNIMPL personality 137 UNIMPL afs_syscall 138 NOARGS setfsuid16 { int linux32_sys_setfsuid(uid_t uid); } 139 NOARGS setfsgid16 { int linux32_sys_setfsgid(gid_t gid); } 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_voidp res, int whence); } 141 STD { int linux32_sys_getdents(int fd, \ linux32_direntp_t dent, unsigned int count); } 142 STD { int linux32_sys_select(int nfds, \ netbsd32_fd_setp_t readfds, \ netbsd32_fd_setp_t writefds, \ netbsd32_fd_setp_t exceptfds, \ netbsd32_timevalp_t timeout); } 143 NOARGS { int netbsd32_flock(int fd, int how); } 144 NOARGS { int netbsd32___msync13(netbsd32_voidp addr, \ netbsd32_size_t len, int flags); } 145 NOARGS { int netbsd32_readv(int fd, \ netbsd32_iovecp_t iovp, int iovcnt); } 146 NOARGS { netbsd32_ssize_t netbsd32_writev(int fd, \ netbsd32_iovecp_t iovp, int iovcnt); } 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); } 148 STD { int linux32_sys_fdatasync(int fd); } 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); } 150 NOARGS { int netbsd32_mlock(netbsd32_voidp addr, \ netbsd32_size_t len); } 151 NOARGS { int netbsd32_munlock(netbsd32_voidp addr, \ netbsd32_size_t len); } 152 NOARGS { int netbsd32_mlockall(int flags); } 153 NOARGS { int sys_munlockall(void); } 154 UNIMPL sched_setparam 155 STD { int linux32_sys_sched_getparam(pid_t pid, \ linux32_sched_paramp_t sp); } 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \ int policy, linux32_sched_paramp_t sp); } 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } 158 NOARGS { int linux_sys_sched_yield(void); } 159 STD { int linux32_sys_sched_get_priority_max(int policy); } 160 STD { int linux32_sys_sched_get_priority_min(int policy); } 161 UNIMPL sched_rr_get_interval 162 STD { int linux32_sys_nanosleep(linux32_timespecp_t rqtp, \ linux32_timespecp_t rmtp); } 163 STD { int linux32_sys_mremap(netbsd32_voidp old_address, \ netbsd32_size_t old_size, netbsd32_size_t new_size, \ netbsd32_u_long flags); } 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid, linux32_uid16_t suid); } 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \ linux32_uid16p_t euid, linux32_uid16p_t suid); } 166 UNIMPL vm86 167 UNIMPL query_module 168 NOARGS { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \ int timeout); } 169 UNIMPL nfsservctl 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \ linux32_gid16_t egid, linux32_gid16_t sgid); } 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \ linux32_gid16p_t egid, linux32_gid16p_t sgid); } 172 UNIMPL prctl 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int linux32_sys_rt_sigaction(int signum, \ linux32_sigactionp_t nsa, \ linux32_sigactionp_t osa, \ netbsd32_size_t sigsetsize); } 175 STD { int linux32_sys_rt_sigprocmask(int how, \ linux32_sigsetp_t set, \ linux32_sigsetp_t oset, \ netbsd32_size_t sigsetsize); } 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \ netbsd32_size_t sigsetsize); } 177 UNIMPL rt_sigtimedwait 178 UNIMPL rt_queueinfo 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \ netbsd32_size_t sigsetsize); } 180 STD { netbsd32_ssize_t linux32_sys_pread(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ linux32_off_t offset); } 181 STD { netbsd32_ssize_t linux32_sys_pwrite(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ linux32_off_t offset); } 182 STD { int linux32_sys_chown16(netbsd32_charp path, \ linux32_uid16_t uid, linux32_gid16_t gid); } 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \ netbsd32_size_t length); } 184 UNIMPL capget 185 UNIMPL capset 186 UNIMPL sigaltstack 187 UNIMPL sendfile 188 UNIMPL getpmsg 189 UNIMPL putpmsg 190 NOARGS { int sys___vfork14(void); } 191 STD { int linux32_sys_ugetrlimit(int which, \ netbsd32_orlimitp_t rlp); } 192 STD { linux32_off_t linux32_sys_mmap2(netbsd32_u_long addr, \ netbsd32_size_t len, int prot, int flags, int fd, \ linux32_off_t offset); } 193 UNIMPL truncate64 194 UNIMPL ftruncate64 195 STD { int linux32_sys_stat64(netbsd32_charp path, \ linux32_stat64p sp); } 196 STD { int linux32_sys_lstat64(netbsd32_charp path, \ linux32_stat64p sp); } 197 STD { int linux32_sys_fstat64(int fd, \ linux32_stat64p sp); } 198 NOARGS { int netbsd32___posix_lchown(netbsd32_charp path, \ uid_t uid, gid_t gid); } 199 NOARGS { uid_t sys_getuid(void); } 200 NOARGS { gid_t sys_getgid(void); } 201 NOARGS { uid_t sys_geteuid(void); } 202 NOARGS { gid_t sys_getegid(void); } 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } 208 STD { int linux32_sys_setresuid(uid_t ruid, uid_t euid, \ uid_t suid); } 209 STD { int linux32_sys_getresuid(linux32_uidp_t ruid, \ linux32_uidp_t euid, linux32_uidp_t suid); } 210 STD { int linux32_sys_setresgid(gid_t rgid, gid_t egid, \ gid_t sgid); } 211 STD { int linux32_sys_getresgid(linux32_gidp_t rgid, \ linux32_gidp_t egid, linux32_gidp_t sgid); } 212 NOARGS { int netbsd32___posix_chown(netbsd32_charp path, \ uid_t uid, gid_t gid); } 213 NOARGS { int netbsd32_setuid(uid_t uid); } 214 NOARGS { int netbsd32_setgid(gid_t gid); } 215 STD { int linux32_sys_setfsuid(uid_t uid); } 216 STD { int linux32_sys_setfsgid(gid_t gid); } 217 UNIMPL pivot_root 218 UNIMPL mincore 219 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, \ netbsd32_size_t len, int behav); } 220 STD { int linux32_sys_getdents64(int fd, \ linux32_dirent64p_t dent, unsigned int count); } ; fcntl64() - Exactly the same as fcntl() #define linux32_sys_fcntl64 linux32_sys_fcntl #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 221 NOARGS { int linux32_sys_fcntl64(int fd, \ int cmd, netbsd32_voidp arg); } 222 UNIMPL /* unused */ 223 UNIMPL /* unused */ 224 STD { pid_t linux_sys_gettid(void); } 225 UNIMPL readahead 226 UNIMPL setxattr 227 UNIMPL lsetxattr 228 UNIMPL fsetxattr 229 UNIMPL getxattr 230 UNIMPL lgetxattr 231 UNIMPL fgetxattr 232 UNIMPL listxattr 233 UNIMPL llistxattr 234 UNIMPL flistxattr 235 UNIMPL removexattr 236 UNIMPL lremovexattr 237 UNIMPL fremovexattr 238 UNIMPL tkill 239 UNIMPL sendfile64 240 UNIMPL futex 241 UNIMPL sched_setaffinity 242 UNIMPL sched_getaffinity 243 UNIMPL set_thread_area 244 UNIMPL get_thread_area 245 UNIMPL io_setup 246 UNIMPL io_destroy 247 UNIMPL io_getevents 248 UNIMPL io_submit 249 UNIMPL io_cancel 250 UNIMPL fadvise64 251 UNIMPL /* unused */ 252 STD { int linux32_sys_exit_group(int error_code); } 253 UNIMPL lookup_dcookie 254 UNIMPL epoll_create 255 UNIMPL epoll_ctl 256 UNIMPL epoll_wait 257 UNIMPL remap_file_pages 258 UNIMPL set_tid_address 259 UNIMPL timer_create 260 UNIMPL timer_settime 261 UNIMPL timer_gettime 262 UNIMPL timer_getoverrun 263 UNIMPL timer_delete 264 STD { int linux32_sys_clock_settime(clockid_t which, \ linux32_timespecp_t tp); } 265 STD { int linux32_sys_clock_gettime(clockid_t which, \ linux32_timespecp_t tp); } 266 STD { int linux32_sys_clock_getres(clockid_t which, \ linux32_timespecp_t tp); } 267 STD { int linux32_sys_clock_nanosleep(clockid_t which, int flags, \ linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); } 268 UNIMPL statfs64 269 UNIMPL fstatfs64 270 UNIMPL tgkill 271 UNIMPL utimes 272 UNIMPL fadvise64_64 273 UNIMPL vserver 274 UNIMPL mbind 275 UNIMPL get_mempolicy 276 UNIMPL set_mempolicy 277 UNIMPL mq_open 278 UNIMPL mq_unlink 279 UNIMPL mq_timedsend 280 UNIMPL mq_timedreceive 281 UNIMPL mq_notify 282 UNIMPL mq_getsetattr 283 UNIMPL kexec_load @ 1.43 log @Cleanup; kill netbsd32_caddr_t use. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.42 2008/12/05 23:30:19 njoly Exp $ d429 2 a430 1 267 UNIMPL clock_nanosleep @ 1.42 log @Add getres{uid,gid} syscalls. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.41 2008/12/01 14:18:44 njoly Exp $ d245 1 a245 1 u_int32_t olow, netbsd32_caddr_t res, int whence); } @ 1.41 log @Add sched_get_priority_{min,max} syscalls. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.40 2008/11/19 18:36:04 ad Exp $ d358 2 a359 1 209 UNIMPL getresuid d362 2 a363 1 211 UNIMPL getresgid @ 1.40 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.39 2008/11/12 18:07:41 njoly Exp $ d276 2 a277 2 159 UNIMPL sched_get_priority_max 160 UNIMPL sched_get_priority_min @ 1.39 log @Fix nanosleep(2) on 64-bit archs. Do not call native nanosleep syscall, but rather a modified version the will take care of `struct timespec' conversions. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.38 2008/10/06 14:53:01 njoly Exp $ a33 4 #if defined(_KERNEL_OPT) #include "opt_compat_43.h" #endif d56 2 a57 1 @ 1.38 log @Cleanup. Reduce diffs against netbsd32 syscalls.master. - Remove const keyword for pointer types. - Update some argument types. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.37 2008/09/22 13:07:46 njoly Exp $ d282 2 a283 2 162 NOARGS { int netbsd32_nanosleep(netbsd32_timespecp_t rqtp \ netbsd32_timespecp_t rmtp); } @ 1.38.2.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.48 2009/01/17 22:28:53 njoly Exp $ d34 4 d60 1 a60 2 #include #include d65 4 a68 4 0 NOARGS { int|linux_sys||nosys(void); } syscall 1 NOARGS { int|netbsd32||exit(int rval); } 2 NOARGS { int|sys||fork(void); } 3 NOARGS { netbsd32_ssize_t|netbsd32||read(int fd, \ d70 1 a70 1 4 NOARGS { netbsd32_ssize_t|netbsd32||write(int fd, \ d72 1 a72 1 5 STD { int|linux32_sys||open(netbsd32_charp path, int flags, \ d74 2 a75 2 6 NOARGS { int|netbsd32||close(int fd); } 7 STD { int|linux32_sys||waitpid(int pid, netbsd32_intp status, \ d77 2 a78 2 8 STD { int|linux32_sys||creat(netbsd32_charp path, int mode); } 9 NOARGS { int|netbsd32||link(netbsd32_charp path, \ d80 2 a81 2 10 STD { int|linux32_sys||unlink(netbsd32_charp path); } 11 NOARGS { int|netbsd32||execve(netbsd32_charp path, \ d83 3 a85 3 12 NOARGS { int|netbsd32||chdir(netbsd32_charp path); } 13 STD { int|linux32_sys||time(linux32_timep_t t); } 14 STD { int|linux32_sys||mknod(netbsd32_charp path, \ d87 2 a88 2 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, int mode); } 16 STD { int|linux32_sys||lchown16(netbsd32_charp path, \ d90 1 a90 1 17 STD { int|linux32_sys||break(netbsd32_charp nsize); } d92 1 a92 1 19 NOARGS { netbsd32_long|compat_43_netbsd32||olseek(int fd, \ d94 1 a94 1 20 STD { pid_t|linux_sys||getpid(void); } d97 4 a100 4 23 NOARGS linux_setuid16 { int|netbsd32||setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t|sys||getuid(void); } 25 STD { int|linux32_sys||stime(linux32_timep_t t); } 26 STD { int|linux32_sys||ptrace(int request, int pid, \ d102 1 a102 1 27 STD { int|linux32_sys||alarm(unsigned int secs); } d104 2 a105 2 29 NOARGS { int|linux_sys||pause(void); } 30 STD { int|linux32_sys||utime(netbsd32_charp path, \ d109 1 a109 1 33 NOARGS { int|netbsd32||access(netbsd32_charp path, \ d111 1 a111 1 34 STD { int|linux32_sys||nice(int incr); } d113 3 a115 3 36 NOARGS { int|sys||sync(void); } 37 STD { int|linux32_sys||kill(int pid, int signum); } 38 NOARGS { int|netbsd32||__posix_rename(netbsd32_charp from, \ d117 5 a121 5 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, int mode); } 40 NOARGS { int|netbsd32||rmdir(netbsd32_charp path); } 41 NOARGS { int|netbsd32||dup(u_int fd); } 42 STD { int|linux32_sys||pipe(netbsd32_intp fd); } 43 STD { int|linux32_sys||times(linux32_tmsp_t tms); } d123 4 a126 4 45 STD { int|linux32_sys||brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int|netbsd32||setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t|sys||getgid(void); } 48 STD { int|linux32_sys||signal(int signum, \ d128 3 a130 3 49 NOARGS linux_geteuid16 { uid_t|sys||geteuid(void); } 50 NOARGS linux_getegid16 { gid_t|sys||getegid(void); } 51 NOARGS { int|netbsd32||acct(netbsd32_charp path); } d133 1 a133 1 54 STD { int|linux32_sys||ioctl(int fd, netbsd32_u_long com, \ d135 1 a135 1 55 STD { int|linux32_sys||fcntl(int fd, \ d138 1 a138 1 57 NOARGS { int|netbsd32||setpgid(int pid, int pgid); } d140 1 a140 1 59 STD { int|linux32_sys||oldolduname( \ d142 2 a143 2 60 NOARGS { int|netbsd32||umask(int newmask); } 61 NOARGS { int|netbsd32||chroot(netbsd32_charp path); } d145 4 a148 4 63 NOARGS { int|netbsd32||dup2(int from, int to); } 64 STD { pid_t|linux_sys||getppid(void); } 65 NOARGS { int|sys||getpgrp(void); } 66 NOARGS { int|sys||setsid(void); } d152 1 a152 1 70 STD { int|linux32_sys||setreuid16(linux32_uid16_t ruid, \ d154 1 a154 1 71 STD { int|linux32_sys||setregid16(linux32_gid16_t rgid, \ d158 1 a158 1 74 NOARGS { int|compat_43_netbsd32||osethostname(netbsd32_charp hostname, \ d160 1 a160 1 75 STD { int|linux32_sys||setrlimit(u_int which, \ d162 1 a162 1 76 STD { int|linux32_sys||getrlimit(u_int which, \ d164 3 a166 3 77 NOARGS { int|compat_50_netbsd32||getrusage(int who, \ netbsd32_rusage50p_t rusage); } 78 STD { int|linux32_sys||gettimeofday(netbsd32_timeval50p_t tp, \ d168 1 a168 1 79 STD { int|linux32_sys||settimeofday(netbsd32_timeval50p_t tp, \ d170 1 a170 1 80 STD { int|linux32_sys||getgroups16(int gidsetsize, \ d172 1 a172 1 81 STD { int|linux32_sys||setgroups16(int gidsetsize, \ d174 2 a175 2 82 STD { int|linux32_sys||oldselect(linux32_oldselectp_t lsp); } 83 NOARGS { int|netbsd32||symlink(netbsd32_charp path, \ d177 1 a177 1 84 NOARGS { int|compat_43_netbsd32||lstat43(netbsd32_charp \ d179 1 a179 1 85 NOARGS { int|netbsd32||readlink(netbsd32_charp name, \ d182 2 a183 2 87 STD { int|linux32_sys||swapon(netbsd32_charp name); } 88 STD { int|linux32_sys||reboot(int magic1, int magic2, int cmd, \ d185 1 a185 1 89 STD { int|linux32_sys||readdir(int fd, netbsd32_voidp dent, \ d187 2 a188 2 90 STD { int|linux32_sys||old_mmap(linux32_oldmmapp lmp); } 91 NOARGS { int|netbsd32||munmap(netbsd32_voidp addr, \ d190 1 a190 1 92 NOARGS { int|compat_43_netbsd32||otruncate(netbsd32_charp path, \ d192 1 a192 1 93 NOARGS { int|compat_43_netbsd32||oftruncate(int fd, \ d194 2 a195 2 94 NOARGS { int|netbsd32||fchmod(int fd, int mode); } 95 STD { int|linux32_sys||fchown16(int fd, linux32_uid16_t uid, \ d197 2 a198 2 96 STD { int|linux32_sys||getpriority(int which, int who); } 97 NOARGS { int|netbsd32||setpriority(int which, int who, int prio); } d200 1 a200 1 99 STD { int|linux32_sys||statfs(netbsd32_charp path, \ d204 1 a204 1 102 STD { int|linux32_sys||socketcall(int what, netbsd32_voidp args); } d206 4 a209 4 104 NOARGS { int|compat_50_netbsd32||setitimer(int which, \ netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); } 105 NOARGS { int|compat_50_netbsd32||getitimer(int which, \ netbsd32_itimerval50p_t itv); } d213 1 a213 1 109 STD { int|linux32_sys||olduname(linux32_oldutsnamep_t up); } d218 5 a222 5 114 STD { int|linux32_sys||wait4(int pid, netbsd32_intp status, \ int options, netbsd32_rusage50p_t rusage); } 115 STD { int|linux32_sys||swapoff(netbsd32_charp path); } 116 STD { int|linux32_sys||sysinfo(linux32_sysinfop_t arg); } 117 STD { int|linux32_sys||ipc(int what, int a1, int a2, int a3, \ d224 3 a226 3 118 NOARGS { int|netbsd32||fsync(int fd); } 119 STD { int|linux32_sys||sigreturn(linux32_sigcontextp_t scp); } 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack); } d228 1 a228 1 122 STD { int|linux32_sys||uname(linux32_utsnamep up); } d231 1 a231 1 125 STD { int|linux32_sys||mprotect(netbsd32_voidp start, \ d239 2 a240 2 132 NOARGS { int|netbsd32||getpgid(pid_t pid); } 133 NOARGS { int|netbsd32||fchdir(int fd); } d245 5 a249 5 138 NOARGS setfsuid16 { int|linux32_sys||setfsuid(uid_t uid); } 139 NOARGS setfsgid16 { int|linux32_sys||setfsgid(gid_t gid); } 140 STD { int|linux32_sys||llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_voidp res, int whence); } 141 STD { int|linux32_sys||getdents(int fd, \ d251 1 a251 1 142 STD { int|linux32_sys||select(int nfds, \ d255 3 a257 3 netbsd32_timeval50p_t timeout); } 143 NOARGS { int|netbsd32||flock(int fd, int how); } 144 NOARGS { int|netbsd32|13|msync(netbsd32_voidp addr, \ d259 1 a259 1 145 NOARGS { int|netbsd32||readv(int fd, \ d261 1 a261 1 146 NOARGS { netbsd32_ssize_t|netbsd32||writev(int fd, \ d263 4 a266 4 147 NOARGS { pid_t|netbsd32||getsid(pid_t pid); } 148 STD { int|linux32_sys||fdatasync(int fd); } 149 STD { int|linux32_sys||__sysctl(linux32___sysctlp_t lsp); } 150 NOARGS { int|netbsd32||mlock(netbsd32_voidp addr, \ d268 1 a268 1 151 NOARGS { int|netbsd32||munlock(netbsd32_voidp addr, \ d270 2 a271 2 152 NOARGS { int|netbsd32||mlockall(int flags); } 153 NOARGS { int|sys||munlockall(void); } d273 1 a273 1 155 STD { int|linux32_sys||sched_getparam(pid_t pid, \ d275 1 a275 1 156 STD { int|linux32_sys||sched_setscheduler(pid_t pid, \ d277 4 a280 4 157 STD { int|linux32_sys||sched_getscheduler(pid_t pid); } 158 NOARGS { int|linux_sys||sched_yield(void); } 159 STD { int|linux32_sys||sched_get_priority_max(int policy); } 160 STD { int|linux32_sys||sched_get_priority_min(int policy); } d282 3 a284 3 162 STD { int|linux32_sys||nanosleep(linux32_timespecp_t rqtp, \ linux32_timespecp_t rmtp); } 163 STD { int|linux32_sys||mremap(netbsd32_voidp old_address, \ d287 1 a287 1 164 STD { int|linux32_sys||setresuid16(linux32_uid16_t ruid, \ d289 1 a289 1 165 STD { int|linux32_sys||getresuid16(linux32_uid16p_t ruid, \ d293 1 a293 1 168 NOARGS { int|netbsd32||poll(netbsd32_pollfdp_t fds, u_int nfds, \ d296 1 a296 1 170 STD { int|linux32_sys||setresgid16(linux32_gid16_t rgid, \ d298 1 a298 1 171 STD { int|linux32_sys||getresgid16(linux32_gid16p_t rgid, \ d301 2 a302 2 173 STD { int|linux32_sys||rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int|linux32_sys||rt_sigaction(int signum, \ d306 1 a306 1 175 STD { int|linux32_sys||rt_sigprocmask(int how, \ d310 1 a310 1 176 STD { int|linux32_sys||rt_sigpending(linux32_sigsetp_t set, \ d314 1 a314 1 179 STD { int|linux32_sys||rt_sigsuspend(linux32_sigsetp_t unewset, \ d316 1 a316 1 180 STD { netbsd32_ssize_t|linux32_sys||pread(int fd, \ d319 1 a319 1 181 STD { netbsd32_ssize_t|linux32_sys||pwrite(int fd, \ d322 1 a322 1 182 STD { int|linux32_sys||chown16(netbsd32_charp path, \ d324 1 a324 1 183 NOARGS { int|netbsd32||__getcwd(netbsd32_charp bufp, \ d332 2 a333 2 190 NOARGS { int|sys|14|vfork(void); } 191 STD { int|linux32_sys||ugetrlimit(int which, \ d335 1 a335 1 192 STD { linux32_off_t|linux32_sys||mmap2(netbsd32_u_long addr, \ d340 1 a340 1 195 STD { int|linux32_sys||stat64(netbsd32_charp path, \ d342 1 a342 1 196 STD { int|linux32_sys||lstat64(netbsd32_charp path, \ d344 1 a344 1 197 STD { int|linux32_sys||fstat64(int fd, \ d346 1 a346 1 198 NOARGS { int|netbsd32||__posix_lchown(netbsd32_charp path, \ d348 7 a354 7 199 NOARGS { uid_t|sys||getuid(void); } 200 NOARGS { gid_t|sys||getgid(void); } 201 NOARGS { uid_t|sys||geteuid(void); } 202 NOARGS { gid_t|sys||getegid(void); } 203 NOARGS { int|netbsd32||setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int|netbsd32||setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int|netbsd32||getgroups(int gidsetsize, \ d356 1 a356 1 206 NOARGS { int|netbsd32||setgroups(int gidsetsize, \ d358 2 a359 2 207 NOARGS { int|netbsd32||__posix_fchown(int fd, uid_t uid, gid_t gid); } 208 STD { int|linux32_sys||setresuid(uid_t ruid, uid_t euid, \ d361 2 a362 3 209 STD { int|linux32_sys||getresuid(linux32_uidp_t ruid, \ linux32_uidp_t euid, linux32_uidp_t suid); } 210 STD { int|linux32_sys||setresgid(gid_t rgid, gid_t egid, \ d364 2 a365 3 211 STD { int|linux32_sys||getresgid(linux32_gidp_t rgid, \ linux32_gidp_t egid, linux32_gidp_t sgid); } 212 NOARGS { int|netbsd32||__posix_chown(netbsd32_charp path, \ d367 4 a370 4 213 NOARGS { int|netbsd32||setuid(uid_t uid); } 214 NOARGS { int|netbsd32||setgid(gid_t gid); } 215 STD { int|linux32_sys||setfsuid(uid_t uid); } 216 STD { int|linux32_sys||setfsgid(gid_t gid); } d373 1 a373 1 219 NOARGS { int|netbsd32||madvise(netbsd32_voidp addr, \ d375 1 a375 1 220 STD { int|linux32_sys||getdents64(int fd, \ d380 1 a380 1 221 NOARGS { int|linux32_sys||fcntl64(int fd, \ d384 1 a384 1 224 STD { pid_t|linux_sys||gettid(void); } d412 1 a412 1 252 STD { int|linux32_sys||exit_group(int error_code); } d424 1 a424 1 264 STD { int|linux32_sys||clock_settime(clockid_t which, \ d426 1 a426 1 265 STD { int|linux32_sys||clock_gettime(clockid_t which, \ d428 1 a428 1 266 STD { int|linux32_sys||clock_getres(clockid_t which, \ d430 1 a430 2 267 STD { int|linux32_sys||clock_nanosleep(clockid_t which, int flags, \ linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); } @ 1.38.2.2 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.38.2.1 2009/01/19 13:17:31 skrll Exp $ d240 1 a240 1 136 STD { int|linux32_sys||personality(int per); } d371 1 a371 2 218 NOARGS { int|netbsd32||mincore(netbsd32_voidp addr, \ netbsd32_size_t len, netbsd32_charp vec); } @ 1.38.4.1 log @Pull up following revision(s) (requested by njoly in ticket #81): sys/compat/linux/arch/mips/syscalls.master: revision 1.30 sys/compat/linux/arch/m68k/syscalls.master: revision 1.63 sys/compat/linux32/arch/amd64/syscalls.master: revision 1.39 sys/compat/linux/arch/alpha/syscalls.master: revision 1.63 sys/compat/linux/arch/powerpc/syscalls.master: revision 1.38 sys/compat/linux32/common/linux32_time.c: revision 1.22 sys/compat/linux/arch/amd64/syscalls.master: revision 1.25 sys/compat/linux/arch/i386/syscalls.master: revision 1.94 sys/compat/linux/arch/arm/syscalls.master: revision 1.36 sys/compat/linux/common/linux_time.c: revision 1.26 Fix nanosleep(2) on 64-bit archs. Do not call native nanosleep syscall, but rather a modified version the will take care of `struct timespec' conversions. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.38 2008/10/06 14:53:01 njoly Exp $ d282 2 a283 2 162 STD { int linux32_sys_nanosleep(linux32_timespecp_t rqtp, \ linux32_timespecp_t rmtp); } @ 1.38.4.2 log @Pull up following revision(s) (requested by joerg in ticket #1149): sys/compat/linux32/arch/amd64/syscalls.master: revisions 1.52, 1.53 via patch sys/compat/linux32/common/linux32_misc.c: revision 1.17 via patch sys/compat/linux32/common/linux32_stat.c: revision 1.14-1.16 via patch Fix inverted lst_ino/__lst_ino assignment in linux32_from_stat(). -- Cleanup (no functional changes). Kill some unneeded variables and return stattement. Rename linux32_from_stat() to better bsd_to_linux32_stat64(). Fix some types. Add stat/lstat/fstat syscalls. -- Add fstatfs syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.666 2009/06/05 16:45:33 njoly Exp $ d202 1 a202 1 100 STD { int linux32_sys_fstatfs(int fd, linux32_statfsp sp); } d210 3 a212 5 106 STD { int linux32_sys_stat(netbsd32_charp path, \ linux32_statp sp); } 107 STD { int linux32_sys_lstat(netbsd32_charp path, \ linux32_statp sp); } 108 STD { int linux32_sys_fstat(int fd, linux32_statp sp); } @ 1.37 log @Kill a few linux32 syscalls identical to netbsd32 ones. No functional changes expected. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.36 2008/07/24 12:09:56 njoly Exp $ d71 2 a72 2 const netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int linux32_sys_open(const netbsd32_charp path, int flags, \ d77 5 a81 5 8 STD { int linux32_sys_creat(const netbsd32_charp path, int mode); } 9 NOARGS { int netbsd32_link(const netbsd32_charp path, \ const netbsd32_charp link); } 10 STD { int linux32_sys_unlink(const netbsd32_charp path); } 11 NOARGS { int netbsd32_execve(const netbsd32_charp path, \ d83 1 a83 1 12 NOARGS { int netbsd32_chdir(const netbsd32_charp path); } d85 1 a85 1 14 STD { int linux32_sys_mknod(const netbsd32_charp path, \ d87 2 a88 2 15 NOARGS { int netbsd32_chmod(const netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(const netbsd32_charp path, \ d105 1 a105 1 30 STD { int linux32_sys_utime(const netbsd32_charp path, \ d109 1 a109 1 33 NOARGS { int netbsd32_access(const netbsd32_charp path, \ d115 4 a118 4 38 NOARGS { int netbsd32___posix_rename(const netbsd32_charp from, \ const netbsd32_charp to); } 39 NOARGS { int netbsd32_mkdir(const netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(const netbsd32_charp path); } d145 1 a145 1 63 NOARGS { int netbsd32_dup2(u_int from, u_int to); } d176 2 a177 2 const netbsd32_charp link); } 84 NOARGS { int compat_43_netbsd32_lstat43(const netbsd32_charp \ d179 2 a180 2 85 NOARGS { int netbsd32_readlink(const netbsd32_charp name, \ netbsd32_charp buf, int count); } d188 3 a190 2 91 NOARGS { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } 92 NOARGS { int compat_43_netbsd32_otruncate(const netbsd32_charp path, \ d200 1 a200 1 99 STD { int linux32_sys_statfs(const netbsd32_charp path, \ d206 1 a206 1 104 NOARGS { int netbsd32_setitimer(u_int which, \ d208 1 a208 1 105 NOARGS { int netbsd32_getitimer(u_int which, \ d220 1 a220 1 115 STD { int linux32_sys_swapoff(const netbsd32_charp path); } d260 1 a260 1 const netbsd32_iovecp_t iovp, u_int iovcnt); } d262 1 a262 1 const netbsd32_iovecp_t iovp, int iovcnt); } d276 1 a276 1 int policy, const linux32_sched_paramp_t sp); } d282 1 a282 2 162 NOARGS { int netbsd32_nanosleep(const \ netbsd32_timespecp_t rqtp \ d285 1 a285 1 netbsd32_size_t old_size , netbsd32_size_t new_size, \ d303 1 a303 1 const linux32_sigactionp_t nsa, \ d307 1 a307 1 const linux32_sigsetp_t set, \ d320 1 a320 1 const netbsd32_voidp buf, netbsd32_size_t nbyte, \ d322 1 a322 1 182 STD { int linux32_sys_chown16(const netbsd32_charp path, \ d340 1 a340 1 195 STD { int linux32_sys_stat64(const netbsd32_charp path, \ d342 1 a342 1 196 STD { int linux32_sys_lstat64(const netbsd32_charp path, \ d346 2 a347 2 198 NOARGS { int netbsd32___posix_lchown(const netbsd32_charp path, \ int uid, int gid); } d365 2 a366 2 212 NOARGS { int netbsd32___posix_chown(const netbsd32_charp path, \ int uid, int gid); } @ 1.36 log @Add rt_sigpending syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.35 2008/06/16 19:57:43 christos Exp $ d115 1 a115 1 38 STD { int linux32_sys_rename(const netbsd32_charp from, \ d189 1 a189 1 92 STD { int linux32_sys_truncate(const netbsd32_charp path, \ d197 1 a197 1 97 STD { int linux32_sys_setpriority(int which, int who, int prio); } @ 1.35 log @an attempt at ptrace32 @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.34 2008/05/20 17:31:56 njoly Exp $ d310 2 a311 1 176 UNIMPL rt_sigpending @ 1.35.2.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.38 2008/10/06 14:53:01 njoly Exp $ d71 2 a72 2 netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int linux32_sys_open(netbsd32_charp path, int flags, \ d77 5 a81 5 8 STD { int linux32_sys_creat(netbsd32_charp path, int mode); } 9 NOARGS { int netbsd32_link(netbsd32_charp path, \ netbsd32_charp link); } 10 STD { int linux32_sys_unlink(netbsd32_charp path); } 11 NOARGS { int netbsd32_execve(netbsd32_charp path, \ d83 1 a83 1 12 NOARGS { int netbsd32_chdir(netbsd32_charp path); } d85 1 a85 1 14 STD { int linux32_sys_mknod(netbsd32_charp path, \ d87 2 a88 2 15 NOARGS { int netbsd32_chmod(netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(netbsd32_charp path, \ d105 1 a105 1 30 STD { int linux32_sys_utime(netbsd32_charp path, \ d109 1 a109 1 33 NOARGS { int netbsd32_access(netbsd32_charp path, \ d115 4 a118 4 38 NOARGS { int netbsd32___posix_rename(netbsd32_charp from, \ netbsd32_charp to); } 39 NOARGS { int netbsd32_mkdir(netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(netbsd32_charp path); } d145 1 a145 1 63 NOARGS { int netbsd32_dup2(int from, int to); } d176 2 a177 2 netbsd32_charp link); } 84 NOARGS { int compat_43_netbsd32_lstat43(netbsd32_charp \ d179 2 a180 2 85 NOARGS { int netbsd32_readlink(netbsd32_charp name, \ netbsd32_charp buf, netbsd32_size_t count); } d188 2 a189 3 91 NOARGS { int netbsd32_munmap(netbsd32_voidp addr, \ netbsd32_size_t len); } 92 NOARGS { int compat_43_netbsd32_otruncate(netbsd32_charp path, \ d197 1 a197 1 97 NOARGS { int netbsd32_setpriority(int which, int who, int prio); } d199 1 a199 1 99 STD { int linux32_sys_statfs(netbsd32_charp path, \ d205 1 a205 1 104 NOARGS { int netbsd32_setitimer(int which, \ d207 1 a207 1 105 NOARGS { int netbsd32_getitimer(int which, \ d219 1 a219 1 115 STD { int linux32_sys_swapoff(netbsd32_charp path); } d259 1 a259 1 netbsd32_iovecp_t iovp, int iovcnt); } d261 1 a261 1 netbsd32_iovecp_t iovp, int iovcnt); } d275 1 a275 1 int policy, linux32_sched_paramp_t sp); } d281 2 a282 1 162 NOARGS { int netbsd32_nanosleep(netbsd32_timespecp_t rqtp \ d285 1 a285 1 netbsd32_size_t old_size, netbsd32_size_t new_size, \ d303 1 a303 1 linux32_sigactionp_t nsa, \ d307 1 a307 1 linux32_sigsetp_t set, \ d310 1 a310 2 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \ netbsd32_size_t sigsetsize); } d319 1 a319 1 netbsd32_voidp buf, netbsd32_size_t nbyte, \ d321 1 a321 1 182 STD { int linux32_sys_chown16(netbsd32_charp path, \ d339 1 a339 1 195 STD { int linux32_sys_stat64(netbsd32_charp path, \ d341 1 a341 1 196 STD { int linux32_sys_lstat64(netbsd32_charp path, \ d345 2 a346 2 198 NOARGS { int netbsd32___posix_lchown(netbsd32_charp path, \ uid_t uid, gid_t gid); } d364 2 a365 2 212 NOARGS { int netbsd32___posix_chown(netbsd32_charp path, \ uid_t uid, gid_t gid); } @ 1.35.2.2 log @Update haad-dm branch to haad-dm-base2. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.43 2008/12/06 23:14:03 njoly Exp $ d34 4 d60 1 a60 2 #include #include d248 1 a248 1 u_int32_t olow, netbsd32_voidp res, int whence); } d279 2 a280 2 159 STD { int linux32_sys_sched_get_priority_max(int policy); } 160 STD { int linux32_sys_sched_get_priority_min(int policy); } d282 2 a283 2 162 STD { int linux32_sys_nanosleep(linux32_timespecp_t rqtp, \ linux32_timespecp_t rmtp); } d361 1 a361 2 209 STD { int linux32_sys_getresuid(linux32_uidp_t ruid, \ linux32_uidp_t euid, linux32_uidp_t suid); } d364 1 a364 2 211 STD { int linux32_sys_getresgid(linux32_gidp_t rgid, \ linux32_gidp_t egid, linux32_gidp_t sgid); } @ 1.34 log @Add compat linux32 ipc(2) syscall support, for shared memory and semaphores. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33 2008/04/17 17:47:23 njoly Exp $ d100 2 a101 1 26 UNIMPL ptrace @ 1.34.2.1 log @Sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.35 2008/06/16 19:57:43 christos Exp $ d100 1 a100 2 26 STD { int linux32_sys_ptrace(int request, int pid, \ int addr, int data); } @ 1.34.2.2 log @Sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.36 2008/07/24 12:09:56 njoly Exp $ d310 1 a310 2 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \ netbsd32_size_t sigsetsize); } @ 1.33 log @Add compat linux32 sys_clock_{getres,gettime,settime} syscalls. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.32 2008/04/04 12:57:55 njoly Exp $ d220 2 a221 1 117 UNIMPL ipc @ 1.33.4.1 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33 2008/04/17 17:47:23 njoly Exp $ d34 4 d60 1 a60 2 #include #include d65 4 a68 6 0 NOARGS { int|linux_sys||nosys(void); } syscall 1 NOARGS { int|netbsd32||exit(int rval); } 2 NOARGS { int|sys||fork(void); } 3 NOARGS { netbsd32_ssize_t|netbsd32||read(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 4 NOARGS { netbsd32_ssize_t|netbsd32||write(int fd, \ d70 3 a72 1 5 STD { int|linux32_sys||open(netbsd32_charp path, int flags, \ d74 2 a75 2 6 NOARGS { int|netbsd32||close(int fd); } 7 STD { int|linux32_sys||waitpid(int pid, netbsd32_intp status, \ d77 5 a81 5 8 STD { int|linux32_sys||creat(netbsd32_charp path, int mode); } 9 NOARGS { int|netbsd32||link(netbsd32_charp path, \ netbsd32_charp link); } 10 STD { int|linux32_sys||unlink(netbsd32_charp path); } 11 NOARGS { int|netbsd32||execve(netbsd32_charp path, \ d83 3 a85 3 12 NOARGS { int|netbsd32||chdir(netbsd32_charp path); } 13 STD { int|linux32_sys||time(linux32_timep_t t); } 14 STD { int|linux32_sys||mknod(netbsd32_charp path, \ d87 2 a88 2 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, int mode); } 16 STD { int|linux32_sys||lchown16(netbsd32_charp path, \ d90 1 a90 1 17 STD { int|linux32_sys||break(netbsd32_charp nsize); } d92 1 a92 1 19 NOARGS { netbsd32_long|compat_43_netbsd32||olseek(int fd, \ d94 1 a94 1 20 STD { pid_t|linux_sys||getpid(void); } d97 5 a101 6 23 NOARGS linux_setuid16 { int|netbsd32||setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t|sys||getuid(void); } 25 STD { int|linux32_sys||stime(linux32_timep_t t); } 26 STD { int|linux32_sys||ptrace(int request, int pid, \ int addr, int data); } 27 STD { int|linux32_sys||alarm(unsigned int secs); } d103 2 a104 2 29 NOARGS { int|linux_sys||pause(void); } 30 STD { int|linux32_sys||utime(netbsd32_charp path, \ d108 1 a108 1 33 NOARGS { int|netbsd32||access(netbsd32_charp path, \ d110 1 a110 1 34 STD { int|linux32_sys||nice(int incr); } d112 9 a120 9 36 NOARGS { int|sys||sync(void); } 37 STD { int|linux32_sys||kill(int pid, int signum); } 38 NOARGS { int|netbsd32||__posix_rename(netbsd32_charp from, \ netbsd32_charp to); } 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, int mode); } 40 NOARGS { int|netbsd32||rmdir(netbsd32_charp path); } 41 NOARGS { int|netbsd32||dup(u_int fd); } 42 STD { int|linux32_sys||pipe(netbsd32_intp fd); } 43 STD { int|linux32_sys||times(linux32_tmsp_t tms); } d122 4 a125 4 45 STD { int|linux32_sys||brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int|netbsd32||setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t|sys||getgid(void); } 48 STD { int|linux32_sys||signal(int signum, \ d127 3 a129 3 49 NOARGS linux_geteuid16 { uid_t|sys||geteuid(void); } 50 NOARGS linux_getegid16 { gid_t|sys||getegid(void); } 51 NOARGS { int|netbsd32||acct(netbsd32_charp path); } d132 1 a132 1 54 STD { int|linux32_sys||ioctl(int fd, netbsd32_u_long com, \ d134 1 a134 1 55 STD { int|linux32_sys||fcntl(int fd, \ d137 1 a137 1 57 NOARGS { int|netbsd32||setpgid(int pid, int pgid); } d139 1 a139 1 59 STD { int|linux32_sys||oldolduname( \ d141 2 a142 2 60 NOARGS { int|netbsd32||umask(int newmask); } 61 NOARGS { int|netbsd32||chroot(netbsd32_charp path); } d144 4 a147 4 63 NOARGS { int|netbsd32||dup2(int from, int to); } 64 STD { pid_t|linux_sys||getppid(void); } 65 NOARGS { int|sys||getpgrp(void); } 66 NOARGS { int|sys||setsid(void); } d151 1 a151 1 70 STD { int|linux32_sys||setreuid16(linux32_uid16_t ruid, \ d153 1 a153 1 71 STD { int|linux32_sys||setregid16(linux32_gid16_t rgid, \ d157 1 a157 1 74 NOARGS { int|compat_43_netbsd32||osethostname(netbsd32_charp hostname, \ d159 1 a159 1 75 STD { int|linux32_sys||setrlimit(u_int which, \ d161 1 a161 1 76 STD { int|linux32_sys||getrlimit(u_int which, \ d163 3 a165 3 77 NOARGS { int|compat_50_netbsd32||getrusage(int who, \ netbsd32_rusage50p_t rusage); } 78 STD { int|linux32_sys||gettimeofday(netbsd32_timeval50p_t tp, \ d167 1 a167 1 79 STD { int|linux32_sys||settimeofday(netbsd32_timeval50p_t tp, \ d169 1 a169 1 80 STD { int|linux32_sys||getgroups16(int gidsetsize, \ d171 1 a171 1 81 STD { int|linux32_sys||setgroups16(int gidsetsize, \ d173 4 a176 4 82 STD { int|linux32_sys||oldselect(linux32_oldselectp_t lsp); } 83 NOARGS { int|netbsd32||symlink(netbsd32_charp path, \ netbsd32_charp link); } 84 NOARGS { int|compat_43_netbsd32||lstat43(netbsd32_charp \ d178 2 a179 2 85 NOARGS { int|netbsd32||readlink(netbsd32_charp name, \ netbsd32_charp buf, netbsd32_size_t count); } d181 2 a182 2 87 STD { int|linux32_sys||swapon(netbsd32_charp name); } 88 STD { int|linux32_sys||reboot(int magic1, int magic2, int cmd, \ d184 1 a184 1 89 STD { int|linux32_sys||readdir(int fd, netbsd32_voidp dent, \ d186 3 a188 4 90 STD { int|linux32_sys||old_mmap(linux32_oldmmapp lmp); } 91 NOARGS { int|netbsd32||munmap(netbsd32_voidp addr, \ netbsd32_size_t len); } 92 NOARGS { int|compat_43_netbsd32||otruncate(netbsd32_charp path, \ d190 1 a190 1 93 NOARGS { int|compat_43_netbsd32||oftruncate(int fd, \ d192 2 a193 2 94 NOARGS { int|netbsd32||fchmod(int fd, int mode); } 95 STD { int|linux32_sys||fchown16(int fd, linux32_uid16_t uid, \ d195 2 a196 2 96 STD { int|linux32_sys||getpriority(int which, int who); } 97 NOARGS { int|netbsd32||setpriority(int which, int who, int prio); } d198 1 a198 1 99 STD { int|linux32_sys||statfs(netbsd32_charp path, \ d202 1 a202 1 102 STD { int|linux32_sys||socketcall(int what, netbsd32_voidp args); } d204 4 a207 4 104 NOARGS { int|compat_50_netbsd32||setitimer(int which, \ netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); } 105 NOARGS { int|compat_50_netbsd32||getitimer(int which, \ netbsd32_itimerval50p_t itv); } d211 1 a211 1 109 STD { int|linux32_sys||olduname(linux32_oldutsnamep_t up); } d216 8 a223 9 114 STD { int|linux32_sys||wait4(int pid, netbsd32_intp status, \ int options, netbsd32_rusage50p_t rusage); } 115 STD { int|linux32_sys||swapoff(netbsd32_charp path); } 116 STD { int|linux32_sys||sysinfo(linux32_sysinfop_t arg); } 117 STD { int|linux32_sys||ipc(int what, int a1, int a2, int a3, \ netbsd32_voidp ptr); } 118 NOARGS { int|netbsd32||fsync(int fd); } 119 STD { int|linux32_sys||sigreturn(linux32_sigcontextp_t scp); } 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack); } d225 1 a225 1 122 STD { int|linux32_sys||uname(linux32_utsnamep up); } d228 1 a228 1 125 STD { int|linux32_sys||mprotect(netbsd32_voidp start, \ d236 2 a237 2 132 NOARGS { int|netbsd32||getpgid(pid_t pid); } 133 NOARGS { int|netbsd32||fchdir(int fd); } d240 1 a240 1 136 STD { int|linux32_sys||personality(int per); } d242 5 a246 5 138 NOARGS setfsuid16 { int|linux32_sys||setfsuid(uid_t uid); } 139 NOARGS setfsgid16 { int|linux32_sys||setfsgid(gid_t gid); } 140 STD { int|linux32_sys||llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_voidp res, int whence); } 141 STD { int|linux32_sys||getdents(int fd, \ d248 1 a248 1 142 STD { int|linux32_sys||select(int nfds, \ d252 3 a254 3 netbsd32_timeval50p_t timeout); } 143 NOARGS { int|netbsd32||flock(int fd, int how); } 144 NOARGS { int|netbsd32|13|msync(netbsd32_voidp addr, \ d256 8 a263 8 145 NOARGS { int|netbsd32||readv(int fd, \ netbsd32_iovecp_t iovp, int iovcnt); } 146 NOARGS { netbsd32_ssize_t|netbsd32||writev(int fd, \ netbsd32_iovecp_t iovp, int iovcnt); } 147 NOARGS { pid_t|netbsd32||getsid(pid_t pid); } 148 STD { int|linux32_sys||fdatasync(int fd); } 149 STD { int|linux32_sys||__sysctl(linux32___sysctlp_t lsp); } 150 NOARGS { int|netbsd32||mlock(netbsd32_voidp addr, \ d265 1 a265 1 151 NOARGS { int|netbsd32||munlock(netbsd32_voidp addr, \ d267 2 a268 2 152 NOARGS { int|netbsd32||mlockall(int flags); } 153 NOARGS { int|sys||munlockall(void); } d270 1 a270 1 155 STD { int|linux32_sys||sched_getparam(pid_t pid, \ d272 6 a277 6 156 STD { int|linux32_sys||sched_setscheduler(pid_t pid, \ int policy, linux32_sched_paramp_t sp); } 157 STD { int|linux32_sys||sched_getscheduler(pid_t pid); } 158 NOARGS { int|linux_sys||sched_yield(void); } 159 STD { int|linux32_sys||sched_get_priority_max(int policy); } 160 STD { int|linux32_sys||sched_get_priority_min(int policy); } d279 5 a283 4 162 STD { int|linux32_sys||nanosleep(linux32_timespecp_t rqtp, \ linux32_timespecp_t rmtp); } 163 STD { int|linux32_sys||mremap(netbsd32_voidp old_address, \ netbsd32_size_t old_size, netbsd32_size_t new_size, \ d285 1 a285 1 164 STD { int|linux32_sys||setresuid16(linux32_uid16_t ruid, \ d287 1 a287 1 165 STD { int|linux32_sys||getresuid16(linux32_uid16p_t ruid, \ d291 1 a291 1 168 NOARGS { int|netbsd32||poll(netbsd32_pollfdp_t fds, u_int nfds, \ d294 1 a294 1 170 STD { int|linux32_sys||setresgid16(linux32_gid16_t rgid, \ d296 1 a296 1 171 STD { int|linux32_sys||getresgid16(linux32_gid16p_t rgid, \ d299 3 a301 3 173 STD { int|linux32_sys||rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int|linux32_sys||rt_sigaction(int signum, \ linux32_sigactionp_t nsa, \ d304 2 a305 2 175 STD { int|linux32_sys||rt_sigprocmask(int how, \ linux32_sigsetp_t set, \ d308 1 a308 2 176 STD { int|linux32_sys||rt_sigpending(linux32_sigsetp_t set, \ netbsd32_size_t sigsetsize); } d311 1 a311 1 179 STD { int|linux32_sys||rt_sigsuspend(linux32_sigsetp_t unewset, \ d313 1 a313 1 180 STD { netbsd32_ssize_t|linux32_sys||pread(int fd, \ d316 2 a317 2 181 STD { netbsd32_ssize_t|linux32_sys||pwrite(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ d319 1 a319 1 182 STD { int|linux32_sys||chown16(netbsd32_charp path, \ d321 1 a321 1 183 NOARGS { int|netbsd32||__getcwd(netbsd32_charp bufp, \ d329 2 a330 2 190 NOARGS { int|sys|14|vfork(void); } 191 STD { int|linux32_sys||ugetrlimit(int which, \ d332 1 a332 1 192 STD { linux32_off_t|linux32_sys||mmap2(netbsd32_u_long addr, \ d337 1 a337 1 195 STD { int|linux32_sys||stat64(netbsd32_charp path, \ d339 1 a339 1 196 STD { int|linux32_sys||lstat64(netbsd32_charp path, \ d341 1 a341 1 197 STD { int|linux32_sys||fstat64(int fd, \ d343 9 a351 9 198 NOARGS { int|netbsd32||__posix_lchown(netbsd32_charp path, \ uid_t uid, gid_t gid); } 199 NOARGS { uid_t|sys||getuid(void); } 200 NOARGS { gid_t|sys||getgid(void); } 201 NOARGS { uid_t|sys||geteuid(void); } 202 NOARGS { gid_t|sys||getegid(void); } 203 NOARGS { int|netbsd32||setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int|netbsd32||setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int|netbsd32||getgroups(int gidsetsize, \ d353 1 a353 1 206 NOARGS { int|netbsd32||setgroups(int gidsetsize, \ d355 2 a356 2 207 NOARGS { int|netbsd32||__posix_fchown(int fd, uid_t uid, gid_t gid); } 208 STD { int|linux32_sys||setresuid(uid_t ruid, uid_t euid, \ d358 2 a359 3 209 STD { int|linux32_sys||getresuid(linux32_uidp_t ruid, \ linux32_uidp_t euid, linux32_uidp_t suid); } 210 STD { int|linux32_sys||setresgid(gid_t rgid, gid_t egid, \ d361 7 a367 8 211 STD { int|linux32_sys||getresgid(linux32_gidp_t rgid, \ linux32_gidp_t egid, linux32_gidp_t sgid); } 212 NOARGS { int|netbsd32||__posix_chown(netbsd32_charp path, \ uid_t uid, gid_t gid); } 213 NOARGS { int|netbsd32||setuid(uid_t uid); } 214 NOARGS { int|netbsd32||setgid(gid_t gid); } 215 STD { int|linux32_sys||setfsuid(uid_t uid); } 216 STD { int|linux32_sys||setfsgid(gid_t gid); } d369 2 a370 3 218 NOARGS { int|netbsd32||mincore(netbsd32_voidp addr, \ netbsd32_size_t len, netbsd32_charp vec); } 219 NOARGS { int|netbsd32||madvise(netbsd32_voidp addr, \ d372 1 a372 1 220 STD { int|linux32_sys||getdents64(int fd, \ d377 1 a377 1 221 NOARGS { int|linux32_sys||fcntl64(int fd, \ d381 1 a381 1 224 STD { pid_t|linux_sys||gettid(void); } d409 1 a409 1 252 STD { int|linux32_sys||exit_group(int error_code); } d421 1 a421 1 264 STD { int|linux32_sys||clock_settime(clockid_t which, \ d423 1 a423 1 265 STD { int|linux32_sys||clock_gettime(clockid_t which, \ d425 1 a425 1 266 STD { int|linux32_sys||clock_getres(clockid_t which, \ d427 1 a427 2 267 STD { int|linux32_sys||clock_nanosleep(clockid_t which, int flags, \ linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); } @ 1.33.4.2 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33.4.1 2009/05/04 08:12:23 yamt Exp $ d147 2 a148 2 68 STD { int|linux32_sys||siggetmask(void); } 69 STD { int|linux32_sys||sigsetmask(linux32_old_sigset_t mask); } d199 1 a199 1 100 STD { int|linux32_sys||fstatfs(int fd, linux32_statfsp sp); } d207 3 a209 6 106 STD { int|linux32_sys||stat(netbsd32_charp path, \ linux32_statp sp); } 107 STD { int|linux32_sys||lstat(netbsd32_charp path, \ linux32_statp sp); } 108 STD { int|linux32_sys||fstat(int fd, \ linux32_statp sp); } d310 1 a310 2 178 STD { int|linux32_sys||rt_queueinfo(int pid, int sig, \ linux32_siginfop_t uinfo); } @ 1.33.4.3 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33.4.2 2009/06/20 07:20:17 yamt Exp $ d243 1 a243 1 136 STD { int|linux32_sys||personality(netbsd32_u_long per); } @ 1.33.4.4 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33.4.3 2010/03/11 15:03:17 yamt Exp $ d63 1 a63 1 1 STD { int|linux32_sys||exit(int rval); } d91 1 a91 1 20 NOARGS { pid_t|sys||getpid(void); } d143 1 a143 1 64 NOARGS { pid_t|sys||getppid(void); } d226 1 a226 3 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack, \ netbsd32_voidp parent_tidptr, netbsd32_voidp tls, \ netbsd32_voidp child_tidptr); } d272 1 a272 2 154 STD { int|linux32_sys||sched_setparam(pid_t pid, \ const linux32_sched_paramp_t sp); } d388 1 a388 1 224 NOARGS { pid_t|linux_sys||gettid(void); } d402 1 a402 1 238 STD { int|linux32_sys||tkill(int tid, int sig); } d404 5 a408 9 240 STD { int|linux32_sys||futex(linux32_intp_t uaddr, int op, int val, \ linux32_timespecp_t timeout, linux32_intp_t uaddr2, \ int val3); } 241 STD { int|linux32_sys||sched_setaffinity(pid_t pid, \ unsigned int len, linux32_ulongp_t mask); } 242 STD { int|linux32_sys||sched_getaffinity(pid_t pid, \ unsigned int len, linux32_ulongp_t mask); } 243 STD { int|linux32_sys||set_thread_area(linux32_user_descp_t desc); } 244 STD { int|linux32_sys||get_thread_area(linux32_user_descp_t desc); } d422 1 a422 1 258 STD { int|linux32_sys||set_tid_address(linux32_intp_t tid); } d438 1 a438 1 270 STD { int|linux32_sys||tgkill(int tgid, int tid, int sig); } a451 56 284 UNIMPL waitid 285 UNIMPL /* unused */ 286 UNIMPL add_key 287 UNIMPL request_key 288 UNIMPL keyctl 289 UNIMPL ioprio_set 290 UNIMPL ioprio_get 291 UNIMPL inotify_init 292 UNIMPL inotify_add_watch 293 UNIMPL inotify_rm_watch 294 UNIMPL migrate_pages 295 UNIMPL openat 296 UNIMPL mkdirat 297 UNIMPL mknodat 298 UNIMPL fchownat 299 UNIMPL futimesat 300 UNIMPL fstatat64 301 UNIMPL unlinkat 302 UNIMPL renameat 303 UNIMPL linkat 304 UNIMPL symlinkat 305 UNIMPL readlinkat 306 UNIMPL fchmodat 307 UNIMPL faccessat 308 UNIMPL pselect6 309 UNIMPL ppoll 310 UNIMPL unshare 311 STD { int|linux32_sys||set_robust_list( \ linux32_robust_list_headp_t head, linux32_size_t len); } 312 STD { int|linux32_sys||get_robust_list(linux32_pid_t pid, \ linux32_robust_list_headpp_t head, linux32_sizep_t len); } 313 UNIMPL splice 314 UNIMPL sync_file_range 315 UNIMPL tee 316 UNIMPL vmsplice 317 UNIMPL move_pages 318 UNIMPL getcpu 319 UNIMPL epoll_wait 320 UNIMPL utimensat 321 UNIMPL signalfd 322 UNIMPL timerfd_create 323 UNIMPL eventfd 324 UNIMPL fallocate 325 UNIMPL timerfd_settime 326 UNIMPL timerfd_gettime 327 UNIMPL signalfd4 328 UNIMPL eventfd2 329 UNIMPL epoll_create1 330 UNIMPL dup3 331 UNIMPL pipe2 332 UNIMPL inotify_init1 333 UNIMPL preadv 334 UNIMPL pwritev 335 UNIMPL rt_tgsigqueueinfo 336 UNIMPL perf_counter_open 337 UNIMPL recvmmsg @ 1.33.2.1 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33 2008/04/17 17:47:23 njoly Exp $ d220 1 a220 2 117 STD { int linux32_sys_ipc(int what, int a1, int a2, int a3, \ netbsd32_voidp ptr); } @ 1.33.2.2 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33.2.1 2008/06/04 02:05:04 yamt Exp $ d100 1 a100 2 26 STD { int linux32_sys_ptrace(int request, int pid, \ int addr, int data); } @ 1.33.6.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.33 2008/04/17 17:47:23 njoly Exp $ a42 1 #include @ 1.33.6.2 log @Per discussion with ad, remove most of the #include 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.33.6.1 2008/05/10 23:48:56 wrstuden Exp $ d43 1 @ 1.33.6.3 log @Sync w/ -current. 34 merge conflicts to follow. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33.6.2 2008/05/14 01:35:08 wrstuden Exp $ d100 1 a100 2 26 STD { int linux32_sys_ptrace(int request, int pid, \ int addr, int data); } d220 1 a220 2 117 STD { int linux32_sys_ipc(int what, int a1, int a2, int a3, \ netbsd32_voidp ptr); } @ 1.33.6.4 log @Sync with wrstuden-revivesa-base-2. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33.6.3 2008/06/23 04:30:54 wrstuden Exp $ d310 1 a310 2 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \ netbsd32_size_t sigsetsize); } @ 1.33.6.5 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33.6.4 2008/09/18 04:36:45 wrstuden Exp $ d71 2 a72 2 netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int linux32_sys_open(netbsd32_charp path, int flags, \ d77 5 a81 5 8 STD { int linux32_sys_creat(netbsd32_charp path, int mode); } 9 NOARGS { int netbsd32_link(netbsd32_charp path, \ netbsd32_charp link); } 10 STD { int linux32_sys_unlink(netbsd32_charp path); } 11 NOARGS { int netbsd32_execve(netbsd32_charp path, \ d83 1 a83 1 12 NOARGS { int netbsd32_chdir(netbsd32_charp path); } d85 1 a85 1 14 STD { int linux32_sys_mknod(netbsd32_charp path, \ d87 2 a88 2 15 NOARGS { int netbsd32_chmod(netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(netbsd32_charp path, \ d105 1 a105 1 30 STD { int linux32_sys_utime(netbsd32_charp path, \ d109 1 a109 1 33 NOARGS { int netbsd32_access(netbsd32_charp path, \ d115 4 a118 4 38 NOARGS { int netbsd32___posix_rename(netbsd32_charp from, \ netbsd32_charp to); } 39 NOARGS { int netbsd32_mkdir(netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(netbsd32_charp path); } d145 1 a145 1 63 NOARGS { int netbsd32_dup2(int from, int to); } d176 2 a177 2 netbsd32_charp link); } 84 NOARGS { int compat_43_netbsd32_lstat43(netbsd32_charp \ d179 2 a180 2 85 NOARGS { int netbsd32_readlink(netbsd32_charp name, \ netbsd32_charp buf, netbsd32_size_t count); } d188 2 a189 3 91 NOARGS { int netbsd32_munmap(netbsd32_voidp addr, \ netbsd32_size_t len); } 92 NOARGS { int compat_43_netbsd32_otruncate(netbsd32_charp path, \ d197 1 a197 1 97 NOARGS { int netbsd32_setpriority(int which, int who, int prio); } d199 1 a199 1 99 STD { int linux32_sys_statfs(netbsd32_charp path, \ d205 1 a205 1 104 NOARGS { int netbsd32_setitimer(int which, \ d207 1 a207 1 105 NOARGS { int netbsd32_getitimer(int which, \ d219 1 a219 1 115 STD { int linux32_sys_swapoff(netbsd32_charp path); } d259 1 a259 1 netbsd32_iovecp_t iovp, int iovcnt); } d261 1 a261 1 netbsd32_iovecp_t iovp, int iovcnt); } d275 1 a275 1 int policy, linux32_sched_paramp_t sp); } d281 2 a282 1 162 NOARGS { int netbsd32_nanosleep(netbsd32_timespecp_t rqtp \ d285 1 a285 1 netbsd32_size_t old_size, netbsd32_size_t new_size, \ d303 1 a303 1 linux32_sigactionp_t nsa, \ d307 1 a307 1 linux32_sigsetp_t set, \ d320 1 a320 1 netbsd32_voidp buf, netbsd32_size_t nbyte, \ d322 1 a322 1 182 STD { int linux32_sys_chown16(netbsd32_charp path, \ d340 1 a340 1 195 STD { int linux32_sys_stat64(netbsd32_charp path, \ d342 1 a342 1 196 STD { int linux32_sys_lstat64(netbsd32_charp path, \ d346 2 a347 2 198 NOARGS { int netbsd32___posix_lchown(netbsd32_charp path, \ uid_t uid, gid_t gid); } d365 2 a366 2 212 NOARGS { int netbsd32___posix_chown(netbsd32_charp path, \ uid_t uid, gid_t gid); } @ 1.32 log @Add msync(2) syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.31 2008/02/20 21:49:56 njoly Exp $ d421 6 a426 3 264 UNIMPL clock_settime 265 UNIMPL clock_gettime 266 UNIMPL clock_getres @ 1.31 log @Add mlock/munlock syscalls @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.30 2008/02/17 21:49:17 njoly Exp $ d254 2 a255 1 144 UNIMPL msync @ 1.31.6.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD$ d220 1 a220 2 117 STD { int linux32_sys_ipc(int what, int a1, int a2, int a3, \ netbsd32_voidp ptr); } d254 1 a254 2 144 NOARGS { int netbsd32___msync13(netbsd32_voidp addr, \ netbsd32_size_t len, int flags); } d420 3 a422 6 264 STD { int linux32_sys_clock_settime(clockid_t which, \ linux32_timespecp_t tp); } 265 STD { int linux32_sys_clock_gettime(clockid_t which, \ linux32_timespecp_t tp); } 266 STD { int linux32_sys_clock_getres(clockid_t which, \ linux32_timespecp_t tp); } @ 1.31.6.2 log @Sync with HEAD. @ text @d100 1 a100 2 26 STD { int linux32_sys_ptrace(int request, int pid, \ int addr, int data); } @ 1.31.6.3 log @Sync with HEAD. @ text @d115 1 a115 1 38 NOARGS { int netbsd32___posix_rename(const netbsd32_charp from, \ d189 1 a189 1 92 NOARGS { int compat_43_netbsd32_otruncate(const netbsd32_charp path, \ d197 1 a197 1 97 NOARGS { int netbsd32_setpriority(int which, int who, int prio); } d310 1 a310 2 176 STD { int linux32_sys_rt_sigpending(linux32_sigsetp_t set, \ netbsd32_size_t sigsetsize); } @ 1.31.6.4 log @Sync with HEAD. @ text @d34 4 d60 1 a60 2 #include #include d65 4 a68 6 0 NOARGS { int|linux_sys||nosys(void); } syscall 1 NOARGS { int|netbsd32||exit(int rval); } 2 NOARGS { int|sys||fork(void); } 3 NOARGS { netbsd32_ssize_t|netbsd32||read(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 4 NOARGS { netbsd32_ssize_t|netbsd32||write(int fd, \ d70 3 a72 1 5 STD { int|linux32_sys||open(netbsd32_charp path, int flags, \ d74 2 a75 2 6 NOARGS { int|netbsd32||close(int fd); } 7 STD { int|linux32_sys||waitpid(int pid, netbsd32_intp status, \ d77 5 a81 5 8 STD { int|linux32_sys||creat(netbsd32_charp path, int mode); } 9 NOARGS { int|netbsd32||link(netbsd32_charp path, \ netbsd32_charp link); } 10 STD { int|linux32_sys||unlink(netbsd32_charp path); } 11 NOARGS { int|netbsd32||execve(netbsd32_charp path, \ d83 3 a85 3 12 NOARGS { int|netbsd32||chdir(netbsd32_charp path); } 13 STD { int|linux32_sys||time(linux32_timep_t t); } 14 STD { int|linux32_sys||mknod(netbsd32_charp path, \ d87 2 a88 2 15 NOARGS { int|netbsd32||chmod(netbsd32_charp path, int mode); } 16 STD { int|linux32_sys||lchown16(netbsd32_charp path, \ d90 1 a90 1 17 STD { int|linux32_sys||break(netbsd32_charp nsize); } d92 1 a92 1 19 NOARGS { netbsd32_long|compat_43_netbsd32||olseek(int fd, \ d94 1 a94 1 20 STD { pid_t|linux_sys||getpid(void); } d97 4 a100 4 23 NOARGS linux_setuid16 { int|netbsd32||setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t|sys||getuid(void); } 25 STD { int|linux32_sys||stime(linux32_timep_t t); } 26 STD { int|linux32_sys||ptrace(int request, int pid, \ d102 1 a102 1 27 STD { int|linux32_sys||alarm(unsigned int secs); } d104 2 a105 2 29 NOARGS { int|linux_sys||pause(void); } 30 STD { int|linux32_sys||utime(netbsd32_charp path, \ d109 1 a109 1 33 NOARGS { int|netbsd32||access(netbsd32_charp path, \ d111 1 a111 1 34 STD { int|linux32_sys||nice(int incr); } d113 9 a121 9 36 NOARGS { int|sys||sync(void); } 37 STD { int|linux32_sys||kill(int pid, int signum); } 38 NOARGS { int|netbsd32||__posix_rename(netbsd32_charp from, \ netbsd32_charp to); } 39 NOARGS { int|netbsd32||mkdir(netbsd32_charp path, int mode); } 40 NOARGS { int|netbsd32||rmdir(netbsd32_charp path); } 41 NOARGS { int|netbsd32||dup(u_int fd); } 42 STD { int|linux32_sys||pipe(netbsd32_intp fd); } 43 STD { int|linux32_sys||times(linux32_tmsp_t tms); } d123 4 a126 4 45 STD { int|linux32_sys||brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int|netbsd32||setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t|sys||getgid(void); } 48 STD { int|linux32_sys||signal(int signum, \ d128 3 a130 3 49 NOARGS linux_geteuid16 { uid_t|sys||geteuid(void); } 50 NOARGS linux_getegid16 { gid_t|sys||getegid(void); } 51 NOARGS { int|netbsd32||acct(netbsd32_charp path); } d133 1 a133 1 54 STD { int|linux32_sys||ioctl(int fd, netbsd32_u_long com, \ d135 1 a135 1 55 STD { int|linux32_sys||fcntl(int fd, \ d138 1 a138 1 57 NOARGS { int|netbsd32||setpgid(int pid, int pgid); } d140 1 a140 1 59 STD { int|linux32_sys||oldolduname( \ d142 2 a143 2 60 NOARGS { int|netbsd32||umask(int newmask); } 61 NOARGS { int|netbsd32||chroot(netbsd32_charp path); } d145 4 a148 4 63 NOARGS { int|netbsd32||dup2(int from, int to); } 64 STD { pid_t|linux_sys||getppid(void); } 65 NOARGS { int|sys||getpgrp(void); } 66 NOARGS { int|sys||setsid(void); } d152 1 a152 1 70 STD { int|linux32_sys||setreuid16(linux32_uid16_t ruid, \ d154 1 a154 1 71 STD { int|linux32_sys||setregid16(linux32_gid16_t rgid, \ d158 1 a158 1 74 NOARGS { int|compat_43_netbsd32||osethostname(netbsd32_charp hostname, \ d160 1 a160 1 75 STD { int|linux32_sys||setrlimit(u_int which, \ d162 1 a162 1 76 STD { int|linux32_sys||getrlimit(u_int which, \ d164 3 a166 3 77 NOARGS { int|compat_50_netbsd32||getrusage(int who, \ netbsd32_rusage50p_t rusage); } 78 STD { int|linux32_sys||gettimeofday(netbsd32_timeval50p_t tp, \ d168 1 a168 1 79 STD { int|linux32_sys||settimeofday(netbsd32_timeval50p_t tp, \ d170 1 a170 1 80 STD { int|linux32_sys||getgroups16(int gidsetsize, \ d172 1 a172 1 81 STD { int|linux32_sys||setgroups16(int gidsetsize, \ d174 4 a177 4 82 STD { int|linux32_sys||oldselect(linux32_oldselectp_t lsp); } 83 NOARGS { int|netbsd32||symlink(netbsd32_charp path, \ netbsd32_charp link); } 84 NOARGS { int|compat_43_netbsd32||lstat43(netbsd32_charp \ d179 2 a180 2 85 NOARGS { int|netbsd32||readlink(netbsd32_charp name, \ netbsd32_charp buf, netbsd32_size_t count); } d182 2 a183 2 87 STD { int|linux32_sys||swapon(netbsd32_charp name); } 88 STD { int|linux32_sys||reboot(int magic1, int magic2, int cmd, \ d185 1 a185 1 89 STD { int|linux32_sys||readdir(int fd, netbsd32_voidp dent, \ d187 3 a189 4 90 STD { int|linux32_sys||old_mmap(linux32_oldmmapp lmp); } 91 NOARGS { int|netbsd32||munmap(netbsd32_voidp addr, \ netbsd32_size_t len); } 92 NOARGS { int|compat_43_netbsd32||otruncate(netbsd32_charp path, \ d191 1 a191 1 93 NOARGS { int|compat_43_netbsd32||oftruncate(int fd, \ d193 2 a194 2 94 NOARGS { int|netbsd32||fchmod(int fd, int mode); } 95 STD { int|linux32_sys||fchown16(int fd, linux32_uid16_t uid, \ d196 2 a197 2 96 STD { int|linux32_sys||getpriority(int which, int who); } 97 NOARGS { int|netbsd32||setpriority(int which, int who, int prio); } d199 1 a199 1 99 STD { int|linux32_sys||statfs(netbsd32_charp path, \ d203 1 a203 1 102 STD { int|linux32_sys||socketcall(int what, netbsd32_voidp args); } d205 4 a208 4 104 NOARGS { int|compat_50_netbsd32||setitimer(int which, \ netbsd32_itimerval50p_t itv, netbsd32_itimerval50p_t oitv); } 105 NOARGS { int|compat_50_netbsd32||getitimer(int which, \ netbsd32_itimerval50p_t itv); } d212 1 a212 1 109 STD { int|linux32_sys||olduname(linux32_oldutsnamep_t up); } d217 1 a217 1 114 STD { int|linux32_sys||wait4(int pid, netbsd32_intp status, \ d219 3 a221 3 115 STD { int|linux32_sys||swapoff(netbsd32_charp path); } 116 STD { int|linux32_sys||sysinfo(linux32_sysinfop_t arg); } 117 STD { int|linux32_sys||ipc(int what, int a1, int a2, int a3, \ d223 3 a225 3 118 NOARGS { int|netbsd32||fsync(int fd); } 119 STD { int|linux32_sys||sigreturn(linux32_sigcontextp_t scp); } 120 STD { int|linux32_sys||clone(int flags, netbsd32_voidp stack); } d227 1 a227 1 122 STD { int|linux32_sys||uname(linux32_utsnamep up); } d230 1 a230 1 125 STD { int|linux32_sys||mprotect(netbsd32_voidp start, \ d238 2 a239 2 132 NOARGS { int|netbsd32||getpgid(pid_t pid); } 133 NOARGS { int|netbsd32||fchdir(int fd); } d244 5 a248 5 138 NOARGS setfsuid16 { int|linux32_sys||setfsuid(uid_t uid); } 139 NOARGS setfsgid16 { int|linux32_sys||setfsgid(gid_t gid); } 140 STD { int|linux32_sys||llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_voidp res, int whence); } 141 STD { int|linux32_sys||getdents(int fd, \ d250 1 a250 1 142 STD { int|linux32_sys||select(int nfds, \ d254 3 a256 3 netbsd32_timeval50p_t timeout); } 143 NOARGS { int|netbsd32||flock(int fd, int how); } 144 NOARGS { int|netbsd32|13|msync(netbsd32_voidp addr, \ d258 8 a265 8 145 NOARGS { int|netbsd32||readv(int fd, \ netbsd32_iovecp_t iovp, int iovcnt); } 146 NOARGS { netbsd32_ssize_t|netbsd32||writev(int fd, \ netbsd32_iovecp_t iovp, int iovcnt); } 147 NOARGS { pid_t|netbsd32||getsid(pid_t pid); } 148 STD { int|linux32_sys||fdatasync(int fd); } 149 STD { int|linux32_sys||__sysctl(linux32___sysctlp_t lsp); } 150 NOARGS { int|netbsd32||mlock(netbsd32_voidp addr, \ d267 1 a267 1 151 NOARGS { int|netbsd32||munlock(netbsd32_voidp addr, \ d269 2 a270 2 152 NOARGS { int|netbsd32||mlockall(int flags); } 153 NOARGS { int|sys||munlockall(void); } d272 1 a272 1 155 STD { int|linux32_sys||sched_getparam(pid_t pid, \ d274 6 a279 6 156 STD { int|linux32_sys||sched_setscheduler(pid_t pid, \ int policy, linux32_sched_paramp_t sp); } 157 STD { int|linux32_sys||sched_getscheduler(pid_t pid); } 158 NOARGS { int|linux_sys||sched_yield(void); } 159 STD { int|linux32_sys||sched_get_priority_max(int policy); } 160 STD { int|linux32_sys||sched_get_priority_min(int policy); } d281 5 a285 4 162 STD { int|linux32_sys||nanosleep(linux32_timespecp_t rqtp, \ linux32_timespecp_t rmtp); } 163 STD { int|linux32_sys||mremap(netbsd32_voidp old_address, \ netbsd32_size_t old_size, netbsd32_size_t new_size, \ d287 1 a287 1 164 STD { int|linux32_sys||setresuid16(linux32_uid16_t ruid, \ d289 1 a289 1 165 STD { int|linux32_sys||getresuid16(linux32_uid16p_t ruid, \ d293 1 a293 1 168 NOARGS { int|netbsd32||poll(netbsd32_pollfdp_t fds, u_int nfds, \ d296 1 a296 1 170 STD { int|linux32_sys||setresgid16(linux32_gid16_t rgid, \ d298 1 a298 1 171 STD { int|linux32_sys||getresgid16(linux32_gid16p_t rgid, \ d301 3 a303 3 173 STD { int|linux32_sys||rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int|linux32_sys||rt_sigaction(int signum, \ linux32_sigactionp_t nsa, \ d306 2 a307 2 175 STD { int|linux32_sys||rt_sigprocmask(int how, \ linux32_sigsetp_t set, \ d310 1 a310 1 176 STD { int|linux32_sys||rt_sigpending(linux32_sigsetp_t set, \ d314 1 a314 1 179 STD { int|linux32_sys||rt_sigsuspend(linux32_sigsetp_t unewset, \ d316 1 a316 1 180 STD { netbsd32_ssize_t|linux32_sys||pread(int fd, \ d319 2 a320 2 181 STD { netbsd32_ssize_t|linux32_sys||pwrite(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ d322 1 a322 1 182 STD { int|linux32_sys||chown16(netbsd32_charp path, \ d324 1 a324 1 183 NOARGS { int|netbsd32||__getcwd(netbsd32_charp bufp, \ d332 2 a333 2 190 NOARGS { int|sys|14|vfork(void); } 191 STD { int|linux32_sys||ugetrlimit(int which, \ d335 1 a335 1 192 STD { linux32_off_t|linux32_sys||mmap2(netbsd32_u_long addr, \ d340 1 a340 1 195 STD { int|linux32_sys||stat64(netbsd32_charp path, \ d342 1 a342 1 196 STD { int|linux32_sys||lstat64(netbsd32_charp path, \ d344 1 a344 1 197 STD { int|linux32_sys||fstat64(int fd, \ d346 9 a354 9 198 NOARGS { int|netbsd32||__posix_lchown(netbsd32_charp path, \ uid_t uid, gid_t gid); } 199 NOARGS { uid_t|sys||getuid(void); } 200 NOARGS { gid_t|sys||getgid(void); } 201 NOARGS { uid_t|sys||geteuid(void); } 202 NOARGS { gid_t|sys||getegid(void); } 203 NOARGS { int|netbsd32||setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int|netbsd32||setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int|netbsd32||getgroups(int gidsetsize, \ d356 1 a356 1 206 NOARGS { int|netbsd32||setgroups(int gidsetsize, \ d358 2 a359 2 207 NOARGS { int|netbsd32||__posix_fchown(int fd, uid_t uid, gid_t gid); } 208 STD { int|linux32_sys||setresuid(uid_t ruid, uid_t euid, \ d361 2 a362 3 209 STD { int|linux32_sys||getresuid(linux32_uidp_t ruid, \ linux32_uidp_t euid, linux32_uidp_t suid); } 210 STD { int|linux32_sys||setresgid(gid_t rgid, gid_t egid, \ d364 7 a370 8 211 STD { int|linux32_sys||getresgid(linux32_gidp_t rgid, \ linux32_gidp_t egid, linux32_gidp_t sgid); } 212 NOARGS { int|netbsd32||__posix_chown(netbsd32_charp path, \ uid_t uid, gid_t gid); } 213 NOARGS { int|netbsd32||setuid(uid_t uid); } 214 NOARGS { int|netbsd32||setgid(gid_t gid); } 215 STD { int|linux32_sys||setfsuid(uid_t uid); } 216 STD { int|linux32_sys||setfsgid(gid_t gid); } d373 1 a373 1 219 NOARGS { int|netbsd32||madvise(netbsd32_voidp addr, \ d375 1 a375 1 220 STD { int|linux32_sys||getdents64(int fd, \ d380 1 a380 1 221 NOARGS { int|linux32_sys||fcntl64(int fd, \ d384 1 a384 1 224 STD { pid_t|linux_sys||gettid(void); } d412 1 a412 1 252 STD { int|linux32_sys||exit_group(int error_code); } d424 1 a424 1 264 STD { int|linux32_sys||clock_settime(clockid_t which, \ d426 1 a426 1 265 STD { int|linux32_sys||clock_gettime(clockid_t which, \ d428 1 a428 1 266 STD { int|linux32_sys||clock_getres(clockid_t which, \ d430 1 a430 2 267 STD { int|linux32_sys||clock_nanosleep(clockid_t which, int flags, \ linux32_timespecp_t rqtp, linux32_timespecp_t rmtp); } @ 1.30 log @pread/pwrite fixes: use SCARG_P32 to access pointers, and update syscalls definitions. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.29 2008/02/04 22:23:43 dsl Exp $ d262 4 a265 2 150 UNIMPL mlock 151 UNIMPL munlock @ 1.29 log @Use the same function to implement linux32_sys_fcntl() and linux_sys_fcntl64(). A rather excessive amount of 'appending 64' to names seems to have happened when linux won support for files > 4G. technically the linux32_sys_fcntl() function should error the 64bit file locking requests - but life is too short. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.28 2008/02/02 22:57:05 dsl Exp $ d310 6 a315 4 180 STD { int linux32_sys_pread(int fd, char *buf, \ netbsd32_size_t nbyte, int32_t offset); } 181 STD { int linux32_sys_pwrite(int fd, char *buf, \ netbsd32_size_t nbyte, int32_t offset); } @ 1.28 log @Impletemt pread() and pwrite(). @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp $ d369 4 a372 1 221 STD { int linux32_sys_fcntl64(int fd, \ @ 1.27 log @compat linux (and linux32) uid16 functions cleanup and fixes. - Move uid16 functions to their own file linux_uid16.c, included by needed archs (arm, i386 and m68k). - Add new MI types linux_{u,g}id16_t. - Add macros to handle linux_uid16_t and uid_t conversions. - Add linux_sys_getres{uid,gid}16 syscalls, to fix an overflow with bad sizes given to copyout when linux_sys_getres{uid,gid} are used. - Update arm syscall table to use more uid16 functions. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.26 2008/01/07 12:11:52 njoly Exp $ d310 4 a313 2 180 UNIMPL pread 181 UNIMPL pwrite @ 1.26 log @Remove wrong linux32_sys_mmap2_args define. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.25 2007/12/26 13:50:48 njoly Exp $ d89 1 a89 1 int uid, int gid); } d151 4 a154 2 70 STD { int linux32_sys_setreuid16(int ruid, int euid); } 71 STD { int linux32_sys_setregid16(int rgid, int egid); } d170 1 a170 1 linux32_gidp_t gidset); } d172 1 a172 1 linux32_gidp_t gidset); } d193 2 a194 1 95 STD { int linux32_sys_fchown16(int fd, int uid, int gid); } d282 4 a285 3 164 STD { int linux32_sys_setresuid16(uid_t ruid, uid_t euid, \ uid_t suid); } 165 UNIMPL getresuid16 d289 1 a289 1 int timeout); } d291 4 a294 3 170 STD { int linux32_sys_setresgid16(gid_t rgid, gid_t egid, \ gid_t sgid); } 171 UNIMPL int d313 1 a313 1 int uid, int gid); } @ 1.25 log @Add readdir syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.24 2007/12/24 15:56:20 njoly Exp $ a319 1 #define linux32_sys_mmap2_args linux32_sys_mmap_args @ 1.24 log @Add old_uname syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.23 2007/12/24 14:25:30 njoly Exp $ d182 2 a183 1 89 UNIMPL readdir @ 1.23 log @Add getpgid syscall. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.22 2007/12/21 22:26:22 njoly Exp $ d207 1 a207 1 109 UNIMPL olduname @ 1.22 log @- Fix setfsuid to return uid on success. - Replace getfsuid, which never existed on Linux, by correct setfsgid syscall. ok by christos and dsl. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.21 2007/12/20 23:02:57 dsl Exp $ d232 1 a232 1 132 UNIMPL getpgid @ 1.21 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.20 2007/11/16 12:56:50 njoly Exp $ d239 1 a239 1 139 NOARGS getfsuid16 { int linux_sys_getfsuid(void); } d355 1 a355 1 216 NOARGS { int linux_sys_getfsuid(void); } @ 1.20 log @Update, for linux_sys_readlink() removal. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.19 2007/11/07 00:24:30 njoly Exp $ d224 1 a224 1 125 STD { int linux32_sys_mprotect(netbsd32_voidp addr, \ d319 1 @ 1.20.6.1 log @Sync with HEAD @ text @d1 1 a1 1 $NetBSD$ d182 1 a182 2 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ unsigned int count); } d207 1 a207 1 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } d224 1 a224 1 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ d232 1 a232 1 132 NOARGS { int netbsd32_getpgid(pid_t pid); } d239 1 a239 1 139 NOARGS setfsgid16 { int linux32_sys_setfsgid(gid_t gid); } a318 1 #define linux32_sys_mmap2_args linux32_sys_mmap_args d354 1 a354 1 216 STD { int linux32_sys_setfsgid(gid_t gid); } @ 1.20.6.2 log @Sync with HEAD @ text @d320 1 @ 1.20.6.3 log @Sync with HEAD @ text @d89 1 a89 1 linux32_uid16_t uid, linux32_gid16_t gid); } d151 2 a152 4 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid); } 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \ linux32_gid16_t egid); } d168 1 a168 1 linux32_gid16p_t gidset); } d170 1 a170 1 linux32_gid16p_t gidset); } d191 1 a191 2 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \ linux32_gid16_t gid); } d279 3 a281 4 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid, linux32_uid16_t suid); } 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \ linux32_uid16p_t euid, linux32_uid16p_t suid); } d285 1 a285 1 int timeout); } d287 3 a289 4 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \ linux32_gid16_t egid, linux32_gid16_t sgid); } 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \ linux32_gid16p_t egid, linux32_gid16p_t sgid); } d308 1 a308 1 linux32_uid16_t uid, linux32_gid16_t gid); } @ 1.20.2.1 log @Sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.25 2007/12/26 13:50:48 njoly Exp $ d182 1 a182 2 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ unsigned int count); } d207 1 a207 1 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } d224 1 a224 1 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ d232 1 a232 1 132 NOARGS { int netbsd32_getpgid(pid_t pid); } d239 1 a239 1 139 NOARGS setfsgid16 { int linux32_sys_setfsgid(gid_t gid); } a318 1 #define linux32_sys_mmap2_args linux32_sys_mmap_args d354 1 a354 1 216 STD { int linux32_sys_setfsgid(gid_t gid); } @ 1.19 log @Remove remaining 64-bit compat linux syscalls linux_sys_xxx() (except for ones without arguments), and replace them by their 32-bit equivalent linux32_sys_xxxx(). @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.18 2007/10/31 22:35:34 dsl Exp $ d176 1 a176 1 85 STD { int linux32_sys_readlink(const netbsd32_charp name, \ @ 1.18 log @This file must use the netbsd32_xxx() system calls, not the sys_xxx() ones. The latter actually function (due to luck) for calls with one argument, but will fail badly if more than one is required. Noticed as an error in the ktrace outut by Nicolas Joly, reported on tech-kern. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.17 2007/10/31 21:04:02 njoly Exp $ d101 1 a101 1 27 NOARGS { int linux_sys_alarm(unsigned int secs); } d110 1 a110 1 34 NOARGS { int linux_sys_nice(int incr); } d151 2 a152 2 70 STD { int linux_sys_setreuid16(int ruid, int euid); } 71 STD { int linux_sys_setregid16(int rgid, int egid); } d238 1 a238 1 138 NOARGS setfsuid16 { int linux_sys_setfsuid(uid_t uid); } d256 1 a256 1 148 NOARGS { int linux_sys_fdatasync(int fd); } d267 1 a267 1 157 NOARGS { int linux_sys_sched_getscheduler(pid_t pid); } d278 1 a278 1 164 NOARGS { int linux_sys_setresuid16(uid_t ruid, uid_t euid, \ d286 1 a286 1 170 NOARGS { int linux_sys_setresgid16(gid_t rgid, gid_t egid, \ d353 1 a353 1 215 NOARGS { int linux_sys_setfsuid(uid_t uid); } d393 1 a393 1 252 NOARGS { int linux_sys_exit_group(int error_code); } @ 1.18.2.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.20 2007/11/16 12:56:50 njoly Exp $ d101 1 a101 1 27 STD { int linux32_sys_alarm(unsigned int secs); } d110 1 a110 1 34 STD { int linux32_sys_nice(int incr); } d151 2 a152 2 70 STD { int linux32_sys_setreuid16(int ruid, int euid); } 71 STD { int linux32_sys_setregid16(int rgid, int egid); } d176 1 a176 1 85 NOARGS { int netbsd32_readlink(const netbsd32_charp name, \ d238 1 a238 1 138 NOARGS setfsuid16 { int linux32_sys_setfsuid(uid_t uid); } d256 1 a256 1 148 STD { int linux32_sys_fdatasync(int fd); } d267 1 a267 1 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } d278 1 a278 1 164 STD { int linux32_sys_setresuid16(uid_t ruid, uid_t euid, \ d286 1 a286 1 170 STD { int linux32_sys_setresgid16(gid_t rgid, gid_t egid, \ d353 1 a353 1 215 STD { int linux32_sys_setfsuid(uid_t uid); } d393 1 a393 1 252 STD { int linux32_sys_exit_group(int error_code); } @ 1.18.2.2 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.24 2007/12/24 15:56:20 njoly Exp $ d207 1 a207 1 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } d224 1 a224 1 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ d232 1 a232 1 132 NOARGS { int netbsd32_getpgid(pid_t pid); } d239 1 a239 1 139 NOARGS setfsgid16 { int linux32_sys_setfsgid(gid_t gid); } a318 1 #define linux32_sys_mmap2_args linux32_sys_mmap_args d354 1 a354 1 216 STD { int linux32_sys_setfsgid(gid_t gid); } @ 1.18.2.3 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.30 2008/02/17 21:49:17 njoly Exp $ d89 1 a89 1 linux32_uid16_t uid, linux32_gid16_t gid); } d151 2 a152 4 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid); } 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \ linux32_gid16_t egid); } d168 1 a168 1 linux32_gid16p_t gidset); } d170 1 a170 1 linux32_gid16p_t gidset); } d182 1 a182 2 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ unsigned int count); } d190 1 a190 2 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \ linux32_gid16_t gid); } d278 3 a280 4 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid, linux32_uid16_t suid); } 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \ linux32_uid16p_t euid, linux32_uid16p_t suid); } d284 1 a284 1 int timeout); } d286 3 a288 4 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \ linux32_gid16_t egid, linux32_gid16_t sgid); } 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \ linux32_gid16p_t egid, linux32_gid16p_t sgid); } d304 2 a305 6 180 STD { netbsd32_ssize_t linux32_sys_pread(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ linux32_off_t offset); } 181 STD { netbsd32_ssize_t linux32_sys_pwrite(int fd, \ const netbsd32_voidp buf, netbsd32_size_t nbyte, \ linux32_off_t offset); } d307 1 a307 1 linux32_uid16_t uid, linux32_gid16_t gid); } d319 1 d362 1 a362 4 ; fcntl64() - Exactly the same as fcntl() #define linux32_sys_fcntl64 linux32_sys_fcntl #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 221 NOARGS { int linux32_sys_fcntl64(int fd, \ @ 1.17 log @compat linux32 syscalls cleanup. With stackgap and CHECK_ALT_xxx removal, some linux32 and netbsd32 syscalls are now identical. To avoid code duplication, remove the linux32 definition and use the netbsd32 one (no functional change). @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.16 2007/10/27 09:16:24 njoly Exp $ d66 1 a66 1 1 NOARGS { int sys_exit(int rval); } d74 1 a74 1 6 NOARGS { int sys_close(int fd); } d97 1 a97 1 23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); } d123 1 a123 1 46 NOARGS linux_setgid16 { int sys_setgid(gid_t gid); } d137 1 a137 1 57 NOARGS { int sys_setpgid(int pid, int pgid); } d141 1 a141 1 60 NOARGS { int sys_umask(int newmask); } d189 1 a189 1 94 NOARGS { int sys_fchmod(int fd, int mode); } d217 1 a217 1 118 NOARGS { int sys_fsync(int fd); } d233 1 a233 1 133 NOARGS { int sys_fchdir(int fd); } d249 1 a249 1 143 NOARGS { int sys_flock(int fd, int how); } d255 1 a255 1 147 NOARGS { pid_t sys_getsid(pid_t pid); } d260 1 a260 1 152 NOARGS { int sys_mlockall(int flags); } d336 2 a337 2 203 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); } d342 1 a342 1 207 NOARGS { int sys___posix_fchown(int fd, uid_t uid, gid_t gid); } d351 2 a352 2 213 NOARGS { int sys_setuid(uid_t uid); } 214 NOARGS { int sys_setgid(gid_t gid); } @ 1.16 log @Add missing chown's syscalls family members. This makes chown(1)/chgrp(1) works under compat linux32. Problem reported and fix tested by Arto Huusko. Thanks. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.15 2007/04/20 13:37:05 njoly Exp $ d78 1 a78 1 9 STD { int linux32_sys_link(const netbsd32_charp path, \ d83 1 a83 1 12 STD { int linux32_sys_chdir(const netbsd32_charp path); } d87 1 a87 1 15 STD { int linux32_sys_chmod(const netbsd32_charp path, int mode); } d108 1 a108 1 33 STD { int linux32_sys_access(const netbsd32_charp path, \ d116 2 a117 2 39 STD { int linux32_sys_mkdir(const netbsd32_charp path, int mode); } 40 STD { int linux32_sys_rmdir(const netbsd32_charp path); } d172 1 a172 1 83 STD { int linux32_sys_symlink(netbsd32_charp path, \ @ 1.15 log @Fix ftruncate syscall. Do not use compat_43_sys_ftruncate, but compat_43_netbsd32_oftruncate instead. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.14 2007/04/11 11:45:55 njoly Exp $ d306 2 a307 1 182 UNIMPL chown16 d330 2 a331 1 198 UNIMPL lchown d349 2 a350 1 212 UNIMPL chown @ 1.15.12.1 log @Sync with HEAD @ text @d1 1 a1 1 $NetBSD$ d66 1 a66 1 1 NOARGS { int netbsd32_exit(int rval); } d74 1 a74 1 6 NOARGS { int netbsd32_close(int fd); } d78 1 a78 1 9 NOARGS { int netbsd32_link(const netbsd32_charp path, \ d83 1 a83 1 12 NOARGS { int netbsd32_chdir(const netbsd32_charp path); } d87 1 a87 1 15 NOARGS { int netbsd32_chmod(const netbsd32_charp path, int mode); } d97 1 a97 1 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); } d101 1 a101 1 27 STD { int linux32_sys_alarm(unsigned int secs); } d108 1 a108 1 33 NOARGS { int netbsd32_access(const netbsd32_charp path, \ d110 1 a110 1 34 STD { int linux32_sys_nice(int incr); } d116 2 a117 2 39 NOARGS { int netbsd32_mkdir(const netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(const netbsd32_charp path); } d123 1 a123 1 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); } d137 1 a137 1 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); } d141 1 a141 1 60 NOARGS { int netbsd32_umask(int newmask); } d151 2 a152 2 70 STD { int linux32_sys_setreuid16(int ruid, int euid); } 71 STD { int linux32_sys_setregid16(int rgid, int egid); } d172 1 a172 1 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \ d189 1 a189 1 94 NOARGS { int netbsd32_fchmod(int fd, int mode); } d217 1 a217 1 118 NOARGS { int netbsd32_fsync(int fd); } d233 1 a233 1 133 NOARGS { int netbsd32_fchdir(int fd); } d238 1 a238 1 138 NOARGS setfsuid16 { int linux32_sys_setfsuid(uid_t uid); } d249 1 a249 1 143 NOARGS { int netbsd32_flock(int fd, int how); } d255 2 a256 2 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); } 148 STD { int linux32_sys_fdatasync(int fd); } d260 1 a260 1 152 NOARGS { int netbsd32_mlockall(int flags); } d267 1 a267 1 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } d278 1 a278 1 164 STD { int linux32_sys_setresuid16(uid_t ruid, uid_t euid, \ d286 1 a286 1 170 STD { int linux32_sys_setresgid16(gid_t rgid, gid_t egid, \ d306 1 a306 2 182 STD { int linux32_sys_chown16(const netbsd32_charp path, \ int uid, int gid); } d329 1 a329 2 198 NOARGS { int netbsd32___posix_lchown(const netbsd32_charp path, \ int uid, int gid); } d334 2 a335 2 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); } d340 1 a340 1 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } d347 4 a350 5 212 NOARGS { int netbsd32___posix_chown(const netbsd32_charp path, \ int uid, int gid); } 213 NOARGS { int netbsd32_setuid(uid_t uid); } 214 NOARGS { int netbsd32_setgid(gid_t gid); } 215 STD { int linux32_sys_setfsuid(uid_t uid); } d390 1 a390 1 252 STD { int linux32_sys_exit_group(int error_code); } @ 1.15.12.2 log @Sync with HEAD @ text @d176 1 a176 1 85 NOARGS { int netbsd32_readlink(const netbsd32_charp name, \ @ 1.15.8.1 log @sync with HEAD @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.18 2007/10/31 22:35:34 dsl Exp $ d66 1 a66 1 1 NOARGS { int netbsd32_exit(int rval); } d74 1 a74 1 6 NOARGS { int netbsd32_close(int fd); } d78 1 a78 1 9 NOARGS { int netbsd32_link(const netbsd32_charp path, \ d83 1 a83 1 12 NOARGS { int netbsd32_chdir(const netbsd32_charp path); } d87 1 a87 1 15 NOARGS { int netbsd32_chmod(const netbsd32_charp path, int mode); } d97 1 a97 1 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); } d108 1 a108 1 33 NOARGS { int netbsd32_access(const netbsd32_charp path, \ d116 2 a117 2 39 NOARGS { int netbsd32_mkdir(const netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(const netbsd32_charp path); } d123 1 a123 1 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); } d137 1 a137 1 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); } d141 1 a141 1 60 NOARGS { int netbsd32_umask(int newmask); } d172 1 a172 1 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \ d189 1 a189 1 94 NOARGS { int netbsd32_fchmod(int fd, int mode); } d217 1 a217 1 118 NOARGS { int netbsd32_fsync(int fd); } d233 1 a233 1 133 NOARGS { int netbsd32_fchdir(int fd); } d249 1 a249 1 143 NOARGS { int netbsd32_flock(int fd, int how); } d255 1 a255 1 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); } d260 1 a260 1 152 NOARGS { int netbsd32_mlockall(int flags); } d306 1 a306 2 182 STD { int linux32_sys_chown16(const netbsd32_charp path, \ int uid, int gid); } d329 1 a329 2 198 NOARGS { int netbsd32___posix_lchown(const netbsd32_charp path, \ int uid, int gid); } d334 2 a335 2 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); } d340 1 a340 1 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } d347 3 a349 4 212 NOARGS { int netbsd32___posix_chown(const netbsd32_charp path, \ int uid, int gid); } 213 NOARGS { int netbsd32_setuid(uid_t uid); } 214 NOARGS { int netbsd32_setgid(gid_t gid); } @ 1.15.8.2 log @sync with -HEAD @ text @d1 1 a1 1 $NetBSD$ d101 1 a101 1 27 STD { int linux32_sys_alarm(unsigned int secs); } d110 1 a110 1 34 STD { int linux32_sys_nice(int incr); } d151 2 a152 2 70 STD { int linux32_sys_setreuid16(int ruid, int euid); } 71 STD { int linux32_sys_setregid16(int rgid, int egid); } d238 1 a238 1 138 NOARGS setfsuid16 { int linux32_sys_setfsuid(uid_t uid); } d256 1 a256 1 148 STD { int linux32_sys_fdatasync(int fd); } d267 1 a267 1 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } d278 1 a278 1 164 STD { int linux32_sys_setresuid16(uid_t ruid, uid_t euid, \ d286 1 a286 1 170 STD { int linux32_sys_setresgid16(gid_t rgid, gid_t egid, \ d353 1 a353 1 215 STD { int linux32_sys_setfsuid(uid_t uid); } d393 1 a393 1 252 STD { int linux32_sys_exit_group(int error_code); } @ 1.15.8.3 log @sync with HEAD @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.15.8.2 2007/11/08 10:59:46 matt Exp $ d176 1 a176 1 85 NOARGS { int netbsd32_readlink(const netbsd32_charp name, \ d182 1 a182 2 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ unsigned int count); } d207 1 a207 1 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } d224 1 a224 1 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ d232 1 a232 1 132 NOARGS { int netbsd32_getpgid(pid_t pid); } d239 1 a239 1 139 NOARGS setfsgid16 { int linux32_sys_setfsgid(gid_t gid); } d354 1 a354 1 216 STD { int linux32_sys_setfsgid(gid_t gid); } @ 1.15.8.4 log @sync with HEAD @ text @d1 1 a1 1 syscalls.master,v 1.15.8.3 2008/01/09 01:51:20 matt Exp d89 1 a89 1 linux32_uid16_t uid, linux32_gid16_t gid); } d151 2 a152 4 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid); } 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \ linux32_gid16_t egid); } d168 1 a168 1 linux32_gid16p_t gidset); } d170 1 a170 1 linux32_gid16p_t gidset); } d191 1 a191 2 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \ linux32_gid16_t gid); } d259 2 a260 4 150 NOARGS { int netbsd32_mlock(netbsd32_voidp addr, \ netbsd32_size_t len); } 151 NOARGS { int netbsd32_munlock(netbsd32_voidp addr, \ netbsd32_size_t len); } d279 3 a281 4 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid, linux32_uid16_t suid); } 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \ linux32_uid16p_t euid, linux32_uid16p_t suid); } d285 1 a285 1 int timeout); } d287 3 a289 4 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \ linux32_gid16_t egid, linux32_gid16_t sgid); } 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \ linux32_gid16p_t egid, linux32_gid16p_t sgid); } d305 2 a306 6 180 STD { netbsd32_ssize_t linux32_sys_pread(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ linux32_off_t offset); } 181 STD { netbsd32_ssize_t linux32_sys_pwrite(int fd, \ const netbsd32_voidp buf, netbsd32_size_t nbyte, \ linux32_off_t offset); } d308 1 a308 1 linux32_uid16_t uid, linux32_gid16_t gid); } d362 1 a362 4 ; fcntl64() - Exactly the same as fcntl() #define linux32_sys_fcntl64 linux32_sys_fcntl #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 221 NOARGS { int linux32_sys_fcntl64(int fd, \ @ 1.15.6.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.15 2007/04/20 13:37:05 njoly Exp $ d306 1 a306 2 182 STD { int linux32_sys_chown16(const netbsd32_charp path, \ int uid, int gid); } d329 1 a329 2 198 NOARGS { int netbsd32___posix_lchown(const netbsd32_charp path, \ int uid, int gid); } d347 1 a347 2 212 NOARGS { int netbsd32___posix_chown(const netbsd32_charp path, \ int uid, int gid); } @ 1.15.6.2 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.15.6.1 2007/10/28 20:11:03 joerg Exp $ d78 1 a78 1 9 NOARGS { int netbsd32_link(const netbsd32_charp path, \ d83 1 a83 1 12 NOARGS { int netbsd32_chdir(const netbsd32_charp path); } d87 1 a87 1 15 NOARGS { int netbsd32_chmod(const netbsd32_charp path, int mode); } d108 1 a108 1 33 NOARGS { int netbsd32_access(const netbsd32_charp path, \ d116 2 a117 2 39 NOARGS { int netbsd32_mkdir(const netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(const netbsd32_charp path); } d172 1 a172 1 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \ @ 1.15.6.3 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.18 2007/10/31 22:35:34 dsl Exp $ d66 1 a66 1 1 NOARGS { int netbsd32_exit(int rval); } d74 1 a74 1 6 NOARGS { int netbsd32_close(int fd); } d97 1 a97 1 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); } d123 1 a123 1 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); } d137 1 a137 1 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); } d141 1 a141 1 60 NOARGS { int netbsd32_umask(int newmask); } d189 1 a189 1 94 NOARGS { int netbsd32_fchmod(int fd, int mode); } d217 1 a217 1 118 NOARGS { int netbsd32_fsync(int fd); } d233 1 a233 1 133 NOARGS { int netbsd32_fchdir(int fd); } d249 1 a249 1 143 NOARGS { int netbsd32_flock(int fd, int how); } d255 1 a255 1 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); } d260 1 a260 1 152 NOARGS { int netbsd32_mlockall(int flags); } d336 2 a337 2 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); } d342 1 a342 1 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } d351 2 a352 2 213 NOARGS { int netbsd32_setuid(uid_t uid); } 214 NOARGS { int netbsd32_setgid(gid_t gid); } @ 1.15.6.4 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.15.6.3 2007/11/04 21:03:20 jmcneill Exp $ d101 1 a101 1 27 STD { int linux32_sys_alarm(unsigned int secs); } d110 1 a110 1 34 STD { int linux32_sys_nice(int incr); } d151 2 a152 2 70 STD { int linux32_sys_setreuid16(int ruid, int euid); } 71 STD { int linux32_sys_setregid16(int rgid, int egid); } d238 1 a238 1 138 NOARGS setfsuid16 { int linux32_sys_setfsuid(uid_t uid); } d256 1 a256 1 148 STD { int linux32_sys_fdatasync(int fd); } d267 1 a267 1 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } d278 1 a278 1 164 STD { int linux32_sys_setresuid16(uid_t ruid, uid_t euid, \ d286 1 a286 1 170 STD { int linux32_sys_setresgid16(gid_t rgid, gid_t egid, \ d353 1 a353 1 215 STD { int linux32_sys_setfsuid(uid_t uid); } d393 1 a393 1 252 STD { int linux32_sys_exit_group(int error_code); } @ 1.15.6.5 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.15.6.4 2007/11/11 16:47:17 joerg Exp $ d176 1 a176 1 85 NOARGS { int netbsd32_readlink(const netbsd32_charp name, \ @ 1.14 log @- Add compat amd64 linux32 statfs support, adapted from PR/35956. - Move bsd_to_linux_statfs() function to its own file to be shared between both linux compats. ok by manu. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.13 2007/03/05 05:10:04 christos Exp $ d187 2 a188 1 93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } @ 1.13 log @fix caddr_t lossage. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.12 2007/03/04 06:01:25 christos Exp $ d193 2 a194 1 99 UNIMPL statfs @ 1.13.4.1 log @Sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.15 2007/04/20 13:37:05 njoly Exp $ d187 1 a187 2 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \ netbsd32_long length); } d193 1 a193 2 99 STD { int linux32_sys_statfs(const netbsd32_charp path, \ linux32_statfsp sp); } @ 1.13.2.1 log @Sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.13 2007/03/05 05:10:04 christos Exp $ d187 1 a187 2 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \ netbsd32_long length); } d193 1 a193 2 99 STD { int linux32_sys_statfs(const netbsd32_charp path, \ linux32_statfsp sp); } @ 1.12 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.11 2007/02/16 20:49:06 njoly Exp $ d184 1 a184 1 91 NOARGS { int netbsd32_munmap(netbsd32_void *addr, int len); } d239 1 a239 1 u_int32_t olow, netbsd32_void *res, int whence); } @ 1.11 log @Add support for a few syscalls: setfsuid16/getfsuid16 setfsuid/getfsuid sched_yield ok by manu @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.10 2007/02/09 21:55:21 ad Exp $ d184 1 a184 1 91 NOARGS { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } d239 1 a239 1 u_int32_t olow, netbsd32_caddr_t res, int whence); } @ 1.11.2.1 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.11 2007/02/16 20:49:06 njoly Exp $ d193 1 a193 2 99 STD { int linux32_sys_statfs(const netbsd32_charp path, \ linux32_statfsp sp); } @ 1.11.2.2 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.11.2.1 2007/04/15 16:03:15 yamt Exp $ d187 1 a187 2 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \ netbsd32_long length); } @ 1.10 log @Merge newlock2 to head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.9 2007/02/08 12:29:39 njoly Exp $ d236 2 a237 2 138 UNIMPL int 139 UNIMPL int d266 1 a266 1 158 UNIMPL sched_yield d348 2 a349 2 215 UNIMPL setfsuid 216 UNIMPL getfsuid @ 1.9 log @Remove some aliases, for syscalls that use their netbsd32 equivalent. This makes the ktrace output more consistent. ok by manu. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.8 2007/02/07 15:32:52 njoly Exp $ a42 1 #include @ 1.8 log @Use netbsd32_pollfdp_t instead of wrong `struct pollfd *'. ok by manu. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.7 2006/09/13 19:55:49 manu Exp $ d82 1 a82 1 11 NOARGS execve { int netbsd32_execve(const netbsd32_charp path, \ d130 1 a130 1 51 NOARGS acct { int netbsd32_acct(netbsd32_charp path); } d143 1 a143 1 61 NOARGS chroot { int netbsd32_chroot(netbsd32_charp path); } d162 1 a162 1 77 NOARGS getrusage { int netbsd32_getrusage(int who, \ d175 1 a175 1 84 NOARGS lstat { int compat_43_netbsd32_lstat43(const netbsd32_charp \ d185 1 a185 1 91 NOARGS munmap { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } d199 1 a199 1 104 NOARGS setitimer { int netbsd32_setitimer(u_int which, \ d201 1 a201 1 105 NOARGS getitimer { int netbsd32_getitimer(u_int which, \ d250 1 a250 1 145 NOARGS readv { int netbsd32_readv(int fd, \ d252 1 a252 1 146 NOARGS writev { netbsd32_ssize_t netbsd32_writev(int fd, \ d271 1 a271 1 162 NOARGS nanosleep { int netbsd32_nanosleep(const \ d282 1 a282 1 168 NOARGS poll { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \ @ 1.7 log @Jumbo COMPAT_LINUX/COMPAT_LINUX32 bugfix, with the help of Nicolas Joly - Fix shmat return value on amd64: it uses no black magic with retval[0] - Fix integer overflows in sysinfo - Implement sysinfo, mmap2, sched_getparam, sched_getscheduler, mremap, and madvise in COMPAT_LINUX32 - Fix improper types used in setgroups16/getgroups16 - Implement mmap2 for COMPAT_LINUX32 - Ifdef debug messages by DEBUG_LINUX @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.6 2006/09/06 12:01:23 manu Exp $ d282 1 a282 1 168 NOARGS poll { int netbsd32_poll(struct pollfd *fds, u_int nfds, \ @ 1.7.4.1 log @Pull up following revision(s) (requested by njoly in ticket #544): sys/compat/linux32/arch/amd64/syscalls.master: revision 1.11 Add support for a few syscalls: setfsuid16/getfsuid16 setfsuid/getfsuid sched_yield ok by manu @ text @d1 1 a1 1 $NetBSD$ d237 2 a238 2 138 NOARGS setfsuid16 { int linux_sys_setfsuid(uid_t uid); } 139 NOARGS getfsuid16 { int linux_sys_getfsuid(void); } d267 1 a267 1 158 NOARGS { int linux_sys_sched_yield(void); } d349 2 a350 2 215 NOARGS { int linux_sys_setfsuid(uid_t uid); } 216 NOARGS { int linux_sys_getfsuid(void); } @ 1.7.4.2 log @Pull up following revision(s) (requested by njoly in ticket #582): sys/compat/linux32/common/linux32_types.h: revision 1.4 via patch sys/compat/linux32/arch/amd64/syscalls.master: revision 1.14 via patch sys/compat/linux/common/linux_statfs.h: revision 1.1 via patch sys/compat/linux/common/linux_misc.c: revision 1.170 via patch sys/compat/linux32/common/linux32_misc.c: revision 1.5 via patch sys/compat/linux32/files.linux32: revision 1.4 via patch - Add compat amd64 linux32 statfs support, adapted from PR/35956. - Move bsd_to_linux_statfs() function to its own file to be shared between both linux compats. @ text @d194 1 a194 2 99 STD { int linux32_sys_statfs(const netbsd32_charp path, \ linux32_statfsp sp); } @ 1.6 log @Implement Linux's fdatasync, patch from Nicolas Joly @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.5 2006/09/06 08:32:00 manu Exp $ d214 1 a214 1 116 UNIMPL sysinfo d262 2 a263 1 155 UNIMPL sched_getparam d266 1 a266 1 157 UNIMPL sched_getscheduler d274 3 a276 1 163 UNIMPL *mremap d317 3 a319 1 192 UNIMPL mmap2 d353 2 a354 1 219 UNIMPL madvise @ 1.6.4.1 log @file syscalls.master was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:45:52 +0000 @ text @d1 414 @ 1.6.4.2 log @sync with head @ text @a0 414 $NetBSD: syscalls.master,v 1.6.4.1 2006/09/09 02:45:52 rpaulo Exp $ ; NetBSD i386 COMPAT_LINUX32 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. ; ; types: ; STD always included ; OBSOL obsolete, not included in system ; UNIMPL unimplemented, not included in system ; NODEF included, but don't define the syscall number ; ; 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. #if defined(_KERNEL_OPT) #include "opt_compat_43.h" #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include %% 0 NOARGS { int linux_sys_nosys(void); } syscall 1 NOARGS { int sys_exit(int rval); } 2 NOARGS { int sys_fork(void); } 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \ const netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int linux32_sys_open(const netbsd32_charp path, int flags, \ int mode); } 6 NOARGS { int sys_close(int fd); } 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \ int options);} 8 STD { int linux32_sys_creat(const netbsd32_charp path, int mode); } 9 STD { int linux32_sys_link(const netbsd32_charp path, \ const netbsd32_charp link); } 10 STD { int linux32_sys_unlink(const netbsd32_charp path); } 11 NOARGS execve { int netbsd32_execve(const netbsd32_charp path, \ netbsd32_charpp argp, netbsd32_charpp envp); } 12 STD { int linux32_sys_chdir(const netbsd32_charp path); } 13 STD { int linux32_sys_time(linux32_timep_t t); } 14 STD { int linux32_sys_mknod(const netbsd32_charp path, \ int mode, int dev); } 15 STD { int linux32_sys_chmod(const netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(const netbsd32_charp path, \ int uid, int gid); } 17 STD { int linux32_sys_break(netbsd32_charp nsize); } 18 OBSOL ostat 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \ netbsd32_long offset, int chence); } 20 STD { pid_t linux_sys_getpid(void); } 21 UNIMPL mount 22 UNIMPL umount 23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); } 25 STD { int linux32_sys_stime(linux32_timep_t t); } 26 UNIMPL ptrace 27 NOARGS { int linux_sys_alarm(unsigned int secs); } 28 OBSOL ofstat 29 NOARGS { int linux_sys_pause(void); } 30 STD { int linux32_sys_utime(const netbsd32_charp path, \ linux32_utimbufp_t times); } 31 OBSOL stty 32 OBSOL gtty 33 STD { int linux32_sys_access(const netbsd32_charp path, \ int flags); } 34 NOARGS { int linux_sys_nice(int incr); } 35 OBSOL ftime 36 NOARGS { int sys_sync(void); } 37 STD { int linux32_sys_kill(int pid, int signum); } 38 STD { int linux32_sys_rename(const netbsd32_charp from, \ const netbsd32_charp to); } 39 STD { int linux32_sys_mkdir(const netbsd32_charp path, int mode); } 40 STD { int linux32_sys_rmdir(const netbsd32_charp path); } 41 NOARGS { int netbsd32_dup(u_int fd); } 42 STD { int linux32_sys_pipe(netbsd32_intp fd); } 43 STD { int linux32_sys_times(linux32_tmsp_t tms); } 44 OBSOL prof 45 STD { int linux32_sys_brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int sys_setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); } 48 STD { int linux32_sys_signal(int signum, \ linux32_handler_t handler); } 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); } 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); } 51 NOARGS acct { int netbsd32_acct(netbsd32_charp path); } 52 OBSOL phys 53 OBSOL lock 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \ netbsd32_charp data); } 55 STD { int linux32_sys_fcntl(int fd, \ int cmd, netbsd32_voidp arg); } 56 OBSOL mpx 57 NOARGS { int sys_setpgid(int pid, int pgid); } 58 OBSOL ulimit 59 STD { int linux32_sys_oldolduname( \ linux32_oldold_utsnamep_t up); } 60 NOARGS { int sys_umask(int newmask); } 61 NOARGS chroot { int netbsd32_chroot(netbsd32_charp path); } 62 UNIMPL ustat 63 NOARGS { int netbsd32_dup2(u_int from, u_int to); } 64 STD { pid_t linux_sys_getppid(void); } 65 NOARGS { int sys_getpgrp(void); } 66 NOARGS { int sys_setsid(void); } 67 UNIMPL sigaction 68 UNIMPL siggetmask 69 UNIMPL sigsetmask 70 STD { int linux_sys_setreuid16(int ruid, int euid); } 71 STD { int linux_sys_setregid16(int rgid, int egid); } 72 UNIMPL sigsuspend 73 UNIMPL sigpending 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \ u_int len); } 75 STD { int linux32_sys_setrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 76 STD { int linux32_sys_getrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 77 NOARGS getrusage { int netbsd32_getrusage(int who, \ netbsd32_rusagep_t rusage); } 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 80 STD { int linux32_sys_getgroups16(int gidsetsize, \ linux32_gidp_t gidset); } 81 STD { int linux32_sys_setgroups16(int gidsetsize, \ linux32_gidp_t gidset); } 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); } 83 STD { int linux32_sys_symlink(netbsd32_charp path, \ const netbsd32_charp link); } 84 NOARGS lstat { int compat_43_netbsd32_lstat43(const netbsd32_charp \ path, netbsd32_stat43p_t ub); } 85 STD { int linux32_sys_readlink(const netbsd32_charp name, \ netbsd32_charp buf, int count); } 86 UNIMPL uselib 87 STD { int linux32_sys_swapon(netbsd32_charp name); } 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \ netbsd32_voidp arg); } 89 UNIMPL readdir 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); } 91 NOARGS munmap { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } 92 STD { int linux32_sys_truncate(const netbsd32_charp path, \ netbsd32_long length); } 93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 94 NOARGS { int sys_fchmod(int fd, int mode); } 95 STD { int linux32_sys_fchown16(int fd, int uid, int gid); } 96 STD { int linux32_sys_getpriority(int which, int who); } 97 STD { int linux32_sys_setpriority(int which, int who, int prio); } 98 UNIMPL profil 99 UNIMPL statfs 100 UNIMPL fstatfs 101 UNIMPL ioperm 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); } 103 UNIMPL syslog 104 NOARGS setitimer { int netbsd32_setitimer(u_int which, \ netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } 105 NOARGS getitimer { int netbsd32_getitimer(u_int which, \ netbsd32_itimervalp_t itv); } 106 UNIMPL stat 107 UNIMPL lstat 108 UNIMPL fstat 109 UNIMPL olduname 110 UNIMPL iopl 111 UNIMPL vhangup 112 UNIMPL idle 113 UNIMPL vm86old 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \ int options, netbsd32_rusagep_t rusage); } 115 STD { int linux32_sys_swapoff(const netbsd32_charp path); } 116 UNIMPL sysinfo 117 UNIMPL ipc 118 NOARGS { int sys_fsync(int fd); } 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); } 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); } 121 UNIMPL setdomainname 122 STD { int linux32_sys_uname(linux32_utsnamep up); } 123 UNIMPL modify_ldt 124 UNIMPL adjtimex 125 STD { int linux32_sys_mprotect(netbsd32_voidp addr, \ netbsd32_size_t len, int prot); } 126 UNIMPL sigprocmask 127 UNIMPL create_module 128 UNIMPL init_module 129 UNIMPL delete_module 130 UNIMPL get_kernel_syms 131 UNIMPL quotactl 132 UNIMPL getpgid 133 NOARGS { int sys_fchdir(int fd); } 134 UNIMPL bdflush 135 UNIMPL sysfs 136 UNIMPL personality 137 UNIMPL afs_syscall 138 UNIMPL int 139 UNIMPL int 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_caddr_t res, int whence); } 141 STD { int linux32_sys_getdents(int fd, \ linux32_direntp_t dent, unsigned int count); } 142 STD { int linux32_sys_select(int nfds, \ netbsd32_fd_setp_t readfds, \ netbsd32_fd_setp_t writefds, \ netbsd32_fd_setp_t exceptfds, \ netbsd32_timevalp_t timeout); } 143 NOARGS { int sys_flock(int fd, int how); } 144 UNIMPL msync 145 NOARGS readv { int netbsd32_readv(int fd, \ const netbsd32_iovecp_t iovp, u_int iovcnt); } 146 NOARGS writev { netbsd32_ssize_t netbsd32_writev(int fd, \ const netbsd32_iovecp_t iovp, int iovcnt); } 147 NOARGS { pid_t sys_getsid(pid_t pid); } 148 NOARGS { int linux_sys_fdatasync(int fd); } 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); } 150 UNIMPL mlock 151 UNIMPL munlock 152 NOARGS { int sys_mlockall(int flags); } 153 NOARGS { int sys_munlockall(void); } 154 UNIMPL sched_setparam 155 UNIMPL sched_getparam 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \ int policy, const linux32_sched_paramp_t sp); } 157 UNIMPL sched_getscheduler 158 UNIMPL sched_yield 159 UNIMPL sched_get_priority_max 160 UNIMPL sched_get_priority_min 161 UNIMPL sched_rr_get_interval 162 NOARGS nanosleep { int netbsd32_nanosleep(const \ netbsd32_timespecp_t rqtp \ netbsd32_timespecp_t rmtp); } 163 UNIMPL *mremap 164 NOARGS { int linux_sys_setresuid16(uid_t ruid, uid_t euid, \ uid_t suid); } 165 UNIMPL getresuid16 166 UNIMPL vm86 167 UNIMPL query_module 168 NOARGS poll { int netbsd32_poll(struct pollfd *fds, u_int nfds, \ int timeout); } 169 UNIMPL nfsservctl 170 NOARGS { int linux_sys_setresgid16(gid_t rgid, gid_t egid, \ gid_t sgid); } 171 UNIMPL int 172 UNIMPL prctl 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int linux32_sys_rt_sigaction(int signum, \ const linux32_sigactionp_t nsa, \ linux32_sigactionp_t osa, \ netbsd32_size_t sigsetsize); } 175 STD { int linux32_sys_rt_sigprocmask(int how, \ const linux32_sigsetp_t set, \ linux32_sigsetp_t oset, \ netbsd32_size_t sigsetsize); } 176 UNIMPL rt_sigpending 177 UNIMPL rt_sigtimedwait 178 UNIMPL rt_queueinfo 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \ netbsd32_size_t sigsetsize); } 180 UNIMPL pread 181 UNIMPL pwrite 182 UNIMPL chown16 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \ netbsd32_size_t length); } 184 UNIMPL capget 185 UNIMPL capset 186 UNIMPL sigaltstack 187 UNIMPL sendfile 188 UNIMPL getpmsg 189 UNIMPL putpmsg 190 NOARGS { int sys___vfork14(void); } 191 STD { int linux32_sys_ugetrlimit(int which, \ netbsd32_orlimitp_t rlp); } 192 UNIMPL mmap2 193 UNIMPL truncate64 194 UNIMPL ftruncate64 195 STD { int linux32_sys_stat64(const netbsd32_charp path, \ linux32_stat64p sp); } 196 STD { int linux32_sys_lstat64(const netbsd32_charp path, \ linux32_stat64p sp); } 197 STD { int linux32_sys_fstat64(int fd, \ linux32_stat64p sp); } 198 UNIMPL lchown 199 NOARGS { uid_t sys_getuid(void); } 200 NOARGS { gid_t sys_getgid(void); } 201 NOARGS { uid_t sys_geteuid(void); } 202 NOARGS { gid_t sys_getegid(void); } 203 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 207 NOARGS { int sys___posix_fchown(int fd, uid_t uid, gid_t gid); } 208 STD { int linux32_sys_setresuid(uid_t ruid, uid_t euid, \ uid_t suid); } 209 UNIMPL getresuid 210 STD { int linux32_sys_setresgid(gid_t rgid, gid_t egid, \ gid_t sgid); } 211 UNIMPL getresgid 212 UNIMPL chown 213 NOARGS { int sys_setuid(uid_t uid); } 214 NOARGS { int sys_setgid(gid_t gid); } 215 UNIMPL setfsuid 216 UNIMPL getfsuid 217 UNIMPL pivot_root 218 UNIMPL mincore 219 UNIMPL madvise 220 STD { int linux32_sys_getdents64(int fd, \ linux32_dirent64p_t dent, unsigned int count); } 221 STD { int linux32_sys_fcntl64(int fd, \ int cmd, netbsd32_voidp arg); } 222 UNIMPL /* unused */ 223 UNIMPL /* unused */ 224 STD { pid_t linux_sys_gettid(void); } 225 UNIMPL readahead 226 UNIMPL setxattr 227 UNIMPL lsetxattr 228 UNIMPL fsetxattr 229 UNIMPL getxattr 230 UNIMPL lgetxattr 231 UNIMPL fgetxattr 232 UNIMPL listxattr 233 UNIMPL llistxattr 234 UNIMPL flistxattr 235 UNIMPL removexattr 236 UNIMPL lremovexattr 237 UNIMPL fremovexattr 238 UNIMPL tkill 239 UNIMPL sendfile64 240 UNIMPL futex 241 UNIMPL sched_setaffinity 242 UNIMPL sched_getaffinity 243 UNIMPL set_thread_area 244 UNIMPL get_thread_area 245 UNIMPL io_setup 246 UNIMPL io_destroy 247 UNIMPL io_getevents 248 UNIMPL io_submit 249 UNIMPL io_cancel 250 UNIMPL fadvise64 251 UNIMPL /* unused */ 252 NOARGS { int linux_sys_exit_group(int error_code); } 253 UNIMPL lookup_dcookie 254 UNIMPL epoll_create 255 UNIMPL epoll_ctl 256 UNIMPL epoll_wait 257 UNIMPL remap_file_pages 258 UNIMPL set_tid_address 259 UNIMPL timer_create 260 UNIMPL timer_settime 261 UNIMPL timer_gettime 262 UNIMPL timer_getoverrun 263 UNIMPL timer_delete 264 UNIMPL clock_settime 265 UNIMPL clock_gettime 266 UNIMPL clock_getres 267 UNIMPL clock_nanosleep 268 UNIMPL statfs64 269 UNIMPL fstatfs64 270 UNIMPL tgkill 271 UNIMPL utimes 272 UNIMPL fadvise64_64 273 UNIMPL vserver 274 UNIMPL mbind 275 UNIMPL get_mempolicy 276 UNIMPL set_mempolicy 277 UNIMPL mq_open 278 UNIMPL mq_unlink 279 UNIMPL mq_timedsend 280 UNIMPL mq_timedreceive 281 UNIMPL mq_notify 282 UNIMPL mq_getsetattr 283 UNIMPL kexec_load @ 1.6.2.1 log @Sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.7 2006/09/13 19:55:49 manu Exp $ d214 1 a214 1 116 STD { int linux32_sys_sysinfo(linux32_sysinfop_t arg); } d262 1 a262 2 155 STD { int linux32_sys_sched_getparam(pid_t pid, \ linux32_sched_paramp_t sp); } d265 1 a265 1 157 NOARGS { int linux_sys_sched_getscheduler(pid_t pid); } d273 1 a273 3 163 STD { int linux32_sys_mremap(netbsd32_voidp old_address, \ netbsd32_size_t old_size , netbsd32_size_t new_size, \ netbsd32_u_long flags); } d314 1 a314 3 192 STD { linux32_off_t linux32_sys_mmap2(netbsd32_u_long addr, \ netbsd32_size_t len, int prot, int flags, int fd, \ linux32_off_t offset); } d348 1 a348 2 219 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, \ netbsd32_size_t len, int behav); } @ 1.6.2.2 log @Remove support for SA. Ok core@@. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.6.2.1 2006/11/18 21:39:11 ad Exp $ d43 1 @ 1.6.2.3 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.6.2.2 2007/01/30 13:51:34 ad Exp $ d81 1 a81 1 11 NOARGS { int netbsd32_execve(const netbsd32_charp path, \ d129 1 a129 1 51 NOARGS { int netbsd32_acct(netbsd32_charp path); } d142 1 a142 1 61 NOARGS { int netbsd32_chroot(netbsd32_charp path); } d161 1 a161 1 77 NOARGS { int netbsd32_getrusage(int who, \ d174 1 a174 1 84 NOARGS { int compat_43_netbsd32_lstat43(const netbsd32_charp \ d184 1 a184 1 91 NOARGS { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } d198 1 a198 1 104 NOARGS { int netbsd32_setitimer(u_int which, \ d200 1 a200 1 105 NOARGS { int netbsd32_getitimer(u_int which, \ d249 1 a249 1 145 NOARGS { int netbsd32_readv(int fd, \ d251 1 a251 1 146 NOARGS { netbsd32_ssize_t netbsd32_writev(int fd, \ d270 1 a270 1 162 NOARGS { int netbsd32_nanosleep(const \ d281 1 a281 1 168 NOARGS { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \ @ 1.5 log @Fix linux32_sys_setres{uid|gid}: -1 does not means the same thing on i386 and amd64... @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.4 2006/09/05 08:17:09 manu Exp $ d255 1 a255 1 148 UNIMPL fdatasync @ 1.4 log @typo @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.3 2006/06/25 16:15:39 manu Exp $ d335 1 a335 1 208 NOARGS { int linux_sys_setresuid(uid_t ruid, uid_t euid, \ d338 1 a338 1 210 NOARGS { int linux_sys_setresgid(gid_t rgid, gid_t egid, \ @ 1.3 log @- Complete exit_group() implementation. We now maintain a list of Linux threads in a processes and kill them properly. The code is a bit too complicated, but I could not find a simplier way of dealing with it - Change getpid() and getppid() semantics to match what Linux does, and implement gettid(). In the Linux kernel, threads are implemnted as plain old processes. A thread group is just a set of processes, with the parent called leader. Thread ID, which are returned by gettid(), are just the PID of the plain old processes, and getpid() returns the PID of the thread group leader. - Remove struct linux32_emuldata. COMPAT_LINUX32 uses a lot of COMPAT_LINUX code, where a struct linux_emuldata is assumed. By having distinct emuldata structure with different sizes and layouts, we caused kernel memory corruptions. - Fix setprioriry() and getpriority() Thanks to Nicolas Joly for tracking down the problem and providing me the hardware to fix them. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2 2006/02/15 15:23:18 manu Exp $ d276 1 a276 1 165 UNIMPL int @ 1.2 log @Add getcwd (for real this time), fix dup and dup2 @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.1 2006/02/09 19:18:57 manu Exp $ d95 1 a95 1 20 NOARGS MPSAFE { pid_t sys_getpid(void); } d146 1 a146 1 64 NOARGS { pid_t sys_getppid(void); } d191 2 a192 2 96 NOARGS { int sys_getpriority(int which, int who); } 97 NOARGS { int sys_setpriority(int which, int who, int prio); } d355 1 a355 1 224 UNIMPL gettid @ 1.2.2.1 log @file syscalls.master was added on branch yamt-uio_vmspace on 2006-02-18 15:38:59 +0000 @ text @d1 414 @ 1.2.2.2 log @sync with head. @ text @a0 414 $NetBSD: syscalls.master,v 1.2.2.1 2006/02/18 15:38:59 yamt Exp $ ; NetBSD i386 COMPAT_LINUX32 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. ; ; types: ; STD always included ; OBSOL obsolete, not included in system ; UNIMPL unimplemented, not included in system ; NODEF included, but don't define the syscall number ; ; 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. #if defined(_KERNEL_OPT) #include "opt_compat_43.h" #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include %% 0 NOARGS { int linux_sys_nosys(void); } syscall 1 NOARGS { int sys_exit(int rval); } 2 NOARGS { int sys_fork(void); } 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \ const netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int linux32_sys_open(const netbsd32_charp path, int flags, \ int mode); } 6 NOARGS { int sys_close(int fd); } 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \ int options);} 8 STD { int linux32_sys_creat(const netbsd32_charp path, int mode); } 9 STD { int linux32_sys_link(const netbsd32_charp path, \ const netbsd32_charp link); } 10 STD { int linux32_sys_unlink(const netbsd32_charp path); } 11 NOARGS execve { int netbsd32_execve(const netbsd32_charp path, \ netbsd32_charpp argp, netbsd32_charpp envp); } 12 STD { int linux32_sys_chdir(const netbsd32_charp path); } 13 STD { int linux32_sys_time(linux32_timep_t t); } 14 STD { int linux32_sys_mknod(const netbsd32_charp path, \ int mode, int dev); } 15 STD { int linux32_sys_chmod(const netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(const netbsd32_charp path, \ int uid, int gid); } 17 STD { int linux32_sys_break(netbsd32_charp nsize); } 18 OBSOL ostat 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \ netbsd32_long offset, int chence); } 20 NOARGS MPSAFE { pid_t sys_getpid(void); } 21 UNIMPL mount 22 UNIMPL umount 23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); } 25 STD { int linux32_sys_stime(linux32_timep_t t); } 26 UNIMPL ptrace 27 NOARGS { int linux_sys_alarm(unsigned int secs); } 28 OBSOL ofstat 29 NOARGS { int linux_sys_pause(void); } 30 STD { int linux32_sys_utime(const netbsd32_charp path, \ linux32_utimbufp_t times); } 31 OBSOL stty 32 OBSOL gtty 33 STD { int linux32_sys_access(const netbsd32_charp path, \ int flags); } 34 NOARGS { int linux_sys_nice(int incr); } 35 OBSOL ftime 36 NOARGS { int sys_sync(void); } 37 STD { int linux32_sys_kill(int pid, int signum); } 38 STD { int linux32_sys_rename(const netbsd32_charp from, \ const netbsd32_charp to); } 39 STD { int linux32_sys_mkdir(const netbsd32_charp path, int mode); } 40 STD { int linux32_sys_rmdir(const netbsd32_charp path); } 41 NOARGS { int netbsd32_dup(u_int fd); } 42 STD { int linux32_sys_pipe(netbsd32_intp fd); } 43 STD { int linux32_sys_times(linux32_tmsp_t tms); } 44 OBSOL prof 45 STD { int linux32_sys_brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int sys_setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); } 48 STD { int linux32_sys_signal(int signum, \ linux32_handler_t handler); } 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); } 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); } 51 NOARGS acct { int netbsd32_acct(netbsd32_charp path); } 52 OBSOL phys 53 OBSOL lock 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \ netbsd32_charp data); } 55 STD { int linux32_sys_fcntl(int fd, \ int cmd, netbsd32_voidp arg); } 56 OBSOL mpx 57 NOARGS { int sys_setpgid(int pid, int pgid); } 58 OBSOL ulimit 59 STD { int linux32_sys_oldolduname( \ linux32_oldold_utsnamep_t up); } 60 NOARGS { int sys_umask(int newmask); } 61 NOARGS chroot { int netbsd32_chroot(netbsd32_charp path); } 62 UNIMPL ustat 63 NOARGS { int netbsd32_dup2(u_int from, u_int to); } 64 NOARGS { pid_t sys_getppid(void); } 65 NOARGS { int sys_getpgrp(void); } 66 NOARGS { int sys_setsid(void); } 67 UNIMPL sigaction 68 UNIMPL siggetmask 69 UNIMPL sigsetmask 70 STD { int linux_sys_setreuid16(int ruid, int euid); } 71 STD { int linux_sys_setregid16(int rgid, int egid); } 72 UNIMPL sigsuspend 73 UNIMPL sigpending 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \ u_int len); } 75 STD { int linux32_sys_setrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 76 STD { int linux32_sys_getrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 77 NOARGS getrusage { int netbsd32_getrusage(int who, \ netbsd32_rusagep_t rusage); } 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 80 STD { int linux32_sys_getgroups16(int gidsetsize, \ linux32_gidp_t gidset); } 81 STD { int linux32_sys_setgroups16(int gidsetsize, \ linux32_gidp_t gidset); } 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); } 83 STD { int linux32_sys_symlink(netbsd32_charp path, \ const netbsd32_charp link); } 84 NOARGS lstat { int compat_43_netbsd32_lstat43(const netbsd32_charp \ path, netbsd32_stat43p_t ub); } 85 STD { int linux32_sys_readlink(const netbsd32_charp name, \ netbsd32_charp buf, int count); } 86 UNIMPL uselib 87 STD { int linux32_sys_swapon(netbsd32_charp name); } 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \ netbsd32_voidp arg); } 89 UNIMPL readdir 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); } 91 NOARGS munmap { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } 92 STD { int linux32_sys_truncate(const netbsd32_charp path, \ netbsd32_long length); } 93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 94 NOARGS { int sys_fchmod(int fd, int mode); } 95 STD { int linux32_sys_fchown16(int fd, int uid, int gid); } 96 NOARGS { int sys_getpriority(int which, int who); } 97 NOARGS { int sys_setpriority(int which, int who, int prio); } 98 UNIMPL profil 99 UNIMPL statfs 100 UNIMPL fstatfs 101 UNIMPL ioperm 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); } 103 UNIMPL syslog 104 NOARGS setitimer { int netbsd32_setitimer(u_int which, \ netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } 105 NOARGS getitimer { int netbsd32_getitimer(u_int which, \ netbsd32_itimervalp_t itv); } 106 UNIMPL stat 107 UNIMPL lstat 108 UNIMPL fstat 109 UNIMPL olduname 110 UNIMPL iopl 111 UNIMPL vhangup 112 UNIMPL idle 113 UNIMPL vm86old 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \ int options, netbsd32_rusagep_t rusage); } 115 STD { int linux32_sys_swapoff(const netbsd32_charp path); } 116 UNIMPL sysinfo 117 UNIMPL ipc 118 NOARGS { int sys_fsync(int fd); } 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); } 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); } 121 UNIMPL setdomainname 122 STD { int linux32_sys_uname(linux32_utsnamep up); } 123 UNIMPL modify_ldt 124 UNIMPL adjtimex 125 STD { int linux32_sys_mprotect(netbsd32_voidp addr, \ netbsd32_size_t len, int prot); } 126 UNIMPL sigprocmask 127 UNIMPL create_module 128 UNIMPL init_module 129 UNIMPL delete_module 130 UNIMPL get_kernel_syms 131 UNIMPL quotactl 132 UNIMPL getpgid 133 NOARGS { int sys_fchdir(int fd); } 134 UNIMPL bdflush 135 UNIMPL sysfs 136 UNIMPL personality 137 UNIMPL afs_syscall 138 UNIMPL int 139 UNIMPL int 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_caddr_t res, int whence); } 141 STD { int linux32_sys_getdents(int fd, \ linux32_direntp_t dent, unsigned int count); } 142 STD { int linux32_sys_select(int nfds, \ netbsd32_fd_setp_t readfds, \ netbsd32_fd_setp_t writefds, \ netbsd32_fd_setp_t exceptfds, \ netbsd32_timevalp_t timeout); } 143 NOARGS { int sys_flock(int fd, int how); } 144 UNIMPL msync 145 NOARGS readv { int netbsd32_readv(int fd, \ const netbsd32_iovecp_t iovp, u_int iovcnt); } 146 NOARGS writev { netbsd32_ssize_t netbsd32_writev(int fd, \ const netbsd32_iovecp_t iovp, int iovcnt); } 147 NOARGS { pid_t sys_getsid(pid_t pid); } 148 UNIMPL fdatasync 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); } 150 UNIMPL mlock 151 UNIMPL munlock 152 NOARGS { int sys_mlockall(int flags); } 153 NOARGS { int sys_munlockall(void); } 154 UNIMPL sched_setparam 155 UNIMPL sched_getparam 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \ int policy, const linux32_sched_paramp_t sp); } 157 UNIMPL sched_getscheduler 158 UNIMPL sched_yield 159 UNIMPL sched_get_priority_max 160 UNIMPL sched_get_priority_min 161 UNIMPL sched_rr_get_interval 162 NOARGS nanosleep { int netbsd32_nanosleep(const \ netbsd32_timespecp_t rqtp \ netbsd32_timespecp_t rmtp); } 163 UNIMPL *mremap 164 NOARGS { int linux_sys_setresuid16(uid_t ruid, uid_t euid, \ uid_t suid); } 165 UNIMPL int 166 UNIMPL vm86 167 UNIMPL query_module 168 NOARGS poll { int netbsd32_poll(struct pollfd *fds, u_int nfds, \ int timeout); } 169 UNIMPL nfsservctl 170 NOARGS { int linux_sys_setresgid16(gid_t rgid, gid_t egid, \ gid_t sgid); } 171 UNIMPL int 172 UNIMPL prctl 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int linux32_sys_rt_sigaction(int signum, \ const linux32_sigactionp_t nsa, \ linux32_sigactionp_t osa, \ netbsd32_size_t sigsetsize); } 175 STD { int linux32_sys_rt_sigprocmask(int how, \ const linux32_sigsetp_t set, \ linux32_sigsetp_t oset, \ netbsd32_size_t sigsetsize); } 176 UNIMPL rt_sigpending 177 UNIMPL rt_sigtimedwait 178 UNIMPL rt_queueinfo 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \ netbsd32_size_t sigsetsize); } 180 UNIMPL pread 181 UNIMPL pwrite 182 UNIMPL chown16 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \ netbsd32_size_t length); } 184 UNIMPL capget 185 UNIMPL capset 186 UNIMPL sigaltstack 187 UNIMPL sendfile 188 UNIMPL getpmsg 189 UNIMPL putpmsg 190 NOARGS { int sys___vfork14(void); } 191 STD { int linux32_sys_ugetrlimit(int which, \ netbsd32_orlimitp_t rlp); } 192 UNIMPL mmap2 193 UNIMPL truncate64 194 UNIMPL ftruncate64 195 STD { int linux32_sys_stat64(const netbsd32_charp path, \ linux32_stat64p sp); } 196 STD { int linux32_sys_lstat64(const netbsd32_charp path, \ linux32_stat64p sp); } 197 STD { int linux32_sys_fstat64(int fd, \ linux32_stat64p sp); } 198 UNIMPL lchown 199 NOARGS { uid_t sys_getuid(void); } 200 NOARGS { gid_t sys_getgid(void); } 201 NOARGS { uid_t sys_geteuid(void); } 202 NOARGS { gid_t sys_getegid(void); } 203 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 207 NOARGS { int sys___posix_fchown(int fd, uid_t uid, gid_t gid); } 208 NOARGS { int linux_sys_setresuid(uid_t ruid, uid_t euid, \ uid_t suid); } 209 UNIMPL getresuid 210 NOARGS { int linux_sys_setresgid(gid_t rgid, gid_t egid, \ gid_t sgid); } 211 UNIMPL getresgid 212 UNIMPL chown 213 NOARGS { int sys_setuid(uid_t uid); } 214 NOARGS { int sys_setgid(gid_t gid); } 215 UNIMPL setfsuid 216 UNIMPL getfsuid 217 UNIMPL pivot_root 218 UNIMPL mincore 219 UNIMPL madvise 220 STD { int linux32_sys_getdents64(int fd, \ linux32_dirent64p_t dent, unsigned int count); } 221 STD { int linux32_sys_fcntl64(int fd, \ int cmd, netbsd32_voidp arg); } 222 UNIMPL /* unused */ 223 UNIMPL /* unused */ 224 UNIMPL gettid 225 UNIMPL readahead 226 UNIMPL setxattr 227 UNIMPL lsetxattr 228 UNIMPL fsetxattr 229 UNIMPL getxattr 230 UNIMPL lgetxattr 231 UNIMPL fgetxattr 232 UNIMPL listxattr 233 UNIMPL llistxattr 234 UNIMPL flistxattr 235 UNIMPL removexattr 236 UNIMPL lremovexattr 237 UNIMPL fremovexattr 238 UNIMPL tkill 239 UNIMPL sendfile64 240 UNIMPL futex 241 UNIMPL sched_setaffinity 242 UNIMPL sched_getaffinity 243 UNIMPL set_thread_area 244 UNIMPL get_thread_area 245 UNIMPL io_setup 246 UNIMPL io_destroy 247 UNIMPL io_getevents 248 UNIMPL io_submit 249 UNIMPL io_cancel 250 UNIMPL fadvise64 251 UNIMPL /* unused */ 252 NOARGS { int linux_sys_exit_group(int error_code); } 253 UNIMPL lookup_dcookie 254 UNIMPL epoll_create 255 UNIMPL epoll_ctl 256 UNIMPL epoll_wait 257 UNIMPL remap_file_pages 258 UNIMPL set_tid_address 259 UNIMPL timer_create 260 UNIMPL timer_settime 261 UNIMPL timer_gettime 262 UNIMPL timer_getoverrun 263 UNIMPL timer_delete 264 UNIMPL clock_settime 265 UNIMPL clock_gettime 266 UNIMPL clock_getres 267 UNIMPL clock_nanosleep 268 UNIMPL statfs64 269 UNIMPL fstatfs64 270 UNIMPL tgkill 271 UNIMPL utimes 272 UNIMPL fadvise64_64 273 UNIMPL vserver 274 UNIMPL mbind 275 UNIMPL get_mempolicy 276 UNIMPL set_mempolicy 277 UNIMPL mq_open 278 UNIMPL mq_unlink 279 UNIMPL mq_timedsend 280 UNIMPL mq_timedreceive 281 UNIMPL mq_notify 282 UNIMPL mq_getsetattr 283 UNIMPL kexec_load @ 1.2.10.1 log @file syscalls.master was added on branch simonb-timecounters on 2006-04-22 11:38:14 +0000 @ text @d1 414 @ 1.2.10.2 log @Sync with head. @ text @a0 414 $NetBSD: syscalls.master,v 1.2.10.1 2006/04/22 11:38:14 simonb Exp $ ; NetBSD i386 COMPAT_LINUX32 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. ; ; types: ; STD always included ; OBSOL obsolete, not included in system ; UNIMPL unimplemented, not included in system ; NODEF included, but don't define the syscall number ; ; 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. #if defined(_KERNEL_OPT) #include "opt_compat_43.h" #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include %% 0 NOARGS { int linux_sys_nosys(void); } syscall 1 NOARGS { int sys_exit(int rval); } 2 NOARGS { int sys_fork(void); } 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \ const netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int linux32_sys_open(const netbsd32_charp path, int flags, \ int mode); } 6 NOARGS { int sys_close(int fd); } 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \ int options);} 8 STD { int linux32_sys_creat(const netbsd32_charp path, int mode); } 9 STD { int linux32_sys_link(const netbsd32_charp path, \ const netbsd32_charp link); } 10 STD { int linux32_sys_unlink(const netbsd32_charp path); } 11 NOARGS execve { int netbsd32_execve(const netbsd32_charp path, \ netbsd32_charpp argp, netbsd32_charpp envp); } 12 STD { int linux32_sys_chdir(const netbsd32_charp path); } 13 STD { int linux32_sys_time(linux32_timep_t t); } 14 STD { int linux32_sys_mknod(const netbsd32_charp path, \ int mode, int dev); } 15 STD { int linux32_sys_chmod(const netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(const netbsd32_charp path, \ int uid, int gid); } 17 STD { int linux32_sys_break(netbsd32_charp nsize); } 18 OBSOL ostat 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \ netbsd32_long offset, int chence); } 20 NOARGS MPSAFE { pid_t sys_getpid(void); } 21 UNIMPL mount 22 UNIMPL umount 23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); } 25 STD { int linux32_sys_stime(linux32_timep_t t); } 26 UNIMPL ptrace 27 NOARGS { int linux_sys_alarm(unsigned int secs); } 28 OBSOL ofstat 29 NOARGS { int linux_sys_pause(void); } 30 STD { int linux32_sys_utime(const netbsd32_charp path, \ linux32_utimbufp_t times); } 31 OBSOL stty 32 OBSOL gtty 33 STD { int linux32_sys_access(const netbsd32_charp path, \ int flags); } 34 NOARGS { int linux_sys_nice(int incr); } 35 OBSOL ftime 36 NOARGS { int sys_sync(void); } 37 STD { int linux32_sys_kill(int pid, int signum); } 38 STD { int linux32_sys_rename(const netbsd32_charp from, \ const netbsd32_charp to); } 39 STD { int linux32_sys_mkdir(const netbsd32_charp path, int mode); } 40 STD { int linux32_sys_rmdir(const netbsd32_charp path); } 41 NOARGS { int netbsd32_dup(u_int fd); } 42 STD { int linux32_sys_pipe(netbsd32_intp fd); } 43 STD { int linux32_sys_times(linux32_tmsp_t tms); } 44 OBSOL prof 45 STD { int linux32_sys_brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int sys_setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); } 48 STD { int linux32_sys_signal(int signum, \ linux32_handler_t handler); } 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); } 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); } 51 NOARGS acct { int netbsd32_acct(netbsd32_charp path); } 52 OBSOL phys 53 OBSOL lock 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \ netbsd32_charp data); } 55 STD { int linux32_sys_fcntl(int fd, \ int cmd, netbsd32_voidp arg); } 56 OBSOL mpx 57 NOARGS { int sys_setpgid(int pid, int pgid); } 58 OBSOL ulimit 59 STD { int linux32_sys_oldolduname( \ linux32_oldold_utsnamep_t up); } 60 NOARGS { int sys_umask(int newmask); } 61 NOARGS chroot { int netbsd32_chroot(netbsd32_charp path); } 62 UNIMPL ustat 63 NOARGS { int netbsd32_dup2(u_int from, u_int to); } 64 NOARGS { pid_t sys_getppid(void); } 65 NOARGS { int sys_getpgrp(void); } 66 NOARGS { int sys_setsid(void); } 67 UNIMPL sigaction 68 UNIMPL siggetmask 69 UNIMPL sigsetmask 70 STD { int linux_sys_setreuid16(int ruid, int euid); } 71 STD { int linux_sys_setregid16(int rgid, int egid); } 72 UNIMPL sigsuspend 73 UNIMPL sigpending 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \ u_int len); } 75 STD { int linux32_sys_setrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 76 STD { int linux32_sys_getrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 77 NOARGS getrusage { int netbsd32_getrusage(int who, \ netbsd32_rusagep_t rusage); } 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 80 STD { int linux32_sys_getgroups16(int gidsetsize, \ linux32_gidp_t gidset); } 81 STD { int linux32_sys_setgroups16(int gidsetsize, \ linux32_gidp_t gidset); } 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); } 83 STD { int linux32_sys_symlink(netbsd32_charp path, \ const netbsd32_charp link); } 84 NOARGS lstat { int compat_43_netbsd32_lstat43(const netbsd32_charp \ path, netbsd32_stat43p_t ub); } 85 STD { int linux32_sys_readlink(const netbsd32_charp name, \ netbsd32_charp buf, int count); } 86 UNIMPL uselib 87 STD { int linux32_sys_swapon(netbsd32_charp name); } 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \ netbsd32_voidp arg); } 89 UNIMPL readdir 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); } 91 NOARGS munmap { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } 92 STD { int linux32_sys_truncate(const netbsd32_charp path, \ netbsd32_long length); } 93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 94 NOARGS { int sys_fchmod(int fd, int mode); } 95 STD { int linux32_sys_fchown16(int fd, int uid, int gid); } 96 NOARGS { int sys_getpriority(int which, int who); } 97 NOARGS { int sys_setpriority(int which, int who, int prio); } 98 UNIMPL profil 99 UNIMPL statfs 100 UNIMPL fstatfs 101 UNIMPL ioperm 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); } 103 UNIMPL syslog 104 NOARGS setitimer { int netbsd32_setitimer(u_int which, \ netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } 105 NOARGS getitimer { int netbsd32_getitimer(u_int which, \ netbsd32_itimervalp_t itv); } 106 UNIMPL stat 107 UNIMPL lstat 108 UNIMPL fstat 109 UNIMPL olduname 110 UNIMPL iopl 111 UNIMPL vhangup 112 UNIMPL idle 113 UNIMPL vm86old 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \ int options, netbsd32_rusagep_t rusage); } 115 STD { int linux32_sys_swapoff(const netbsd32_charp path); } 116 UNIMPL sysinfo 117 UNIMPL ipc 118 NOARGS { int sys_fsync(int fd); } 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); } 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); } 121 UNIMPL setdomainname 122 STD { int linux32_sys_uname(linux32_utsnamep up); } 123 UNIMPL modify_ldt 124 UNIMPL adjtimex 125 STD { int linux32_sys_mprotect(netbsd32_voidp addr, \ netbsd32_size_t len, int prot); } 126 UNIMPL sigprocmask 127 UNIMPL create_module 128 UNIMPL init_module 129 UNIMPL delete_module 130 UNIMPL get_kernel_syms 131 UNIMPL quotactl 132 UNIMPL getpgid 133 NOARGS { int sys_fchdir(int fd); } 134 UNIMPL bdflush 135 UNIMPL sysfs 136 UNIMPL personality 137 UNIMPL afs_syscall 138 UNIMPL int 139 UNIMPL int 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_caddr_t res, int whence); } 141 STD { int linux32_sys_getdents(int fd, \ linux32_direntp_t dent, unsigned int count); } 142 STD { int linux32_sys_select(int nfds, \ netbsd32_fd_setp_t readfds, \ netbsd32_fd_setp_t writefds, \ netbsd32_fd_setp_t exceptfds, \ netbsd32_timevalp_t timeout); } 143 NOARGS { int sys_flock(int fd, int how); } 144 UNIMPL msync 145 NOARGS readv { int netbsd32_readv(int fd, \ const netbsd32_iovecp_t iovp, u_int iovcnt); } 146 NOARGS writev { netbsd32_ssize_t netbsd32_writev(int fd, \ const netbsd32_iovecp_t iovp, int iovcnt); } 147 NOARGS { pid_t sys_getsid(pid_t pid); } 148 UNIMPL fdatasync 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); } 150 UNIMPL mlock 151 UNIMPL munlock 152 NOARGS { int sys_mlockall(int flags); } 153 NOARGS { int sys_munlockall(void); } 154 UNIMPL sched_setparam 155 UNIMPL sched_getparam 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \ int policy, const linux32_sched_paramp_t sp); } 157 UNIMPL sched_getscheduler 158 UNIMPL sched_yield 159 UNIMPL sched_get_priority_max 160 UNIMPL sched_get_priority_min 161 UNIMPL sched_rr_get_interval 162 NOARGS nanosleep { int netbsd32_nanosleep(const \ netbsd32_timespecp_t rqtp \ netbsd32_timespecp_t rmtp); } 163 UNIMPL *mremap 164 NOARGS { int linux_sys_setresuid16(uid_t ruid, uid_t euid, \ uid_t suid); } 165 UNIMPL int 166 UNIMPL vm86 167 UNIMPL query_module 168 NOARGS poll { int netbsd32_poll(struct pollfd *fds, u_int nfds, \ int timeout); } 169 UNIMPL nfsservctl 170 NOARGS { int linux_sys_setresgid16(gid_t rgid, gid_t egid, \ gid_t sgid); } 171 UNIMPL int 172 UNIMPL prctl 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int linux32_sys_rt_sigaction(int signum, \ const linux32_sigactionp_t nsa, \ linux32_sigactionp_t osa, \ netbsd32_size_t sigsetsize); } 175 STD { int linux32_sys_rt_sigprocmask(int how, \ const linux32_sigsetp_t set, \ linux32_sigsetp_t oset, \ netbsd32_size_t sigsetsize); } 176 UNIMPL rt_sigpending 177 UNIMPL rt_sigtimedwait 178 UNIMPL rt_queueinfo 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \ netbsd32_size_t sigsetsize); } 180 UNIMPL pread 181 UNIMPL pwrite 182 UNIMPL chown16 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \ netbsd32_size_t length); } 184 UNIMPL capget 185 UNIMPL capset 186 UNIMPL sigaltstack 187 UNIMPL sendfile 188 UNIMPL getpmsg 189 UNIMPL putpmsg 190 NOARGS { int sys___vfork14(void); } 191 STD { int linux32_sys_ugetrlimit(int which, \ netbsd32_orlimitp_t rlp); } 192 UNIMPL mmap2 193 UNIMPL truncate64 194 UNIMPL ftruncate64 195 STD { int linux32_sys_stat64(const netbsd32_charp path, \ linux32_stat64p sp); } 196 STD { int linux32_sys_lstat64(const netbsd32_charp path, \ linux32_stat64p sp); } 197 STD { int linux32_sys_fstat64(int fd, \ linux32_stat64p sp); } 198 UNIMPL lchown 199 NOARGS { uid_t sys_getuid(void); } 200 NOARGS { gid_t sys_getgid(void); } 201 NOARGS { uid_t sys_geteuid(void); } 202 NOARGS { gid_t sys_getegid(void); } 203 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 207 NOARGS { int sys___posix_fchown(int fd, uid_t uid, gid_t gid); } 208 NOARGS { int linux_sys_setresuid(uid_t ruid, uid_t euid, \ uid_t suid); } 209 UNIMPL getresuid 210 NOARGS { int linux_sys_setresgid(gid_t rgid, gid_t egid, \ gid_t sgid); } 211 UNIMPL getresgid 212 UNIMPL chown 213 NOARGS { int sys_setuid(uid_t uid); } 214 NOARGS { int sys_setgid(gid_t gid); } 215 UNIMPL setfsuid 216 UNIMPL getfsuid 217 UNIMPL pivot_root 218 UNIMPL mincore 219 UNIMPL madvise 220 STD { int linux32_sys_getdents64(int fd, \ linux32_dirent64p_t dent, unsigned int count); } 221 STD { int linux32_sys_fcntl64(int fd, \ int cmd, netbsd32_voidp arg); } 222 UNIMPL /* unused */ 223 UNIMPL /* unused */ 224 UNIMPL gettid 225 UNIMPL readahead 226 UNIMPL setxattr 227 UNIMPL lsetxattr 228 UNIMPL fsetxattr 229 UNIMPL getxattr 230 UNIMPL lgetxattr 231 UNIMPL fgetxattr 232 UNIMPL listxattr 233 UNIMPL llistxattr 234 UNIMPL flistxattr 235 UNIMPL removexattr 236 UNIMPL lremovexattr 237 UNIMPL fremovexattr 238 UNIMPL tkill 239 UNIMPL sendfile64 240 UNIMPL futex 241 UNIMPL sched_setaffinity 242 UNIMPL sched_getaffinity 243 UNIMPL set_thread_area 244 UNIMPL get_thread_area 245 UNIMPL io_setup 246 UNIMPL io_destroy 247 UNIMPL io_getevents 248 UNIMPL io_submit 249 UNIMPL io_cancel 250 UNIMPL fadvise64 251 UNIMPL /* unused */ 252 NOARGS { int linux_sys_exit_group(int error_code); } 253 UNIMPL lookup_dcookie 254 UNIMPL epoll_create 255 UNIMPL epoll_ctl 256 UNIMPL epoll_wait 257 UNIMPL remap_file_pages 258 UNIMPL set_tid_address 259 UNIMPL timer_create 260 UNIMPL timer_settime 261 UNIMPL timer_gettime 262 UNIMPL timer_getoverrun 263 UNIMPL timer_delete 264 UNIMPL clock_settime 265 UNIMPL clock_gettime 266 UNIMPL clock_getres 267 UNIMPL clock_nanosleep 268 UNIMPL statfs64 269 UNIMPL fstatfs64 270 UNIMPL tgkill 271 UNIMPL utimes 272 UNIMPL fadvise64_64 273 UNIMPL vserver 274 UNIMPL mbind 275 UNIMPL get_mempolicy 276 UNIMPL set_mempolicy 277 UNIMPL mq_open 278 UNIMPL mq_unlink 279 UNIMPL mq_timedsend 280 UNIMPL mq_timedreceive 281 UNIMPL mq_notify 282 UNIMPL mq_getsetattr 283 UNIMPL kexec_load @ 1.2.16.1 log @file syscalls.master was added on branch yamt-lazymbuf on 2006-06-21 14:59:27 +0000 @ text @d1 414 @ 1.2.16.2 log @sync with head. @ text @a0 414 $NetBSD: syscalls.master,v 1.2.16.1 2006/06/21 14:59:27 yamt Exp $ ; NetBSD i386 COMPAT_LINUX32 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. ; ; types: ; STD always included ; OBSOL obsolete, not included in system ; UNIMPL unimplemented, not included in system ; NODEF included, but don't define the syscall number ; ; 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. #if defined(_KERNEL_OPT) #include "opt_compat_43.h" #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include %% 0 NOARGS { int linux_sys_nosys(void); } syscall 1 NOARGS { int sys_exit(int rval); } 2 NOARGS { int sys_fork(void); } 3 NOARGS { netbsd32_ssize_t netbsd32_read(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte); } 4 NOARGS { netbsd32_ssize_t netbsd32_write(int fd, \ const netbsd32_voidp buf, netbsd32_size_t nbyte); } 5 STD { int linux32_sys_open(const netbsd32_charp path, int flags, \ int mode); } 6 NOARGS { int sys_close(int fd); } 7 STD { int linux32_sys_waitpid(int pid, netbsd32_intp status, \ int options);} 8 STD { int linux32_sys_creat(const netbsd32_charp path, int mode); } 9 STD { int linux32_sys_link(const netbsd32_charp path, \ const netbsd32_charp link); } 10 STD { int linux32_sys_unlink(const netbsd32_charp path); } 11 NOARGS execve { int netbsd32_execve(const netbsd32_charp path, \ netbsd32_charpp argp, netbsd32_charpp envp); } 12 STD { int linux32_sys_chdir(const netbsd32_charp path); } 13 STD { int linux32_sys_time(linux32_timep_t t); } 14 STD { int linux32_sys_mknod(const netbsd32_charp path, \ int mode, int dev); } 15 STD { int linux32_sys_chmod(const netbsd32_charp path, int mode); } 16 STD { int linux32_sys_lchown16(const netbsd32_charp path, \ int uid, int gid); } 17 STD { int linux32_sys_break(netbsd32_charp nsize); } 18 OBSOL ostat 19 NOARGS { netbsd32_long compat_43_netbsd32_olseek(int fd, \ netbsd32_long offset, int chence); } 20 NOARGS MPSAFE { pid_t sys_getpid(void); } 21 UNIMPL mount 22 UNIMPL umount 23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); } 24 NOARGS linux_getuid16 { uid_t sys_getuid(void); } 25 STD { int linux32_sys_stime(linux32_timep_t t); } 26 UNIMPL ptrace 27 NOARGS { int linux_sys_alarm(unsigned int secs); } 28 OBSOL ofstat 29 NOARGS { int linux_sys_pause(void); } 30 STD { int linux32_sys_utime(const netbsd32_charp path, \ linux32_utimbufp_t times); } 31 OBSOL stty 32 OBSOL gtty 33 STD { int linux32_sys_access(const netbsd32_charp path, \ int flags); } 34 NOARGS { int linux_sys_nice(int incr); } 35 OBSOL ftime 36 NOARGS { int sys_sync(void); } 37 STD { int linux32_sys_kill(int pid, int signum); } 38 STD { int linux32_sys_rename(const netbsd32_charp from, \ const netbsd32_charp to); } 39 STD { int linux32_sys_mkdir(const netbsd32_charp path, int mode); } 40 STD { int linux32_sys_rmdir(const netbsd32_charp path); } 41 NOARGS { int netbsd32_dup(u_int fd); } 42 STD { int linux32_sys_pipe(netbsd32_intp fd); } 43 STD { int linux32_sys_times(linux32_tmsp_t tms); } 44 OBSOL prof 45 STD { int linux32_sys_brk(netbsd32_charp nsize); } 46 NOARGS linux_setgid16 { int sys_setgid(gid_t gid); } 47 NOARGS linux_getgid16 { gid_t sys_getgid(void); } 48 STD { int linux32_sys_signal(int signum, \ linux32_handler_t handler); } 49 NOARGS linux_geteuid16 { uid_t sys_geteuid(void); } 50 NOARGS linux_getegid16 { gid_t sys_getegid(void); } 51 NOARGS acct { int netbsd32_acct(netbsd32_charp path); } 52 OBSOL phys 53 OBSOL lock 54 STD { int linux32_sys_ioctl(int fd, netbsd32_u_long com, \ netbsd32_charp data); } 55 STD { int linux32_sys_fcntl(int fd, \ int cmd, netbsd32_voidp arg); } 56 OBSOL mpx 57 NOARGS { int sys_setpgid(int pid, int pgid); } 58 OBSOL ulimit 59 STD { int linux32_sys_oldolduname( \ linux32_oldold_utsnamep_t up); } 60 NOARGS { int sys_umask(int newmask); } 61 NOARGS chroot { int netbsd32_chroot(netbsd32_charp path); } 62 UNIMPL ustat 63 NOARGS { int netbsd32_dup2(u_int from, u_int to); } 64 NOARGS { pid_t sys_getppid(void); } 65 NOARGS { int sys_getpgrp(void); } 66 NOARGS { int sys_setsid(void); } 67 UNIMPL sigaction 68 UNIMPL siggetmask 69 UNIMPL sigsetmask 70 STD { int linux_sys_setreuid16(int ruid, int euid); } 71 STD { int linux_sys_setregid16(int rgid, int egid); } 72 UNIMPL sigsuspend 73 UNIMPL sigpending 74 NOARGS { int compat_43_netbsd32_osethostname(netbsd32_charp hostname, \ u_int len); } 75 STD { int linux32_sys_setrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 76 STD { int linux32_sys_getrlimit(u_int which, \ netbsd32_orlimitp_t rlp); } 77 NOARGS getrusage { int netbsd32_getrusage(int who, \ netbsd32_rusagep_t rusage); } 78 STD { int linux32_sys_gettimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 79 STD { int linux32_sys_settimeofday(netbsd32_timevalp_t tp, \ netbsd32_timezonep_t tzp); } 80 STD { int linux32_sys_getgroups16(int gidsetsize, \ linux32_gidp_t gidset); } 81 STD { int linux32_sys_setgroups16(int gidsetsize, \ linux32_gidp_t gidset); } 82 STD { int linux32_sys_oldselect(linux32_oldselectp_t lsp); } 83 STD { int linux32_sys_symlink(netbsd32_charp path, \ const netbsd32_charp link); } 84 NOARGS lstat { int compat_43_netbsd32_lstat43(const netbsd32_charp \ path, netbsd32_stat43p_t ub); } 85 STD { int linux32_sys_readlink(const netbsd32_charp name, \ netbsd32_charp buf, int count); } 86 UNIMPL uselib 87 STD { int linux32_sys_swapon(netbsd32_charp name); } 88 STD { int linux32_sys_reboot(int magic1, int magic2, int cmd, \ netbsd32_voidp arg); } 89 UNIMPL readdir 90 STD { int linux32_sys_old_mmap(linux32_oldmmapp lmp); } 91 NOARGS munmap { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } 92 STD { int linux32_sys_truncate(const netbsd32_charp path, \ netbsd32_long length); } 93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); } 94 NOARGS { int sys_fchmod(int fd, int mode); } 95 STD { int linux32_sys_fchown16(int fd, int uid, int gid); } 96 NOARGS { int sys_getpriority(int which, int who); } 97 NOARGS { int sys_setpriority(int which, int who, int prio); } 98 UNIMPL profil 99 UNIMPL statfs 100 UNIMPL fstatfs 101 UNIMPL ioperm 102 STD { int linux32_sys_socketcall(int what, netbsd32_voidp args); } 103 UNIMPL syslog 104 NOARGS setitimer { int netbsd32_setitimer(u_int which, \ netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); } 105 NOARGS getitimer { int netbsd32_getitimer(u_int which, \ netbsd32_itimervalp_t itv); } 106 UNIMPL stat 107 UNIMPL lstat 108 UNIMPL fstat 109 UNIMPL olduname 110 UNIMPL iopl 111 UNIMPL vhangup 112 UNIMPL idle 113 UNIMPL vm86old 114 STD { int linux32_sys_wait4(int pid, netbsd32_intp status, \ int options, netbsd32_rusagep_t rusage); } 115 STD { int linux32_sys_swapoff(const netbsd32_charp path); } 116 UNIMPL sysinfo 117 UNIMPL ipc 118 NOARGS { int sys_fsync(int fd); } 119 STD { int linux32_sys_sigreturn(linux32_sigcontextp_t scp); } 120 STD { int linux32_sys_clone(int flags, netbsd32_voidp stack); } 121 UNIMPL setdomainname 122 STD { int linux32_sys_uname(linux32_utsnamep up); } 123 UNIMPL modify_ldt 124 UNIMPL adjtimex 125 STD { int linux32_sys_mprotect(netbsd32_voidp addr, \ netbsd32_size_t len, int prot); } 126 UNIMPL sigprocmask 127 UNIMPL create_module 128 UNIMPL init_module 129 UNIMPL delete_module 130 UNIMPL get_kernel_syms 131 UNIMPL quotactl 132 UNIMPL getpgid 133 NOARGS { int sys_fchdir(int fd); } 134 UNIMPL bdflush 135 UNIMPL sysfs 136 UNIMPL personality 137 UNIMPL afs_syscall 138 UNIMPL int 139 UNIMPL int 140 STD { int linux32_sys_llseek(int fd, u_int32_t ohigh, \ u_int32_t olow, netbsd32_caddr_t res, int whence); } 141 STD { int linux32_sys_getdents(int fd, \ linux32_direntp_t dent, unsigned int count); } 142 STD { int linux32_sys_select(int nfds, \ netbsd32_fd_setp_t readfds, \ netbsd32_fd_setp_t writefds, \ netbsd32_fd_setp_t exceptfds, \ netbsd32_timevalp_t timeout); } 143 NOARGS { int sys_flock(int fd, int how); } 144 UNIMPL msync 145 NOARGS readv { int netbsd32_readv(int fd, \ const netbsd32_iovecp_t iovp, u_int iovcnt); } 146 NOARGS writev { netbsd32_ssize_t netbsd32_writev(int fd, \ const netbsd32_iovecp_t iovp, int iovcnt); } 147 NOARGS { pid_t sys_getsid(pid_t pid); } 148 UNIMPL fdatasync 149 STD { int linux32_sys___sysctl(linux32___sysctlp_t lsp); } 150 UNIMPL mlock 151 UNIMPL munlock 152 NOARGS { int sys_mlockall(int flags); } 153 NOARGS { int sys_munlockall(void); } 154 UNIMPL sched_setparam 155 UNIMPL sched_getparam 156 STD { int linux32_sys_sched_setscheduler(pid_t pid, \ int policy, const linux32_sched_paramp_t sp); } 157 UNIMPL sched_getscheduler 158 UNIMPL sched_yield 159 UNIMPL sched_get_priority_max 160 UNIMPL sched_get_priority_min 161 UNIMPL sched_rr_get_interval 162 NOARGS nanosleep { int netbsd32_nanosleep(const \ netbsd32_timespecp_t rqtp \ netbsd32_timespecp_t rmtp); } 163 UNIMPL *mremap 164 NOARGS { int linux_sys_setresuid16(uid_t ruid, uid_t euid, \ uid_t suid); } 165 UNIMPL int 166 UNIMPL vm86 167 UNIMPL query_module 168 NOARGS poll { int netbsd32_poll(struct pollfd *fds, u_int nfds, \ int timeout); } 169 UNIMPL nfsservctl 170 NOARGS { int linux_sys_setresgid16(gid_t rgid, gid_t egid, \ gid_t sgid); } 171 UNIMPL int 172 UNIMPL prctl 173 STD { int linux32_sys_rt_sigreturn(linux32_ucontextp_t ucp); } 174 STD { int linux32_sys_rt_sigaction(int signum, \ const linux32_sigactionp_t nsa, \ linux32_sigactionp_t osa, \ netbsd32_size_t sigsetsize); } 175 STD { int linux32_sys_rt_sigprocmask(int how, \ const linux32_sigsetp_t set, \ linux32_sigsetp_t oset, \ netbsd32_size_t sigsetsize); } 176 UNIMPL rt_sigpending 177 UNIMPL rt_sigtimedwait 178 UNIMPL rt_queueinfo 179 STD { int linux32_sys_rt_sigsuspend(linux32_sigsetp_t unewset, \ netbsd32_size_t sigsetsize); } 180 UNIMPL pread 181 UNIMPL pwrite 182 UNIMPL chown16 183 NOARGS { int netbsd32___getcwd(netbsd32_charp bufp, \ netbsd32_size_t length); } 184 UNIMPL capget 185 UNIMPL capset 186 UNIMPL sigaltstack 187 UNIMPL sendfile 188 UNIMPL getpmsg 189 UNIMPL putpmsg 190 NOARGS { int sys___vfork14(void); } 191 STD { int linux32_sys_ugetrlimit(int which, \ netbsd32_orlimitp_t rlp); } 192 UNIMPL mmap2 193 UNIMPL truncate64 194 UNIMPL ftruncate64 195 STD { int linux32_sys_stat64(const netbsd32_charp path, \ linux32_stat64p sp); } 196 STD { int linux32_sys_lstat64(const netbsd32_charp path, \ linux32_stat64p sp); } 197 STD { int linux32_sys_fstat64(int fd, \ linux32_stat64p sp); } 198 UNIMPL lchown 199 NOARGS { uid_t sys_getuid(void); } 200 NOARGS { gid_t sys_getgid(void); } 201 NOARGS { uid_t sys_geteuid(void); } 202 NOARGS { gid_t sys_getegid(void); } 203 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); } 205 NOARGS { int netbsd32_getgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 206 NOARGS { int netbsd32_setgroups(int gidsetsize, \ netbsd32_gid_tp gidset); } 207 NOARGS { int sys___posix_fchown(int fd, uid_t uid, gid_t gid); } 208 NOARGS { int linux_sys_setresuid(uid_t ruid, uid_t euid, \ uid_t suid); } 209 UNIMPL getresuid 210 NOARGS { int linux_sys_setresgid(gid_t rgid, gid_t egid, \ gid_t sgid); } 211 UNIMPL getresgid 212 UNIMPL chown 213 NOARGS { int sys_setuid(uid_t uid); } 214 NOARGS { int sys_setgid(gid_t gid); } 215 UNIMPL setfsuid 216 UNIMPL getfsuid 217 UNIMPL pivot_root 218 UNIMPL mincore 219 UNIMPL madvise 220 STD { int linux32_sys_getdents64(int fd, \ linux32_dirent64p_t dent, unsigned int count); } 221 STD { int linux32_sys_fcntl64(int fd, \ int cmd, netbsd32_voidp arg); } 222 UNIMPL /* unused */ 223 UNIMPL /* unused */ 224 UNIMPL gettid 225 UNIMPL readahead 226 UNIMPL setxattr 227 UNIMPL lsetxattr 228 UNIMPL fsetxattr 229 UNIMPL getxattr 230 UNIMPL lgetxattr 231 UNIMPL fgetxattr 232 UNIMPL listxattr 233 UNIMPL llistxattr 234 UNIMPL flistxattr 235 UNIMPL removexattr 236 UNIMPL lremovexattr 237 UNIMPL fremovexattr 238 UNIMPL tkill 239 UNIMPL sendfile64 240 UNIMPL futex 241 UNIMPL sched_setaffinity 242 UNIMPL sched_getaffinity 243 UNIMPL set_thread_area 244 UNIMPL get_thread_area 245 UNIMPL io_setup 246 UNIMPL io_destroy 247 UNIMPL io_getevents 248 UNIMPL io_submit 249 UNIMPL io_cancel 250 UNIMPL fadvise64 251 UNIMPL /* unused */ 252 NOARGS { int linux_sys_exit_group(int error_code); } 253 UNIMPL lookup_dcookie 254 UNIMPL epoll_create 255 UNIMPL epoll_ctl 256 UNIMPL epoll_wait 257 UNIMPL remap_file_pages 258 UNIMPL set_tid_address 259 UNIMPL timer_create 260 UNIMPL timer_settime 261 UNIMPL timer_gettime 262 UNIMPL timer_getoverrun 263 UNIMPL timer_delete 264 UNIMPL clock_settime 265 UNIMPL clock_gettime 266 UNIMPL clock_getres 267 UNIMPL clock_nanosleep 268 UNIMPL statfs64 269 UNIMPL fstatfs64 270 UNIMPL tgkill 271 UNIMPL utimes 272 UNIMPL fadvise64_64 273 UNIMPL vserver 274 UNIMPL mbind 275 UNIMPL get_mempolicy 276 UNIMPL set_mempolicy 277 UNIMPL mq_open 278 UNIMPL mq_unlink 279 UNIMPL mq_timedsend 280 UNIMPL mq_timedreceive 281 UNIMPL mq_notify 282 UNIMPL mq_getsetattr 283 UNIMPL kexec_load @ 1.2.16.3 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.2 2006/12/30 20:47:38 yamt Exp $ d95 1 a95 1 20 STD { pid_t linux_sys_getpid(void); } d146 1 a146 1 64 STD { pid_t linux_sys_getppid(void); } d191 2 a192 2 96 STD { int linux32_sys_getpriority(int which, int who); } 97 STD { int linux32_sys_setpriority(int which, int who, int prio); } d214 1 a214 1 116 STD { int linux32_sys_sysinfo(linux32_sysinfop_t arg); } d255 1 a255 1 148 NOARGS { int linux_sys_fdatasync(int fd); } d262 1 a262 2 155 STD { int linux32_sys_sched_getparam(pid_t pid, \ linux32_sched_paramp_t sp); } d265 1 a265 1 157 NOARGS { int linux_sys_sched_getscheduler(pid_t pid); } d273 1 a273 3 163 STD { int linux32_sys_mremap(netbsd32_voidp old_address, \ netbsd32_size_t old_size , netbsd32_size_t new_size, \ netbsd32_u_long flags); } d276 1 a276 1 165 UNIMPL getresuid16 d314 1 a314 3 192 STD { linux32_off_t linux32_sys_mmap2(netbsd32_u_long addr, \ netbsd32_size_t len, int prot, int flags, int fd, \ linux32_off_t offset); } d335 1 a335 1 208 STD { int linux32_sys_setresuid(uid_t ruid, uid_t euid, \ d338 1 a338 1 210 STD { int linux32_sys_setresgid(gid_t rgid, gid_t egid, \ d348 1 a348 2 219 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, \ netbsd32_size_t len, int behav); } d355 1 a355 1 224 STD { pid_t linux_sys_gettid(void); } @ 1.2.16.4 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.3 2007/02/26 09:09:25 yamt Exp $ d43 1 d82 1 a82 1 11 NOARGS { int netbsd32_execve(const netbsd32_charp path, \ d130 1 a130 1 51 NOARGS { int netbsd32_acct(netbsd32_charp path); } d143 1 a143 1 61 NOARGS { int netbsd32_chroot(netbsd32_charp path); } d162 1 a162 1 77 NOARGS { int netbsd32_getrusage(int who, \ d175 1 a175 1 84 NOARGS { int compat_43_netbsd32_lstat43(const netbsd32_charp \ d185 1 a185 1 91 NOARGS { int netbsd32_munmap(netbsd32_caddr_t addr, int len); } d199 1 a199 1 104 NOARGS { int netbsd32_setitimer(u_int which, \ d201 1 a201 1 105 NOARGS { int netbsd32_getitimer(u_int which, \ d237 2 a238 2 138 NOARGS setfsuid16 { int linux_sys_setfsuid(uid_t uid); } 139 NOARGS getfsuid16 { int linux_sys_getfsuid(void); } d250 1 a250 1 145 NOARGS { int netbsd32_readv(int fd, \ d252 1 a252 1 146 NOARGS { netbsd32_ssize_t netbsd32_writev(int fd, \ d267 1 a267 1 158 NOARGS { int linux_sys_sched_yield(void); } d271 1 a271 1 162 NOARGS { int netbsd32_nanosleep(const \ d282 1 a282 1 168 NOARGS { int netbsd32_poll(netbsd32_pollfdp_t fds, u_int nfds, \ d349 2 a350 2 215 NOARGS { int linux_sys_setfsuid(uid_t uid); } 216 NOARGS { int linux_sys_getfsuid(void); } @ 1.2.16.5 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.4 2007/09/03 14:32:30 yamt Exp $ d187 1 a187 2 93 NOARGS { int compat_43_netbsd32_oftruncate(int fd, \ netbsd32_long length); } d193 1 a193 2 99 STD { int linux32_sys_statfs(const netbsd32_charp path, \ linux32_statfsp sp); } @ 1.2.16.6 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.5 2007/10/27 11:29:43 yamt Exp $ d306 1 a306 2 182 STD { int linux32_sys_chown16(const netbsd32_charp path, \ int uid, int gid); } d329 1 a329 2 198 NOARGS { int netbsd32___posix_lchown(const netbsd32_charp path, \ int uid, int gid); } d347 1 a347 2 212 NOARGS { int netbsd32___posix_chown(const netbsd32_charp path, \ int uid, int gid); } @ 1.2.16.7 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.6 2007/11/15 11:43:52 yamt Exp $ d66 1 a66 1 1 NOARGS { int netbsd32_exit(int rval); } d74 1 a74 1 6 NOARGS { int netbsd32_close(int fd); } d78 1 a78 1 9 NOARGS { int netbsd32_link(const netbsd32_charp path, \ d83 1 a83 1 12 NOARGS { int netbsd32_chdir(const netbsd32_charp path); } d87 1 a87 1 15 NOARGS { int netbsd32_chmod(const netbsd32_charp path, int mode); } d97 1 a97 1 23 NOARGS linux_setuid16 { int netbsd32_setuid(uid_t uid); } d101 1 a101 1 27 STD { int linux32_sys_alarm(unsigned int secs); } d108 1 a108 1 33 NOARGS { int netbsd32_access(const netbsd32_charp path, \ d110 1 a110 1 34 STD { int linux32_sys_nice(int incr); } d116 2 a117 2 39 NOARGS { int netbsd32_mkdir(const netbsd32_charp path, int mode); } 40 NOARGS { int netbsd32_rmdir(const netbsd32_charp path); } d123 1 a123 1 46 NOARGS linux_setgid16 { int netbsd32_setgid(gid_t gid); } d137 1 a137 1 57 NOARGS { int netbsd32_setpgid(int pid, int pgid); } d141 1 a141 1 60 NOARGS { int netbsd32_umask(int newmask); } d151 2 a152 2 70 STD { int linux32_sys_setreuid16(int ruid, int euid); } 71 STD { int linux32_sys_setregid16(int rgid, int egid); } d172 1 a172 1 83 NOARGS { int netbsd32_symlink(netbsd32_charp path, \ d189 1 a189 1 94 NOARGS { int netbsd32_fchmod(int fd, int mode); } d217 1 a217 1 118 NOARGS { int netbsd32_fsync(int fd); } d233 1 a233 1 133 NOARGS { int netbsd32_fchdir(int fd); } d238 1 a238 1 138 NOARGS setfsuid16 { int linux32_sys_setfsuid(uid_t uid); } d249 1 a249 1 143 NOARGS { int netbsd32_flock(int fd, int how); } d255 2 a256 2 147 NOARGS { pid_t netbsd32_getsid(pid_t pid); } 148 STD { int linux32_sys_fdatasync(int fd); } d260 1 a260 1 152 NOARGS { int netbsd32_mlockall(int flags); } d267 1 a267 1 157 STD { int linux32_sys_sched_getscheduler(pid_t pid); } d278 1 a278 1 164 STD { int linux32_sys_setresuid16(uid_t ruid, uid_t euid, \ d286 1 a286 1 170 STD { int linux32_sys_setresgid16(gid_t rgid, gid_t egid, \ d336 2 a337 2 203 NOARGS { int netbsd32_setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int netbsd32_setregid(gid_t rgid, gid_t egid); } d342 1 a342 1 207 NOARGS { int netbsd32___posix_fchown(int fd, uid_t uid, gid_t gid); } d351 3 a353 3 213 NOARGS { int netbsd32_setuid(uid_t uid); } 214 NOARGS { int netbsd32_setgid(gid_t gid); } 215 STD { int linux32_sys_setfsuid(uid_t uid); } d393 1 a393 1 252 STD { int linux32_sys_exit_group(int error_code); } @ 1.2.16.8 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.7 2007/12/07 17:28:41 yamt Exp $ d176 1 a176 1 85 NOARGS { int netbsd32_readlink(const netbsd32_charp name, \ @ 1.2.16.9 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.8 2008/01/21 09:41:33 yamt Exp $ d89 1 a89 1 linux32_uid16_t uid, linux32_gid16_t gid); } d151 2 a152 4 70 STD { int linux32_sys_setreuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid); } 71 STD { int linux32_sys_setregid16(linux32_gid16_t rgid, \ linux32_gid16_t egid); } d168 1 a168 1 linux32_gid16p_t gidset); } d170 1 a170 1 linux32_gid16p_t gidset); } d182 1 a182 2 89 STD { int linux32_sys_readdir(int fd, netbsd32_voidp dent, \ unsigned int count); } d190 1 a190 2 95 STD { int linux32_sys_fchown16(int fd, linux32_uid16_t uid, \ linux32_gid16_t gid); } d207 1 a207 1 109 STD { int linux32_sys_olduname(linux32_oldutsnamep_t up); } d224 1 a224 1 125 STD { int linux32_sys_mprotect(netbsd32_voidp start, \ d232 1 a232 1 132 NOARGS { int netbsd32_getpgid(pid_t pid); } d239 1 a239 1 139 NOARGS setfsgid16 { int linux32_sys_setfsgid(gid_t gid); } d278 3 a280 4 164 STD { int linux32_sys_setresuid16(linux32_uid16_t ruid, \ linux32_uid16_t euid, linux32_uid16_t suid); } 165 STD { int linux32_sys_getresuid16(linux32_uid16p_t ruid, \ linux32_uid16p_t euid, linux32_uid16p_t suid); } d284 1 a284 1 int timeout); } d286 3 a288 4 170 STD { int linux32_sys_setresgid16(linux32_gid16_t rgid, \ linux32_gid16_t egid, linux32_gid16_t sgid); } 171 STD { int linux32_sys_getresgid16(linux32_gid16p_t rgid, \ linux32_gid16p_t egid, linux32_gid16p_t sgid); } d307 1 a307 1 linux32_uid16_t uid, linux32_gid16_t gid); } d354 1 a354 1 216 STD { int linux32_sys_setfsgid(gid_t gid); } @ 1.2.16.10 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.9 2008/02/04 09:23:09 yamt Exp $ d310 2 a311 4 180 STD { int linux32_sys_pread(int fd, char *buf, \ netbsd32_size_t nbyte, int32_t offset); } 181 STD { int linux32_sys_pwrite(int fd, char *buf, \ netbsd32_size_t nbyte, int32_t offset); } @ 1.2.16.11 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.10 2008/02/11 14:59:33 yamt Exp $ d369 1 a369 4 ; fcntl64() - Exactly the same as fcntl() #define linux32_sys_fcntl64 linux32_sys_fcntl #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 221 NOARGS { int linux32_sys_fcntl64(int fd, \ @ 1.2.16.12 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.16.11 2008/02/27 08:36:30 yamt Exp $ d262 2 a263 4 150 NOARGS { int netbsd32_mlock(netbsd32_voidp addr, \ netbsd32_size_t len); } 151 NOARGS { int netbsd32_munlock(netbsd32_voidp addr, \ netbsd32_size_t len); } d310 4 a313 6 180 STD { netbsd32_ssize_t linux32_sys_pread(int fd, \ netbsd32_voidp buf, netbsd32_size_t nbyte, \ linux32_off_t offset); } 181 STD { netbsd32_ssize_t linux32_sys_pwrite(int fd, \ const netbsd32_voidp buf, netbsd32_size_t nbyte, \ linux32_off_t offset); } @ 1.2.14.1 log @Merge from HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.3 2006/06/25 16:15:39 manu Exp $ d95 1 a95 1 20 STD { pid_t linux_sys_getpid(void); } d146 1 a146 1 64 STD { pid_t linux_sys_getppid(void); } d191 2 a192 2 96 STD { int linux32_sys_getpriority(int which, int who); } 97 STD { int linux32_sys_setpriority(int which, int who, int prio); } d355 1 a355 1 224 STD { pid_t linux_sys_gettid(void); } @ 1.2.4.1 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2 2006/02/15 15:23:18 manu Exp $ d95 1 a95 1 20 STD { pid_t linux_sys_getpid(void); } d146 1 a146 1 64 STD { pid_t linux_sys_getppid(void); } d191 2 a192 2 96 STD { int linux32_sys_getpriority(int which, int who); } 97 STD { int linux32_sys_setpriority(int which, int who, int prio); } d355 1 a355 1 224 STD { pid_t linux_sys_gettid(void); } @ 1.2.4.2 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.4.1 2006/06/26 12:46:18 yamt Exp $ d214 1 a214 1 116 STD { int linux32_sys_sysinfo(linux32_sysinfop_t arg); } d255 1 a255 1 148 NOARGS { int linux_sys_fdatasync(int fd); } d262 1 a262 2 155 STD { int linux32_sys_sched_getparam(pid_t pid, \ linux32_sched_paramp_t sp); } d265 1 a265 1 157 NOARGS { int linux_sys_sched_getscheduler(pid_t pid); } d273 1 a273 3 163 STD { int linux32_sys_mremap(netbsd32_voidp old_address, \ netbsd32_size_t old_size , netbsd32_size_t new_size, \ netbsd32_u_long flags); } d276 1 a276 1 165 UNIMPL getresuid16 d314 1 a314 3 192 STD { linux32_off_t linux32_sys_mmap2(netbsd32_u_long addr, \ netbsd32_size_t len, int prot, int flags, int fd, \ linux32_off_t offset); } d335 1 a335 1 208 STD { int linux32_sys_setresuid(uid_t ruid, uid_t euid, \ d338 1 a338 1 210 STD { int linux32_sys_setresgid(gid_t rgid, gid_t egid, \ d348 1 a348 2 219 NOARGS { int netbsd32_madvise(netbsd32_voidp addr, \ netbsd32_size_t len, int behav); } @ 1.1 log @Add initial (but unfinished) COMPAT_LINUX32 for amd64. This is good enough so that the i386 license manager part of amd64 version of Fluent works. While I'm here, add SysV IPC to COMPAT_LINUX/amd64 @ text @d1 1 a1 1 $NetBSD$ d119 1 a119 1 41 NOARGS { int sys_dup(u_int fd); } d145 1 a145 1 63 NOARGS { int sys_dup2(u_int from, u_int to); } d303 2 a304 1 183 UNIMPL getcwd d330 4 a333 2 205 UNIMPL getgroups 206 UNIMPL setgroups @