head 1.41; access; symbols perseant-exfatfs-base-20250801:1.41 perseant-exfatfs-base-20240630:1.41 perseant-exfatfs:1.41.0.36 perseant-exfatfs-base:1.41 bouyer-sunxi-drm:1.41.0.34 bouyer-sunxi-drm-base:1.41 cjep_sun2x:1.41.0.32 cjep_sun2x-base:1.41 cjep_staticlib_x-base1:1.41 cjep_staticlib_x:1.41.0.30 cjep_staticlib_x-base:1.41 thorpej-futex-base:1.41 bouyer-xenpvh-base2:1.41 phil-wifi-20200421:1.41 bouyer-xenpvh-base1:1.41 phil-wifi-20200411:1.41 bouyer-xenpvh:1.41.0.28 bouyer-xenpvh-base:1.41 phil-wifi-20200406:1.41 ad-namecache-base3:1.41 ad-namecache-base2:1.41 ad-namecache-base1:1.41 ad-namecache:1.41.0.26 ad-namecache-base:1.41 isaki-audio2:1.41.0.24 isaki-audio2-base:1.41 pgoyette-compat-merge-20190127:1.41 pgoyette-compat-20190127:1.41 pgoyette-compat-20190118:1.41 pgoyette-compat-1226:1.41 pgoyette-compat-1126:1.41 pgoyette-compat-1020:1.41 pgoyette-compat-0930:1.41 pgoyette-compat-0906:1.41 pgoyette-compat-0728:1.41 pgoyette-compat-0625:1.41 pgoyette-compat-0521:1.41 pgoyette-compat-0502:1.41 pgoyette-compat-0422:1.41 pgoyette-compat-0415:1.41 pgoyette-compat-0407:1.41 pgoyette-compat-0330:1.41 pgoyette-compat-0322:1.41 pgoyette-compat-0315:1.41 pgoyette-compat:1.41.0.22 pgoyette-compat-base:1.41 perseant-stdc-iso10646:1.41.0.20 perseant-stdc-iso10646-base:1.41 prg-localcount2-base3:1.41 prg-localcount2-base2:1.41 prg-localcount2-base1:1.41 prg-localcount2:1.41.0.18 prg-localcount2-base:1.41 pgoyette-localcount-20170426:1.41 bouyer-socketcan-base1:1.41 pgoyette-localcount-20170320:1.41 bouyer-socketcan:1.41.0.16 bouyer-socketcan-base:1.41 pgoyette-localcount-20170107:1.41 pgoyette-localcount-20161104:1.41 localcount-20160914:1.41 pgoyette-localcount-20160806:1.41 pgoyette-localcount-20160726:1.41 pgoyette-localcount:1.41.0.14 pgoyette-localcount-base:1.41 netbsd-5-2-3-RELEASE:1.36 netbsd-5-1-5-RELEASE:1.36 yamt-pagecache-base9:1.41 yamt-pagecache-tag8:1.41 tls-earlyentropy:1.41.0.12 tls-earlyentropy-base:1.41 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.41 riastradh-drm2-base3:1.41 netbsd-5-2-2-RELEASE:1.36 netbsd-5-1-4-RELEASE:1.36 netbsd-5-2-1-RELEASE:1.36 netbsd-5-1-3-RELEASE:1.36 rmind-smpnet-nbase:1.41 rmind-smpnet:1.41.0.8 rmind-smpnet-base:1.41 agc-symver:1.41.0.10 agc-symver-base:1.41 tls-maxphys-base:1.41 yamt-pagecache-base8:1.41 netbsd-5-2:1.36.0.24 yamt-pagecache-base7:1.41 netbsd-5-2-RELEASE:1.36 netbsd-5-2-RC1:1.36 yamt-pagecache-base6:1.41 yamt-pagecache-base5:1.41 yamt-pagecache-base4:1.41 netbsd-5-1-2-RELEASE:1.36 netbsd-5-1-1-RELEASE:1.36 jmcneill-usbmp:1.41.0.6 jmcneill-usbmp-base:1.41 jmcneill-audiomp3:1.41.0.4 jmcneill-audiomp3-base:1.41 yamt-pagecache-base3:1.41 yamt-pagecache-base2:1.41 yamt-pagecache:1.41.0.2 yamt-pagecache-base:1.41 rmind-uvmplock-nbase:1.41 bouyer-quota2-nbase:1.40 bouyer-quota2:1.40.0.6 bouyer-quota2-base:1.40 jruoho-x86intr:1.40.0.4 jruoho-x86intr-base:1.40 matt-mips64-premerge-20101231:1.40 matt-nb5-mips64-premerge-20101231:1.36 matt-nb5-pq3:1.36.0.22 matt-nb5-pq3-base:1.36 netbsd-5-1:1.36.0.20 netbsd-5-1-RELEASE:1.36 uebayasi-xip-base4:1.40 uebayasi-xip-base3:1.40 yamt-nfs-mp-base11:1.40 netbsd-5-1-RC4:1.36 matt-nb5-mips64-k15:1.36 uebayasi-xip-base2:1.40 yamt-nfs-mp-base10:1.40 netbsd-5-1-RC3:1.36 netbsd-5-1-RC2:1.36 uebayasi-xip-base1:1.40 netbsd-5-1-RC1:1.36 rmind-uvmplock:1.40.0.2 rmind-uvmplock-base:1.41 yamt-nfs-mp-base9:1.40 uebayasi-xip:1.38.0.4 uebayasi-xip-base:1.38 netbsd-5-0-2-RELEASE:1.36 matt-nb5-mips64-premerge-20091211:1.36 matt-premerge-20091211:1.38 yamt-nfs-mp-base8:1.38 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.36 matt-nb4-mips64-k7-u2a-k9b:1.36 matt-nb5-mips64-u1-k1-k5:1.36 yamt-nfs-mp-base7:1.38 matt-nb5-mips64:1.36.0.18 netbsd-5-0-1-RELEASE:1.36 jymxensuspend-base:1.38 yamt-nfs-mp-base6:1.38 yamt-nfs-mp-base5:1.38 yamt-nfs-mp-base4:1.38 jym-xensuspend-nbase:1.38 yamt-nfs-mp-base3:1.38 nick-hppapmap-base4:1.38 nick-hppapmap-base3:1.38 netbsd-5-0:1.36.0.16 netbsd-5-0-RELEASE:1.36 netbsd-5-0-RC4:1.36 netbsd-5-0-RC3:1.36 nick-hppapmap-base2:1.38 netbsd-5-0-RC2:1.36 jym-xensuspend:1.38.0.2 jym-xensuspend-base:1.38 netbsd-5-0-RC1:1.36 haad-dm-base2:1.36 haad-nbase2:1.36 ad-audiomp2:1.36.0.14 ad-audiomp2-base:1.36 christos-time_t-nbase:1.36 netbsd-5:1.36.0.12 netbsd-5-base:1.36 nick-hppapmap:1.36.0.10 nick-hppapmap-base:1.38 matt-mips64-base2:1.36 matt-mips64:1.32.0.24 haad-dm-base1:1.36 wrstuden-revivesa-base-4:1.36 netbsd-4-0-1-RELEASE:1.30 wrstuden-revivesa-base-3:1.36 wrstuden-revivesa-base-2:1.36 wrstuden-fixsa-newbase:1.30 nick-csl-alignment-base5:1.32 haad-dm:1.36.0.8 haad-dm-base:1.36 wrstuden-revivesa-base-1:1.36 simonb-wapbl-nbase:1.36 yamt-pf42-base4:1.36 simonb-wapbl:1.36.0.6 simonb-wapbl-base:1.36 yamt-pf42-base3:1.36 hpcarm-cleanup-nbase:1.36 yamt-pf42-baseX:1.35 yamt-pf42-base2:1.36 yamt-nfs-mp-base2:1.36 wrstuden-revivesa:1.36.0.4 wrstuden-revivesa-base:1.36 yamt-nfs-mp:1.36.0.2 yamt-nfs-mp-base:1.36 yamt-pf42:1.35.0.10 yamt-pf42-base:1.35 christos-time_t:1.35.0.8 christos-time_t-base:1.36 ad-socklock-base1:1.35 yamt-lazymbuf-base15:1.35 yamt-lazymbuf-base14:1.35 keiichi-mipv6-nbase:1.35 mjf-devfs2:1.35.0.6 mjf-devfs2-base:1.38 nick-net80211-sync:1.35.0.4 nick-net80211-sync-base:1.35 keiichi-mipv6:1.35.0.2 keiichi-mipv6-base:1.35 bouyer-xeni386-merge1:1.34.6.1 matt-armv6-prevmlocking:1.32 wrstuden-fixsa-base-1:1.30 vmlocking2-base3:1.35 netbsd-4-0:1.30.0.30 netbsd-4-0-RELEASE:1.30 bouyer-xeni386-nbase:1.35 yamt-kmem-base3:1.35 cube-autoconf:1.34.0.8 cube-autoconf-base:1.34 yamt-kmem-base2:1.34 bouyer-xeni386:1.34.0.6 bouyer-xeni386-base:1.35 yamt-kmem:1.34.0.4 yamt-kmem-base:1.34 vmlocking2-base2:1.34 reinoud-bufcleanup-nbase:1.34 vmlocking2:1.34.0.2 vmlocking2-base1:1.34 netbsd-4-0-RC5:1.30 matt-nb4-arm:1.30.0.28 matt-nb4-arm-base:1.30 matt-armv6-nbase:1.35 jmcneill-base:1.32 netbsd-4-0-RC4:1.30 mjf-devfs:1.32.0.22 mjf-devfs-base:1.35 bouyer-xenamd64-base2:1.34 vmlocking-nbase:1.34 yamt-x86pmap-base4:1.32 bouyer-xenamd64:1.32.0.20 bouyer-xenamd64-base:1.34 netbsd-4-0-RC3:1.30 yamt-x86pmap-base3:1.32 yamt-x86pmap-base2:1.32 netbsd-4-0-RC2:1.30 yamt-x86pmap:1.32.0.18 yamt-x86pmap-base:1.32 netbsd-4-0-RC1:1.30 matt-armv6:1.32.0.16 matt-armv6-base:1.35 matt-mips64-base:1.32 jmcneill-pm:1.32.0.14 jmcneill-pm-base:1.34 hpcarm-cleanup:1.32.0.12 hpcarm-cleanup-base:1.35 nick-csl-alignment:1.32.0.10 nick-csl-alignment-base:1.32 netbsd-3-1-1-RELEASE:1.28 netbsd-3-0-3-RELEASE:1.28 yamt-idlelwp-base8:1.32 wrstuden-fixsa:1.30.0.26 wrstuden-fixsa-base:1.30 thorpej-atomic:1.32.0.8 thorpej-atomic-base:1.32 reinoud-bufcleanup:1.32.0.6 reinoud-bufcleanup-base:1.34 mjf-ufs-trans:1.32.0.4 mjf-ufs-trans-base:1.32 vmlocking:1.32.0.2 vmlocking-base:1.32 ad-audiomp:1.31.0.4 ad-audiomp-base:1.31 yamt-idlelwp:1.31.0.2 post-newlock2-merge:1.31 newlock2-nbase:1.30 yamt-splraiseipl-base5:1.30 yamt-splraiseipl-base4:1.30 yamt-splraiseipl-base3:1.30 abandoned-netbsd-4-base:1.30 abandoned-netbsd-4:1.30.0.18 netbsd-3-1:1.28.0.8 netbsd-3-1-RELEASE:1.28 netbsd-3-0-2-RELEASE:1.28 yamt-splraiseipl-base2:1.30 netbsd-3-1-RC4:1.28 yamt-splraiseipl:1.30.0.22 yamt-splraiseipl-base:1.30 netbsd-3-1-RC3:1.28 yamt-pdpolicy-base9:1.30 newlock2:1.30.0.20 newlock2-base:1.30 yamt-pdpolicy-base8:1.30 netbsd-3-1-RC2:1.28 netbsd-3-1-RC1:1.28 yamt-pdpolicy-base7:1.30 netbsd-4:1.30.0.24 netbsd-4-base:1.30 yamt-pdpolicy-base6:1.30 chap-midi-nbase:1.30 netbsd-3-0-1-RELEASE:1.28 gdamore-uart:1.30.0.16 gdamore-uart-base:1.30 simonb-timcounters-final:1.30 yamt-pdpolicy-base5:1.30 chap-midi:1.30.0.14 chap-midi-base:1.30 yamt-pdpolicy-base4:1.30 yamt-pdpolicy-base3:1.30 peter-altq-base:1.30 peter-altq:1.30.0.12 yamt-pdpolicy-base2:1.30 elad-kernelauth-base:1.30 elad-kernelauth:1.30.0.10 yamt-pdpolicy:1.30.0.8 yamt-pdpolicy-base:1.30 yamt-uio_vmspace-base5:1.30 simonb-timecounters:1.30.0.6 simonb-timecounters-base:1.30 rpaulo-netinet-merge-pcb:1.30.0.4 rpaulo-netinet-merge-pcb-base:1.30 yamt-uio_vmspace:1.30.0.2 netbsd-3-0:1.28.0.6 netbsd-3-0-RELEASE:1.28 netbsd-3-0-RC6:1.28 yamt-readahead-base3:1.29 netbsd-3-0-RC5:1.28 netbsd-3-0-RC4:1.28 netbsd-3-0-RC3:1.28 yamt-readahead-base2:1.29 netbsd-3-0-RC2:1.28 yamt-readahead-pervnode:1.29 yamt-readahead-perfile:1.29 yamt-readahead:1.29.0.6 yamt-readahead-base:1.29 netbsd-3-0-RC1:1.28 yamt-vop-base3:1.29 netbsd-2-0-3-RELEASE:1.21 netbsd-2-1:1.21.0.6 yamt-vop-base2:1.29 thorpej-vnode-attr:1.29.0.4 thorpej-vnode-attr-base:1.29 netbsd-2-1-RELEASE:1.21 yamt-vop:1.29.0.2 yamt-vop-base:1.29 netbsd-2-1-RC6:1.21 netbsd-2-1-RC5:1.21 netbsd-2-1-RC4:1.21 netbsd-2-1-RC3:1.21 netbsd-2-1-RC2:1.21 netbsd-2-1-RC1:1.21 yamt-lazymbuf:1.28.0.4 yamt-km-base4:1.28 netbsd-2-0-2-RELEASE:1.21 yamt-km-base3:1.28 netbsd-3:1.28.0.2 netbsd-3-base:1.28 yamt-km-base2:1.27 yamt-km:1.27.0.6 yamt-km-base:1.27 kent-audio2:1.27.0.4 kent-audio2-base:1.28 netbsd-2-0-1-RELEASE:1.21 kent-audio1-beforemerge:1.27 netbsd-2:1.21.0.4 netbsd-2-base:1.21 kent-audio1:1.27.0.2 kent-audio1-base:1.27 netbsd-2-0-RELEASE:1.21 netbsd-2-0-RC5:1.21 netbsd-2-0-RC4:1.21 netbsd-2-0-RC3:1.21 netbsd-2-0-RC2:1.21 netbsd-2-0-RC1:1.21 netbsd-2-0:1.21.0.2 netbsd-2-0-base:1.21 ktrace-lwp:1.13.0.2 ktrace-lwp-base:1.29 nathanw_sa_end:1.2.2.3 nathanw_sa_before_merge:1.10 fvdl_fs64_base:1.10 gmcgarry_ctxsw:1.8.0.4 gmcgarry_ctxsw_base:1.8 gmcgarry_ucred:1.8.0.2 gmcgarry_ucred_base:1.8 nathanw_sa:1.2.0.2 nathanw_sa_base:1.10; locks; strict; comment @# @; 1.41 date 2011.04.26.15.51.27; author joerg; state dead; branches; next 1.40; 1.40 date 2010.03.02.21.07.21; author pooka; state Exp; branches 1.40.2.1 1.40.4.1; next 1.39; 1.39 date 2010.03.02.16.00.03; author pooka; state Exp; branches; next 1.38; 1.38 date 2009.01.13.22.27.43; author pooka; state Exp; branches 1.38.4.1; next 1.37; 1.37 date 2009.01.11.02.45.47; author christos; state Exp; branches; next 1.36; 1.36 date 2008.04.23.14.07.49; author ad; state Exp; branches 1.36.2.1 1.36.4.1 1.36.10.1; next 1.35; 1.35 date 2007.12.12.21.24.36; author dsl; state Exp; branches 1.35.6.1 1.35.8.1 1.35.10.1; next 1.34; 1.34 date 2007.11.10.13.23.18; author dsl; state Exp; branches 1.34.2.1 1.34.4.1 1.34.6.1; next 1.33; 1.33 date 2007.11.09.15.05.33; author dsl; state Exp; branches; next 1.32; 1.32 date 2007.03.04.06.01.14; author christos; state Exp; branches 1.32.14.1 1.32.16.1 1.32.20.1 1.32.22.1; next 1.31; 1.31 date 2007.02.09.21.55.16; author ad; state Exp; branches 1.31.2.1; next 1.30; 1.30 date 2005.12.11.12.19.56; author christos; state Exp; branches 1.30.20.1; next 1.29; 1.29 date 2005.09.13.01.42.32; author christos; state Exp; branches; next 1.28; 1.28 date 2005.02.26.23.10.18; author perry; state Exp; branches 1.28.4.1; next 1.27; 1.27 date 2004.08.02.18.45.53; author manu; state Exp; branches 1.27.4.1 1.27.6.1; next 1.26; 1.26 date 2004.07.28.22.24.06; author manu; state Exp; branches; next 1.25; 1.25 date 2004.07.28.21.30.00; author manu; state Exp; branches; next 1.24; 1.24 date 2004.07.21.23.43.25; author manu; state Exp; branches; next 1.23; 1.23 date 2004.07.07.22.03.38; author christos; state Exp; branches; next 1.22; 1.22 date 2004.07.04.21.03.55; author manu; state Exp; branches; next 1.21; 1.21 date 2003.12.31.02.55.04; author manu; state Exp; branches; next 1.20; 1.20 date 2003.12.16.16.13.59; author manu; state Exp; branches; next 1.19; 1.19 date 2003.12.04.23.59.50; author manu; state Exp; branches; next 1.18; 1.18 date 2003.11.20.07.12.35; author manu; state Exp; branches; next 1.17; 1.17 date 2003.09.06.11.50.02; author manu; state Exp; branches; next 1.16; 1.16 date 2003.09.06.11.18.03; author manu; state Exp; branches; next 1.15; 1.15 date 2003.09.03.07.28.40; author manu; state Exp; branches; next 1.14; 1.14 date 2003.09.02.21.31.04; author manu; state Exp; branches; next 1.13; 1.13 date 2003.06.05.12.26.28; author manu; state Exp; branches 1.13.2.1; next 1.12; 1.12 date 2003.04.20.00.09.42; author manu; state Exp; branches; next 1.11; 1.11 date 2003.01.22.17.47.36; author christos; state Exp; branches; next 1.10; 1.10 date 2002.12.26.14.41.06; author manu; state Exp; branches; next 1.9; 1.9 date 2002.12.24.12.15.46; author manu; state Exp; branches; next 1.8; 1.8 date 2002.12.08.21.53.18; author manu; state Exp; branches; next 1.7; 1.7 date 2002.12.08.00.50.28; author manu; state Exp; branches; next 1.6; 1.6 date 2002.11.25.22.25.14; author manu; state Exp; branches; next 1.5; 1.5 date 2002.11.23.02.18.56; author manu; state Exp; branches; next 1.4; 1.4 date 2002.11.17.02.46.26; author manu; state Exp; branches; next 1.3; 1.3 date 2002.11.16.19.59.20; author manu; state Exp; branches; next 1.2; 1.2 date 2002.11.14.21.47.15; author manu; state Exp; branches 1.2.2.1; next 1.1; 1.1 date 2002.11.12.22.04.09; author manu; state Exp; branches; next ; 1.40.2.1 date 2011.05.31.03.04.26; author rmind; state dead; branches; next ; 1.40.4.1 date 2011.06.06.09.07.18; author jruoho; state dead; branches; next ; 1.38.4.1 date 2010.04.30.14.42.57; author uebayasi; state Exp; branches; next ; 1.36.2.1 date 2009.05.04.08.12.18; author yamt; state Exp; branches; next 1.36.2.2; 1.36.2.2 date 2010.03.11.15.03.13; author yamt; state Exp; branches; next ; 1.36.4.1 date 2008.05.10.23.48.49; author wrstuden; state Exp; branches; next 1.36.4.2; 1.36.4.2 date 2008.05.14.01.35.02; author wrstuden; state Exp; branches; next ; 1.36.10.1 date 2009.01.19.13.17.18; author skrll; state Exp; branches; next ; 1.35.6.1 date 2008.06.02.13.22.57; author mjf; state Exp; branches; next 1.35.6.2; 1.35.6.2 date 2009.01.17.13.28.42; author mjf; state Exp; branches; next ; 1.35.8.1 date 2008.03.29.20.46.58; author christos; state Exp; branches; next 1.35.8.2; 1.35.8.2 date 2008.11.01.21.22.25; author christos; state Exp; branches; next ; 1.35.10.1 date 2008.05.18.12.33.11; author yamt; state Exp; branches; next ; 1.34.2.1 date 2007.12.26.19.48.52; author ad; state Exp; branches; next ; 1.34.4.1 date 2007.12.13.05.05.27; author yamt; state Exp; branches; next ; 1.34.6.1 date 2007.12.13.21.55.08; author bouyer; state Exp; branches; next ; 1.32.14.1 date 2007.11.11.16.47.12; author joerg; state Exp; branches; next ; 1.32.16.1 date 2008.01.09.01.50.40; author matt; state Exp; branches; next ; 1.32.20.1 date 2007.11.13.16.00.35; author bouyer; state Exp; branches; next ; 1.32.22.1 date 2007.11.19.00.47.14; author mjf; state Exp; branches; next 1.32.22.2; 1.32.22.2 date 2007.12.27.00.43.40; author mjf; state Exp; branches; next ; 1.31.2.1 date 2007.03.12.05.51.57; author rmind; state Exp; branches; next ; 1.30.20.1 date 2007.01.30.13.51.31; author ad; state Exp; branches; next ; 1.28.4.1 date 2006.06.21.14.58.32; author yamt; state Exp; branches; next 1.28.4.2; 1.28.4.2 date 2007.02.26.09.09.04; author yamt; state Exp; branches; next 1.28.4.3; 1.28.4.3 date 2007.09.03.14.31.57; author yamt; state Exp; branches; next 1.28.4.4; 1.28.4.4 date 2007.11.15.11.43.50; author yamt; state Exp; branches; next 1.28.4.5; 1.28.4.5 date 2008.01.21.09.40.51; author yamt; state Exp; branches; next ; 1.27.4.1 date 2005.04.29.11.28.31; author kent; state Exp; branches; next ; 1.27.6.1 date 2005.03.19.08.33.29; author yamt; state Exp; branches; next ; 1.13.2.1 date 2004.08.03.10.43.30; author skrll; state Exp; branches; next 1.13.2.2; 1.13.2.2 date 2005.03.04.16.39.23; author skrll; state Exp; branches; next 1.13.2.3; 1.13.2.3 date 2005.11.10.14.00.41; author skrll; state Exp; branches; next ; 1.2.2.1 date 2002.11.14.21.47.15; author thorpej; state dead; branches; next 1.2.2.2; 1.2.2.2 date 2002.12.11.06.37.08; author thorpej; state Exp; branches; next 1.2.2.3; 1.2.2.3 date 2002.12.29.19.43.50; author thorpej; state Exp; branches; next ; desc @@ 1.41 log @Remove Darwin, MACH and Mach-O support. @ text @ $NetBSD: syscalls.master,v 1.40 2010/03/02 21:07:21 pooka Exp $ ; @@(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; NetBSD system call name/number "master" file. ; (See syscalls.conf to see what it is processed into.) ; ; Fields: number type [type-dependent ...] ; number system call number, must be in order ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of ; the compatibility options defined in syscalls.conf. ; ; 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 ; NOARGS included, but don't define the syscall args structure ; ; The compat options are defined in the syscalls.conf file, and the ; compat option name is prefixed to the syscall name. Other than ; that, they're like NODEF (for 'compat' options), or STD (for ; 'libcompat' options). ; ; The type-dependent arguments are as follows: ; For STD, NODEF, NOARGS, and compat syscalls: ; { pseudo-proto } [alias] ; For other syscalls: ; [comment] ; ; #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. ; ; NB: A lot of system calls are used from FreeBSD emulation, because theses ; system calls are just native NetBSD plus a check in /emul/. #include "opt_ktrace.h" #include "opt_nfsserver.h" #include "opt_ntp.h" #include "opt_compat_netbsd.h" #include "opt_sysv.h" #include "opt_compat_43.h" #include #include #include #include #include #include #include #include #include #include #include #include #include %% 0 NOARGS INDIR { int|sys||syscall(int code, \ ... register_t args[DARWIN_SYS_MAXSYSARGS]); } 1 NOARGS { void|sys||exit(int rval); } 2 STD { int|darwin_sys||fork(void); } 3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ size_t nbyte); } 5 NOARGS { int|sys||open(const char *path, \ int flags, ... mode_t mode); } 6 NOARGS { int|sys||close(int fd); } 7 NOARGS { int|compat_50_sys||wait4(int pid, int *status, \ int options, struct rusage50 *rusage); } 8 NOARGS { int|compat_43_sys||creat(const char *path, \ mode_t mode); } ocreat 9 NOARGS { int|sys||link(const char *path, \ const char *link); } 10 NOARGS { int|sys||unlink(const char *path); } 11 UNIMPL execv 12 NOARGS { int|sys||chdir(const char *path); } 13 NOARGS { int|sys||fchdir(int fd); } 14 STD { int|darwin_sys||mknod(const char *path, \ mode_t mode, darwin_dev_t dev); } 15 NOARGS { int|sys||chmod(const char *path, mode_t mode); } 16 NOARGS { int|sys||chown(const char *path, uid_t uid, \ gid_t gid); } 17 NOARGS { int|sys||obreak(char *nsize); } break 18 STD { int|darwin_sys||getfsstat(struct darwin_statfs *buf, \ long bufsize, int flags); } 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \ int whence); } olseek 20 STD { pid_t|darwin_sys||getpid(void); } 21 NOARGS { int|compat_40_sys||mount(const char *type, \ const char *path, int flags, void *data); } 22 NOARGS { int|sys||unmount(const char *path, int flags); } 23 NOARGS { int|sys||setuid(uid_t uid); } #ifdef COMPAT_43 24 NOARGS { uid_t|sys||getuid_with_euid(void); } getuid #else 24 NOARGS { uid_t|sys||getuid(void); } #endif 25 NOARGS { uid_t|sys||geteuid(void); } 26 STD { int|darwin_sys||ptrace(int req, pid_t pid, \ void *addr, int data); } 27 NOARGS { ssize_t|sys||recvmsg(int s, struct msghdr *msg, \ int flags); } 28 NOARGS { ssize_t|sys||sendmsg(int s, \ const struct msghdr *msg, int flags); } 29 STD { ssize_t|darwin_sys||recvfrom(int s, void *buf, \ size_t len, int flags, struct sockaddr *from, \ unsigned int *fromlenaddr); } 30 STD { int|darwin_sys||accept(int s, struct sockaddr *name, \ unsigned int *anamelen); } 31 STD { int|darwin_sys||getpeername(int fdes, \ struct sockaddr *asa, unsigned int *alen); } 32 STD { int|darwin_sys||getsockname(int fdes, \ struct sockaddr *asa, unsigned int *alen); } 33 NOARGS { int|sys||access(const char *path, \ int flags); } 34 NOARGS { int|sys||chflags(const char *path, \ u_long flags); } 35 NOARGS { int|sys||fchflags(int fd, u_long flags); } 36 NOARGS { void|sys||sync(void); } 37 NOARGS { int|sys||kill(int pid, int signum); } 38 NOARGS { int|compat_43_sys||stat(const char *path, \ struct stat43 *ub); } stat43 39 NOARGS { pid_t|sys||getppid(void); } 40 NOARGS { int|compat_43_sys||lstat(const char *path, \ struct stat43 *ub); } lstat43 41 NOARGS { int|sys||dup(int fd); } 42 NOARGS { int|sys||pipe(void); } 43 NOARGS { gid_t|sys||getegid(void); } 44 NOARGS { int|sys||profil(void *samples, size_t size, \ u_long offset, u_int scale); } #if defined(KTRACE) || !defined(_KERNEL) 45 NOARGS { int|sys||ktrace(const char *fname, int ops, \ int facs, int pid); } #else 45 EXCL ktrace #endif 46 STD { int|darwin_sys||sigaction(int signum, \ struct darwin___sigaction *nsa, \ struct sigaction13 *osa); } #ifdef COMPAT_43 47 NOARGS { gid_t|sys||getgid_with_egid(void); } getgid #else 47 NOARGS { gid_t|sys||getgid(void); } #endif 48 STD { int|darwin_sys||sigprocmask(int how, \ sigset13_t *set, sigset13_t *oset); } 49 NOARGS { int|sys||__getlogin(char *namebuf, size_t namelen); } 50 NOARGS { int|sys||__setlogin(const char *namebuf); } 51 NOARGS { int|sys||acct(const char *path); } 52 NOARGS { int|compat_13_sys||sigpending(void); } sigpending13 53 NOARGS { int|compat_13_sys||sigaltstack( \ const struct sigaltstack13 *nss, \ struct sigaltstack13 *oss); } sigaltstack13 54 STD { int|darwin_sys||ioctl(int fd, \ u_long com, ... void *data); } 55 NOARGS { int|sys||reboot(int opt); } oreboot 56 NOARGS { int|sys||revoke(const char *path); } 57 NOARGS { int|sys||symlink(const char *path, \ const char *link); } 58 NOARGS { int|sys||readlink(const char *path, \ char *buf, size_t count); } 59 NOARGS { int|sys||execve(const char *path, \ char * const *argp, char * const *envp); } 60 NOARGS { mode_t|sys||umask(mode_t newmask); } 61 NOARGS { int|sys||chroot(const char *path); } 62 NOARGS { int|compat_43_sys||fstat(int fd, \ struct stat43 *sb); } fstat43 63 UNIMPL 64 NOARGS { int|compat_43_sys||getpagesize(void); } ogetpagesize 65 NOARGS { int|compat_12_sys||msync(void *addr, size_t len); } 66 STD { int|darwin_sys||vfork(void); } 67 OBSOL vread 68 OBSOL vwrite 69 NOARGS { int|sys||sbrk(intptr_t incr); } 70 NOARGS { int|sys||sstk(int incr); } 71 NOARGS { int|sys||mmap(void *addr, size_t len, int prot, \ int flags, int fd, long pos); } ommap 72 NOARGS { int|sys||ovadvise(int anom); } vadvise 73 NOARGS { int|sys||munmap(void *addr, size_t len); } 74 NOARGS { int|sys||mprotect(void *addr, size_t len, \ int prot); } 75 NOARGS { int|sys||madvise(void *addr, size_t len, \ int behav); } 76 UNIMPL 77 UNIMPL 78 NOARGS { int|sys||mincore(void *addr, size_t len, \ char *vec); } 79 NOARGS { int|sys||getgroups(int gidsetsize, \ gid_t *gidset); } 80 NOARGS { int|sys||setgroups(int gidsetsize, \ const gid_t *gidset); } 81 NOARGS { int|sys||getpgrp(void); } 82 NOARGS { int|sys||setpgid(int pid, int pgid); } 83 NOARGS { int|compat_50_sys||setitimer(int which, \ const struct itimerval50 *itv, \ struct itimerval50 *oitv); } 84 NOARGS { int|compat_43_sys||wait(void); } owait 85 NOARGS { int|compat_12_sys||swapon(const char *name); } 86 NOARGS { int|compat_50_sys||getitimer(int which, \ struct itimerval50 *itv); } 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \ u_int len); } ogethostname 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \ u_int len); } osethostname 89 NOARGS { int|compat_43_sys||getdtablesize(void); } \ ogetdtablesize 90 NOARGS { int|sys||dup2(int from, int to); } 91 UNIMPL 92 NOARGS { int|sys||fcntl(int fd, int cmd, ... void *arg); } 93 NOARGS { int|compat_50_sys||select(int nd, fd_set *in, \ fd_set *ou, fd_set *ex, struct timeval50 *tv); } 94 UNIMPL 95 NOARGS { int|sys||fsync(int fd); } 96 NOARGS { int|sys||setpriority(int which, int who, int prio); } 97 STD { int|darwin_sys||socket(int domain, \ int type, int protocol); } 98 STD { int|darwin_sys||connect(int s, \ const struct sockaddr *name, \ unsigned int namelen); } 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \ int *anamelen); } oaccept 100 NOARGS { int|sys||getpriority(int which, int who); } 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \ int flags); } osend 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \ int flags); } orecv 103 STD { int|darwin_sys||sigreturn_x2(struct \ darwin_ucontext *uctx); } 104 STD { int|darwin_sys||bind(int s, \ const struct sockaddr *name, \ unsigned int namelen); } 105 NOARGS { int|sys||setsockopt(int s, int level, int name, \ const void *val, unsigned int valsize); } 106 NOARGS { int|sys||listen(int s, int backlog); } 107 UNIMPL 108 NOARGS { int|compat_43_sys||sigvec(int signum, \ struct sigvec *nsv, struct sigvec *osv); } osigvec 109 NOARGS { int|compat_43_sys||sigblock(int mask); } osigblock 110 NOARGS { int|compat_43_sys||sigsetmask(int mask); } osigsetmask 111 NOARGS { int|compat_13_sys||sigsuspend(int mask); } \ sigsuspend13 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \ struct sigstack *oss); } osigstack 113 NOARGS { int|compat_43_sys||recvmsg(int s, \ struct omsghdr *msg, int flags); } orecvmsg 114 NOARGS { int|compat_43_sys||sendmsg(int s, void *msg, \ int flags); } osendmsg 115 UNIMPL 116 NOARGS { int|compat_50_sys||gettimeofday(struct timeval50 *tp, \ struct timezone *tzp); } 117 NOARGS { int|compat_50_sys||getrusage(int who, \ struct rusage50 *rusage); } 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \ void *val, unsigned int *avalsize); } 119 UNIMPL 120 NOARGS { ssize_t|sys||readv(int fd, \ const struct iovec *iovp, int iovcnt); } 121 NOARGS { ssize_t|sys||writev(int fd, \ const struct iovec *iovp, int iovcnt); } 122 NOARGS { int|compat_50_sys||settimeofday( \ const struct timeval50 *tv, \ const struct timezone *tzp); } 123 NOARGS { int|sys||fchown(int fd, uid_t uid, gid_t gid); } 124 NOARGS { int|sys||fchmod(int fd, mode_t mode); } 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \ size_t len, int flags, void *from, \ int *fromlenaddr); } orecvfrom 126 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); } 127 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); } 128 NOARGS { int|sys||rename(const char *from, \ const char *to); } 129 NOARGS { int|compat_43_sys||truncate(const \ char *path, long length); } \ otruncate 130 NOARGS { int|compat_43_sys||ftruncate(int fd, \ long length); } oftruncate 131 NOARGS { int|sys||flock(int fd, int how); } 132 NOARGS { int|sys||mkfifo(const char *path, \ mode_t mode); } 133 STD { ssize_t|darwin_sys||sendto(int s, const void *buf, \ size_t len, int flags, const struct sockaddr *to, \ unsigned int tolen); } 134 NOARGS { int|sys||shutdown(int s, int how); } 135 NOARGS { int|sys||socketpair(int domain, int type, \ int protocol, int *rsv); } 136 NOARGS { int|sys||mkdir(const char *path, mode_t mode); } 137 NOARGS { int|sys||rmdir(const char *path); } 138 NOARGS { int|compat_50_sys||utimes(const char *path, \ const struct timeval50 *tptr); } 139 UNIMPL futimes 140 NOARGS { int|compat_50_sys||adjtime( \ const struct timeval50 *delta, \ struct timeval50 *olddelta); } 141 NOARGS { int|compat_43_sys||getpeername(int fdes, \ void *asa, int *alen); } ogetpeername 142 NOARGS { int32_t|compat_43_sys||gethostid(void); } ogethostid 143 UNIMPL 144 NOARGS { int|compat_43_sys||getrlimit(int which, \ struct orlimit *rlp); } ogetrlimit 145 NOARGS { int|compat_43_sys||setrlimit(int which, \ const struct orlimit *rlp); } osetrlimit 146 NOARGS { int|compat_43_sys||killpg(int pgid, int signum); } \ okillpg 147 NOARGS { int|sys||setsid(void); } 148 UNIMPL 149 UNIMPL 150 NOARGS { int|compat_43_sys||getsockname(int fdec, \ void *asa, int *alen); } ogetsockname 151 UNIMPL getpgid 152 UNIMPL setprivexec 153 UNIMPL pread 154 UNIMPL pwrite 155 EXCL nfssvc 156 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \ u_int count, long *basep); } ogetdirentries 157 STD { int|darwin_sys||statfs(const char *path, \ struct darwin_statfs *buf); } 158 STD { int|darwin_sys||fstatfs(int fd, \ struct darwin_statfs *buf); } 159 UNIMPL unmount 160 UNIMPL #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 161 NOARGS { int|compat_30_sys||getfh(const char *fname, \ fhandle_t *fhp); } #else 161 EXCL getfh #endif 162 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \ int len); } ogetdomainname 163 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \ int len); } osetdomainname 164 UNIMPL 165 UNIMPL quotactl 166 UNIMPL 167 UNIMPL mount 168 UNIMPL 169 UNIMPL 170 UNIMPL 171 UNIMPL wait3 172 UNIMPL 173 UNIMPL 174 UNIMPL 175 UNIMPL 176 UNIMPL add_profil 177 UNIMPL 178 UNIMPL 179 UNIMPL 180 STD { int|darwin_sys||kdebug_trace(int debugid, int arg1, \ int arg2, int arg3, int arg4, int arg5); } 181 NOARGS { int|sys||setgid(gid_t gid); } 182 NOARGS { int|sys||setegid(gid_t egid); } 183 NOARGS { int|sys||seteuid(uid_t euid); } 184 STD { int|darwin_sys||sigreturn(struct \ darwin_ucontext *uctx, int ucvers); } 185 UNIMPL 186 UNIMPL 187 UNIMPL 188 STD { int|darwin_sys||stat(const char *path, \ struct stat12 *ub); } stat12 189 STD { int|darwin_sys||fstat(int fd, \ struct stat12 *sb); } 190 STD { int|darwin_sys||lstat(const char *path, \ struct stat12 *ub); } lstat12 191 NOARGS { long|sys||pathconf(const char *path, \ int name); } 192 NOARGS { long|sys||fpathconf(int fd, int name); } 193 UNIMPL getfsstat 194 NOARGS { int|sys||getrlimit(int which, \ struct rlimit *rlp); } 195 NOARGS { int|sys||setrlimit(int which, \ const struct rlimit *rlp); } 196 NOARGS { int|compat_12_sys||getdirentries(int fd, char *buf, \ u_int count, long *basep); } 197 NOARGS { void *|sys||mmap(void *addr, size_t len, int prot, \ int flags, int fd, long pad, off_t pos); } 198 UNIMPL 199 STD { off_t|darwin_sys||lseek(int fd, long off1, \ long off2, int whence); } 200 NOARGS { int|sys||truncate(const char *path, \ int pad, off_t length); } 201 NOARGS { int|sys||ftruncate(int fd, int pad, off_t length); } 202 STD { int|darwin_sys||__sysctl(int *name, u_int namelen, \ void *oldp, size_t *oldlenp, void *newp, \ size_t newlen); } 203 NOARGS { int|sys||mlock(const void *addr, size_t len); } 204 NOARGS { int|sys||munlock(const void *addr, size_t len); } 205 NOARGS { int|sys||undelete(const char *path); } 206 UNIMPL atsocket 207 UNIMPL atgetmsg 208 UNIMPL atputmsg 209 UNIMPL atpsndreq 210 UNIMPL atpsndrsp 211 UNIMPL atpgetreq 212 UNIMPL atpgetrsp 213 UNIMPL 214 UNIMPL 215 UNIMPL 216 UNIMPL 217 UNIMPL 218 UNIMPL 219 UNIMPL 220 STD { int|darwin_sys||getattrlist(const char *path, \ struct darwin_attrlist *alist, void *attributes, \ size_t buflen, unsigned long options); } 221 UNIMPL setattrlist 222 UNIMPL getdirentriesattr 223 UNIMPL exchangedata 224 UNIMPL checkuseraccess 225 UNIMPL searchfs 226 UNIMPL delete 227 UNIMPL copyfile 228 UNIMPL 229 UNIMPL 230 UNIMPL 231 UNIMPL watchevent 232 UNIMPL waitevent 233 UNIMPL modwatch 234 UNIMPL 235 UNIMPL 236 UNIMPL 237 UNIMPL 238 UNIMPL 239 UNIMPL 240 UNIMPL 241 UNIMPL 242 UNIMPL fsctl 243 UNIMPL 244 UNIMPL 245 UNIMPL 246 UNIMPL 247 UNIMPL 248 UNIMPL 249 UNIMPL 250 UNIMPL minherit 251 UNIMPL semsys 252 UNIMPL msgsys 253 UNIMPL semop 254 UNIMPL semctl 255 UNIMPL semget 256 UNIMPL semop 257 UNIMPL semconfig 258 UNIMPL msgctl 259 UNIMPL msgget 260 UNIMPL msgsnd 261 UNIMPL msgrcv 262 UNIMPL shmat 263 UNIMPL shmctl 264 UNIMPL shmdt 265 UNIMPL shmget 266 UNIMPL shm_open 267 UNIMPL shm_unlink 268 UNIMPL sem_open 269 UNIMPL sem_close 270 UNIMPL sem_unlink 271 UNIMPL sem_wait 272 UNIMPL sem_trywait 273 UNIMPL sem_post 274 UNIMPL sem_getvalue 275 UNIMPL sem_init 276 UNIMPL sem_destroy 277 UNIMPL 278 UNIMPL 279 UNIMPL 280 UNIMPL 281 UNIMPL 282 UNIMPL 283 UNIMPL 284 UNIMPL 285 UNIMPL 286 UNIMPL 287 UNIMPL 288 UNIMPL 289 UNIMPL 290 UNIMPL 291 UNIMPL 292 UNIMPL 293 UNIMPL 294 UNIMPL 295 UNIMPL 296 STD { int|darwin_sys||load_shared_file(char *filename, \ void *addr, u_long len, void **base, \ int count, mach_sf_mapping_t *mappings, \ int *flags); } 297 UNIMPL reset_shared_file 298 UNIMPL new_system_shared_regions 299 UNIMPL 300 UNIMPL 301 UNIMPL 302 UNIMPL 303 UNIMPL 304 UNIMPL 305 UNIMPL 306 UNIMPL 307 UNIMPL 308 UNIMPL 309 UNIMPL 310 UNIMPL getsid 311 UNIMPL 312 UNIMPL 313 UNIMPL 314 UNIMPL 315 UNIMPL 316 UNIMPL 317 UNIMPL 318 UNIMPL 319 UNIMPL 320 UNIMPL 321 UNIMPL 322 UNIMPL 323 UNIMPL 324 UNIMPL mlockall 325 UNIMPL munlockall 326 UNIMPL 327 UNIMPL issetugid 328 UNIMPL __pthread_kill 329 UNIMPL pthread_sigmask 330 UNIMPL sigwait 331 STD { void|darwin_sys||pthread_exit(void *value_ptr); } 332 UNIMPL 333 UNIMPL 334 UNIMPL 335 STD { int|darwin_sys||utrace(void *addr, size_t len); } 336 UNIMPL 337 UNIMPL 338 UNIMPL 339 UNIMPL 340 UNIMPL 341 UNIMPL 342 UNIMPL 343 UNIMPL 344 UNIMPL 345 UNIMPL 346 UNIMPL 347 UNIMPL 348 UNIMPL 349 UNIMPL 350 STD { int|darwin_sys||audit(void *record, int len); } 351 STD { int|darwin_sys||auditon(int cmd, \ void *data, int len); } 352 UNIMPL 353 STD { int|darwin_sys||getauid(darwin_au_id_t *auid); } 354 STD { int|darwin_sys||setauid(darwin_au_id_t *auid); } 355 STD { int|darwin_sys||getauditinfo(struct \ darwin_auditinfo *auditinfo); } 356 STD { int|darwin_sys||setauditinfo(struct \ darwin_auditinfo *auditinfo); } 357 STD { int|darwin_sys||getaudit_addr(struct \ darwin_auditinfo_addr *auditinfo_addr, int len); } 358 STD { int|darwin_sys||setaudit_addr(struct \ darwin_auditinfo_addr *auditinfo_addr, int len); } 359 STD { int|darwin_sys||auditctl(char *path); } 360 UNIMPL 361 UNIMPL 362 UNIMPL kqueue 363 UNIMPL kevent @ 1.40 log @Kill fs_nfs.h and #ifdef NFS by making getfh() support unconditional and nfssvc unsupport unconditional. nfs server was just a fancy NOP anyway for all except Ultrix. I know I'm boring but I couldn't imagine why someone would want to run an Ultrix nfs server (and I also doubt that it would work anymore with all the changes to fs exporting etc). @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.39 2010/03/02 16:00:03 pooka Exp $ @ 1.40.4.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.40 2010/03/02 21:07:21 pooka Exp $ @ 1.40.2.1 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.40 2010/03/02 21:07:21 pooka Exp $ @ 1.39 log @Remove lfs syscall support from compat. I can't really imagine anyone wanting to run lfs megamaid as a e.g. FreeBSD binary. Besides, the real action has been in fcntl() for >5 years now. The only place where the compat syscalls might have made the tiniest bit of sense was netbsd32, but they were unimplemented there. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.38 2009/01/13 22:27:43 pooka Exp $ a43 2 #include "fs_nfs.h" a317 3 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 155 NOARGS { int|sys||nfssvc(int flag, void *argp); } #else a318 1 #endif @ 1.38 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.37 2009/01/11 02:45:47 christos Exp $ a43 1 #include "fs_lfs.h" @ 1.38.4.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD$ d44 3 d321 3 d325 1 @ 1.37 log @merge christos-time_t @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.35.8.2 2008/11/01 21:22:25 christos Exp $ d66 1 a66 1 0 NOARGS INDIR { int sys_syscall(int code, \ d68 4 a71 4 1 NOARGS { void sys_exit(int rval); } 2 STD { int darwin_sys_fork(void); } 3 NOARGS { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 4 NOARGS { ssize_t sys_write(int fd, const void *buf, \ d73 1 a73 1 5 NOARGS { int sys_open(const char *path, \ d75 2 a76 2 6 NOARGS { int sys_close(int fd); } 7 NOARGS { int compat_50_sys_wait4(int pid, int *status, \ d78 1 a78 1 8 NOARGS { int compat_43_sys_creat(const char *path, \ d80 1 a80 1 9 NOARGS { int sys_link(const char *path, \ d82 1 a82 1 10 NOARGS { int sys_unlink(const char *path); } d84 3 a86 3 12 NOARGS { int sys_chdir(const char *path); } 13 NOARGS { int sys_fchdir(int fd); } 14 STD { int darwin_sys_mknod(const char *path, \ d88 2 a89 2 15 NOARGS { int sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int sys_chown(const char *path, uid_t uid, \ d91 2 a92 2 17 NOARGS { int sys_obreak(char *nsize); } break 18 STD { int darwin_sys_getfsstat(struct darwin_statfs *buf, \ d94 1 a94 1 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \ d96 2 a97 2 20 STD { pid_t darwin_sys_getpid(void); } 21 NOARGS { int compat_40_sys_mount(const char *type, \ d99 2 a100 2 22 NOARGS { int sys_unmount(const char *path, int flags); } 23 NOARGS { int sys_setuid(uid_t uid); } d102 1 a102 1 24 NOARGS { uid_t sys_getuid_with_euid(void); } getuid d104 1 a104 1 24 NOARGS { uid_t sys_getuid(void); } d106 2 a107 2 25 NOARGS { uid_t sys_geteuid(void); } 26 STD { int darwin_sys_ptrace(int req, pid_t pid, \ d109 1 a109 1 27 NOARGS { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ d111 1 a111 1 28 NOARGS { ssize_t sys_sendmsg(int s, \ d113 1 a113 1 29 STD { ssize_t darwin_sys_recvfrom(int s, void *buf, \ d116 1 a116 1 30 STD { int darwin_sys_accept(int s, struct sockaddr *name, \ d118 1 a118 1 31 STD { int darwin_sys_getpeername(int fdes, \ d120 1 a120 1 32 STD { int darwin_sys_getsockname(int fdes, \ d122 1 a122 1 33 NOARGS { int sys_access(const char *path, \ d124 1 a124 1 34 NOARGS { int sys_chflags(const char *path, \ d126 4 a129 4 35 NOARGS { int sys_fchflags(int fd, u_long flags); } 36 NOARGS { void sys_sync(void); } 37 NOARGS { int sys_kill(int pid, int signum); } 38 NOARGS { int compat_43_sys_stat(const char *path, \ d131 2 a132 2 39 NOARGS { pid_t sys_getppid(void); } 40 NOARGS { int compat_43_sys_lstat(const char *path, \ d134 4 a137 4 41 NOARGS { int sys_dup(int fd); } 42 NOARGS { int sys_pipe(void); } 43 NOARGS { gid_t sys_getegid(void); } 44 NOARGS { int sys_profil(void *samples, size_t size, \ d140 1 a140 1 45 NOARGS { int sys_ktrace(const char *fname, int ops, \ d145 1 a145 1 46 STD { int darwin_sys_sigaction(int signum, \ d149 1 a149 1 47 NOARGS { gid_t sys_getgid_with_egid(void); } getgid d151 1 a151 1 47 NOARGS { gid_t sys_getgid(void); } d153 1 a153 1 48 STD { int darwin_sys_sigprocmask(int how, \ d155 5 a159 5 49 NOARGS { int sys___getlogin(char *namebuf, size_t namelen); } 50 NOARGS { int sys___setlogin(const char *namebuf); } 51 NOARGS { int sys_acct(const char *path); } 52 NOARGS { int compat_13_sys_sigpending(void); } sigpending13 53 NOARGS { int compat_13_sys_sigaltstack( \ d162 1 a162 1 54 STD { int darwin_sys_ioctl(int fd, \ d164 3 a166 3 55 NOARGS { int sys_reboot(int opt); } oreboot 56 NOARGS { int sys_revoke(const char *path); } 57 NOARGS { int sys_symlink(const char *path, \ d168 1 a168 1 58 NOARGS { int sys_readlink(const char *path, \ d170 1 a170 1 59 NOARGS { int sys_execve(const char *path, \ d172 3 a174 3 60 NOARGS { mode_t sys_umask(mode_t newmask); } 61 NOARGS { int sys_chroot(const char *path); } 62 NOARGS { int compat_43_sys_fstat(int fd, \ d177 3 a179 3 64 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize 65 NOARGS { int compat_12_sys_msync(void *addr, size_t len); } 66 STD { int darwin_sys_vfork(void); } d182 3 a184 3 69 NOARGS { int sys_sbrk(intptr_t incr); } 70 NOARGS { int sys_sstk(int incr); } 71 NOARGS { int sys_mmap(void *addr, size_t len, int prot, \ d186 3 a188 3 72 NOARGS { int sys_ovadvise(int anom); } vadvise 73 NOARGS { int sys_munmap(void *addr, size_t len); } 74 NOARGS { int sys_mprotect(void *addr, size_t len, \ d190 1 a190 1 75 NOARGS { int sys_madvise(void *addr, size_t len, \ d194 1 a194 1 78 NOARGS { int sys_mincore(void *addr, size_t len, \ d196 1 a196 1 79 NOARGS { int sys_getgroups(int gidsetsize, \ d198 1 a198 1 80 NOARGS { int sys_setgroups(int gidsetsize, \ d200 3 a202 3 81 NOARGS { int sys_getpgrp(void); } 82 NOARGS { int sys_setpgid(int pid, int pgid); } 83 NOARGS { int compat_50_sys_setitimer(int which, \ d205 3 a207 3 84 NOARGS { int compat_43_sys_wait(void); } owait 85 NOARGS { int compat_12_sys_swapon(const char *name); } 86 NOARGS { int compat_50_sys_getitimer(int which, \ d209 1 a209 1 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \ d211 1 a211 1 88 NOARGS { int compat_43_sys_sethostname(char *hostname, \ d213 1 a213 1 89 NOARGS { int compat_43_sys_getdtablesize(void); } \ d215 1 a215 1 90 NOARGS { int sys_dup2(int from, int to); } d217 2 a218 2 92 NOARGS { int sys_fcntl(int fd, int cmd, ... void *arg); } 93 NOARGS { int compat_50_sys_select(int nd, fd_set *in, \ d221 3 a223 3 95 NOARGS { int sys_fsync(int fd); } 96 NOARGS { int sys_setpriority(int which, int who, int prio); } 97 STD { int darwin_sys_socket(int domain, \ d225 1 a225 1 98 STD { int darwin_sys_connect(int s, \ d228 1 a228 1 99 NOARGS { int compat_43_sys_accept(int s, void *name, \ d230 2 a231 2 100 NOARGS { int sys_getpriority(int which, int who); } 101 NOARGS { int compat_43_sys_send(int s, void *buf, int len, \ d233 1 a233 1 102 NOARGS { int compat_43_sys_recv(int s, void *buf, int len, \ d235 1 a235 1 103 STD { int darwin_sys_sigreturn_x2(struct \ d237 1 a237 1 104 STD { int darwin_sys_bind(int s, \ d240 1 a240 1 105 NOARGS { int sys_setsockopt(int s, int level, int name, \ d242 1 a242 1 106 NOARGS { int sys_listen(int s, int backlog); } d244 1 a244 1 108 NOARGS { int compat_43_sys_sigvec(int signum, \ d246 3 a248 3 109 NOARGS { int compat_43_sys_sigblock(int mask); } osigblock 110 NOARGS { int compat_43_sys_sigsetmask(int mask); } osigsetmask 111 NOARGS { int compat_13_sys_sigsuspend(int mask); } \ d250 1 a250 1 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ d252 1 a252 1 113 NOARGS { int compat_43_sys_recvmsg(int s, \ d254 1 a254 1 114 NOARGS { int compat_43_sys_sendmsg(int s, void *msg, \ d257 1 a257 1 116 NOARGS { int compat_50_sys_gettimeofday(struct timeval50 *tp, \ d259 1 a259 1 117 NOARGS { int compat_50_sys_getrusage(int who, \ d261 1 a261 1 118 NOARGS { int sys_getsockopt(int s, int level, int name, \ d264 1 a264 1 120 NOARGS { ssize_t sys_readv(int fd, \ d266 1 a266 1 121 NOARGS { ssize_t sys_writev(int fd, \ d268 1 a268 1 122 NOARGS { int compat_50_sys_settimeofday( \ d271 3 a273 3 123 NOARGS { int sys_fchown(int fd, uid_t uid, gid_t gid); } 124 NOARGS { int sys_fchmod(int fd, mode_t mode); } 125 NOARGS { int compat_43_sys_recvfrom(int s, void *buf, \ d276 3 a278 3 126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); } 127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); } 128 NOARGS { int sys_rename(const char *from, \ d280 1 a280 1 129 NOARGS { int compat_43_sys_truncate(const \ d283 1 a283 1 130 NOARGS { int compat_43_sys_ftruncate(int fd, \ d285 2 a286 2 131 NOARGS { int sys_flock(int fd, int how); } 132 NOARGS { int sys_mkfifo(const char *path, \ d288 1 a288 1 133 STD { ssize_t darwin_sys_sendto(int s, const void *buf, \ d291 2 a292 2 134 NOARGS { int sys_shutdown(int s, int how); } 135 NOARGS { int sys_socketpair(int domain, int type, \ d294 3 a296 3 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int sys_rmdir(const char *path); } 138 NOARGS { int compat_50_sys_utimes(const char *path, \ d299 1 a299 1 140 NOARGS { int compat_50_sys_adjtime( \ d302 1 a302 1 141 NOARGS { int compat_43_sys_getpeername(int fdes, \ d304 1 a304 1 142 NOARGS { int32_t compat_43_sys_gethostid(void); } ogethostid d306 1 a306 1 144 NOARGS { int compat_43_sys_getrlimit(int which, \ d308 1 a308 1 145 NOARGS { int compat_43_sys_setrlimit(int which, \ d310 1 a310 1 146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } \ d312 1 a312 1 147 NOARGS { int sys_setsid(void); } d315 1 a315 1 150 NOARGS { int compat_43_sys_getsockname(int fdec, \ d322 1 a322 1 155 NOARGS { int sys_nfssvc(int flag, void *argp); } d326 1 a326 1 156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \ d328 1 a328 1 157 STD { int darwin_sys_statfs(const char *path, \ d330 1 a330 1 158 STD { int darwin_sys_fstatfs(int fd, \ d335 1 a335 1 161 NOARGS { int compat_30_sys_getfh(const char *fname, \ d340 1 a340 1 162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ d342 1 a342 1 163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ d360 1 a360 1 180 STD { int darwin_sys_kdebug_trace(int debugid, int arg1, \ d362 4 a365 4 181 NOARGS { int sys_setgid(gid_t gid); } 182 NOARGS { int sys_setegid(gid_t egid); } 183 NOARGS { int sys_seteuid(uid_t euid); } 184 STD { int darwin_sys_sigreturn(struct \ d370 1 a370 1 188 STD { int darwin_sys_stat(const char *path, \ d372 1 a372 1 189 STD { int darwin_sys_fstat(int fd, \ d374 1 a374 1 190 STD { int darwin_sys_lstat(const char *path, \ d376 1 a376 1 191 NOARGS { long sys_pathconf(const char *path, \ d378 1 a378 1 192 NOARGS { long sys_fpathconf(int fd, int name); } d380 1 a380 1 194 NOARGS { int sys_getrlimit(int which, \ d382 1 a382 1 195 NOARGS { int sys_setrlimit(int which, \ d384 1 a384 1 196 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ d386 1 a386 1 197 NOARGS { void *sys_mmap(void *addr, size_t len, int prot, \ d389 1 a389 1 199 STD { off_t darwin_sys_lseek(int fd, long off1, \ d391 1 a391 1 200 NOARGS { int sys_truncate(const char *path, \ d393 2 a394 2 201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); } 202 STD { int darwin_sys___sysctl(int *name, u_int namelen, \ d397 3 a399 3 203 NOARGS { int sys_mlock(const void *addr, size_t len); } 204 NOARGS { int sys_munlock(const void *addr, size_t len); } 205 NOARGS { int sys_undelete(const char *path); } d414 1 a414 1 220 STD { int darwin_sys_getattrlist(const char *path, \ d492 1 a492 1 296 STD { int darwin_sys_load_shared_file(char *filename, \ d530 1 a530 1 331 STD { void darwin_sys_pthread_exit(void *value_ptr); } d534 1 a534 1 335 STD { int darwin_sys_utrace(void *addr, size_t len); } d549 2 a550 2 350 STD { int darwin_sys_audit(void *record, int len); } 351 STD { int darwin_sys_auditon(int cmd, \ d553 3 a555 3 353 STD { int darwin_sys_getauid(darwin_au_id_t *auid); } 354 STD { int darwin_sys_setauid(darwin_au_id_t *auid); } 355 STD { int darwin_sys_getauditinfo(struct \ d557 1 a557 1 356 STD { int darwin_sys_setauditinfo(struct \ d559 1 a559 1 357 STD { int darwin_sys_getaudit_addr(struct \ d561 1 a561 1 358 STD { int darwin_sys_setaudit_addr(struct \ d563 1 a563 1 359 STD { int darwin_sys_auditctl(char *path); } @ 1.36 log @-SYCALL_MPSAFE @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.35 2007/12/12 21:24:36 dsl Exp $ d54 1 d59 1 d76 2 a77 2 7 NOARGS { int sys_wait4(int pid, int *status, int options, \ struct rusage *rusage); } d87 1 a87 1 mode_t mode, dev_t dev); } d202 3 a204 3 83 NOARGS { int sys_setitimer(int which, \ const struct itimerval *itv, \ struct itimerval *oitv); } d207 2 a208 2 86 NOARGS { int sys_getitimer(int which, \ struct itimerval *itv); } d218 2 a219 2 93 NOARGS { int sys_select(int nd, fd_set *in, fd_set *ou, \ fd_set *ex, struct timeval *tv); } d257 1 a257 1 116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ d259 2 a260 1 117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } d268 2 a269 1 122 NOARGS { int sys_settimeofday(const struct timeval *tv, \ d296 2 a297 2 138 NOARGS { int sys_utimes(const char *path, \ const struct timeval *tptr); } d299 3 a301 2 140 NOARGS { int sys_adjtime(const struct timeval *delta, \ struct timeval *olddelta); } @ 1.36.2.1 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.36 2008/04/23 14:07:49 ad Exp $ a53 1 #include a57 1 #include d64 1 a64 1 0 NOARGS INDIR { int|sys||syscall(int code, \ d66 4 a69 4 1 NOARGS { void|sys||exit(int rval); } 2 STD { int|darwin_sys||fork(void); } 3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ d71 1 a71 1 5 NOARGS { int|sys||open(const char *path, \ d73 4 a76 4 6 NOARGS { int|sys||close(int fd); } 7 NOARGS { int|compat_50_sys||wait4(int pid, int *status, \ int options, struct rusage50 *rusage); } 8 NOARGS { int|compat_43_sys||creat(const char *path, \ d78 1 a78 1 9 NOARGS { int|sys||link(const char *path, \ d80 1 a80 1 10 NOARGS { int|sys||unlink(const char *path); } d82 6 a87 6 12 NOARGS { int|sys||chdir(const char *path); } 13 NOARGS { int|sys||fchdir(int fd); } 14 STD { int|darwin_sys||mknod(const char *path, \ mode_t mode, darwin_dev_t dev); } 15 NOARGS { int|sys||chmod(const char *path, mode_t mode); } 16 NOARGS { int|sys||chown(const char *path, uid_t uid, \ d89 2 a90 2 17 NOARGS { int|sys||obreak(char *nsize); } break 18 STD { int|darwin_sys||getfsstat(struct darwin_statfs *buf, \ d92 1 a92 1 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \ d94 2 a95 2 20 STD { pid_t|darwin_sys||getpid(void); } 21 NOARGS { int|compat_40_sys||mount(const char *type, \ d97 2 a98 2 22 NOARGS { int|sys||unmount(const char *path, int flags); } 23 NOARGS { int|sys||setuid(uid_t uid); } d100 1 a100 1 24 NOARGS { uid_t|sys||getuid_with_euid(void); } getuid d102 1 a102 1 24 NOARGS { uid_t|sys||getuid(void); } d104 2 a105 2 25 NOARGS { uid_t|sys||geteuid(void); } 26 STD { int|darwin_sys||ptrace(int req, pid_t pid, \ d107 1 a107 1 27 NOARGS { ssize_t|sys||recvmsg(int s, struct msghdr *msg, \ d109 1 a109 1 28 NOARGS { ssize_t|sys||sendmsg(int s, \ d111 1 a111 1 29 STD { ssize_t|darwin_sys||recvfrom(int s, void *buf, \ d114 1 a114 1 30 STD { int|darwin_sys||accept(int s, struct sockaddr *name, \ d116 1 a116 1 31 STD { int|darwin_sys||getpeername(int fdes, \ d118 1 a118 1 32 STD { int|darwin_sys||getsockname(int fdes, \ d120 1 a120 1 33 NOARGS { int|sys||access(const char *path, \ d122 1 a122 1 34 NOARGS { int|sys||chflags(const char *path, \ d124 4 a127 4 35 NOARGS { int|sys||fchflags(int fd, u_long flags); } 36 NOARGS { void|sys||sync(void); } 37 NOARGS { int|sys||kill(int pid, int signum); } 38 NOARGS { int|compat_43_sys||stat(const char *path, \ d129 2 a130 2 39 NOARGS { pid_t|sys||getppid(void); } 40 NOARGS { int|compat_43_sys||lstat(const char *path, \ d132 4 a135 4 41 NOARGS { int|sys||dup(int fd); } 42 NOARGS { int|sys||pipe(void); } 43 NOARGS { gid_t|sys||getegid(void); } 44 NOARGS { int|sys||profil(void *samples, size_t size, \ d138 1 a138 1 45 NOARGS { int|sys||ktrace(const char *fname, int ops, \ d143 1 a143 1 46 STD { int|darwin_sys||sigaction(int signum, \ d147 1 a147 1 47 NOARGS { gid_t|sys||getgid_with_egid(void); } getgid d149 1 a149 1 47 NOARGS { gid_t|sys||getgid(void); } d151 1 a151 1 48 STD { int|darwin_sys||sigprocmask(int how, \ d153 5 a157 5 49 NOARGS { int|sys||__getlogin(char *namebuf, size_t namelen); } 50 NOARGS { int|sys||__setlogin(const char *namebuf); } 51 NOARGS { int|sys||acct(const char *path); } 52 NOARGS { int|compat_13_sys||sigpending(void); } sigpending13 53 NOARGS { int|compat_13_sys||sigaltstack( \ d160 1 a160 1 54 STD { int|darwin_sys||ioctl(int fd, \ d162 3 a164 3 55 NOARGS { int|sys||reboot(int opt); } oreboot 56 NOARGS { int|sys||revoke(const char *path); } 57 NOARGS { int|sys||symlink(const char *path, \ d166 1 a166 1 58 NOARGS { int|sys||readlink(const char *path, \ d168 1 a168 1 59 NOARGS { int|sys||execve(const char *path, \ d170 3 a172 3 60 NOARGS { mode_t|sys||umask(mode_t newmask); } 61 NOARGS { int|sys||chroot(const char *path); } 62 NOARGS { int|compat_43_sys||fstat(int fd, \ d175 3 a177 3 64 NOARGS { int|compat_43_sys||getpagesize(void); } ogetpagesize 65 NOARGS { int|compat_12_sys||msync(void *addr, size_t len); } 66 STD { int|darwin_sys||vfork(void); } d180 3 a182 3 69 NOARGS { int|sys||sbrk(intptr_t incr); } 70 NOARGS { int|sys||sstk(int incr); } 71 NOARGS { int|sys||mmap(void *addr, size_t len, int prot, \ d184 3 a186 3 72 NOARGS { int|sys||ovadvise(int anom); } vadvise 73 NOARGS { int|sys||munmap(void *addr, size_t len); } 74 NOARGS { int|sys||mprotect(void *addr, size_t len, \ d188 1 a188 1 75 NOARGS { int|sys||madvise(void *addr, size_t len, \ d192 1 a192 1 78 NOARGS { int|sys||mincore(void *addr, size_t len, \ d194 1 a194 1 79 NOARGS { int|sys||getgroups(int gidsetsize, \ d196 1 a196 1 80 NOARGS { int|sys||setgroups(int gidsetsize, \ d198 10 a207 10 81 NOARGS { int|sys||getpgrp(void); } 82 NOARGS { int|sys||setpgid(int pid, int pgid); } 83 NOARGS { int|compat_50_sys||setitimer(int which, \ const struct itimerval50 *itv, \ struct itimerval50 *oitv); } 84 NOARGS { int|compat_43_sys||wait(void); } owait 85 NOARGS { int|compat_12_sys||swapon(const char *name); } 86 NOARGS { int|compat_50_sys||getitimer(int which, \ struct itimerval50 *itv); } 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \ d209 1 a209 1 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \ d211 1 a211 1 89 NOARGS { int|compat_43_sys||getdtablesize(void); } \ d213 1 a213 1 90 NOARGS { int|sys||dup2(int from, int to); } d215 3 a217 3 92 NOARGS { int|sys||fcntl(int fd, int cmd, ... void *arg); } 93 NOARGS { int|compat_50_sys||select(int nd, fd_set *in, \ fd_set *ou, fd_set *ex, struct timeval50 *tv); } d219 3 a221 3 95 NOARGS { int|sys||fsync(int fd); } 96 NOARGS { int|sys||setpriority(int which, int who, int prio); } 97 STD { int|darwin_sys||socket(int domain, \ d223 1 a223 1 98 STD { int|darwin_sys||connect(int s, \ d226 1 a226 1 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \ d228 2 a229 2 100 NOARGS { int|sys||getpriority(int which, int who); } 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \ d231 1 a231 1 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \ d233 1 a233 1 103 STD { int|darwin_sys||sigreturn_x2(struct \ d235 1 a235 1 104 STD { int|darwin_sys||bind(int s, \ d238 1 a238 1 105 NOARGS { int|sys||setsockopt(int s, int level, int name, \ d240 1 a240 1 106 NOARGS { int|sys||listen(int s, int backlog); } d242 1 a242 1 108 NOARGS { int|compat_43_sys||sigvec(int signum, \ d244 3 a246 3 109 NOARGS { int|compat_43_sys||sigblock(int mask); } osigblock 110 NOARGS { int|compat_43_sys||sigsetmask(int mask); } osigsetmask 111 NOARGS { int|compat_13_sys||sigsuspend(int mask); } \ d248 1 a248 1 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \ d250 1 a250 1 113 NOARGS { int|compat_43_sys||recvmsg(int s, \ d252 1 a252 1 114 NOARGS { int|compat_43_sys||sendmsg(int s, void *msg, \ d255 1 a255 1 116 NOARGS { int|compat_50_sys||gettimeofday(struct timeval50 *tp, \ d257 2 a258 3 117 NOARGS { int|compat_50_sys||getrusage(int who, \ struct rusage50 *rusage); } 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \ d261 1 a261 1 120 NOARGS { ssize_t|sys||readv(int fd, \ d263 1 a263 1 121 NOARGS { ssize_t|sys||writev(int fd, \ d265 1 a265 2 122 NOARGS { int|compat_50_sys||settimeofday( \ const struct timeval50 *tv, \ d267 3 a269 3 123 NOARGS { int|sys||fchown(int fd, uid_t uid, gid_t gid); } 124 NOARGS { int|sys||fchmod(int fd, mode_t mode); } 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \ d272 3 a274 3 126 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); } 127 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); } 128 NOARGS { int|sys||rename(const char *from, \ d276 1 a276 1 129 NOARGS { int|compat_43_sys||truncate(const \ d279 1 a279 1 130 NOARGS { int|compat_43_sys||ftruncate(int fd, \ d281 2 a282 2 131 NOARGS { int|sys||flock(int fd, int how); } 132 NOARGS { int|sys||mkfifo(const char *path, \ d284 1 a284 1 133 STD { ssize_t|darwin_sys||sendto(int s, const void *buf, \ d287 2 a288 2 134 NOARGS { int|sys||shutdown(int s, int how); } 135 NOARGS { int|sys||socketpair(int domain, int type, \ d290 4 a293 4 136 NOARGS { int|sys||mkdir(const char *path, mode_t mode); } 137 NOARGS { int|sys||rmdir(const char *path); } 138 NOARGS { int|compat_50_sys||utimes(const char *path, \ const struct timeval50 *tptr); } d295 3 a297 4 140 NOARGS { int|compat_50_sys||adjtime( \ const struct timeval50 *delta, \ struct timeval50 *olddelta); } 141 NOARGS { int|compat_43_sys||getpeername(int fdes, \ d299 1 a299 1 142 NOARGS { int32_t|compat_43_sys||gethostid(void); } ogethostid d301 1 a301 1 144 NOARGS { int|compat_43_sys||getrlimit(int which, \ d303 1 a303 1 145 NOARGS { int|compat_43_sys||setrlimit(int which, \ d305 1 a305 1 146 NOARGS { int|compat_43_sys||killpg(int pgid, int signum); } \ d307 1 a307 1 147 NOARGS { int|sys||setsid(void); } d310 1 a310 1 150 NOARGS { int|compat_43_sys||getsockname(int fdec, \ d317 1 a317 1 155 NOARGS { int|sys||nfssvc(int flag, void *argp); } d321 1 a321 1 156 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \ d323 1 a323 1 157 STD { int|darwin_sys||statfs(const char *path, \ d325 1 a325 1 158 STD { int|darwin_sys||fstatfs(int fd, \ d330 1 a330 1 161 NOARGS { int|compat_30_sys||getfh(const char *fname, \ d335 1 a335 1 162 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \ d337 1 a337 1 163 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \ d355 1 a355 1 180 STD { int|darwin_sys||kdebug_trace(int debugid, int arg1, \ d357 4 a360 4 181 NOARGS { int|sys||setgid(gid_t gid); } 182 NOARGS { int|sys||setegid(gid_t egid); } 183 NOARGS { int|sys||seteuid(uid_t euid); } 184 STD { int|darwin_sys||sigreturn(struct \ d365 1 a365 1 188 STD { int|darwin_sys||stat(const char *path, \ d367 1 a367 1 189 STD { int|darwin_sys||fstat(int fd, \ d369 1 a369 1 190 STD { int|darwin_sys||lstat(const char *path, \ d371 1 a371 1 191 NOARGS { long|sys||pathconf(const char *path, \ d373 1 a373 1 192 NOARGS { long|sys||fpathconf(int fd, int name); } d375 1 a375 1 194 NOARGS { int|sys||getrlimit(int which, \ d377 1 a377 1 195 NOARGS { int|sys||setrlimit(int which, \ d379 1 a379 1 196 NOARGS { int|compat_12_sys||getdirentries(int fd, char *buf, \ d381 1 a381 1 197 NOARGS { void *|sys||mmap(void *addr, size_t len, int prot, \ d384 1 a384 1 199 STD { off_t|darwin_sys||lseek(int fd, long off1, \ d386 1 a386 1 200 NOARGS { int|sys||truncate(const char *path, \ d388 2 a389 2 201 NOARGS { int|sys||ftruncate(int fd, int pad, off_t length); } 202 STD { int|darwin_sys||__sysctl(int *name, u_int namelen, \ d392 3 a394 3 203 NOARGS { int|sys||mlock(const void *addr, size_t len); } 204 NOARGS { int|sys||munlock(const void *addr, size_t len); } 205 NOARGS { int|sys||undelete(const char *path); } d409 1 a409 1 220 STD { int|darwin_sys||getattrlist(const char *path, \ d487 1 a487 1 296 STD { int|darwin_sys||load_shared_file(char *filename, \ d525 1 a525 1 331 STD { void|darwin_sys||pthread_exit(void *value_ptr); } d529 1 a529 1 335 STD { int|darwin_sys||utrace(void *addr, size_t len); } d544 2 a545 2 350 STD { int|darwin_sys||audit(void *record, int len); } 351 STD { int|darwin_sys||auditon(int cmd, \ d548 3 a550 3 353 STD { int|darwin_sys||getauid(darwin_au_id_t *auid); } 354 STD { int|darwin_sys||setauid(darwin_au_id_t *auid); } 355 STD { int|darwin_sys||getauditinfo(struct \ d552 1 a552 1 356 STD { int|darwin_sys||setauditinfo(struct \ d554 1 a554 1 357 STD { int|darwin_sys||getaudit_addr(struct \ d556 1 a556 1 358 STD { int|darwin_sys||setaudit_addr(struct \ d558 1 a558 1 359 STD { int|darwin_sys||auditctl(char *path); } @ 1.36.2.2 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.36.2.1 2009/05/04 08:12:18 yamt Exp $ d44 3 d321 3 d325 1 @ 1.36.10.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.38 2009/01/13 22:27:43 pooka Exp $ a53 1 #include a57 1 #include d64 1 a64 1 0 NOARGS INDIR { int|sys||syscall(int code, \ d66 4 a69 4 1 NOARGS { void|sys||exit(int rval); } 2 STD { int|darwin_sys||fork(void); } 3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ d71 1 a71 1 5 NOARGS { int|sys||open(const char *path, \ d73 4 a76 4 6 NOARGS { int|sys||close(int fd); } 7 NOARGS { int|compat_50_sys||wait4(int pid, int *status, \ int options, struct rusage50 *rusage); } 8 NOARGS { int|compat_43_sys||creat(const char *path, \ d78 1 a78 1 9 NOARGS { int|sys||link(const char *path, \ d80 1 a80 1 10 NOARGS { int|sys||unlink(const char *path); } d82 6 a87 6 12 NOARGS { int|sys||chdir(const char *path); } 13 NOARGS { int|sys||fchdir(int fd); } 14 STD { int|darwin_sys||mknod(const char *path, \ mode_t mode, darwin_dev_t dev); } 15 NOARGS { int|sys||chmod(const char *path, mode_t mode); } 16 NOARGS { int|sys||chown(const char *path, uid_t uid, \ d89 2 a90 2 17 NOARGS { int|sys||obreak(char *nsize); } break 18 STD { int|darwin_sys||getfsstat(struct darwin_statfs *buf, \ d92 1 a92 1 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \ d94 2 a95 2 20 STD { pid_t|darwin_sys||getpid(void); } 21 NOARGS { int|compat_40_sys||mount(const char *type, \ d97 2 a98 2 22 NOARGS { int|sys||unmount(const char *path, int flags); } 23 NOARGS { int|sys||setuid(uid_t uid); } d100 1 a100 1 24 NOARGS { uid_t|sys||getuid_with_euid(void); } getuid d102 1 a102 1 24 NOARGS { uid_t|sys||getuid(void); } d104 2 a105 2 25 NOARGS { uid_t|sys||geteuid(void); } 26 STD { int|darwin_sys||ptrace(int req, pid_t pid, \ d107 1 a107 1 27 NOARGS { ssize_t|sys||recvmsg(int s, struct msghdr *msg, \ d109 1 a109 1 28 NOARGS { ssize_t|sys||sendmsg(int s, \ d111 1 a111 1 29 STD { ssize_t|darwin_sys||recvfrom(int s, void *buf, \ d114 1 a114 1 30 STD { int|darwin_sys||accept(int s, struct sockaddr *name, \ d116 1 a116 1 31 STD { int|darwin_sys||getpeername(int fdes, \ d118 1 a118 1 32 STD { int|darwin_sys||getsockname(int fdes, \ d120 1 a120 1 33 NOARGS { int|sys||access(const char *path, \ d122 1 a122 1 34 NOARGS { int|sys||chflags(const char *path, \ d124 4 a127 4 35 NOARGS { int|sys||fchflags(int fd, u_long flags); } 36 NOARGS { void|sys||sync(void); } 37 NOARGS { int|sys||kill(int pid, int signum); } 38 NOARGS { int|compat_43_sys||stat(const char *path, \ d129 2 a130 2 39 NOARGS { pid_t|sys||getppid(void); } 40 NOARGS { int|compat_43_sys||lstat(const char *path, \ d132 4 a135 4 41 NOARGS { int|sys||dup(int fd); } 42 NOARGS { int|sys||pipe(void); } 43 NOARGS { gid_t|sys||getegid(void); } 44 NOARGS { int|sys||profil(void *samples, size_t size, \ d138 1 a138 1 45 NOARGS { int|sys||ktrace(const char *fname, int ops, \ d143 1 a143 1 46 STD { int|darwin_sys||sigaction(int signum, \ d147 1 a147 1 47 NOARGS { gid_t|sys||getgid_with_egid(void); } getgid d149 1 a149 1 47 NOARGS { gid_t|sys||getgid(void); } d151 1 a151 1 48 STD { int|darwin_sys||sigprocmask(int how, \ d153 5 a157 5 49 NOARGS { int|sys||__getlogin(char *namebuf, size_t namelen); } 50 NOARGS { int|sys||__setlogin(const char *namebuf); } 51 NOARGS { int|sys||acct(const char *path); } 52 NOARGS { int|compat_13_sys||sigpending(void); } sigpending13 53 NOARGS { int|compat_13_sys||sigaltstack( \ d160 1 a160 1 54 STD { int|darwin_sys||ioctl(int fd, \ d162 3 a164 3 55 NOARGS { int|sys||reboot(int opt); } oreboot 56 NOARGS { int|sys||revoke(const char *path); } 57 NOARGS { int|sys||symlink(const char *path, \ d166 1 a166 1 58 NOARGS { int|sys||readlink(const char *path, \ d168 1 a168 1 59 NOARGS { int|sys||execve(const char *path, \ d170 3 a172 3 60 NOARGS { mode_t|sys||umask(mode_t newmask); } 61 NOARGS { int|sys||chroot(const char *path); } 62 NOARGS { int|compat_43_sys||fstat(int fd, \ d175 3 a177 3 64 NOARGS { int|compat_43_sys||getpagesize(void); } ogetpagesize 65 NOARGS { int|compat_12_sys||msync(void *addr, size_t len); } 66 STD { int|darwin_sys||vfork(void); } d180 3 a182 3 69 NOARGS { int|sys||sbrk(intptr_t incr); } 70 NOARGS { int|sys||sstk(int incr); } 71 NOARGS { int|sys||mmap(void *addr, size_t len, int prot, \ d184 3 a186 3 72 NOARGS { int|sys||ovadvise(int anom); } vadvise 73 NOARGS { int|sys||munmap(void *addr, size_t len); } 74 NOARGS { int|sys||mprotect(void *addr, size_t len, \ d188 1 a188 1 75 NOARGS { int|sys||madvise(void *addr, size_t len, \ d192 1 a192 1 78 NOARGS { int|sys||mincore(void *addr, size_t len, \ d194 1 a194 1 79 NOARGS { int|sys||getgroups(int gidsetsize, \ d196 1 a196 1 80 NOARGS { int|sys||setgroups(int gidsetsize, \ d198 10 a207 10 81 NOARGS { int|sys||getpgrp(void); } 82 NOARGS { int|sys||setpgid(int pid, int pgid); } 83 NOARGS { int|compat_50_sys||setitimer(int which, \ const struct itimerval50 *itv, \ struct itimerval50 *oitv); } 84 NOARGS { int|compat_43_sys||wait(void); } owait 85 NOARGS { int|compat_12_sys||swapon(const char *name); } 86 NOARGS { int|compat_50_sys||getitimer(int which, \ struct itimerval50 *itv); } 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \ d209 1 a209 1 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \ d211 1 a211 1 89 NOARGS { int|compat_43_sys||getdtablesize(void); } \ d213 1 a213 1 90 NOARGS { int|sys||dup2(int from, int to); } d215 3 a217 3 92 NOARGS { int|sys||fcntl(int fd, int cmd, ... void *arg); } 93 NOARGS { int|compat_50_sys||select(int nd, fd_set *in, \ fd_set *ou, fd_set *ex, struct timeval50 *tv); } d219 3 a221 3 95 NOARGS { int|sys||fsync(int fd); } 96 NOARGS { int|sys||setpriority(int which, int who, int prio); } 97 STD { int|darwin_sys||socket(int domain, \ d223 1 a223 1 98 STD { int|darwin_sys||connect(int s, \ d226 1 a226 1 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \ d228 2 a229 2 100 NOARGS { int|sys||getpriority(int which, int who); } 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \ d231 1 a231 1 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \ d233 1 a233 1 103 STD { int|darwin_sys||sigreturn_x2(struct \ d235 1 a235 1 104 STD { int|darwin_sys||bind(int s, \ d238 1 a238 1 105 NOARGS { int|sys||setsockopt(int s, int level, int name, \ d240 1 a240 1 106 NOARGS { int|sys||listen(int s, int backlog); } d242 1 a242 1 108 NOARGS { int|compat_43_sys||sigvec(int signum, \ d244 3 a246 3 109 NOARGS { int|compat_43_sys||sigblock(int mask); } osigblock 110 NOARGS { int|compat_43_sys||sigsetmask(int mask); } osigsetmask 111 NOARGS { int|compat_13_sys||sigsuspend(int mask); } \ d248 1 a248 1 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \ d250 1 a250 1 113 NOARGS { int|compat_43_sys||recvmsg(int s, \ d252 1 a252 1 114 NOARGS { int|compat_43_sys||sendmsg(int s, void *msg, \ d255 1 a255 1 116 NOARGS { int|compat_50_sys||gettimeofday(struct timeval50 *tp, \ d257 2 a258 3 117 NOARGS { int|compat_50_sys||getrusage(int who, \ struct rusage50 *rusage); } 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \ d261 1 a261 1 120 NOARGS { ssize_t|sys||readv(int fd, \ d263 1 a263 1 121 NOARGS { ssize_t|sys||writev(int fd, \ d265 1 a265 2 122 NOARGS { int|compat_50_sys||settimeofday( \ const struct timeval50 *tv, \ d267 3 a269 3 123 NOARGS { int|sys||fchown(int fd, uid_t uid, gid_t gid); } 124 NOARGS { int|sys||fchmod(int fd, mode_t mode); } 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \ d272 3 a274 3 126 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); } 127 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); } 128 NOARGS { int|sys||rename(const char *from, \ d276 1 a276 1 129 NOARGS { int|compat_43_sys||truncate(const \ d279 1 a279 1 130 NOARGS { int|compat_43_sys||ftruncate(int fd, \ d281 2 a282 2 131 NOARGS { int|sys||flock(int fd, int how); } 132 NOARGS { int|sys||mkfifo(const char *path, \ d284 1 a284 1 133 STD { ssize_t|darwin_sys||sendto(int s, const void *buf, \ d287 2 a288 2 134 NOARGS { int|sys||shutdown(int s, int how); } 135 NOARGS { int|sys||socketpair(int domain, int type, \ d290 4 a293 4 136 NOARGS { int|sys||mkdir(const char *path, mode_t mode); } 137 NOARGS { int|sys||rmdir(const char *path); } 138 NOARGS { int|compat_50_sys||utimes(const char *path, \ const struct timeval50 *tptr); } d295 3 a297 4 140 NOARGS { int|compat_50_sys||adjtime( \ const struct timeval50 *delta, \ struct timeval50 *olddelta); } 141 NOARGS { int|compat_43_sys||getpeername(int fdes, \ d299 1 a299 1 142 NOARGS { int32_t|compat_43_sys||gethostid(void); } ogethostid d301 1 a301 1 144 NOARGS { int|compat_43_sys||getrlimit(int which, \ d303 1 a303 1 145 NOARGS { int|compat_43_sys||setrlimit(int which, \ d305 1 a305 1 146 NOARGS { int|compat_43_sys||killpg(int pgid, int signum); } \ d307 1 a307 1 147 NOARGS { int|sys||setsid(void); } d310 1 a310 1 150 NOARGS { int|compat_43_sys||getsockname(int fdec, \ d317 1 a317 1 155 NOARGS { int|sys||nfssvc(int flag, void *argp); } d321 1 a321 1 156 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \ d323 1 a323 1 157 STD { int|darwin_sys||statfs(const char *path, \ d325 1 a325 1 158 STD { int|darwin_sys||fstatfs(int fd, \ d330 1 a330 1 161 NOARGS { int|compat_30_sys||getfh(const char *fname, \ d335 1 a335 1 162 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \ d337 1 a337 1 163 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \ d355 1 a355 1 180 STD { int|darwin_sys||kdebug_trace(int debugid, int arg1, \ d357 4 a360 4 181 NOARGS { int|sys||setgid(gid_t gid); } 182 NOARGS { int|sys||setegid(gid_t egid); } 183 NOARGS { int|sys||seteuid(uid_t euid); } 184 STD { int|darwin_sys||sigreturn(struct \ d365 1 a365 1 188 STD { int|darwin_sys||stat(const char *path, \ d367 1 a367 1 189 STD { int|darwin_sys||fstat(int fd, \ d369 1 a369 1 190 STD { int|darwin_sys||lstat(const char *path, \ d371 1 a371 1 191 NOARGS { long|sys||pathconf(const char *path, \ d373 1 a373 1 192 NOARGS { long|sys||fpathconf(int fd, int name); } d375 1 a375 1 194 NOARGS { int|sys||getrlimit(int which, \ d377 1 a377 1 195 NOARGS { int|sys||setrlimit(int which, \ d379 1 a379 1 196 NOARGS { int|compat_12_sys||getdirentries(int fd, char *buf, \ d381 1 a381 1 197 NOARGS { void *|sys||mmap(void *addr, size_t len, int prot, \ d384 1 a384 1 199 STD { off_t|darwin_sys||lseek(int fd, long off1, \ d386 1 a386 1 200 NOARGS { int|sys||truncate(const char *path, \ d388 2 a389 2 201 NOARGS { int|sys||ftruncate(int fd, int pad, off_t length); } 202 STD { int|darwin_sys||__sysctl(int *name, u_int namelen, \ d392 3 a394 3 203 NOARGS { int|sys||mlock(const void *addr, size_t len); } 204 NOARGS { int|sys||munlock(const void *addr, size_t len); } 205 NOARGS { int|sys||undelete(const char *path); } d409 1 a409 1 220 STD { int|darwin_sys||getattrlist(const char *path, \ d487 1 a487 1 296 STD { int|darwin_sys||load_shared_file(char *filename, \ d525 1 a525 1 331 STD { void|darwin_sys||pthread_exit(void *value_ptr); } d529 1 a529 1 335 STD { int|darwin_sys||utrace(void *addr, size_t len); } d544 2 a545 2 350 STD { int|darwin_sys||audit(void *record, int len); } 351 STD { int|darwin_sys||auditon(int cmd, \ d548 3 a550 3 353 STD { int|darwin_sys||getauid(darwin_au_id_t *auid); } 354 STD { int|darwin_sys||setauid(darwin_au_id_t *auid); } 355 STD { int|darwin_sys||getauditinfo(struct \ d552 1 a552 1 356 STD { int|darwin_sys||setauditinfo(struct \ d554 1 a554 1 357 STD { int|darwin_sys||getaudit_addr(struct \ d556 1 a556 1 358 STD { int|darwin_sys||setaudit_addr(struct \ d558 1 a558 1 359 STD { int|darwin_sys||auditctl(char *path); } @ 1.36.4.1 log @Initial checkin of re-adding SA. Everything except kern_sa.c compiles in GENERIC for i386. This is still a work-in-progress, but this checkin covers most of the mechanical work (changing signalling to be able to accomidate SA's process-wide signalling and re-adding includes of sys/sa.h and savar.h). Subsequent changes will be much more interesting. Also, kern_sa.c has received partial cleanup. There's still more to do, though. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.36 2008/04/23 14:07:49 ad Exp $ a50 1 #include @ 1.36.4.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.36.4.1 2008/05/10 23:48:49 wrstuden Exp $ d51 1 @ 1.35 log @No need for any of the bsd_sys_foo() calls since they only wrapped CHECK_ALT_XXX() for filenames - which got killed earlier in the year. Substitute the same functions as in compat_file.c @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.34 2007/11/10 13:23:18 dsl Exp $ a12 3 ; An optional field, MPSAFE, after the type field, indicates that ; the system call is MP-safe. ; @ 1.35.6.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD$ d13 3 @ 1.35.6.2 log @Sync with HEAD. @ text @a53 1 #include a57 1 #include d64 1 a64 1 0 NOARGS INDIR { int|sys||syscall(int code, \ d66 4 a69 4 1 NOARGS { void|sys||exit(int rval); } 2 STD { int|darwin_sys||fork(void); } 3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ d71 1 a71 1 5 NOARGS { int|sys||open(const char *path, \ d73 4 a76 4 6 NOARGS { int|sys||close(int fd); } 7 NOARGS { int|compat_50_sys||wait4(int pid, int *status, \ int options, struct rusage50 *rusage); } 8 NOARGS { int|compat_43_sys||creat(const char *path, \ d78 1 a78 1 9 NOARGS { int|sys||link(const char *path, \ d80 1 a80 1 10 NOARGS { int|sys||unlink(const char *path); } d82 6 a87 6 12 NOARGS { int|sys||chdir(const char *path); } 13 NOARGS { int|sys||fchdir(int fd); } 14 STD { int|darwin_sys||mknod(const char *path, \ mode_t mode, darwin_dev_t dev); } 15 NOARGS { int|sys||chmod(const char *path, mode_t mode); } 16 NOARGS { int|sys||chown(const char *path, uid_t uid, \ d89 2 a90 2 17 NOARGS { int|sys||obreak(char *nsize); } break 18 STD { int|darwin_sys||getfsstat(struct darwin_statfs *buf, \ d92 1 a92 1 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \ d94 2 a95 2 20 STD { pid_t|darwin_sys||getpid(void); } 21 NOARGS { int|compat_40_sys||mount(const char *type, \ d97 2 a98 2 22 NOARGS { int|sys||unmount(const char *path, int flags); } 23 NOARGS { int|sys||setuid(uid_t uid); } d100 1 a100 1 24 NOARGS { uid_t|sys||getuid_with_euid(void); } getuid d102 1 a102 1 24 NOARGS { uid_t|sys||getuid(void); } d104 2 a105 2 25 NOARGS { uid_t|sys||geteuid(void); } 26 STD { int|darwin_sys||ptrace(int req, pid_t pid, \ d107 1 a107 1 27 NOARGS { ssize_t|sys||recvmsg(int s, struct msghdr *msg, \ d109 1 a109 1 28 NOARGS { ssize_t|sys||sendmsg(int s, \ d111 1 a111 1 29 STD { ssize_t|darwin_sys||recvfrom(int s, void *buf, \ d114 1 a114 1 30 STD { int|darwin_sys||accept(int s, struct sockaddr *name, \ d116 1 a116 1 31 STD { int|darwin_sys||getpeername(int fdes, \ d118 1 a118 1 32 STD { int|darwin_sys||getsockname(int fdes, \ d120 1 a120 1 33 NOARGS { int|sys||access(const char *path, \ d122 1 a122 1 34 NOARGS { int|sys||chflags(const char *path, \ d124 4 a127 4 35 NOARGS { int|sys||fchflags(int fd, u_long flags); } 36 NOARGS { void|sys||sync(void); } 37 NOARGS { int|sys||kill(int pid, int signum); } 38 NOARGS { int|compat_43_sys||stat(const char *path, \ d129 2 a130 2 39 NOARGS { pid_t|sys||getppid(void); } 40 NOARGS { int|compat_43_sys||lstat(const char *path, \ d132 4 a135 4 41 NOARGS { int|sys||dup(int fd); } 42 NOARGS { int|sys||pipe(void); } 43 NOARGS { gid_t|sys||getegid(void); } 44 NOARGS { int|sys||profil(void *samples, size_t size, \ d138 1 a138 1 45 NOARGS { int|sys||ktrace(const char *fname, int ops, \ d143 1 a143 1 46 STD { int|darwin_sys||sigaction(int signum, \ d147 1 a147 1 47 NOARGS { gid_t|sys||getgid_with_egid(void); } getgid d149 1 a149 1 47 NOARGS { gid_t|sys||getgid(void); } d151 1 a151 1 48 STD { int|darwin_sys||sigprocmask(int how, \ d153 5 a157 5 49 NOARGS { int|sys||__getlogin(char *namebuf, size_t namelen); } 50 NOARGS { int|sys||__setlogin(const char *namebuf); } 51 NOARGS { int|sys||acct(const char *path); } 52 NOARGS { int|compat_13_sys||sigpending(void); } sigpending13 53 NOARGS { int|compat_13_sys||sigaltstack( \ d160 1 a160 1 54 STD { int|darwin_sys||ioctl(int fd, \ d162 3 a164 3 55 NOARGS { int|sys||reboot(int opt); } oreboot 56 NOARGS { int|sys||revoke(const char *path); } 57 NOARGS { int|sys||symlink(const char *path, \ d166 1 a166 1 58 NOARGS { int|sys||readlink(const char *path, \ d168 1 a168 1 59 NOARGS { int|sys||execve(const char *path, \ d170 3 a172 3 60 NOARGS { mode_t|sys||umask(mode_t newmask); } 61 NOARGS { int|sys||chroot(const char *path); } 62 NOARGS { int|compat_43_sys||fstat(int fd, \ d175 3 a177 3 64 NOARGS { int|compat_43_sys||getpagesize(void); } ogetpagesize 65 NOARGS { int|compat_12_sys||msync(void *addr, size_t len); } 66 STD { int|darwin_sys||vfork(void); } d180 3 a182 3 69 NOARGS { int|sys||sbrk(intptr_t incr); } 70 NOARGS { int|sys||sstk(int incr); } 71 NOARGS { int|sys||mmap(void *addr, size_t len, int prot, \ d184 3 a186 3 72 NOARGS { int|sys||ovadvise(int anom); } vadvise 73 NOARGS { int|sys||munmap(void *addr, size_t len); } 74 NOARGS { int|sys||mprotect(void *addr, size_t len, \ d188 1 a188 1 75 NOARGS { int|sys||madvise(void *addr, size_t len, \ d192 1 a192 1 78 NOARGS { int|sys||mincore(void *addr, size_t len, \ d194 1 a194 1 79 NOARGS { int|sys||getgroups(int gidsetsize, \ d196 1 a196 1 80 NOARGS { int|sys||setgroups(int gidsetsize, \ d198 10 a207 10 81 NOARGS { int|sys||getpgrp(void); } 82 NOARGS { int|sys||setpgid(int pid, int pgid); } 83 NOARGS { int|compat_50_sys||setitimer(int which, \ const struct itimerval50 *itv, \ struct itimerval50 *oitv); } 84 NOARGS { int|compat_43_sys||wait(void); } owait 85 NOARGS { int|compat_12_sys||swapon(const char *name); } 86 NOARGS { int|compat_50_sys||getitimer(int which, \ struct itimerval50 *itv); } 87 NOARGS { int|compat_43_sys||gethostname(char *hostname, \ d209 1 a209 1 88 NOARGS { int|compat_43_sys||sethostname(char *hostname, \ d211 1 a211 1 89 NOARGS { int|compat_43_sys||getdtablesize(void); } \ d213 1 a213 1 90 NOARGS { int|sys||dup2(int from, int to); } d215 3 a217 3 92 NOARGS { int|sys||fcntl(int fd, int cmd, ... void *arg); } 93 NOARGS { int|compat_50_sys||select(int nd, fd_set *in, \ fd_set *ou, fd_set *ex, struct timeval50 *tv); } d219 3 a221 3 95 NOARGS { int|sys||fsync(int fd); } 96 NOARGS { int|sys||setpriority(int which, int who, int prio); } 97 STD { int|darwin_sys||socket(int domain, \ d223 1 a223 1 98 STD { int|darwin_sys||connect(int s, \ d226 1 a226 1 99 NOARGS { int|compat_43_sys||accept(int s, void *name, \ d228 2 a229 2 100 NOARGS { int|sys||getpriority(int which, int who); } 101 NOARGS { int|compat_43_sys||send(int s, void *buf, int len, \ d231 1 a231 1 102 NOARGS { int|compat_43_sys||recv(int s, void *buf, int len, \ d233 1 a233 1 103 STD { int|darwin_sys||sigreturn_x2(struct \ d235 1 a235 1 104 STD { int|darwin_sys||bind(int s, \ d238 1 a238 1 105 NOARGS { int|sys||setsockopt(int s, int level, int name, \ d240 1 a240 1 106 NOARGS { int|sys||listen(int s, int backlog); } d242 1 a242 1 108 NOARGS { int|compat_43_sys||sigvec(int signum, \ d244 3 a246 3 109 NOARGS { int|compat_43_sys||sigblock(int mask); } osigblock 110 NOARGS { int|compat_43_sys||sigsetmask(int mask); } osigsetmask 111 NOARGS { int|compat_13_sys||sigsuspend(int mask); } \ d248 1 a248 1 112 NOARGS { int|compat_43_sys||sigstack(struct sigstack *nss, \ d250 1 a250 1 113 NOARGS { int|compat_43_sys||recvmsg(int s, \ d252 1 a252 1 114 NOARGS { int|compat_43_sys||sendmsg(int s, void *msg, \ d255 1 a255 1 116 NOARGS { int|compat_50_sys||gettimeofday(struct timeval50 *tp, \ d257 2 a258 3 117 NOARGS { int|compat_50_sys||getrusage(int who, \ struct rusage50 *rusage); } 118 NOARGS { int|sys||getsockopt(int s, int level, int name, \ d261 1 a261 1 120 NOARGS { ssize_t|sys||readv(int fd, \ d263 1 a263 1 121 NOARGS { ssize_t|sys||writev(int fd, \ d265 1 a265 2 122 NOARGS { int|compat_50_sys||settimeofday( \ const struct timeval50 *tv, \ d267 3 a269 3 123 NOARGS { int|sys||fchown(int fd, uid_t uid, gid_t gid); } 124 NOARGS { int|sys||fchmod(int fd, mode_t mode); } 125 NOARGS { int|compat_43_sys||recvfrom(int s, void *buf, \ d272 3 a274 3 126 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); } 127 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); } 128 NOARGS { int|sys||rename(const char *from, \ d276 1 a276 1 129 NOARGS { int|compat_43_sys||truncate(const \ d279 1 a279 1 130 NOARGS { int|compat_43_sys||ftruncate(int fd, \ d281 2 a282 2 131 NOARGS { int|sys||flock(int fd, int how); } 132 NOARGS { int|sys||mkfifo(const char *path, \ d284 1 a284 1 133 STD { ssize_t|darwin_sys||sendto(int s, const void *buf, \ d287 2 a288 2 134 NOARGS { int|sys||shutdown(int s, int how); } 135 NOARGS { int|sys||socketpair(int domain, int type, \ d290 4 a293 4 136 NOARGS { int|sys||mkdir(const char *path, mode_t mode); } 137 NOARGS { int|sys||rmdir(const char *path); } 138 NOARGS { int|compat_50_sys||utimes(const char *path, \ const struct timeval50 *tptr); } d295 3 a297 4 140 NOARGS { int|compat_50_sys||adjtime( \ const struct timeval50 *delta, \ struct timeval50 *olddelta); } 141 NOARGS { int|compat_43_sys||getpeername(int fdes, \ d299 1 a299 1 142 NOARGS { int32_t|compat_43_sys||gethostid(void); } ogethostid d301 1 a301 1 144 NOARGS { int|compat_43_sys||getrlimit(int which, \ d303 1 a303 1 145 NOARGS { int|compat_43_sys||setrlimit(int which, \ d305 1 a305 1 146 NOARGS { int|compat_43_sys||killpg(int pgid, int signum); } \ d307 1 a307 1 147 NOARGS { int|sys||setsid(void); } d310 1 a310 1 150 NOARGS { int|compat_43_sys||getsockname(int fdec, \ d317 1 a317 1 155 NOARGS { int|sys||nfssvc(int flag, void *argp); } d321 1 a321 1 156 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \ d323 1 a323 1 157 STD { int|darwin_sys||statfs(const char *path, \ d325 1 a325 1 158 STD { int|darwin_sys||fstatfs(int fd, \ d330 1 a330 1 161 NOARGS { int|compat_30_sys||getfh(const char *fname, \ d335 1 a335 1 162 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \ d337 1 a337 1 163 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \ d355 1 a355 1 180 STD { int|darwin_sys||kdebug_trace(int debugid, int arg1, \ d357 4 a360 4 181 NOARGS { int|sys||setgid(gid_t gid); } 182 NOARGS { int|sys||setegid(gid_t egid); } 183 NOARGS { int|sys||seteuid(uid_t euid); } 184 STD { int|darwin_sys||sigreturn(struct \ d365 1 a365 1 188 STD { int|darwin_sys||stat(const char *path, \ d367 1 a367 1 189 STD { int|darwin_sys||fstat(int fd, \ d369 1 a369 1 190 STD { int|darwin_sys||lstat(const char *path, \ d371 1 a371 1 191 NOARGS { long|sys||pathconf(const char *path, \ d373 1 a373 1 192 NOARGS { long|sys||fpathconf(int fd, int name); } d375 1 a375 1 194 NOARGS { int|sys||getrlimit(int which, \ d377 1 a377 1 195 NOARGS { int|sys||setrlimit(int which, \ d379 1 a379 1 196 NOARGS { int|compat_12_sys||getdirentries(int fd, char *buf, \ d381 1 a381 1 197 NOARGS { void *|sys||mmap(void *addr, size_t len, int prot, \ d384 1 a384 1 199 STD { off_t|darwin_sys||lseek(int fd, long off1, \ d386 1 a386 1 200 NOARGS { int|sys||truncate(const char *path, \ d388 2 a389 2 201 NOARGS { int|sys||ftruncate(int fd, int pad, off_t length); } 202 STD { int|darwin_sys||__sysctl(int *name, u_int namelen, \ d392 3 a394 3 203 NOARGS { int|sys||mlock(const void *addr, size_t len); } 204 NOARGS { int|sys||munlock(const void *addr, size_t len); } 205 NOARGS { int|sys||undelete(const char *path); } d409 1 a409 1 220 STD { int|darwin_sys||getattrlist(const char *path, \ d487 1 a487 1 296 STD { int|darwin_sys||load_shared_file(char *filename, \ d525 1 a525 1 331 STD { void|darwin_sys||pthread_exit(void *value_ptr); } d529 1 a529 1 335 STD { int|darwin_sys||utrace(void *addr, size_t len); } d544 2 a545 2 350 STD { int|darwin_sys||audit(void *record, int len); } 351 STD { int|darwin_sys||auditon(int cmd, \ d548 3 a550 3 353 STD { int|darwin_sys||getauid(darwin_au_id_t *auid); } 354 STD { int|darwin_sys||setauid(darwin_au_id_t *auid); } 355 STD { int|darwin_sys||getauditinfo(struct \ d552 1 a552 1 356 STD { int|darwin_sys||setauditinfo(struct \ d554 1 a554 1 357 STD { int|darwin_sys||getaudit_addr(struct \ d556 1 a556 1 358 STD { int|darwin_sys||setaudit_addr(struct \ d558 1 a558 1 359 STD { int|darwin_sys||auditctl(char *path); } @ 1.35.10.1 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.35 2007/12/12 21:24:36 dsl Exp $ d13 3 @ 1.35.8.1 log @Welcome to the time_t=long long dev_t=uint64_t branch. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.35 2007/12/12 21:24:36 dsl Exp $ a56 1 #include a60 1 #include d77 2 a78 2 7 NOARGS { int compat_50_sys_wait4(int pid, int *status, \ int options, struct rusage50 *rusage); } d88 1 a88 1 mode_t mode, darwin_dev_t dev); } d203 3 a205 3 83 NOARGS { int compat_50_sys_setitimer(int which, \ const struct itimerval50 *itv, \ struct itimerval50 *oitv); } d208 2 a209 2 86 NOARGS { int compat_50_sys_getitimer(int which, \ struct itimerval50 *itv); } d219 2 a220 2 93 NOARGS { int compat_50_sys_select(int nd, fd_set *in, \ fd_set *ou, fd_set *ex, struct timeval50 *tv); } d258 1 a258 1 116 NOARGS { int compat_50_sys_gettimeofday(struct timeval50 *tp, \ d260 1 a260 2 117 NOARGS { int compat_50_sys_getrusage(int who, \ struct rusage50 *rusage); } d268 1 a268 2 122 NOARGS { int compat_50_sys_settimeofday( \ const struct timeval50 *tv, \ d295 2 a296 2 138 NOARGS { int compat_50_sys_utimes(const char *path, \ const struct timeval50 *tptr); } d298 2 a299 3 140 NOARGS { int compat_50_sys_adjtime( \ const struct timeval50 *delta, \ struct timeval50 *olddelta); } @ 1.35.8.2 log @Sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.36 2008/04/23 14:07:49 ad Exp $ d13 3 @ 1.34 log @Mark 'syscall' as 'NOARGS INDIR" @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.33 2007/11/09 15:05:33 dsl Exp $ a55 1 #include d74 1 a74 1 5 NODEF { int bsd_sys_open(const char *path, \ d79 1 a79 1 8 NODEF { int bsd_compat_43_sys_creat(const char *path, \ d81 1 a81 1 9 NODEF { int bsd_sys_link(const char *path, \ d83 1 a83 1 10 NODEF { int bsd_sys_unlink(const char *path); } d85 1 a85 1 12 NODEF { int bsd_sys_chdir(const char *path); } d89 2 a90 2 15 NODEF { int bsd_sys_chmod(const char *path, mode_t mode); } 16 NODEF { int bsd_sys_chown(const char *path, uid_t uid, \ d98 1 a98 1 21 NODEF { int bsd_sys_mount(const char *type, \ d100 1 a100 1 22 NODEF { int bsd_sys_unmount(const char *path, int flags); } d123 1 a123 1 33 NODEF { int bsd_sys_access(const char *path, \ d125 1 a125 1 34 NODEF { int bsd_sys_chflags(const char *path, \ d130 1 a130 1 38 NODEF { int bsd_compat_43_sys_stat(const char *path, \ d133 1 a133 1 40 NODEF { int bsd_compat_43_sys_lstat(const char *path, \ d158 1 a158 1 51 NODEF { int bsd_sys_acct(const char *path); } d166 2 a167 2 56 NODEF { int bsd_sys_revoke(const char *path); } 57 NODEF { int bsd_sys_symlink(const char *path, \ d169 1 a169 1 58 NODEF { int bsd_sys_readlink(const char *path, \ d171 1 a171 1 59 NODEF { int bsd_sys_execve(const char *path, \ d174 1 a174 1 61 NODEF { int bsd_sys_chroot(const char *path); } d207 1 a207 1 85 NODEF { int bsd_compat_12_sys_swapon(const char *name); } d277 1 a277 1 128 NODEF { int bsd_sys_rename(const char *from, \ d279 1 a279 1 129 NODEF { int bsd_compat_43_sys_truncate(const \ d285 1 a285 1 132 NODEF { int bsd_sys_mkfifo(const char *path, \ d293 3 a295 3 136 NODEF { int bsd_sys_mkdir(const char *path, mode_t mode); } 137 NODEF { int bsd_sys_rmdir(const char *path); } 138 NODEF { int bsd_sys_utimes(const char *path, \ d333 1 a333 1 161 NODEF { int bsd_sys_getfh(const char *fname, \ d374 1 a374 1 191 NODEF { long bsd_sys_pathconf(const char *path, \ d389 1 a389 1 200 NODEF { int bsd_sys_truncate(const char *path, \ d397 1 a397 1 205 STD { int bsd_sys_undelete(const char *path); } @ 1.34.2.1 log @Sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.35 2007/12/12 21:24:36 dsl Exp $ d56 1 d75 1 a75 1 5 NOARGS { int sys_open(const char *path, \ d80 1 a80 1 8 NOARGS { int compat_43_sys_creat(const char *path, \ d82 1 a82 1 9 NOARGS { int sys_link(const char *path, \ d84 1 a84 1 10 NOARGS { int sys_unlink(const char *path); } d86 1 a86 1 12 NOARGS { int sys_chdir(const char *path); } d90 2 a91 2 15 NOARGS { int sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int sys_chown(const char *path, uid_t uid, \ d99 1 a99 1 21 NOARGS { int compat_40_sys_mount(const char *type, \ d101 1 a101 1 22 NOARGS { int sys_unmount(const char *path, int flags); } d124 1 a124 1 33 NOARGS { int sys_access(const char *path, \ d126 1 a126 1 34 NOARGS { int sys_chflags(const char *path, \ d131 1 a131 1 38 NOARGS { int compat_43_sys_stat(const char *path, \ d134 1 a134 1 40 NOARGS { int compat_43_sys_lstat(const char *path, \ d159 1 a159 1 51 NOARGS { int sys_acct(const char *path); } d167 2 a168 2 56 NOARGS { int sys_revoke(const char *path); } 57 NOARGS { int sys_symlink(const char *path, \ d170 1 a170 1 58 NOARGS { int sys_readlink(const char *path, \ d172 1 a172 1 59 NOARGS { int sys_execve(const char *path, \ d175 1 a175 1 61 NOARGS { int sys_chroot(const char *path); } d208 1 a208 1 85 NOARGS { int compat_12_sys_swapon(const char *name); } d278 1 a278 1 128 NOARGS { int sys_rename(const char *from, \ d280 1 a280 1 129 NOARGS { int compat_43_sys_truncate(const \ d286 1 a286 1 132 NOARGS { int sys_mkfifo(const char *path, \ d294 3 a296 3 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int sys_rmdir(const char *path); } 138 NOARGS { int sys_utimes(const char *path, \ d334 1 a334 1 161 NOARGS { int compat_30_sys_getfh(const char *fname, \ d375 1 a375 1 191 NOARGS { long sys_pathconf(const char *path, \ d390 1 a390 1 200 NOARGS { int sys_truncate(const char *path, \ d398 1 a398 1 205 NOARGS { int sys_undelete(const char *path); } @ 1.34.6.1 log @Sync with HEAD @ text @d1 1 a1 1 $NetBSD$ d56 1 d75 1 a75 1 5 NOARGS { int sys_open(const char *path, \ d80 1 a80 1 8 NOARGS { int compat_43_sys_creat(const char *path, \ d82 1 a82 1 9 NOARGS { int sys_link(const char *path, \ d84 1 a84 1 10 NOARGS { int sys_unlink(const char *path); } d86 1 a86 1 12 NOARGS { int sys_chdir(const char *path); } d90 2 a91 2 15 NOARGS { int sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int sys_chown(const char *path, uid_t uid, \ d99 1 a99 1 21 NOARGS { int compat_40_sys_mount(const char *type, \ d101 1 a101 1 22 NOARGS { int sys_unmount(const char *path, int flags); } d124 1 a124 1 33 NOARGS { int sys_access(const char *path, \ d126 1 a126 1 34 NOARGS { int sys_chflags(const char *path, \ d131 1 a131 1 38 NOARGS { int compat_43_sys_stat(const char *path, \ d134 1 a134 1 40 NOARGS { int compat_43_sys_lstat(const char *path, \ d159 1 a159 1 51 NOARGS { int sys_acct(const char *path); } d167 2 a168 2 56 NOARGS { int sys_revoke(const char *path); } 57 NOARGS { int sys_symlink(const char *path, \ d170 1 a170 1 58 NOARGS { int sys_readlink(const char *path, \ d172 1 a172 1 59 NOARGS { int sys_execve(const char *path, \ d175 1 a175 1 61 NOARGS { int sys_chroot(const char *path); } d208 1 a208 1 85 NOARGS { int compat_12_sys_swapon(const char *name); } d278 1 a278 1 128 NOARGS { int sys_rename(const char *from, \ d280 1 a280 1 129 NOARGS { int compat_43_sys_truncate(const \ d286 1 a286 1 132 NOARGS { int sys_mkfifo(const char *path, \ d294 3 a296 3 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int sys_rmdir(const char *path); } 138 NOARGS { int sys_utimes(const char *path, \ d334 1 a334 1 161 NOARGS { int compat_30_sys_getfh(const char *fname, \ d375 1 a375 1 191 NOARGS { long sys_pathconf(const char *path, \ d390 1 a390 1 200 NOARGS { int sys_truncate(const char *path, \ d398 1 a398 1 205 NOARGS { int sys_undelete(const char *path); } @ 1.34.4.1 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.34 2007/11/10 13:23:18 dsl Exp $ d56 1 d75 1 a75 1 5 NOARGS { int sys_open(const char *path, \ d80 1 a80 1 8 NOARGS { int compat_43_sys_creat(const char *path, \ d82 1 a82 1 9 NOARGS { int sys_link(const char *path, \ d84 1 a84 1 10 NOARGS { int sys_unlink(const char *path); } d86 1 a86 1 12 NOARGS { int sys_chdir(const char *path); } d90 2 a91 2 15 NOARGS { int sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int sys_chown(const char *path, uid_t uid, \ d99 1 a99 1 21 NOARGS { int compat_40_sys_mount(const char *type, \ d101 1 a101 1 22 NOARGS { int sys_unmount(const char *path, int flags); } d124 1 a124 1 33 NOARGS { int sys_access(const char *path, \ d126 1 a126 1 34 NOARGS { int sys_chflags(const char *path, \ d131 1 a131 1 38 NOARGS { int compat_43_sys_stat(const char *path, \ d134 1 a134 1 40 NOARGS { int compat_43_sys_lstat(const char *path, \ d159 1 a159 1 51 NOARGS { int sys_acct(const char *path); } d167 2 a168 2 56 NOARGS { int sys_revoke(const char *path); } 57 NOARGS { int sys_symlink(const char *path, \ d170 1 a170 1 58 NOARGS { int sys_readlink(const char *path, \ d172 1 a172 1 59 NOARGS { int sys_execve(const char *path, \ d175 1 a175 1 61 NOARGS { int sys_chroot(const char *path); } d208 1 a208 1 85 NOARGS { int compat_12_sys_swapon(const char *name); } d278 1 a278 1 128 NOARGS { int sys_rename(const char *from, \ d280 1 a280 1 129 NOARGS { int compat_43_sys_truncate(const \ d286 1 a286 1 132 NOARGS { int sys_mkfifo(const char *path, \ d294 3 a296 3 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int sys_rmdir(const char *path); } 138 NOARGS { int sys_utimes(const char *path, \ d334 1 a334 1 161 NOARGS { int compat_30_sys_getfh(const char *fname, \ d375 1 a375 1 191 NOARGS { long sys_pathconf(const char *path, \ d390 1 a390 1 200 NOARGS { int sys_truncate(const char *path, \ d398 1 a398 1 205 NOARGS { int sys_undelete(const char *path); } @ 1.33 log @Add arguments to sys_syscall and sys___syscall. Use MI wrappers for them in netbsd32. Change prefix for constants from netbsd32 to NETBSD32 (used in #defines etc). @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.32 2007/03/04 06:01:14 christos Exp $ d68 1 a68 1 0 INDIR { int sys_syscall(int code, \ @ 1.32 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.31 2007/02/09 21:55:16 ad Exp $ d68 2 a69 1 0 INDIR { int sys_syscall(int number, ...); } @ 1.32.16.1 log @sync with HEAD @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.32 2007/03/04 06:01:14 christos Exp $ d56 1 d68 1 a68 2 0 NOARGS INDIR { int sys_syscall(int code, \ ... register_t args[DARWIN_SYS_MAXSYSARGS]); } d74 1 a74 1 5 NOARGS { int sys_open(const char *path, \ d79 1 a79 1 8 NOARGS { int compat_43_sys_creat(const char *path, \ d81 1 a81 1 9 NOARGS { int sys_link(const char *path, \ d83 1 a83 1 10 NOARGS { int sys_unlink(const char *path); } d85 1 a85 1 12 NOARGS { int sys_chdir(const char *path); } d89 2 a90 2 15 NOARGS { int sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int sys_chown(const char *path, uid_t uid, \ d98 1 a98 1 21 NOARGS { int compat_40_sys_mount(const char *type, \ d100 1 a100 1 22 NOARGS { int sys_unmount(const char *path, int flags); } d123 1 a123 1 33 NOARGS { int sys_access(const char *path, \ d125 1 a125 1 34 NOARGS { int sys_chflags(const char *path, \ d130 1 a130 1 38 NOARGS { int compat_43_sys_stat(const char *path, \ d133 1 a133 1 40 NOARGS { int compat_43_sys_lstat(const char *path, \ d158 1 a158 1 51 NOARGS { int sys_acct(const char *path); } d166 2 a167 2 56 NOARGS { int sys_revoke(const char *path); } 57 NOARGS { int sys_symlink(const char *path, \ d169 1 a169 1 58 NOARGS { int sys_readlink(const char *path, \ d171 1 a171 1 59 NOARGS { int sys_execve(const char *path, \ d174 1 a174 1 61 NOARGS { int sys_chroot(const char *path); } d207 1 a207 1 85 NOARGS { int compat_12_sys_swapon(const char *name); } d277 1 a277 1 128 NOARGS { int sys_rename(const char *from, \ d279 1 a279 1 129 NOARGS { int compat_43_sys_truncate(const \ d285 1 a285 1 132 NOARGS { int sys_mkfifo(const char *path, \ d293 3 a295 3 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int sys_rmdir(const char *path); } 138 NOARGS { int sys_utimes(const char *path, \ d333 1 a333 1 161 NOARGS { int compat_30_sys_getfh(const char *fname, \ d374 1 a374 1 191 NOARGS { long sys_pathconf(const char *path, \ d389 1 a389 1 200 NOARGS { int sys_truncate(const char *path, \ d397 1 a397 1 205 NOARGS { int sys_undelete(const char *path); } @ 1.32.22.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.34 2007/11/10 13:23:18 dsl Exp $ d68 1 a68 2 0 NOARGS INDIR { int sys_syscall(int code, \ ... register_t args[DARWIN_SYS_MAXSYSARGS]); } @ 1.32.22.2 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.35 2007/12/12 21:24:36 dsl Exp $ d56 1 d75 1 a75 1 5 NOARGS { int sys_open(const char *path, \ d80 1 a80 1 8 NOARGS { int compat_43_sys_creat(const char *path, \ d82 1 a82 1 9 NOARGS { int sys_link(const char *path, \ d84 1 a84 1 10 NOARGS { int sys_unlink(const char *path); } d86 1 a86 1 12 NOARGS { int sys_chdir(const char *path); } d90 2 a91 2 15 NOARGS { int sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int sys_chown(const char *path, uid_t uid, \ d99 1 a99 1 21 NOARGS { int compat_40_sys_mount(const char *type, \ d101 1 a101 1 22 NOARGS { int sys_unmount(const char *path, int flags); } d124 1 a124 1 33 NOARGS { int sys_access(const char *path, \ d126 1 a126 1 34 NOARGS { int sys_chflags(const char *path, \ d131 1 a131 1 38 NOARGS { int compat_43_sys_stat(const char *path, \ d134 1 a134 1 40 NOARGS { int compat_43_sys_lstat(const char *path, \ d159 1 a159 1 51 NOARGS { int sys_acct(const char *path); } d167 2 a168 2 56 NOARGS { int sys_revoke(const char *path); } 57 NOARGS { int sys_symlink(const char *path, \ d170 1 a170 1 58 NOARGS { int sys_readlink(const char *path, \ d172 1 a172 1 59 NOARGS { int sys_execve(const char *path, \ d175 1 a175 1 61 NOARGS { int sys_chroot(const char *path); } d208 1 a208 1 85 NOARGS { int compat_12_sys_swapon(const char *name); } d278 1 a278 1 128 NOARGS { int sys_rename(const char *from, \ d280 1 a280 1 129 NOARGS { int compat_43_sys_truncate(const \ d286 1 a286 1 132 NOARGS { int sys_mkfifo(const char *path, \ d294 3 a296 3 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int sys_rmdir(const char *path); } 138 NOARGS { int sys_utimes(const char *path, \ d334 1 a334 1 161 NOARGS { int compat_30_sys_getfh(const char *fname, \ d375 1 a375 1 191 NOARGS { long sys_pathconf(const char *path, \ d390 1 a390 1 200 NOARGS { int sys_truncate(const char *path, \ d398 1 a398 1 205 NOARGS { int sys_undelete(const char *path); } @ 1.32.20.1 log @Sync with HEAD @ text @d1 1 a1 1 $NetBSD$ d68 1 a68 2 0 NOARGS INDIR { int sys_syscall(int code, \ ... register_t args[DARWIN_SYS_MAXSYSARGS]); } @ 1.32.14.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.34 2007/11/10 13:23:18 dsl Exp $ d68 1 a68 2 0 NOARGS INDIR { int sys_syscall(int code, \ ... register_t args[DARWIN_SYS_MAXSYSARGS]); } @ 1.31 log @Merge newlock2 to head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.30 2005/12/11 12:19:56 christos Exp $ d109 1 a109 1 caddr_t addr, int data); } d138 1 a138 1 44 NOARGS { int sys_profil(caddr_t samples, size_t size, \ d179 1 a179 1 65 NOARGS { int compat_12_sys_msync(caddr_t addr, size_t len); } d185 1 a185 1 71 NOARGS { int sys_mmap(caddr_t addr, size_t len, int prot, \ d229 1 a229 1 99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ d232 1 a232 1 101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ d234 1 a234 1 102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ d255 1 a255 1 114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ d272 2 a273 2 125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ size_t len, int flags, caddr_t from, \ d301 1 a301 1 caddr_t asa, int *alen); } ogetpeername d314 1 a314 1 caddr_t asa, int *alen); } ogetsockname d413 1 a413 1 struct darwin_attrlist *alist, void * attributes, \ d491 1 a491 1 caddr_t addr, u_long len, caddr_t *base, \ @ 1.31.2.1 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.31 2007/02/09 21:55:16 ad Exp $ d109 1 a109 1 void *addr, int data); } d138 1 a138 1 44 NOARGS { int sys_profil(void *samples, size_t size, \ d179 1 a179 1 65 NOARGS { int compat_12_sys_msync(void *addr, size_t len); } d185 1 a185 1 71 NOARGS { int sys_mmap(void *addr, size_t len, int prot, \ d229 1 a229 1 99 NOARGS { int compat_43_sys_accept(int s, void *name, \ d232 1 a232 1 101 NOARGS { int compat_43_sys_send(int s, void *buf, int len, \ d234 1 a234 1 102 NOARGS { int compat_43_sys_recv(int s, void *buf, int len, \ d255 1 a255 1 114 NOARGS { int compat_43_sys_sendmsg(int s, void *msg, \ d272 2 a273 2 125 NOARGS { int compat_43_sys_recvfrom(int s, void *buf, \ size_t len, int flags, void *from, \ d301 1 a301 1 void *asa, int *alen); } ogetpeername d314 1 a314 1 void *asa, int *alen); } ogetsockname d413 1 a413 1 struct darwin_attrlist *alist, void *attributes, \ d491 1 a491 1 void *addr, u_long len, void **base, \ @ 1.30 log @merge ktrace-lwp. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.13.2.3 2005/11/10 14:00:41 skrll Exp $ a53 1 #include @ 1.30.20.1 log @Remove support for SA. Ok core@@. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.30 2005/12/11 12:19:56 christos Exp $ d54 1 @ 1.29 log @compat code reorg. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.28 2005/02/26 23:10:18 perry Exp $ @ 1.28 log @nuke trailing whitespace @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.27 2004/08/02 18:45:53 manu Exp $ d58 1 @ 1.28.4.1 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.28 2005/02/26 23:10:18 perry Exp $ a57 1 #include @ 1.28.4.2 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.28.4.1 2006/06/21 14:58:32 yamt Exp $ d54 1 @ 1.28.4.3 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.28.4.2 2007/02/26 09:09:04 yamt Exp $ d109 1 a109 1 void *addr, int data); } d138 1 a138 1 44 NOARGS { int sys_profil(void *samples, size_t size, \ d179 1 a179 1 65 NOARGS { int compat_12_sys_msync(void *addr, size_t len); } d185 1 a185 1 71 NOARGS { int sys_mmap(void *addr, size_t len, int prot, \ d229 1 a229 1 99 NOARGS { int compat_43_sys_accept(int s, void *name, \ d232 1 a232 1 101 NOARGS { int compat_43_sys_send(int s, void *buf, int len, \ d234 1 a234 1 102 NOARGS { int compat_43_sys_recv(int s, void *buf, int len, \ d255 1 a255 1 114 NOARGS { int compat_43_sys_sendmsg(int s, void *msg, \ d272 2 a273 2 125 NOARGS { int compat_43_sys_recvfrom(int s, void *buf, \ size_t len, int flags, void *from, \ d301 1 a301 1 void *asa, int *alen); } ogetpeername d314 1 a314 1 void *asa, int *alen); } ogetsockname d413 1 a413 1 struct darwin_attrlist *alist, void *attributes, \ d491 1 a491 1 void *addr, u_long len, void **base, \ @ 1.28.4.4 log @sync with head. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.28.4.3 2007/09/03 14:31:57 yamt Exp $ d68 1 a68 2 0 NOARGS INDIR { int sys_syscall(int code, \ ... register_t args[DARWIN_SYS_MAXSYSARGS]); } @ 1.28.4.5 log @sync with head @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.28.4.4 2007/11/15 11:43:50 yamt Exp $ d56 1 d75 1 a75 1 5 NOARGS { int sys_open(const char *path, \ d80 1 a80 1 8 NOARGS { int compat_43_sys_creat(const char *path, \ d82 1 a82 1 9 NOARGS { int sys_link(const char *path, \ d84 1 a84 1 10 NOARGS { int sys_unlink(const char *path); } d86 1 a86 1 12 NOARGS { int sys_chdir(const char *path); } d90 2 a91 2 15 NOARGS { int sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int sys_chown(const char *path, uid_t uid, \ d99 1 a99 1 21 NOARGS { int compat_40_sys_mount(const char *type, \ d101 1 a101 1 22 NOARGS { int sys_unmount(const char *path, int flags); } d124 1 a124 1 33 NOARGS { int sys_access(const char *path, \ d126 1 a126 1 34 NOARGS { int sys_chflags(const char *path, \ d131 1 a131 1 38 NOARGS { int compat_43_sys_stat(const char *path, \ d134 1 a134 1 40 NOARGS { int compat_43_sys_lstat(const char *path, \ d159 1 a159 1 51 NOARGS { int sys_acct(const char *path); } d167 2 a168 2 56 NOARGS { int sys_revoke(const char *path); } 57 NOARGS { int sys_symlink(const char *path, \ d170 1 a170 1 58 NOARGS { int sys_readlink(const char *path, \ d172 1 a172 1 59 NOARGS { int sys_execve(const char *path, \ d175 1 a175 1 61 NOARGS { int sys_chroot(const char *path); } d208 1 a208 1 85 NOARGS { int compat_12_sys_swapon(const char *name); } d278 1 a278 1 128 NOARGS { int sys_rename(const char *from, \ d280 1 a280 1 129 NOARGS { int compat_43_sys_truncate(const \ d286 1 a286 1 132 NOARGS { int sys_mkfifo(const char *path, \ d294 3 a296 3 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int sys_rmdir(const char *path); } 138 NOARGS { int sys_utimes(const char *path, \ d334 1 a334 1 161 NOARGS { int compat_30_sys_getfh(const char *fname, \ d375 1 a375 1 191 NOARGS { long sys_pathconf(const char *path, \ d390 1 a390 1 200 NOARGS { int sys_truncate(const char *path, \ d398 1 a398 1 205 NOARGS { int sys_undelete(const char *path); } @ 1.27 log @Fix a build problem pointed out by wiz @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.26 2004/07/28 22:24:06 manu Exp $ d37 2 a38 2 ; NB: A lot of system calls are used from FreeBSD emulation, because theses ; system calls are just native NetBSD plus a check in /emul/. @ 1.27.4.1 log @sync with -current @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.28 2005/02/26 23:10:18 perry Exp $ d37 2 a38 2 ; NB: A lot of system calls are used from FreeBSD emulation, because theses ; system calls are just native NetBSD plus a check in /emul/. @ 1.27.6.1 log @sync with head. xen and whitespace. xen part is not finished. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.27 2004/08/02 18:45:53 manu Exp $ d37 2 a38 2 ; NB: A lot of system calls are used from FreeBSD emulation, because theses ; system calls are just native NetBSD plus a check in /emul/. @ 1.26 log @Empty shell for Darwin audit API @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.25 2004/07/28 21:30:00 manu Exp $ d63 1 @ 1.25 log @Added the utrace system call @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.24 2004/07/21 23:43:25 manu Exp $ d546 19 @ 1.24 log @If struct sockaddr's sa_family must be transalted, then struct sockaddr itself needs to be translated. It means that we must translate it in every system call using it: recvfrom, sendto, connect, accept, bind, getpeername, getsockname. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.23 2004/07/07 22:03:38 christos Exp $ d531 1 a531 1 335 UNIMPL utrace @ 1.23 log @no #ifdef __powerpc__ here. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.22 2004/07/04 21:03:55 manu Exp $ d113 2 a114 2 29 NOARGS { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ int flags, struct sockaddr *from, \ d116 1 a116 1 30 NOARGS { int sys_accept(int s, struct sockaddr *name, \ d118 4 a121 4 31 NOARGS { int sys_getpeername(int fdes, struct sockaddr *asa, \ unsigned int *alen); } 32 NOARGS { int sys_getsockname(int fdes, struct sockaddr *asa, \ unsigned int *alen); } d223 4 a226 2 97 NOARGS { int sys_socket(int domain, int type, int protocol); } 98 NOARGS { int sys_connect(int s, const struct sockaddr *name, \ d237 2 a238 1 104 NODEF { int bsd_sys_bind(int s, const struct sockaddr *name, \ d286 1 a286 1 133 NOARGS { ssize_t sys_sendto(int s, const void *buf, \ @ 1.22 log @MacOS X.3 introduces a new sigreturn for PowerPC, with a usercontext versionning argument. For now we only implement the X.2 flavor. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.21 2003/12/31 02:55:04 manu Exp $ a358 1 #ifdef __powerpc__ a360 3 #else 184 UNIMPL #endif @ 1.21 log @Added the getattrlist system call. That was annoying. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.20 2003/12/16 16:13:59 manu Exp $ d233 1 a233 1 103 STD { int darwin_sys_sigreturn(struct \ d359 4 d364 1 @ 1.20 log @Darwin's sigprocmask is an hybrid between or modern sigprocmak (old set argument, large sigset), and the older sigprocset (no old set argument, small sigset). It feature old set argument and small sigset. We now emulates this correctly. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.19 2003/12/04 23:59:50 manu Exp $ d407 3 a409 1 220 UNIMPL getattrlist @ 1.19 log @Add the kdebug_trace system call. It does nothing but dumping anything it gets. dyd uses that feature when DYLD_TRACE is set. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.18 2003/11/20 07:12:35 manu Exp $ d153 2 a154 2 48 NOARGS { int compat_13_sys_sigprocmask(int how, \ int mask); } sigprocmask13 @ 1.18 log @Start to implement another strange feature: signals as Mach software exceptions. This can be requested with ptrace, and cause signals to be transformed into a particular kind of exception. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.17 2003/09/06 11:50:02 manu Exp $ d354 2 a355 1 180 UNIMPL kdebug_trace @ 1.17 log @Convert dev_t for mknod @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.16 2003/09/06 11:18:03 manu Exp $ d107 2 a108 2 26 NOARGS { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ int data); } @ 1.16 log @Correctly translate dev_t in stat/fstat/lstat @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.15 2003/09/03 07:28:40 manu Exp $ d86 1 a86 1 14 NODEF { int bsd_sys_mknod(const char *path, \ @ 1.15 log @Implement Darwin's FIODTYPE ioctl (get a file d_type) @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.14 2003/09/02 21:31:04 manu Exp $ d362 1 a362 1 188 NODEF { int bsd_compat_12_sys_stat(const char *path, \ d364 1 a364 1 189 NOARGS { int compat_12_sys_fstat(int fd, \ d366 1 a366 1 190 NODEF { int bsd_compat_12_sys_lstat(const char *path, \ @ 1.14 log @correct translation for struct statfs in getfsstat, ststfs and fstatfs @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.13 2003/06/05 12:26:28 manu Exp $ d162 1 a162 1 54 NOARGS { int sys_ioctl(int fd, \ @ 1.13 log @Search alternate /emul/* path for AF_LOCAL sockets at bind() time. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.12 2003/04/20 00:09:42 manu Exp $ d92 2 a93 2 18 NOARGS { int sys_getfsstat(struct statfs *buf, long bufsize, \ int flags); } d322 4 a325 3 157 NODEF { int bsd_sys_statfs(const char *path, \ struct statfs *buf); } 158 NOARGS { int sys_fstatfs(int fd, struct statfs *buf); } @ 1.13.2.1 log @Sync with HEAD @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.23 2004/07/07 22:03:38 christos Exp $ a62 1 #include d86 1 a86 1 14 STD { int darwin_sys_mknod(const char *path, \ d92 2 a93 2 18 STD { int darwin_sys_getfsstat(struct darwin_statfs *buf, \ long bufsize, int flags); } d107 2 a108 2 26 STD { int darwin_sys_ptrace(int req, pid_t pid, \ caddr_t addr, int data); } d113 2 a114 2 29 STD { ssize_t darwin_sys_recvfrom(int s, void *buf, \ size_t len, int flags, struct sockaddr *from, \ d116 1 a116 1 30 STD { int darwin_sys_accept(int s, struct sockaddr *name, \ d118 4 a121 4 31 STD { int darwin_sys_getpeername(int fdes, \ struct sockaddr *asa, unsigned int *alen); } 32 STD { int darwin_sys_getsockname(int fdes, \ struct sockaddr *asa, unsigned int *alen); } d153 2 a154 2 48 STD { int darwin_sys_sigprocmask(int how, \ sigset13_t *set, sigset13_t *oset); } d162 1 a162 1 54 STD { int darwin_sys_ioctl(int fd, \ d223 2 a224 4 97 STD { int darwin_sys_socket(int domain, \ int type, int protocol); } 98 STD { int darwin_sys_connect(int s, \ const struct sockaddr *name, \ d233 1 a233 1 103 STD { int darwin_sys_sigreturn_x2(struct \ d235 1 a235 2 104 STD { int darwin_sys_bind(int s, \ const struct sockaddr *name, \ d283 1 a283 1 133 STD { ssize_t darwin_sys_sendto(int s, const void *buf, \ d322 3 a324 4 157 STD { int darwin_sys_statfs(const char *path, \ struct darwin_statfs *buf); } 158 STD { int darwin_sys_fstatfs(int fd, \ struct darwin_statfs *buf); } d353 1 a353 2 180 STD { int darwin_sys_kdebug_trace(int debugid, int arg1, \ int arg2, int arg3, int arg4, int arg5); } d357 1 a357 2 184 STD { int darwin_sys_sigreturn(struct \ darwin_ucontext *uctx, int ucvers); } d361 1 a361 1 188 STD { int darwin_sys_stat(const char *path, \ d363 1 a363 1 189 STD { int darwin_sys_fstat(int fd, \ d365 1 a365 1 190 STD { int darwin_sys_lstat(const char *path, \ d405 1 a405 3 220 STD { int darwin_sys_getattrlist(const char *path, \ struct darwin_attrlist *alist, void * attributes, \ size_t buflen, unsigned long options); } d523 1 a523 1 335 STD { int darwin_sys_utrace(void *addr, size_t len); } a537 19 350 STD { int darwin_sys_audit(void *record, int len); } 351 STD { int darwin_sys_auditon(int cmd, \ void *data, int len); } 352 UNIMPL 353 STD { int darwin_sys_getauid(darwin_au_id_t *auid); } 354 STD { int darwin_sys_setauid(darwin_au_id_t *auid); } 355 STD { int darwin_sys_getauditinfo(struct \ darwin_auditinfo *auditinfo); } 356 STD { int darwin_sys_setauditinfo(struct \ darwin_auditinfo *auditinfo); } 357 STD { int darwin_sys_getaudit_addr(struct \ darwin_auditinfo_addr *auditinfo_addr, int len); } 358 STD { int darwin_sys_setaudit_addr(struct \ darwin_auditinfo_addr *auditinfo_addr, int len); } 359 STD { int darwin_sys_auditctl(char *path); } 360 UNIMPL 361 UNIMPL 362 UNIMPL kqueue 363 UNIMPL kevent @ 1.13.2.2 log @Sync with HEAD. Hi Perry! @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.13.2.1 2004/08/03 10:43:30 skrll Exp $ d37 2 a38 2 ; NB: A lot of system calls are used from FreeBSD emulation, because theses ; system calls are just native NetBSD plus a check in /emul/. @ 1.13.2.3 log @Sync with HEAD. Here we go again... @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.13.2.2 2005/03/04 16:39:23 skrll Exp $ a57 1 #include @ 1.12 log @Fixed an ABI bug in lseek: NetBSD pads the syscallarg structure because of the off_t argument, Darwin does not. In order to get the off_t argument going through our syscall machinery, we declare it as two long arguments, and we reassemble it in darwin_sys_lseek. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.11 2003/01/22 17:47:36 christos Exp $ d235 1 a235 1 104 NOARGS { int sys_bind(int s, const struct sockaddr *name, \ @ 1.11 log @regen @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.10 2002/12/26 14:41:06 manu Exp $ d54 1 d94 2 a95 2 19 NOARGS { long sys_lseek(int fd, long offset, int whence); } \ olseek d380 2 a381 2 199 NOARGS { off_t compat_43_sys_lseek(int fd, int pad, \ off_t offset, int whence); } @ 1.10 log @Added the mysterious system call 331 (it does not seems to be in the header files anywhere). This is pthread_exit. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.9 2002/12/24 12:15:46 manu Exp $ d155 1 a155 1 50 NOARGS { int sys_setlogin(const char *namebuf); } @ 1.9 log @On Darwin, mach_init is the system bootstrap process. It is responsible for forking the traditional UNIX init(8) and it does the Mach port naming service. We need mach_init for the naming service, but unfortunately, it will only act as such if its PID is 1. We introduce a sysctl (emul.darwin.init_pid) to fool a given process into thinking its PID is 1. That way we can get mach_init into behaving as the name server. Typical use: /sbin/sysctl -w emul.darwin.init_pid=$$ ; exec /emul/darwin/sbin/mach_init @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.8 2002/12/08 21:53:18 manu Exp $ d518 1 a518 1 331 UNIMPL @ 1.8 log @A working fork/vfork implementation. Darwin fork differs from our fork by two ways: - the child gets its pid as retval[0] (userland stub will turn it into a 0), retval[1] is 1 and it is 0 in the parent. - in the child, the fork syscall is successful, hence we must skip the next instruction. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.7 2002/12/08 00:50:28 manu Exp $ d95 1 a95 5 #ifdef COMPAT_43 20 NOARGS { pid_t sys_getpid_with_ppid(void); } getpid #else 20 NOARGS MPSAFE { pid_t sys_getpid(void); } #endif @ 1.7 log @Introduce BSD system calls with alternate patch checking (in /emul) in compat/common, so that they can be shared by several emulations, and use them for Darwin. This removes the ugly dependance on FreeBSD freebsd_file.c for COMPAT_DARWIN @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.6 2002/11/25 22:25:14 manu Exp $ d68 1 a68 1 2 NOARGS { int sys_fork(void); } d182 1 a182 1 66 NOARGS { int sys_vfork(void); } @ 1.6 log @Added an empty shell for signal delivery. Now we just have to fill the machine dependant bits. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.5 2002/11/23 02:18:56 manu Exp $ d56 2 a60 2 #include d72 1 a72 1 5 NOARGS { int freebsd_sys_open(const char *path, \ d77 1 a77 1 8 NOARGS { int compat_43_freebsd_sys_creat(const char *path, \ d79 1 a79 1 9 NOARGS { int freebsd_sys_link(const char *path, \ d81 1 a81 1 10 NOARGS { int freebsd_sys_unlink(const char *path); } d83 1 a83 1 12 NOARGS { int freebsd_sys_chdir(const char *path); } d85 1 a85 1 14 NOARGS { int freebsd_sys_mknod(const char *path, \ d87 2 a88 2 15 NOARGS { int freebsd_sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int freebsd_sys_chown(const char *path, uid_t uid, \ d100 3 a102 3 21 NOARGS { int sys_mount(const char *type, const char *path, \ int flags, void *data); } 22 NOARGS { int sys_unmount(const char *path, int flags); } d125 1 a125 1 33 NOARGS { int freebsd_sys_access(const char *path, \ d127 1 a127 1 34 NOARGS { int freebsd_sys_chflags(const char *path, \ d132 1 a132 1 38 NOARGS { int compat_43_freebsd_sys_stat(const char *path, \ d135 1 a135 1 40 NOARGS { int compat_43_freebsd_sys_lstat(const char *path, \ d160 1 a160 1 51 NOARGS { int sys_acct(const char *path); } d168 2 a169 2 56 NOARGS { int freebsd_sys_revoke(const char *path); } 57 NOARGS { int freebsd_sys_symlink(const char *path, \ d171 1 a171 1 58 NOARGS { int freebsd_sys_readlink(const char *path, \ d173 1 a173 1 59 NOARGS { int freebsd_sys_execve(const char *path, \ d176 1 a176 1 61 NOARGS { int freebsd_sys_chroot(const char *path); } d209 1 a209 1 85 NOARGS { int compat_12_sys_swapon(const char *name); } oswapon d276 1 a276 1 128 NOARGS { int freebsd_sys_rename(const char *from, \ d278 1 a278 1 129 NOARGS { int compat_43_freebsd_sys_truncate(const \ d284 1 a284 1 132 NOARGS { int freebsd_sys_mkfifo(const char *path, \ d292 3 a294 3 136 NOARGS { int freebsd_sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int freebsd_sys_rmdir(const char *path); } 138 NOARGS { int sys_utimes(const char *path, \ d325 1 a325 1 157 NOARGS { int freebsd_sys_statfs(const char *path, \ d331 1 a331 1 161 NOARGS { int freebsd_sys_getfh(const char *fname, \ d364 1 a364 1 188 NOARGS { int freebsd_sys_stat(const char *path, \ d368 1 a368 1 190 NOARGS { int freebsd_sys_lstat(const char *path, \ d370 1 a370 1 191 NOARGS { long freebsd_sys_pathconf(const char *path, \ d385 1 a385 1 200 NOARGS { int freebsd_sys_truncate(const char *path, \ d393 1 a393 1 205 NOARGS { int sys_undelete(const char *path); } @ 1.5 log @Add support for two Darwin sysctl @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.4 2002/11/17 02:46:26 manu Exp $ d61 1 d148 3 a150 3 46 NOARGS { int compat_13_sys_sigaction(int signum, \ const struct sigaction13 *nsa, \ struct sigaction13 *osa); } sigaction13 d236 2 a237 2 103 NOARGS { int compat_13_sys_sigreturn(struct \ sigcontext13 *sigcntxp); } sigreturn13 @ 1.4 log @Implement mach_sys_load_shared_file. This are not complete yet, especially wrt to the flags, but at least it does relocations. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.3 2002/11/16 19:59:20 manu Exp $ d387 2 a388 2 202 NOARGS { int sys___sysctl(int *name, u_int namelen, \ void *old, size_t *oldlenp, void *new, \ @ 1.3 log @Change a syscal name @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2 2002/11/14 21:47:15 manu Exp $ d56 3 d60 3 d483 4 a486 1 296 UNIMPL load_shared_file @ 1.2 log @Use FreeBSD emulation to get pathname lookups in /emul/darwin. These FreeBSD emulated system call just check in /emul and call the native system call. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.1 2002/11/12 22:04:09 manu Exp $ d360 1 a360 1 struct stat12 *sb); } fstat12 @ 1.2.2.1 log @file syscalls.master was added on branch nathanw_sa on 2002-12-11 06:37:08 +0000 @ text @d1 530 @ 1.2.2.2 log @Sync with HEAD. @ text @a0 540 $NetBSD: syscalls.master,v 1.2.2.1 2002/12/11 06:37:08 thorpej Exp $ ; @@(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; NetBSD system call name/number "master" file. ; (See syscalls.conf to see what it is processed into.) ; ; Fields: number type [type-dependent ...] ; number system call number, must be in order ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of ; the compatibility options defined in syscalls.conf. ; ; An optional field, MPSAFE, after the type field, indicates that ; the system call is MP-safe. ; ; types: ; STD always included ; OBSOL obsolete, not included in system ; UNIMPL unimplemented, not included in system ; NODEF included, but don't define the syscall number ; NOARGS included, but don't define the syscall args structure ; ; The compat options are defined in the syscalls.conf file, and the ; compat option name is prefixed to the syscall name. Other than ; that, they're like NODEF (for 'compat' options), or STD (for ; 'libcompat' options). ; ; The type-dependent arguments are as follows: ; For STD, NODEF, NOARGS, and compat syscalls: ; { pseudo-proto } [alias] ; For other syscalls: ; [comment] ; ; #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. ; ; NB: A lot of system calls are used from FreeBSD emulation, because theses ; system calls are just native NetBSD plus a check in /emul/. #include "opt_ktrace.h" #include "opt_nfsserver.h" #include "opt_ntp.h" #include "opt_compat_netbsd.h" #include "opt_sysv.h" #include "opt_compat_43.h" #include "fs_lfs.h" #include "fs_nfs.h" #include #include #include #include #include #include #include #include #include #include %% 0 INDIR { int sys_syscall(int number, ...); } 1 NOARGS { void sys_exit(int rval); } 2 STD { int darwin_sys_fork(void); } 3 NOARGS { ssize_t sys_read(int fd, void *buf, size_t nbyte); } 4 NOARGS { ssize_t sys_write(int fd, const void *buf, \ size_t nbyte); } 5 NODEF { int bsd_sys_open(const char *path, \ int flags, ... mode_t mode); } 6 NOARGS { int sys_close(int fd); } 7 NOARGS { int sys_wait4(int pid, int *status, int options, \ struct rusage *rusage); } 8 NODEF { int bsd_compat_43_sys_creat(const char *path, \ mode_t mode); } ocreat 9 NODEF { int bsd_sys_link(const char *path, \ const char *link); } 10 NODEF { int bsd_sys_unlink(const char *path); } 11 UNIMPL execv 12 NODEF { int bsd_sys_chdir(const char *path); } 13 NOARGS { int sys_fchdir(int fd); } 14 NODEF { int bsd_sys_mknod(const char *path, \ mode_t mode, dev_t dev); } 15 NODEF { int bsd_sys_chmod(const char *path, mode_t mode); } 16 NODEF { int bsd_sys_chown(const char *path, uid_t uid, \ gid_t gid); } 17 NOARGS { int sys_obreak(char *nsize); } break 18 NOARGS { int sys_getfsstat(struct statfs *buf, long bufsize, \ int flags); } 19 NOARGS { long sys_lseek(int fd, long offset, int whence); } \ olseek #ifdef COMPAT_43 20 NOARGS { pid_t sys_getpid_with_ppid(void); } getpid #else 20 NOARGS MPSAFE { pid_t sys_getpid(void); } #endif 21 NODEF { int bsd_sys_mount(const char *type, \ const char *path, int flags, void *data); } 22 NODEF { int bsd_sys_unmount(const char *path, int flags); } 23 NOARGS { int sys_setuid(uid_t uid); } #ifdef COMPAT_43 24 NOARGS { uid_t sys_getuid_with_euid(void); } getuid #else 24 NOARGS { uid_t sys_getuid(void); } #endif 25 NOARGS { uid_t sys_geteuid(void); } 26 NOARGS { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ int data); } 27 NOARGS { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ int flags); } 28 NOARGS { ssize_t sys_sendmsg(int s, \ const struct msghdr *msg, int flags); } 29 NOARGS { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ int flags, struct sockaddr *from, \ unsigned int *fromlenaddr); } 30 NOARGS { int sys_accept(int s, struct sockaddr *name, \ unsigned int *anamelen); } 31 NOARGS { int sys_getpeername(int fdes, struct sockaddr *asa, \ unsigned int *alen); } 32 NOARGS { int sys_getsockname(int fdes, struct sockaddr *asa, \ unsigned int *alen); } 33 NODEF { int bsd_sys_access(const char *path, \ int flags); } 34 NODEF { int bsd_sys_chflags(const char *path, \ u_long flags); } 35 NOARGS { int sys_fchflags(int fd, u_long flags); } 36 NOARGS { void sys_sync(void); } 37 NOARGS { int sys_kill(int pid, int signum); } 38 NODEF { int bsd_compat_43_sys_stat(const char *path, \ struct stat43 *ub); } stat43 39 NOARGS { pid_t sys_getppid(void); } 40 NODEF { int bsd_compat_43_sys_lstat(const char *path, \ struct stat43 *ub); } lstat43 41 NOARGS { int sys_dup(int fd); } 42 NOARGS { int sys_pipe(void); } 43 NOARGS { gid_t sys_getegid(void); } 44 NOARGS { int sys_profil(caddr_t samples, size_t size, \ u_long offset, u_int scale); } #if defined(KTRACE) || !defined(_KERNEL) 45 NOARGS { int sys_ktrace(const char *fname, int ops, \ int facs, int pid); } #else 45 EXCL ktrace #endif 46 STD { int darwin_sys_sigaction(int signum, \ struct darwin___sigaction *nsa, \ struct sigaction13 *osa); } #ifdef COMPAT_43 47 NOARGS { gid_t sys_getgid_with_egid(void); } getgid #else 47 NOARGS { gid_t sys_getgid(void); } #endif 48 NOARGS { int compat_13_sys_sigprocmask(int how, \ int mask); } sigprocmask13 49 NOARGS { int sys___getlogin(char *namebuf, size_t namelen); } 50 NOARGS { int sys_setlogin(const char *namebuf); } 51 NODEF { int bsd_sys_acct(const char *path); } 52 NOARGS { int compat_13_sys_sigpending(void); } sigpending13 53 NOARGS { int compat_13_sys_sigaltstack( \ const struct sigaltstack13 *nss, \ struct sigaltstack13 *oss); } sigaltstack13 54 NOARGS { int sys_ioctl(int fd, \ u_long com, ... void *data); } 55 NOARGS { int sys_reboot(int opt); } oreboot 56 NODEF { int bsd_sys_revoke(const char *path); } 57 NODEF { int bsd_sys_symlink(const char *path, \ const char *link); } 58 NODEF { int bsd_sys_readlink(const char *path, \ char *buf, size_t count); } 59 NODEF { int bsd_sys_execve(const char *path, \ char * const *argp, char * const *envp); } 60 NOARGS { mode_t sys_umask(mode_t newmask); } 61 NODEF { int bsd_sys_chroot(const char *path); } 62 NOARGS { int compat_43_sys_fstat(int fd, \ struct stat43 *sb); } fstat43 63 UNIMPL 64 NOARGS { int compat_43_sys_getpagesize(void); } ogetpagesize 65 NOARGS { int compat_12_sys_msync(caddr_t addr, size_t len); } 66 STD { int darwin_sys_vfork(void); } 67 OBSOL vread 68 OBSOL vwrite 69 NOARGS { int sys_sbrk(intptr_t incr); } 70 NOARGS { int sys_sstk(int incr); } 71 NOARGS { int sys_mmap(caddr_t addr, size_t len, int prot, \ int flags, int fd, long pos); } ommap 72 NOARGS { int sys_ovadvise(int anom); } vadvise 73 NOARGS { int sys_munmap(void *addr, size_t len); } 74 NOARGS { int sys_mprotect(void *addr, size_t len, \ int prot); } 75 NOARGS { int sys_madvise(void *addr, size_t len, \ int behav); } 76 UNIMPL 77 UNIMPL 78 NOARGS { int sys_mincore(void *addr, size_t len, \ char *vec); } 79 NOARGS { int sys_getgroups(int gidsetsize, \ gid_t *gidset); } 80 NOARGS { int sys_setgroups(int gidsetsize, \ const gid_t *gidset); } 81 NOARGS { int sys_getpgrp(void); } 82 NOARGS { int sys_setpgid(int pid, int pgid); } 83 NOARGS { int sys_setitimer(int which, \ const struct itimerval *itv, \ struct itimerval *oitv); } 84 NOARGS { int compat_43_sys_wait(void); } owait 85 NODEF { int bsd_compat_12_sys_swapon(const char *name); } 86 NOARGS { int sys_getitimer(int which, \ struct itimerval *itv); } 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \ u_int len); } ogethostname 88 NOARGS { int compat_43_sys_sethostname(char *hostname, \ u_int len); } osethostname 89 NOARGS { int compat_43_sys_getdtablesize(void); } \ ogetdtablesize 90 NOARGS { int sys_dup2(int from, int to); } 91 UNIMPL 92 NOARGS { int sys_fcntl(int fd, int cmd, ... void *arg); } 93 NOARGS { int sys_select(int nd, fd_set *in, fd_set *ou, \ fd_set *ex, struct timeval *tv); } 94 UNIMPL 95 NOARGS { int sys_fsync(int fd); } 96 NOARGS { int sys_setpriority(int which, int who, int prio); } 97 NOARGS { int sys_socket(int domain, int type, int protocol); } 98 NOARGS { int sys_connect(int s, const struct sockaddr *name, \ unsigned int namelen); } 99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \ int *anamelen); } oaccept 100 NOARGS { int sys_getpriority(int which, int who); } 101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \ int flags); } osend 102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \ int flags); } orecv 103 STD { int darwin_sys_sigreturn(struct \ darwin_ucontext *uctx); } 104 NOARGS { int sys_bind(int s, const struct sockaddr *name, \ unsigned int namelen); } 105 NOARGS { int sys_setsockopt(int s, int level, int name, \ const void *val, unsigned int valsize); } 106 NOARGS { int sys_listen(int s, int backlog); } 107 UNIMPL 108 NOARGS { int compat_43_sys_sigvec(int signum, \ struct sigvec *nsv, struct sigvec *osv); } osigvec 109 NOARGS { int compat_43_sys_sigblock(int mask); } osigblock 110 NOARGS { int compat_43_sys_sigsetmask(int mask); } osigsetmask 111 NOARGS { int compat_13_sys_sigsuspend(int mask); } \ sigsuspend13 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \ struct sigstack *oss); } osigstack 113 NOARGS { int compat_43_sys_recvmsg(int s, \ struct omsghdr *msg, int flags); } orecvmsg 114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \ int flags); } osendmsg 115 UNIMPL 116 NOARGS { int sys_gettimeofday(struct timeval *tp, \ struct timezone *tzp); } 117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); } 118 NOARGS { int sys_getsockopt(int s, int level, int name, \ void *val, unsigned int *avalsize); } 119 UNIMPL 120 NOARGS { ssize_t sys_readv(int fd, \ const struct iovec *iovp, int iovcnt); } 121 NOARGS { ssize_t sys_writev(int fd, \ const struct iovec *iovp, int iovcnt); } 122 NOARGS { int sys_settimeofday(const struct timeval *tv, \ const struct timezone *tzp); } 123 NOARGS { int sys_fchown(int fd, uid_t uid, gid_t gid); } 124 NOARGS { int sys_fchmod(int fd, mode_t mode); } 125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \ size_t len, int flags, caddr_t from, \ int *fromlenaddr); } orecvfrom 126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); } 127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); } 128 NODEF { int bsd_sys_rename(const char *from, \ const char *to); } 129 NODEF { int bsd_compat_43_sys_truncate(const \ char *path, long length); } \ otruncate 130 NOARGS { int compat_43_sys_ftruncate(int fd, \ long length); } oftruncate 131 NOARGS { int sys_flock(int fd, int how); } 132 NODEF { int bsd_sys_mkfifo(const char *path, \ mode_t mode); } 133 NOARGS { ssize_t sys_sendto(int s, const void *buf, \ size_t len, int flags, const struct sockaddr *to, \ unsigned int tolen); } 134 NOARGS { int sys_shutdown(int s, int how); } 135 NOARGS { int sys_socketpair(int domain, int type, \ int protocol, int *rsv); } 136 NODEF { int bsd_sys_mkdir(const char *path, mode_t mode); } 137 NODEF { int bsd_sys_rmdir(const char *path); } 138 NODEF { int bsd_sys_utimes(const char *path, \ const struct timeval *tptr); } 139 UNIMPL futimes 140 NOARGS { int sys_adjtime(const struct timeval *delta, \ struct timeval *olddelta); } 141 NOARGS { int compat_43_sys_getpeername(int fdes, \ caddr_t asa, int *alen); } ogetpeername 142 NOARGS { int32_t compat_43_sys_gethostid(void); } ogethostid 143 UNIMPL 144 NOARGS { int compat_43_sys_getrlimit(int which, \ struct orlimit *rlp); } ogetrlimit 145 NOARGS { int compat_43_sys_setrlimit(int which, \ const struct orlimit *rlp); } osetrlimit 146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); } \ okillpg 147 NOARGS { int sys_setsid(void); } 148 UNIMPL 149 UNIMPL 150 NOARGS { int compat_43_sys_getsockname(int fdec, \ caddr_t asa, int *alen); } ogetsockname 151 UNIMPL getpgid 152 UNIMPL setprivexec 153 UNIMPL pread 154 UNIMPL pwrite #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 155 NOARGS { int sys_nfssvc(int flag, void *argp); } #else 155 EXCL nfssvc #endif 156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \ u_int count, long *basep); } ogetdirentries 157 NODEF { int bsd_sys_statfs(const char *path, \ struct statfs *buf); } 158 NOARGS { int sys_fstatfs(int fd, struct statfs *buf); } 159 UNIMPL unmount 160 UNIMPL #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) 161 NODEF { int bsd_sys_getfh(const char *fname, \ fhandle_t *fhp); } #else 161 EXCL getfh #endif 162 NOARGS { int compat_09_sys_getdomainname(char *domainname, \ int len); } ogetdomainname 163 NOARGS { int compat_09_sys_setdomainname(char *domainname, \ int len); } osetdomainname 164 UNIMPL 165 UNIMPL quotactl 166 UNIMPL 167 UNIMPL mount 168 UNIMPL 169 UNIMPL 170 UNIMPL 171 UNIMPL wait3 172 UNIMPL 173 UNIMPL 174 UNIMPL 175 UNIMPL 176 UNIMPL add_profil 177 UNIMPL 178 UNIMPL 179 UNIMPL 180 UNIMPL kdebug_trace 181 NOARGS { int sys_setgid(gid_t gid); } 182 NOARGS { int sys_setegid(gid_t egid); } 183 NOARGS { int sys_seteuid(uid_t euid); } 184 UNIMPL 185 UNIMPL 186 UNIMPL 187 UNIMPL 188 NODEF { int bsd_compat_12_sys_stat(const char *path, \ struct stat12 *ub); } stat12 189 NOARGS { int compat_12_sys_fstat(int fd, \ struct stat12 *sb); } 190 NODEF { int bsd_compat_12_sys_lstat(const char *path, \ struct stat12 *ub); } lstat12 191 NODEF { long bsd_sys_pathconf(const char *path, \ int name); } 192 NOARGS { long sys_fpathconf(int fd, int name); } 193 UNIMPL getfsstat 194 NOARGS { int sys_getrlimit(int which, \ struct rlimit *rlp); } 195 NOARGS { int sys_setrlimit(int which, \ const struct rlimit *rlp); } 196 NOARGS { int compat_12_sys_getdirentries(int fd, char *buf, \ u_int count, long *basep); } 197 NOARGS { void *sys_mmap(void *addr, size_t len, int prot, \ int flags, int fd, long pad, off_t pos); } 198 UNIMPL 199 NOARGS { off_t compat_43_sys_lseek(int fd, int pad, \ off_t offset, int whence); } 200 NODEF { int bsd_sys_truncate(const char *path, \ int pad, off_t length); } 201 NOARGS { int sys_ftruncate(int fd, int pad, off_t length); } 202 STD { int darwin_sys___sysctl(int *name, u_int namelen, \ void *oldp, size_t *oldlenp, void *newp, \ size_t newlen); } 203 NOARGS { int sys_mlock(const void *addr, size_t len); } 204 NOARGS { int sys_munlock(const void *addr, size_t len); } 205 STD { int bsd_sys_undelete(const char *path); } 206 UNIMPL atsocket 207 UNIMPL atgetmsg 208 UNIMPL atputmsg 209 UNIMPL atpsndreq 210 UNIMPL atpsndrsp 211 UNIMPL atpgetreq 212 UNIMPL atpgetrsp 213 UNIMPL 214 UNIMPL 215 UNIMPL 216 UNIMPL 217 UNIMPL 218 UNIMPL 219 UNIMPL 220 UNIMPL getattrlist 221 UNIMPL setattrlist 222 UNIMPL getdirentriesattr 223 UNIMPL exchangedata 224 UNIMPL checkuseraccess 225 UNIMPL searchfs 226 UNIMPL delete 227 UNIMPL copyfile 228 UNIMPL 229 UNIMPL 230 UNIMPL 231 UNIMPL watchevent 232 UNIMPL waitevent 233 UNIMPL modwatch 234 UNIMPL 235 UNIMPL 236 UNIMPL 237 UNIMPL 238 UNIMPL 239 UNIMPL 240 UNIMPL 241 UNIMPL 242 UNIMPL fsctl 243 UNIMPL 244 UNIMPL 245 UNIMPL 246 UNIMPL 247 UNIMPL 248 UNIMPL 249 UNIMPL 250 UNIMPL minherit 251 UNIMPL semsys 252 UNIMPL msgsys 253 UNIMPL semop 254 UNIMPL semctl 255 UNIMPL semget 256 UNIMPL semop 257 UNIMPL semconfig 258 UNIMPL msgctl 259 UNIMPL msgget 260 UNIMPL msgsnd 261 UNIMPL msgrcv 262 UNIMPL shmat 263 UNIMPL shmctl 264 UNIMPL shmdt 265 UNIMPL shmget 266 UNIMPL shm_open 267 UNIMPL shm_unlink 268 UNIMPL sem_open 269 UNIMPL sem_close 270 UNIMPL sem_unlink 271 UNIMPL sem_wait 272 UNIMPL sem_trywait 273 UNIMPL sem_post 274 UNIMPL sem_getvalue 275 UNIMPL sem_init 276 UNIMPL sem_destroy 277 UNIMPL 278 UNIMPL 279 UNIMPL 280 UNIMPL 281 UNIMPL 282 UNIMPL 283 UNIMPL 284 UNIMPL 285 UNIMPL 286 UNIMPL 287 UNIMPL 288 UNIMPL 289 UNIMPL 290 UNIMPL 291 UNIMPL 292 UNIMPL 293 UNIMPL 294 UNIMPL 295 UNIMPL 296 STD { int darwin_sys_load_shared_file(char *filename, \ caddr_t addr, u_long len, caddr_t *base, \ int count, mach_sf_mapping_t *mappings, \ int *flags); } 297 UNIMPL reset_shared_file 298 UNIMPL new_system_shared_regions 299 UNIMPL 300 UNIMPL 301 UNIMPL 302 UNIMPL 303 UNIMPL 304 UNIMPL 305 UNIMPL 306 UNIMPL 307 UNIMPL 308 UNIMPL 309 UNIMPL 310 UNIMPL getsid 311 UNIMPL 312 UNIMPL 313 UNIMPL 314 UNIMPL 315 UNIMPL 316 UNIMPL 317 UNIMPL 318 UNIMPL 319 UNIMPL 320 UNIMPL 321 UNIMPL 322 UNIMPL 323 UNIMPL 324 UNIMPL mlockall 325 UNIMPL munlockall 326 UNIMPL 327 UNIMPL issetugid 328 UNIMPL __pthread_kill 329 UNIMPL pthread_sigmask 330 UNIMPL sigwait 331 UNIMPL 332 UNIMPL 333 UNIMPL 334 UNIMPL 335 UNIMPL utrace 336 UNIMPL 337 UNIMPL 338 UNIMPL 339 UNIMPL 340 UNIMPL 341 UNIMPL 342 UNIMPL 343 UNIMPL 344 UNIMPL 345 UNIMPL 346 UNIMPL 347 UNIMPL 348 UNIMPL 349 UNIMPL @ 1.2.2.3 log @Sync with HEAD. @ text @d1 1 a1 1 $NetBSD: syscalls.master,v 1.2.2.2 2002/12/29 19:43:50 thorpej Exp $ d95 5 a99 1 20 STD { pid_t darwin_sys_getpid(void); } d522 1 a522 1 331 STD { void darwin_sys_pthread_exit(void *value_ptr); } @ 1.1 log @Darwin system calls skeleton @ text @d1 1 a1 1 $NetBSD$ d36 3 d56 1 d65 1 a65 1 5 NOARGS { int sys_open(const char *path, \ d70 5 a74 3 8 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat 9 NOARGS { int sys_link(const char *path, const char *link); } 10 NOARGS { int sys_unlink(const char *path); } d76 1 a76 1 12 NOARGS { int sys_chdir(const char *path); } d78 4 a81 4 14 NOARGS { int sys_mknod(const char *path, mode_t mode, \ dev_t dev); } 15 NOARGS { int sys_chmod(const char *path, mode_t mode); } 16 NOARGS { int sys_chown(const char *path, uid_t uid, \ d86 1 a86 1 19 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \ d118 4 a121 2 33 NOARGS { int sys_access(const char *path, int flags); } 34 NOARGS { int sys_chflags(const char *path, u_long flags); } d125 2 a126 2 38 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \ stat43 d128 1 a128 1 40 COMPAT_43 { int sys_lstat(const char *path, \ d141 1 a141 1 46 COMPAT_13 { int sys_sigaction(int signum, \ d149 1 a149 1 48 COMPAT_13 { int sys_sigprocmask(int how, \ d154 2 a155 2 52 COMPAT_13 { int sys_sigpending(void); } sigpending13 53 COMPAT_13 { int sys_sigaltstack( \ d160 3 a162 3 55 COMPAT_12 { int sys_reboot(int opt); } oreboot 56 NOARGS { int sys_revoke(const char *path); } 57 NOARGS { int sys_symlink(const char *path, \ d164 3 a166 3 58 NOARGS { int sys_readlink(const char *path, char *buf, \ size_t count); } 59 NOARGS { int sys_execve(const char *path, \ d169 3 a171 2 61 NOARGS { int sys_chroot(const char *path); } 62 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43 d173 2 a174 2 64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize 65 COMPAT_12 { int sys_msync(caddr_t addr, size_t len); } d180 1 a180 1 71 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \ d201 2 a202 2 84 COMPAT_43 { int sys_wait(void); } owait 85 COMPAT_12 { int sys_swapon(const char *name); } oswapon d205 6 a210 5 87 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \ ogethostname 88 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \ osethostname 89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize d222 1 a222 1 99 COMPAT_43 { int sys_accept(int s, caddr_t name, \ d225 1 a225 1 101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \ d227 1 a227 1 102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \ d229 2 a230 2 103 COMPAT_13 { int sys_sigreturn(struct sigcontext13 *sigcntxp); } \ sigreturn13 d237 7 a243 6 108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \ struct sigvec *osv); } osigvec 109 COMPAT_43 { int sys_sigblock(int mask); } osigblock 110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask 111 COMPAT_13 { int sys_sigsuspend(int mask); } sigsuspend13 112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \ d245 4 a248 4 113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \ int flags); } orecvmsg 114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \ osendmsg d264 3 a266 3 125 COMPAT_43 { int sys_recvfrom(int s, caddr_t buf, size_t len, \ int flags, caddr_t from, int *fromlenaddr); } \ orecvfrom d269 4 a272 2 128 NOARGS { int sys_rename(const char *from, const char *to); } 129 COMPAT_43 { int sys_truncate(const char *path, long length); } \ d274 2 a275 1 130 COMPAT_43 { int sys_ftruncate(int fd, long length); } oftruncate d277 2 a278 1 132 NOARGS { int sys_mkfifo(const char *path, mode_t mode); } d285 2 a286 2 136 NOARGS { int sys_mkdir(const char *path, mode_t mode); } 137 NOARGS { int sys_rmdir(const char *path); } d292 3 a294 3 141 COMPAT_43 { int sys_getpeername(int fdes, caddr_t asa, \ int *alen); } ogetpeername 142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid d296 1 a296 1 144 COMPAT_43 { int sys_getrlimit(int which, \ d298 1 a298 1 145 COMPAT_43 { int sys_setrlimit(int which, \ d300 2 a301 1 146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg d305 2 a306 2 150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t asa, \ int *alen); } ogetsockname d316 1 a316 1 156 COMPAT_43 { int sys_getdirentries(int fd, char *buf, \ d318 1 a318 1 157 NOARGS { int sys_statfs(const char *path, \ d323 10 a332 5 161 NOARGS { int sys_getfh(const char *fname, fhandle_t *fhp); } 162 COMPAT_09 { int sys_getdomainname(char *domainname, int len); } \ ogetdomainname 163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \ osetdomainname d357 5 a361 4 188 COMPAT_12 { int sys_stat(const char *path, struct stat12 *ub); } \ stat12 189 COMPAT_12 { int sys_fstat(int fd, struct stat12 *sb); } fstat12 190 COMPAT_12 { int sys_lstat(const char *path, \ d363 2 a364 1 191 NOARGS { long sys_pathconf(const char *path, int name); } d371 1 a371 1 196 COMPAT_12 { int sys_getdirentries(int fd, char *buf, \ d376 4 a379 4 199 NOARGS { off_t sys_lseek(int fd, int pad, off_t offset, \ int whence); } 200 NOARGS { int sys_truncate(const char *path, int pad, \ off_t length); } @