head	1.55;
access;
symbols
	perseant-exfatfs-base-20250801:1.55
	perseant-exfatfs-base-20240630:1.55
	perseant-exfatfs:1.55.0.36
	perseant-exfatfs-base:1.55
	bouyer-sunxi-drm:1.55.0.34
	bouyer-sunxi-drm-base:1.55
	cjep_sun2x:1.55.0.32
	cjep_sun2x-base:1.55
	cjep_staticlib_x-base1:1.55
	cjep_staticlib_x:1.55.0.30
	cjep_staticlib_x-base:1.55
	thorpej-futex-base:1.55
	bouyer-xenpvh-base2:1.55
	phil-wifi-20200421:1.55
	bouyer-xenpvh-base1:1.55
	phil-wifi-20200411:1.55
	bouyer-xenpvh:1.55.0.28
	bouyer-xenpvh-base:1.55
	phil-wifi-20200406:1.55
	ad-namecache-base3:1.55
	ad-namecache-base2:1.55
	ad-namecache-base1:1.55
	ad-namecache:1.55.0.26
	ad-namecache-base:1.55
	isaki-audio2:1.55.0.24
	isaki-audio2-base:1.55
	pgoyette-compat-merge-20190127:1.55
	pgoyette-compat-20190127:1.55
	pgoyette-compat-20190118:1.55
	pgoyette-compat-1226:1.55
	pgoyette-compat-1126:1.55
	pgoyette-compat-1020:1.55
	pgoyette-compat-0930:1.55
	pgoyette-compat-0906:1.55
	pgoyette-compat-0728:1.55
	pgoyette-compat-0625:1.55
	pgoyette-compat-0521:1.55
	pgoyette-compat-0502:1.55
	pgoyette-compat-0422:1.55
	pgoyette-compat-0415:1.55
	pgoyette-compat-0407:1.55
	pgoyette-compat-0330:1.55
	pgoyette-compat-0322:1.55
	pgoyette-compat-0315:1.55
	pgoyette-compat:1.55.0.22
	pgoyette-compat-base:1.55
	perseant-stdc-iso10646:1.55.0.20
	perseant-stdc-iso10646-base:1.55
	prg-localcount2-base3:1.55
	prg-localcount2-base2:1.55
	prg-localcount2-base1:1.55
	prg-localcount2:1.55.0.18
	prg-localcount2-base:1.55
	pgoyette-localcount-20170426:1.55
	bouyer-socketcan-base1:1.55
	pgoyette-localcount-20170320:1.55
	bouyer-socketcan:1.55.0.16
	bouyer-socketcan-base:1.55
	pgoyette-localcount-20170107:1.55
	pgoyette-localcount-20161104:1.55
	localcount-20160914:1.55
	pgoyette-localcount-20160806:1.55
	pgoyette-localcount-20160726:1.55
	pgoyette-localcount:1.55.0.14
	pgoyette-localcount-base:1.55
	netbsd-5-2-3-RELEASE:1.52
	netbsd-5-1-5-RELEASE:1.52
	yamt-pagecache-base9:1.55
	yamt-pagecache-tag8:1.55
	tls-earlyentropy:1.55.0.12
	tls-earlyentropy-base:1.55
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.55
	riastradh-drm2-base3:1.55
	netbsd-5-2-2-RELEASE:1.52
	netbsd-5-1-4-RELEASE:1.52
	netbsd-5-2-1-RELEASE:1.52
	netbsd-5-1-3-RELEASE:1.52
	rmind-smpnet-nbase:1.55
	rmind-smpnet:1.55.0.8
	rmind-smpnet-base:1.55
	agc-symver:1.55.0.10
	agc-symver-base:1.55
	tls-maxphys-base:1.55
	yamt-pagecache-base8:1.55
	netbsd-5-2:1.52.0.24
	yamt-pagecache-base7:1.55
	netbsd-5-2-RELEASE:1.52
	netbsd-5-2-RC1:1.52
	yamt-pagecache-base6:1.55
	yamt-pagecache-base5:1.55
	yamt-pagecache-base4:1.55
	netbsd-5-1-2-RELEASE:1.52
	netbsd-5-1-1-RELEASE:1.52
	jmcneill-usbmp:1.55.0.6
	jmcneill-usbmp-base:1.55
	jmcneill-audiomp3:1.55.0.4
	jmcneill-audiomp3-base:1.55
	yamt-pagecache-base3:1.55
	yamt-pagecache-base2:1.55
	yamt-pagecache:1.55.0.2
	yamt-pagecache-base:1.55
	rmind-uvmplock-nbase:1.55
	bouyer-quota2-nbase:1.54
	bouyer-quota2:1.54.0.10
	bouyer-quota2-base:1.54
	jruoho-x86intr:1.54.0.8
	jruoho-x86intr-base:1.54
	matt-mips64-premerge-20101231:1.54
	matt-nb5-mips64-premerge-20101231:1.52
	matt-nb5-pq3:1.52.0.22
	matt-nb5-pq3-base:1.52
	netbsd-5-1:1.52.0.20
	netbsd-5-1-RELEASE:1.52
	uebayasi-xip-base4:1.54
	uebayasi-xip-base3:1.54
	yamt-nfs-mp-base11:1.54
	netbsd-5-1-RC4:1.52
	matt-nb5-mips64-k15:1.52
	uebayasi-xip-base2:1.54
	yamt-nfs-mp-base10:1.54
	netbsd-5-1-RC3:1.52
	netbsd-5-1-RC2:1.52
	uebayasi-xip-base1:1.54
	netbsd-5-1-RC1:1.52
	rmind-uvmplock:1.54.0.6
	rmind-uvmplock-base:1.55
	yamt-nfs-mp-base9:1.54
	uebayasi-xip:1.54.0.4
	uebayasi-xip-base:1.54
	netbsd-5-0-2-RELEASE:1.52
	matt-nb5-mips64-premerge-20091211:1.52
	matt-premerge-20091211:1.54
	yamt-nfs-mp-base8:1.54
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.52
	matt-nb4-mips64-k7-u2a-k9b:1.52
	matt-nb5-mips64-u1-k1-k5:1.52
	yamt-nfs-mp-base7:1.54
	matt-nb5-mips64:1.52.0.18
	netbsd-5-0-1-RELEASE:1.52
	jymxensuspend-base:1.54
	yamt-nfs-mp-base6:1.54
	yamt-nfs-mp-base5:1.54
	yamt-nfs-mp-base4:1.54
	jym-xensuspend-nbase:1.54
	yamt-nfs-mp-base3:1.54
	nick-hppapmap-base4:1.54
	nick-hppapmap-base3:1.54
	netbsd-5-0:1.52.0.16
	netbsd-5-0-RELEASE:1.52
	netbsd-5-0-RC4:1.52
	netbsd-5-0-RC3:1.52
	nick-hppapmap-base2:1.54
	netbsd-5-0-RC2:1.52
	jym-xensuspend:1.54.0.2
	jym-xensuspend-base:1.54
	netbsd-5-0-RC1:1.52
	haad-dm-base2:1.52
	haad-nbase2:1.52
	ad-audiomp2:1.52.0.14
	ad-audiomp2-base:1.52
	netbsd-5:1.52.0.12
	netbsd-5-base:1.52
	nick-hppapmap:1.52.0.10
	nick-hppapmap-base:1.54
	matt-mips64-base2:1.52
	matt-mips64:1.51.0.40
	haad-dm-base1:1.52
	wrstuden-revivesa-base-4:1.52
	netbsd-4-0-1-RELEASE:1.49
	wrstuden-revivesa-base-3:1.52
	wrstuden-revivesa-base-2:1.52
	wrstuden-fixsa-newbase:1.49
	nick-csl-alignment-base5:1.51
	haad-dm:1.52.0.8
	haad-dm-base:1.52
	wrstuden-revivesa-base-1:1.52
	simonb-wapbl-nbase:1.52
	yamt-pf42-base4:1.52
	simonb-wapbl:1.52.0.6
	simonb-wapbl-base:1.52
	yamt-pf42-base3:1.52
	hpcarm-cleanup-nbase:1.52
	yamt-pf42-baseX:1.51
	yamt-pf42-base2:1.52
	yamt-nfs-mp-base2:1.52
	wrstuden-revivesa:1.52.0.4
	wrstuden-revivesa-base:1.52
	yamt-nfs-mp:1.52.0.2
	yamt-nfs-mp-base:1.52
	yamt-pf42:1.51.0.38
	yamt-pf42-base:1.51
	ad-socklock-base1:1.51
	yamt-lazymbuf-base15:1.51
	yamt-lazymbuf-base14:1.51
	keiichi-mipv6-nbase:1.51
	mjf-devfs2:1.51.0.36
	mjf-devfs2-base:1.54
	nick-net80211-sync:1.51.0.34
	nick-net80211-sync-base:1.51
	keiichi-mipv6:1.51.0.32
	keiichi-mipv6-base:1.51
	bouyer-xeni386-merge1:1.51
	matt-armv6-prevmlocking:1.51
	wrstuden-fixsa-base-1:1.49
	vmlocking2-base3:1.51
	netbsd-4-0:1.49.0.30
	netbsd-4-0-RELEASE:1.49
	bouyer-xeni386-nbase:1.51
	yamt-kmem-base3:1.51
	cube-autoconf:1.51.0.30
	cube-autoconf-base:1.51
	yamt-kmem-base2:1.51
	bouyer-xeni386:1.51.0.28
	bouyer-xeni386-base:1.51
	yamt-kmem:1.51.0.26
	yamt-kmem-base:1.51
	vmlocking2-base2:1.51
	reinoud-bufcleanup-nbase:1.51
	vmlocking2:1.51.0.24
	vmlocking2-base1:1.51
	netbsd-4-0-RC5:1.49
	matt-nb4-arm:1.49.0.28
	matt-nb4-arm-base:1.49
	matt-armv6-nbase:1.51
	jmcneill-base:1.51
	netbsd-4-0-RC4:1.49
	mjf-devfs:1.51.0.22
	mjf-devfs-base:1.51
	bouyer-xenamd64-base2:1.51
	vmlocking-nbase:1.51
	yamt-x86pmap-base4:1.51
	bouyer-xenamd64:1.51.0.20
	bouyer-xenamd64-base:1.51
	netbsd-4-0-RC3:1.49
	yamt-x86pmap-base3:1.51
	yamt-x86pmap-base2:1.51
	netbsd-4-0-RC2:1.49
	yamt-x86pmap:1.51.0.18
	yamt-x86pmap-base:1.51
	netbsd-4-0-RC1:1.49
	matt-armv6:1.51.0.16
	matt-armv6-base:1.51
	matt-mips64-base:1.51
	jmcneill-pm:1.51.0.14
	jmcneill-pm-base:1.51
	hpcarm-cleanup:1.51.0.12
	hpcarm-cleanup-base:1.51
	nick-csl-alignment:1.51.0.10
	nick-csl-alignment-base:1.51
	netbsd-3-1-1-RELEASE:1.48
	netbsd-3-0-3-RELEASE:1.48
	yamt-idlelwp-base8:1.51
	wrstuden-fixsa:1.49.0.26
	wrstuden-fixsa-base:1.49
	thorpej-atomic:1.51.0.8
	thorpej-atomic-base:1.51
	reinoud-bufcleanup:1.51.0.6
	reinoud-bufcleanup-base:1.51
	mjf-ufs-trans:1.51.0.4
	mjf-ufs-trans-base:1.51
	vmlocking:1.51.0.2
	vmlocking-base:1.51
	ad-audiomp:1.50.0.4
	ad-audiomp-base:1.50
	yamt-idlelwp:1.50.0.2
	post-newlock2-merge:1.50
	newlock2-nbase:1.49
	yamt-splraiseipl-base5:1.49
	yamt-splraiseipl-base4:1.49
	yamt-splraiseipl-base3:1.49
	abandoned-netbsd-4-base:1.49
	abandoned-netbsd-4:1.49.0.18
	netbsd-3-1:1.48.0.14
	netbsd-3-1-RELEASE:1.48
	netbsd-3-0-2-RELEASE:1.48
	yamt-splraiseipl-base2:1.49
	netbsd-3-1-RC4:1.48
	yamt-splraiseipl:1.49.0.22
	yamt-splraiseipl-base:1.49
	netbsd-3-1-RC3:1.48
	yamt-pdpolicy-base9:1.49
	newlock2:1.49.0.20
	newlock2-base:1.49
	yamt-pdpolicy-base8:1.49
	netbsd-3-1-RC2:1.48
	netbsd-3-1-RC1:1.48
	yamt-pdpolicy-base7:1.49
	netbsd-4:1.49.0.24
	netbsd-4-base:1.49
	yamt-pdpolicy-base6:1.49
	chap-midi-nbase:1.49
	netbsd-3-0-1-RELEASE:1.48
	gdamore-uart:1.49.0.16
	gdamore-uart-base:1.49
	simonb-timcounters-final:1.49
	yamt-pdpolicy-base5:1.49
	chap-midi:1.49.0.14
	chap-midi-base:1.49
	yamt-pdpolicy-base4:1.49
	yamt-pdpolicy-base3:1.49
	peter-altq-base:1.49
	peter-altq:1.49.0.12
	yamt-pdpolicy-base2:1.49
	elad-kernelauth-base:1.49
	elad-kernelauth:1.49.0.10
	yamt-pdpolicy:1.49.0.8
	yamt-pdpolicy-base:1.49
	yamt-uio_vmspace-base5:1.49
	simonb-timecounters:1.49.0.6
	simonb-timecounters-base:1.49
	rpaulo-netinet-merge-pcb:1.49.0.4
	rpaulo-netinet-merge-pcb-base:1.49
	yamt-uio_vmspace:1.49.0.2
	netbsd-3-0:1.48.0.12
	netbsd-3-0-RELEASE:1.48
	netbsd-3-0-RC6:1.48
	yamt-readahead-base3:1.48
	netbsd-3-0-RC5:1.48
	netbsd-3-0-RC4:1.48
	netbsd-3-0-RC3:1.48
	yamt-readahead-base2:1.48
	netbsd-3-0-RC2:1.48
	yamt-readahead-pervnode:1.48
	yamt-readahead-perfile:1.48
	yamt-readahead:1.48.0.10
	yamt-readahead-base:1.48
	netbsd-3-0-RC1:1.48
	yamt-vop-base3:1.48
	netbsd-2-0-3-RELEASE:1.47
	netbsd-2-1:1.47.0.16
	yamt-vop-base2:1.48
	thorpej-vnode-attr:1.48.0.8
	thorpej-vnode-attr-base:1.48
	netbsd-2-1-RELEASE:1.47
	yamt-vop:1.48.0.6
	yamt-vop-base:1.48
	netbsd-2-1-RC6:1.47
	netbsd-2-1-RC5:1.47
	netbsd-2-1-RC4:1.47
	netbsd-2-1-RC3:1.47
	netbsd-2-1-RC2:1.47
	netbsd-2-1-RC1:1.47
	yamt-lazymbuf:1.48.0.4
	yamt-km-base4:1.48
	netbsd-2-0-2-RELEASE:1.47
	yamt-km-base3:1.48
	netbsd-3:1.48.0.2
	netbsd-3-base:1.48
	yamt-km-base2:1.47
	yamt-km:1.47.0.12
	yamt-km-base:1.47
	kent-audio2:1.47.0.10
	kent-audio2-base:1.48
	netbsd-2-0-1-RELEASE:1.47
	kent-audio1-beforemerge:1.47
	netbsd-2:1.47.0.8
	netbsd-2-base:1.47
	kent-audio1:1.47.0.6
	kent-audio1-base:1.47
	netbsd-2-0-RELEASE:1.47
	netbsd-2-0-RC5:1.47
	netbsd-2-0-RC4:1.47
	netbsd-2-0-RC3:1.47
	netbsd-2-0-RC2:1.47
	netbsd-2-0-RC1:1.47
	netbsd-2-0:1.47.0.4
	netbsd-2-0-base:1.47
	netbsd-1-6-PATCH002-RELEASE:1.42
	netbsd-1-6-PATCH002:1.42
	netbsd-1-6-PATCH002-RC4:1.42
	netbsd-1-6-PATCH002-RC3:1.42
	netbsd-1-6-PATCH002-RC2:1.42
	netbsd-1-6-PATCH002-RC1:1.42
	ktrace-lwp:1.47.0.2
	ktrace-lwp-base:1.48
	netbsd-1-6-PATCH001:1.42
	netbsd-1-6-PATCH001-RELEASE:1.42
	netbsd-1-6-PATCH001-RC3:1.42
	netbsd-1-6-PATCH001-RC2:1.42
	netbsd-1-6-PATCH001-RC1:1.42
	nathanw_sa_end:1.17.2.7
	nathanw_sa_before_merge:1.46
	fvdl_fs64_base:1.46
	gmcgarry_ctxsw:1.46.0.4
	gmcgarry_ctxsw_base:1.46
	gmcgarry_ucred:1.46.0.2
	gmcgarry_ucred_base:1.46
	nathanw_sa_base:1.46
	kqueue-aftermerge:1.46
	kqueue-beforemerge:1.46
	netbsd-1-6-RELEASE:1.42
	netbsd-1-6-RC3:1.42
	netbsd-1-6-RC2:1.42
	netbsd-1-6-RC1:1.42
	netbsd-1-6:1.42.0.4
	netbsd-1-6-base:1.42
	gehenna-devsw:1.42.0.2
	gehenna-devsw-base:1.45
	eeh-devprop:1.28.0.2
	eeh-devprop-base:1.28
	newlock:1.26.0.2
	newlock-base:1.26
	ifpoll-base:1.24
	kqueue-base:1.45
	kqueue:1.17.0.4
	nathanw_sa:1.17.0.2
	thorpej-mips-cache:1.1.0.4
	thorpej-mips-cache-base:1.1
	thorpej-devvp-base3:1.1
	thorpej-devvp:1.1.0.2
	thorpej-devvp-base2:1.1;
locks; strict;
comment	@# @;


1.55
date	2011.04.26.16.36.42;	author joerg;	state dead;
branches;
next	1.54;

1.54
date	2009.01.13.22.27.43;	author pooka;	state Exp;
branches
	1.54.6.1
	1.54.8.1;
next	1.53;

1.53
date	2009.01.11.20.00.06;	author rumble;	state Exp;
branches;
next	1.52;

1.52
date	2008.04.23.14.07.49;	author ad;	state Exp;
branches
	1.52.2.1
	1.52.4.1
	1.52.10.1;
next	1.51;

1.51
date	2007.03.04.06.01.18;	author christos;	state Exp;
branches
	1.51.36.1
	1.51.38.1;
next	1.50;

1.50
date	2007.02.09.21.55.18;	author ad;	state Exp;
branches
	1.50.2.1;
next	1.49;

1.49
date	2005.12.11.12.20.12;	author christos;	state Exp;
branches
	1.49.20.1;
next	1.48;

1.48
date	2005.02.26.23.10.19;	author perry;	state Exp;
branches
	1.48.4.1;
next	1.47;

1.47
date	2003.01.18.07.44.52;	author thorpej;	state Exp;
branches
	1.47.2.1
	1.47.10.1
	1.47.12.1;
next	1.46;

1.46
date	2002.10.05.23.17.30;	author manu;	state Exp;
branches;
next	1.45;

1.45
date	2002.06.12.20.33.21;	author manu;	state Exp;
branches;
next	1.44;

1.44
date	2002.06.05.17.27.12;	author manu;	state Exp;
branches;
next	1.43;

1.43
date	2002.05.22.05.14.03;	author manu;	state Exp;
branches;
next	1.42;

1.42
date	2002.05.04.07.45.05;	author manu;	state Exp;
branches
	1.42.2.1;
next	1.41;

1.41
date	2002.04.29.14.40.23;	author manu;	state Exp;
branches;
next	1.40;

1.40
date	2002.04.28.20.23.22;	author manu;	state Exp;
branches;
next	1.39;

1.39
date	2002.04.28.17.21.59;	author manu;	state Exp;
branches;
next	1.38;

1.38
date	2002.04.23.05.47.38;	author manu;	state Exp;
branches;
next	1.37;

1.37
date	2002.04.22.05.58.49;	author manu;	state Exp;
branches;
next	1.36;

1.36
date	2002.04.20.16.56.29;	author manu;	state Exp;
branches;
next	1.35;

1.35
date	2002.04.16.20.15.48;	author manu;	state Exp;
branches;
next	1.34;

1.34
date	2002.04.14.21.50.50;	author manu;	state Exp;
branches;
next	1.33;

1.33
date	2002.04.12.18.44.59;	author manu;	state Exp;
branches;
next	1.32;

1.32
date	2002.04.02.20.29.52;	author manu;	state Exp;
branches;
next	1.31;

1.31
date	2002.04.02.19.58.39;	author manu;	state Exp;
branches;
next	1.30;

1.30
date	2002.03.28.10.36.15;	author manu;	state Exp;
branches;
next	1.29;

1.29
date	2002.03.26.10.52.52;	author manu;	state Exp;
branches;
next	1.28;

1.28
date	2002.03.16.13.29.42;	author manu;	state Exp;
branches;
next	1.27;

1.27
date	2002.03.10.21.56.24;	author manu;	state Exp;
branches;
next	1.26;

1.26
date	2002.03.04.22.19.02;	author manu;	state Exp;
branches;
next	1.25;

1.25
date	2002.03.03.20.12.17;	author manu;	state Exp;
branches;
next	1.24;

1.24
date	2002.02.21.22.15.29;	author manu;	state Exp;
branches;
next	1.23;

1.23
date	2002.02.21.11.09.43;	author manu;	state Exp;
branches;
next	1.22;

1.22
date	2002.02.17.22.49.55;	author manu;	state Exp;
branches;
next	1.21;

1.21
date	2002.02.17.20.50.07;	author manu;	state Exp;
branches;
next	1.20;

1.20
date	2002.02.04.20.26.34;	author manu;	state Exp;
branches;
next	1.19;

1.19
date	2002.02.03.17.39.54;	author manu;	state Exp;
branches;
next	1.18;

1.18
date	2002.02.03.01.21.48;	author manu;	state Exp;
branches;
next	1.17;

1.17
date	2001.12.27.11.07.24;	author manu;	state Exp;
branches
	1.17.2.1
	1.17.4.1;
next	1.16;

1.16
date	2001.12.26.11.04.20;	author manu;	state Exp;
branches;
next	1.15;

1.15
date	2001.12.25.21.32.31;	author manu;	state Exp;
branches;
next	1.14;

1.14
date	2001.12.25.19.04.19;	author manu;	state Exp;
branches;
next	1.13;

1.13
date	2001.12.25.16.40.48;	author manu;	state Exp;
branches;
next	1.12;

1.12
date	2001.12.23.20.57.30;	author manu;	state Exp;
branches;
next	1.11;

1.11
date	2001.12.23.20.15.04;	author manu;	state Exp;
branches;
next	1.10;

1.10
date	2001.12.22.14.43.45;	author manu;	state Exp;
branches;
next	1.9;

1.9
date	2001.12.22.12.09.21;	author manu;	state Exp;
branches;
next	1.8;

1.8
date	2001.12.08.18.08.04;	author manu;	state Exp;
branches;
next	1.7;

1.7
date	2001.12.08.11.17.37;	author manu;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.02.09.23.59;	author manu;	state Exp;
branches;
next	1.5;

1.5
date	2001.12.02.08.47.17;	author manu;	state Exp;
branches;
next	1.4;

1.4
date	2001.12.02.08.30.11;	author manu;	state Exp;
branches;
next	1.3;

1.3
date	2001.11.28.12.00.54;	author manu;	state Exp;
branches;
next	1.2;

1.2
date	2001.11.26.21.36.25;	author manu;	state Exp;
branches;
next	1.1;

1.1
date	2001.09.22.18.51.36;	author manu;	state Exp;
branches
	1.1.2.1;
next	;

1.54.6.1
date	2011.05.31.03.04.27;	author rmind;	state dead;
branches;
next	;

1.54.8.1
date	2011.06.06.09.07.20;	author jruoho;	state dead;
branches;
next	;

1.52.2.1
date	2009.05.04.08.12.19;	author yamt;	state Exp;
branches;
next	;

1.52.4.1
date	2008.05.10.23.48.51;	author wrstuden;	state Exp;
branches;
next	1.52.4.2;

1.52.4.2
date	2008.05.14.01.35.03;	author wrstuden;	state Exp;
branches;
next	;

1.52.10.1
date	2009.01.19.13.17.22;	author skrll;	state Exp;
branches;
next	;

1.51.36.1
date	2008.06.02.13.22.59;	author mjf;	state Exp;
branches;
next	1.51.36.2;

1.51.36.2
date	2009.01.17.13.28.43;	author mjf;	state Exp;
branches;
next	;

1.51.38.1
date	2008.05.18.12.33.12;	author yamt;	state Exp;
branches;
next	;

1.50.2.1
date	2007.03.12.05.52.13;	author rmind;	state Exp;
branches;
next	;

1.49.20.1
date	2007.01.30.13.51.32;	author ad;	state Exp;
branches;
next	;

1.48.4.1
date	2007.02.26.09.09.12;	author yamt;	state Exp;
branches;
next	1.48.4.2;

1.48.4.2
date	2007.09.03.14.32.10;	author yamt;	state Exp;
branches;
next	;

1.47.2.1
date	2005.03.04.16.39.39;	author skrll;	state Exp;
branches;
next	;

1.47.10.1
date	2005.04.29.11.28.32;	author kent;	state Exp;
branches;
next	;

1.47.12.1
date	2005.03.19.08.33.34;	author yamt;	state Exp;
branches;
next	;

1.42.2.1
date	2002.05.30.14.44.58;	author gehenna;	state Exp;
branches;
next	1.42.2.2;

1.42.2.2
date	2002.06.20.16.41.08;	author gehenna;	state Exp;
branches;
next	;

1.17.2.1
date	2001.12.27.11.07.24;	author nathanw;	state dead;
branches;
next	1.17.2.2;

1.17.2.2
date	2002.02.28.04.12.43;	author nathanw;	state Exp;
branches;
next	1.17.2.3;

1.17.2.3
date	2002.04.01.07.44.03;	author nathanw;	state Exp;
branches;
next	1.17.2.4;

1.17.2.4
date	2002.04.17.00.04.52;	author nathanw;	state Exp;
branches;
next	1.17.2.5;

1.17.2.5
date	2002.05.29.21.32.29;	author nathanw;	state Exp;
branches;
next	1.17.2.6;

1.17.2.6
date	2002.06.20.03.42.55;	author nathanw;	state Exp;
branches;
next	1.17.2.7;

1.17.2.7
date	2002.10.18.02.41.07;	author nathanw;	state Exp;
branches;
next	;

1.17.4.1
date	2001.12.27.11.07.24;	author thorpej;	state dead;
branches;
next	1.17.4.2;

1.17.4.2
date	2002.01.10.19.51.22;	author thorpej;	state Exp;
branches;
next	1.17.4.3;

1.17.4.3
date	2002.02.11.20.09.27;	author jdolecek;	state Exp;
branches;
next	1.17.4.4;

1.17.4.4
date	2002.03.16.16.00.28;	author jdolecek;	state Exp;
branches;
next	1.17.4.5;

1.17.4.5
date	2002.06.23.17.44.00;	author jdolecek;	state Exp;
branches;
next	;

1.1.2.1
date	2001.09.22.18.51.36;	author fvdl;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.10.01.12.43.29;	author fvdl;	state Exp;
branches;
next	;


desc
@@


1.55
log
@Remove IRIX emulation
@
text
@	$NetBSD: syscalls.master,v 1.54 2009/01/13 22:27:43 pooka Exp $

;	@@(#)syscalls.master	8.1 (Berkeley) 7/19/93

; NetBSD COMPAT_IRIX 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.

#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
#include "opt_sysv.h"
#include "opt_compat_43.h"
#endif

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <sys/ioctl_compat.h>
#include <sys/syscallargs.h>

#include <compat/svr4/svr4_types.h>
#include <compat/svr4/svr4_signal.h>
#include <compat/svr4/svr4_ucontext.h>
#include <compat/svr4/svr4_lwp.h>
#include <compat/svr4/svr4_statvfs.h>
#include <compat/svr4/svr4_syscallargs.h>

#include <compat/irix/irix_types.h>
#include <compat/irix/irix_signal.h>
#include <compat/irix/irix_syscallargs.h>

%%

0	NOARGS		{ int|sys||nosys(void); } syscall
1	NOARGS		{ int|sys||exit(int rval); }
2	NOARGS		{ int|sys||fork(void); }
3	NOARGS		{ int|sys||read(int fd, char *buf, u_int nbyte); }
4	NOARGS		{ int|sys||write(int fd, char *buf, u_int nbyte); }
5	STD		{ int|irix_sys||open(const char *path, int flags, \
			    int mode); }
6	NOARGS		{ int|sys||close(int fd); }
7	OBSOL		wait
8	NOARGS		{ int|svr4_sys||creat(const char *path, int mode); }
9	NOARGS		{ int|sys||link(char *path, char *link); }
10	NOARGS		{ int|sys||unlink(char *path); }
11	NOARGS		{ int|svr4_sys||execv(const char *path, char **argp); }
12	NOARGS		{ int|sys||chdir(char *path); }
13	NOARGS		{ int|svr4_sys||time(svr4_time_t *t); }
14	OBSOL		mknod
15	NOARGS		{ int|sys||chmod(char *path, int mode); }
16	NOARGS		{ int|sys||__posix_chown(char *path, int uid, \
			    int gid); } chown
17	STD		{ int|irix_sys||break(void *nsize); }
18	OBSOL		stat
19	NOARGS		{ long|compat_43_sys||lseek(int fd, long offset, \
			    int whence); }
20	NOARGS 		{ pid_t|sys||getpid(void); }
21	UNIMPL		old_mount
22	UNIMPL		System V umount
23	NOARGS		{ int|sys||setuid(uid_t uid); }
24	NOARGS		{ uid_t|sys||getuid_with_euid(void); }
25	UNIMPL		stime
26	UNIMPL		ptrace
27	NOARGS		{ int|svr4_sys||alarm(unsigned sec); }
28	NOARGS		{ int|svr4_sys||fstat(int fd, struct svr4_stat *sb); }
29	NOARGS		{ int|svr4_sys||pause(void); }
30	NOARGS		{ int|svr4_sys||utime(const char *path, \
			     struct svr4_utimbuf *ubuf); }
31	UNIMPL		was stty
32	UNIMPL		was gtty
33	NOARGS		{ int|svr4_sys||access(const char *path, int flags); }
34	NOARGS		{ int|svr4_sys||nice(int prio); }
35	UNIMPL		statfs
36	NOARGS		{ int|sys||sync(void); }
37	NOARGS		{ int|svr4_sys||kill(int pid, int signum); }
38	UNIMPL		fstatfs
39	NOARGS		{ int|svr4_sys||pgrpsys(int cmd, int pid, int pgid); }
40	STD		{ ptrdiff_t|irix_sys||syssgi(int request, void *arg1, \
			    void *arg2, void *arg3, void *arg4, void *arg5); }
41	NOARGS		{ int|sys||dup(u_int fd); }
42	NOARGS		{ int|sys||pipe(void); }
43	NOARGS		{ int|svr4_sys||times(struct tms *tp); }
44	UNIMPL		profil
45	UNIMPL		plock
46	NOARGS		{ int|sys||setgid(gid_t gid); }
47	NOARGS		{ gid_t|sys||getgid_with_egid(void); }
48	OBSOL		ssig
#ifdef SYSVMSG
49	NOARGS		{ int|svr4_sys||msgsys(int what, int a2, int a3, \
					      int a4, int a5); }
#else
49	UNIMPL		msgsys
#endif
50	UNIMPL		sysmips
51	UNIMPL		acct
#ifdef SYSVSHM
52	STD		{ int|irix_sys||shmsys(int what, int a2, int a3, \
					      int a4); }
#else
52	UNIMPL		shmsys
#endif
#ifdef SYSVSEM
53	NOARGS		{ int|svr4_sys||semsys(int what, int a2, int a3, \
					      int a4, int a5); }
#else
53	UNIMPL		semsys
#endif
54	STD		{ int|irix_sys||ioctl(int fd, u_long com, \
			    void *data); }
55	UNIMPL		uadmin
56	STD		{ int|irix_sys||sysmp(int cmd, void *arg1, void *arg2, \
			    void *arg3, void *arg4); }
57	STD		{ int|irix_sys||utssys(void *a1, void *a2, int sel, \
			    void *a3); }
58	UNIMPL
59	NOARGS		{ int|svr4_sys||execve(const char *path, char **argp, \
			    char **envp); }
60	NOARGS		{ int|sys||umask(int newmask); }
61	NOARGS		{ int|sys||chroot(char *path); }
62	STD		{ int|irix_sys||fcntl(int fd, int cmd, char *arg); }
63	NOARGS		{ long|svr4_sys||ulimit(int cmd, long newlimit); }
64	UNIMPL		reserved for unix/pc
65	UNIMPL		reserved for unix/pc
66	UNIMPL		reserved for unix/pc
67	UNIMPL		reserved for unix/pc
68	UNIMPL		reserved for unix/pc
69	UNIMPL		reserved for unix/pc
70	OBSOL		advfs
71	OBSOL		unadvfs
72	OBSOL		rmount
73	OBSOL		rumount
74	OBSOL		rfstart
75	STD		{ int|irix_sys||getrlimit64(int resource, \
			    struct irix_rlimit64 *rlp); }
76	STD		{ int|irix_sys||setrlimit64(int resource, \
			    const struct irix_rlimit64 *rlp); }
77	NOARGS		{ int|compat_50_sys||nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
78	STD		{ irix_off64_t|irix_sys||lseek64(int fd, int pad1, \
			    irix_off64_t offset, int whence, \
			    int pad2, int pad3, int pad4); }
79	NOARGS		{ int|sys||rmdir(char *path); }
80	NOARGS		{ int|sys||mkdir(char *path, int mode); }
81	STD		{ int|irix_sys||getdents(int fildes, \
			    irix_dirent_t *buf, int nbytes); }
82	STD		{ long|irix_sys||sginap (long ticks); }
83	UNIMPL		sgikopt
84	UNIMPL		sysfs
85	NOARGS		{ int|svr4_sys||getmsg(int fd, struct svr4_strbuf *ctl, \
			    struct svr4_strbuf *dat, int *flags); }
86	NOARGS		{ int|svr4_sys||putmsg(int fd, struct svr4_strbuf *ctl, \
			    struct svr4_strbuf *dat, int flags); }
87	NOARGS		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
			    int timeout); }
88	STD		{ int|irix_sys||sigreturn(struct irix_sigcontext *scp, \
			    struct irix_ucontext *ucp, int signo); }
89	NOARGS		{ int|compat_43_sys||accept(int s, \
			    struct sockaddr *name, int *anamelen); }
90	NOARGS		{ int|sys||bind(int s, const struct sockaddr *name, \
			    int namelen); }
91	NOARGS		{ int|sys||connect(int s, const struct sockaddr *name, \
			    int namelen); }
92	NOARGS		{ int32_t|compat_43_sys||gethostid(void); }
93	NOARGS		{ int|compat_43_sys||getpeername(int fdes, \
			    struct sockaddr *asa, int *alen); }
94	NOARGS		{ int|compat_43_sys||getsockname(int fdes, \
			    struct sockaddr *asa, int *alen); }
95	NOARGS		{ int|sys||getsockopt(int s, int level, int name, \
			    void *val, int *avalsize); }
96	NOARGS		{ int|sys||listen(int s, int backlog); }
97	NOARGS		{ int|compat_43_sys||recv(int s, void *buf, int len, \
			    int flags); }
98	NOARGS		{ ssize_t|compat_43_sys||recvfrom(int s, void *buf, \
			    size_t len, int flags, struct sockaddr *from, \
			    int *fromlenaddr); }
99	NOARGS		{ ssize_t|compat_43_sys||recvmsg(int s, \
			    struct msghdr *msg, int flags); }
100	NOARGS		{ int|compat_50_sys||select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
101	NOARGS		{ int|compat_43_sys||send(int s, void *buf, int len, \
			    int flags); }
102	NOARGS		{ ssize_t|compat_43_sys||sendmsg(int s, \
			    const struct msghdr *msg, int flags); }
103	NOARGS		{ ssize_t|sys||sendto(int s, const void *buf, \
			    size_t len, int flags, const struct sockaddr *to, \
			    int tolen); }
104	NOARGS		{ int|compat_43_sys||sethostid(int32_t hostid); }
105	NOARGS		{ int|sys||setsockopt(int s, int level, int name, \
			    const void *val, int valsize); }
106	NOARGS		{ int|sys||shutdown(int s, int how); }
107	NOARGS		{ int|svr4_sys||socket(int domain, int type, \
			    int protocol); }
108	NOARGS		{ int|compat_43_sys||gethostname(char *hostname, \
			    u_int len); }
109	NOARGS		{ int|compat_43_sys||sethostname(const char *hostname, \
			    u_int len); }
110	NOARGS		{ int|compat_09_sys||getdomainname(char *domainname, \
			    int len); }
111	NOARGS		{ int|compat_09_sys||setdomainname(char *domainname, \
			    int len); }
112	NOARGS		{ int|sys||truncate(const char *path, long length); }
113	NOARGS		{ int|sys||ftruncate(int fd, long length); }
114	NOARGS		{ int|sys||rename(const char *from, const char *to); }
115	NOARGS		{ int|sys||symlink(const char *path, \
			    const char *link); }
116	NOARGS		{ int|sys||readlink(const char *path, char *buf, \
			    size_t count); }
117	UNIMPL		lstat
118	UNIMPL
119	UNIMPL		nfs_svc
120	UNIMPL		nfs_getfh
121	UNIMPL		async_daemon
122	UNIMPL		exportfs
123	NOARGS		{ int|sys||setregid(gid_t rgid, gid_t egid); }
124	NOARGS		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
125	NOARGS		{ int|compat_50_sys||getitimer(u_int which, \
			    struct itimerval *itv); }
126	NOARGS		{ int|compat_50_sys||setitimer(u_int which, \
			    struct itimerval *itv, struct itimerval *oitv); }
127	NOARGS		{ int|compat_50_sys||adjtime(struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
128	NOARGS		{ int|svr4_sys||gettimeofday(struct timeval50 *tp); }
129	STD		{ irix_pid_t|irix_sys||sproc(void *entry, \
			    unsigned int inh, void *arg); }
130	STD		{ ptrdiff_t|irix_sys||prctl(unsigned int option, \
			    void *arg1); }
131	STD		{ int|irix_sys||procblk(int cmd, pid_t pid, int count); }
132	STD		{ irix_pid_t|irix_sys||sprocsp(void *entry, \
			    unsigned int inh, void *arg, void *sp, \
			    irix_size_t len); }
133	UNIMPL		sgigsc
134	STD		{ void *|irix_sys||mmap(void *addr, irix_size_t len, \
			    int prot, int flags, int fd, irix_off_t pos); }
135	STD		{ int|irix_sys||munmap(void *addr, int len); }
136	STD		{ int|irix_sys||mprotect(void *addr, \
			    int len, int prot); }
137	NOARGS		{ int|sys|13|msync(void *addr, \
			    size_t len, int flags); }
138	UNIMPL		madvise
139	UNIMPL		pagelock
140	UNIMPL		getpagesize
141	UNIMPL		quotactl
142	UNIMPL
143	NOARGS		{ int|sys||getpgrp(void); }
144	STD		{ int|irix_sys||setpgrp(int pid, int pgid); }
145	UNIMPL		vhangup
146	NOARGS		{ int|sys||fsync(int fd); }
147	NOARGS		{ int|sys||fchdir(int fd); }
148	STD		{ int|irix_sys||getrlimit(int resource, \
			     struct irix_rlimit *rlp); }
149	STD		{ int|irix_sys||setrlimit(int resource, \
			    const struct irix_rlimit *rlp); }
150	UNIMPL		cacheflush
151	UNIMPL		cachectl
152	NOARGS		{ int|sys||__posix_fchown(int fd, int uid, int gid); } \
			    fchown
153	NOARGS		{ int|sys||fchmod(int fd, int mode); }
154	UNIMPL		wait3
155	UNIMPL		socketpair
156	STD		{ long|irix_sys||systeminfo(int what, char *buf, \
			    long len); }
157	STD		{ int|irix_sys||uname(struct irix_utsname *name); }
158	STD		{ int|irix_sys||xstat(const int version, \
			    const char *path, struct stat *buf); }
159	STD		{ int|irix_sys||lxstat(const int version, \
			    const char *path, struct stat *buf); }
160	STD		{ int|irix_sys||fxstat(const int version, \
			    const int fd, struct stat *buf); }
161	UNIMPL		xmknod
162	STD		{ int|irix_sys||sigaction(int signum, \
			    const struct svr4_sigaction *nsa, \
			    struct svr4_sigaction *osa, void *sigtramp); }
163	NOARGS		{ int|svr4_sys||sigpending(int what, \
			    svr4_sigset_t *set); }
164	STD		{ int|irix_sys||sigprocmask(int how, \
			    const irix_sigset_t *set, \
			    irix_sigset_t *oset); }
165	NOARGS		{ int|svr4_sys||sigsuspend( \
			    const svr4_sigset_t *set); }
166	UNIMPL		sigpoll_sys
167	STD		{ int|irix_sys||swapctl(int cmd, void *arg); }
168	STD		{ int|irix_sys||getcontext(irix_ucontext_t *ucp); }
169	STD		{ int|irix_sys||setcontext(const irix_ucontext_t *ucp); }
170	STD		{ int|irix_sys||waitsys(int type, int pid, \
			    struct irix_irix5_siginfo *info, int options, \
			    struct rusage *ru); }
171	UNIMPL		sigstack
172	UNIMPL		sigaltstack
173	UNIMPL		sigsendset
174	NOARGS		{ int|svr4_sys||statvfs(const char *path, \
			    struct svr4_statvfs *fs); }
175	NOARGS		{ int|svr4_sys||fstatvfs(int fd, \
			    struct svr4_statvfs *fs); }
176	UNIMPL		getpmsg
177	UNIMPL		putpmsg
178	UNIMPL		lchown
179	UNIMPL		priocntl
180	UNIMPL		sigqueue
181	NOARGS		{ ssize_t|sys||readv(int fd, \
			    const struct iovec *iovp, int iovcnt); }
182	NOARGS		{ ssize_t|sys||writev(int fd, \
			    const struct iovec *iovp, int iovcnt); }
183	NOARGS		{ int|sys||truncate(const char *path, int pad, \
			    off_t length); } truncate64
184	NOARGS		{ int|sys||ftruncate(int fd, int pad, off_t length); } \
			    ftruncate64
185	STD		{ void *|irix_sys||mmap64(void *addr, irix_size_t len, \
			    int prot, int flags, int fd, int pad1, \
			    irix_off_t pos); }
186	UNIMPL		dmi
187	NOARGS		{ ssize_t|svr4_sys||pread(int fd, void *buf, \
			    size_t nbyte, svr4_off_t off); }
188	NOARGS		{ ssize_t|svr4_sys||pwrite(int fd, const void *buf, \
			    size_t nbyte, svr4_off_t off); }
189	UNIMPL		fdatasync
190	UNIMPL		sgifastpath
191	UNIMPL		attr_get
192	UNIMPL		attr_getf
193	UNIMPL		attr_set
194	UNIMPL		attr_setf
195	UNIMPL		attr_remove
196	UNIMPL		attr_removef
197	UNIMPL		attr_list
198	UNIMPL		attr_listf
199	UNIMPL		attr_multi
200	UNIMPL		attr_multif
201	UNIMPL		statvfs64
202	UNIMPL		fstatvfs64
203	STD		{ int|irix_sys||getmountid(const char *path, \
			    irix_mountid_t *buf); }
204	UNIMPL		nsproc
205	STD		{ int|irix_sys||getdents64(int fildes, \
			    irix_dirent64_t *buf, int nbytes); }
206	UNIMPL		afs_syscall
207	STD		{ int|irix_sys||ngetdents(int fildes, \
			    irix_dirent_t *buf, unsigned short nbyte, \
			    int *eof); }
208	STD		{ int|irix_sys||ngetdents64(int fildes, \
			    irix_dirent64_t *buf, unsigned short nbyte, \
			    int *eof); }
209	UNIMPL		sgi_sesmgr
210	STD		{ irix_pid_t|irix_sys||pidsprocsp(void *entry, \
			    unsigned int inh, void *arg, void *sp, \
			    irix_size_t len, irix_pid_t pid); }
211	UNIMPL		rexec
212	UNIMPL		timer_create
213	UNIMPL		timer_delete
214	UNIMPL		timer_settime
215	UNIMPL		timer_gettime
216	UNIMPL		timer_setoverrun
217	UNIMPL		sched_rr_get_interval
218	UNIMPL		sched_yield
219	UNIMPL		sched_getscheduler
220	UNIMPL		sched_setscheduler
221	UNIMPL		sched_getparam
222	UNIMPL		sched_setparam
223	STD		{ int|irix_sys||usync_cntl(int cmd, void *arg); }
224	UNIMPL		psema_cntl
225	UNIMPL		restartreturn
226	UNIMPL		sysget
227	UNIMPL		xpg4_recvmsg
228	UNIMPL		umfscall
229	UNIMPL		nsproctid
230	UNIMPL		rexec_complete
231	UNIMPL		xpg4_sigaltstack
232	UNIMPL		xpg4_sigaltstack
233	UNIMPL		xpg4_setregid
234	UNIMPL		linkfollow
235	UNIMPL		utimets
@


1.54
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.53 2009/01/11 20:00:06 rumble Exp $
@


1.54.8.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.54 2009/01/13 22:27:43 pooka Exp $
@


1.54.6.1
log
@sync with head
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.54 2009/01/13 22:27:43 pooka Exp $
@


1.53
log
@Fix time_t change fallout.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.52 2008/04/23 14:07:49 ad Exp $
d61 6
a66 6
0	NOARGS		{ int sys_nosys(void); } syscall
1	NOARGS		{ int sys_exit(int rval); }
2	NOARGS		{ int sys_fork(void); }
3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
5	STD		{ int irix_sys_open(const char *path, int flags, \
d68 1
a68 1
6	NOARGS		{ int sys_close(int fd); }
d70 6
a75 6
8	NOARGS		{ int svr4_sys_creat(const char *path, int mode); }
9	NOARGS		{ int sys_link(char *path, char *link); }
10	NOARGS		{ int sys_unlink(char *path); }
11	NOARGS		{ int svr4_sys_execv(const char *path, char **argp); }
12	NOARGS		{ int sys_chdir(char *path); }
13	NOARGS		{ int svr4_sys_time(svr4_time_t *t); }
d77 2
a78 2
15	NOARGS		{ int sys_chmod(char *path, int mode); }
16	NOARGS		{ int sys___posix_chown(char *path, int uid, \
d80 1
a80 1
17	STD		{ int irix_sys_break(void *nsize); }
d82 1
a82 1
19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
d84 1
a84 1
20	NOARGS 		{ pid_t sys_getpid(void); }
d87 2
a88 2
23	NOARGS		{ int sys_setuid(uid_t uid); }
24	NOARGS		{ uid_t sys_getuid_with_euid(void); }
d91 4
a94 4
27	NOARGS		{ int svr4_sys_alarm(unsigned sec); }
28	NOARGS		{ int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
29	NOARGS		{ int svr4_sys_pause(void); }
30	NOARGS		{ int svr4_sys_utime(const char *path, \
d98 2
a99 2
33	NOARGS		{ int svr4_sys_access(const char *path, int flags); }
34	NOARGS		{ int svr4_sys_nice(int prio); }
d101 2
a102 2
36	NOARGS		{ int sys_sync(void); }
37	NOARGS		{ int svr4_sys_kill(int pid, int signum); }
d104 2
a105 2
39	NOARGS		{ int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
40	STD		{ ptrdiff_t irix_sys_syssgi(int request, void *arg1, \
d107 3
a109 3
41	NOARGS		{ int sys_dup(u_int fd); }
42	NOARGS		{ int sys_pipe(void); }
43	NOARGS		{ int svr4_sys_times(struct tms *tp); }
d112 2
a113 2
46	NOARGS		{ int sys_setgid(gid_t gid); }
47	NOARGS		{ gid_t sys_getgid_with_egid(void); }
d116 1
a116 1
49	NOARGS		{ int svr4_sys_msgsys(int what, int a2, int a3, \
d124 1
a124 1
52	STD		{ int irix_sys_shmsys(int what, int a2, int a3, \
d130 1
a130 1
53	NOARGS		{ int svr4_sys_semsys(int what, int a2, int a3, \
d135 1
a135 1
54	STD		{ int irix_sys_ioctl(int fd, u_long com, \
d138 1
a138 1
56	STD		{ int irix_sys_sysmp(int cmd, void *arg1, void *arg2, \
d140 1
a140 1
57	STD		{ int irix_sys_utssys(void *a1, void *a2, int sel, \
d143 1
a143 1
59	NOARGS		{ int svr4_sys_execve(const char *path, char **argp, \
d145 4
a148 4
60	NOARGS		{ int sys_umask(int newmask); }
61	NOARGS		{ int sys_chroot(char *path); }
62	STD		{ int irix_sys_fcntl(int fd, int cmd, char *arg); }
63	NOARGS		{ long svr4_sys_ulimit(int cmd, long newlimit); }
d160 1
a160 1
75	STD		{ int irix_sys_getrlimit64(int resource, \
d162 1
a162 1
76	STD		{ int irix_sys_setrlimit64(int resource, \
d164 1
a164 1
77	NOARGS		{ int compat_50_sys_nanosleep(const struct timespec50 *rqtp, \
d166 1
a166 1
78	STD		{ irix_off64_t irix_sys_lseek64(int fd, int pad1, \
d169 3
a171 3
79	NOARGS		{ int sys_rmdir(char *path); }
80	NOARGS		{ int sys_mkdir(char *path, int mode); }
81	STD		{ int irix_sys_getdents(int fildes, \
d173 1
a173 1
82	STD		{ long irix_sys_sginap (long ticks); }
d176 1
a176 1
85	NOARGS		{ int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
d178 1
a178 1
86	NOARGS		{ int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
d180 1
a180 1
87	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
d182 1
a182 1
88	STD		{ int irix_sys_sigreturn(struct irix_sigcontext *scp, \
d184 1
a184 1
89	NOARGS		{ int compat_43_sys_accept(int s, \
d186 1
a186 1
90	NOARGS		{ int sys_bind(int s, const struct sockaddr *name, \
d188 1
a188 1
91	NOARGS		{ int sys_connect(int s, const struct sockaddr *name, \
d190 2
a191 2
92	NOARGS		{ int32_t compat_43_sys_gethostid(void); }
93	NOARGS		{ int compat_43_sys_getpeername(int fdes, \
d193 1
a193 1
94	NOARGS		{ int compat_43_sys_getsockname(int fdes, \
d195 1
a195 1
95	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
d197 2
a198 2
96	NOARGS		{ int sys_listen(int s, int backlog); }
97	NOARGS		{ int compat_43_sys_recv(int s, void *buf, int len, \
d200 1
a200 1
98	NOARGS		{ ssize_t compat_43_sys_recvfrom(int s, void *buf, \
d203 1
a203 1
99	NOARGS		{ ssize_t compat_43_sys_recvmsg(int s, \
d205 1
a205 1
100	NOARGS		{ int compat_50_sys_select(int nd, fd_set *in, fd_set *ou, \
d207 1
a207 1
101	NOARGS		{ int compat_43_sys_send(int s, void *buf, int len, \
d209 1
a209 1
102	NOARGS		{ ssize_t compat_43_sys_sendmsg(int s, \
d211 1
a211 1
103	NOARGS		{ ssize_t sys_sendto(int s, const void *buf, \
d214 2
a215 2
104	NOARGS		{ int compat_43_sys_sethostid(int32_t hostid); }
105	NOARGS		{ int sys_setsockopt(int s, int level, int name, \
d217 2
a218 2
106	NOARGS		{ int sys_shutdown(int s, int how); }
107	NOARGS		{ int svr4_sys_socket(int domain, int type, \
d220 1
a220 1
108	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
d222 1
a222 1
109	NOARGS		{ int compat_43_sys_sethostname(const char *hostname, \
d224 1
a224 1
110	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
d226 1
a226 1
111	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
d228 4
a231 4
112	NOARGS		{ int sys_truncate(const char *path, long length); }
113	NOARGS		{ int sys_ftruncate(int fd, long length); }
114	NOARGS		{ int sys_rename(const char *from, const char *to); }
115	NOARGS		{ int sys_symlink(const char *path, \
d233 1
a233 1
116	NOARGS		{ int sys_readlink(const char *path, char *buf, \
d241 3
a243 3
123	NOARGS		{ int sys_setregid(gid_t rgid, gid_t egid); }
124	NOARGS		{ int sys_setreuid(uid_t ruid, uid_t euid); }
125	NOARGS		{ int compat_50_sys_getitimer(u_int which, \
d245 1
a245 1
126	NOARGS		{ int compat_50_sys_setitimer(u_int which, \
d247 1
a247 1
127	NOARGS		{ int compat_50_sys_adjtime(struct timeval50 *delta, \
d249 2
a250 2
128	NOARGS		{ int svr4_sys_gettimeofday(struct timeval50 *tp); }
129	STD		{ irix_pid_t irix_sys_sproc(void *entry, \
d252 1
a252 1
130	STD		{ ptrdiff_t irix_sys_prctl(unsigned int option, \
d254 2
a255 2
131	STD		{ int irix_sys_procblk(int cmd, pid_t pid, int count); }
132	STD		{ irix_pid_t irix_sys_sprocsp(void *entry, \
d259 1
a259 1
134	STD		{ void *irix_sys_mmap(void *addr, irix_size_t len, \
d261 2
a262 2
135	STD		{ int irix_sys_munmap(void *addr, int len); }
136	STD		{ int irix_sys_mprotect(void *addr, \
d264 1
a264 1
137	NOARGS		{ int sys___msync13(void *addr, \
d271 2
a272 2
143	NOARGS		{ int sys_getpgrp(void); }
144	STD		{ int irix_sys_setpgrp(int pid, int pgid); }
d274 3
a276 3
146	NOARGS		{ int sys_fsync(int fd); }
147	NOARGS		{ int sys_fchdir(int fd); }
148	STD		{ int irix_sys_getrlimit(int resource, \
d278 1
a278 1
149	STD		{ int irix_sys_setrlimit(int resource, \
d282 1
a282 1
152	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); } \
d284 1
a284 1
153	NOARGS		{ int sys_fchmod(int fd, int mode); }
d287 1
a287 1
156	STD		{ long irix_sys_systeminfo(int what, char *buf, \
d289 2
a290 2
157	STD		{ int irix_sys_uname(struct irix_utsname *name); }
158	STD		{ int irix_sys_xstat(const int version, \
d292 1
a292 1
159	STD		{ int irix_sys_lxstat(const int version, \
d294 1
a294 1
160	STD		{ int irix_sys_fxstat(const int version, \
d297 1
a297 1
162	STD		{ int irix_sys_sigaction(int signum, \
d300 1
a300 1
163	NOARGS		{ int svr4_sys_sigpending(int what, \
d302 1
a302 1
164	STD		{ int irix_sys_sigprocmask(int how, \
d305 1
a305 1
165	NOARGS		{ int svr4_sys_sigsuspend( \
d308 4
a311 4
167	STD		{ int irix_sys_swapctl(int cmd, void *arg); }
168	STD		{ int irix_sys_getcontext(irix_ucontext_t *ucp); }
169	STD		{ int irix_sys_setcontext(const irix_ucontext_t *ucp); }
170	STD		{ int irix_sys_waitsys(int type, int pid, \
d317 1
a317 1
174	NOARGS		{ int svr4_sys_statvfs(const char *path, \
d319 1
a319 1
175	NOARGS		{ int svr4_sys_fstatvfs(int fd, \
d326 1
a326 1
181	NOARGS		{ ssize_t sys_readv(int fd, \
d328 1
a328 1
182	NOARGS		{ ssize_t sys_writev(int fd, \
d330 1
a330 1
183	NOARGS		{ int sys_truncate(const char *path, int pad, \
d332 1
a332 1
184	NOARGS		{ int sys_ftruncate(int fd, int pad, off_t length); } \
d334 1
a334 1
185	STD		{ void *irix_sys_mmap64(void *addr, irix_size_t len, \
d338 1
a338 1
187	NOARGS		{ ssize_t svr4_sys_pread(int fd, void *buf, \
d340 1
a340 1
188	NOARGS		{ ssize_t svr4_sys_pwrite(int fd, const void *buf, \
d356 1
a356 1
203	STD		{ int irix_sys_getmountid(const char *path, \
d359 1
a359 1
205	STD		{ int irix_sys_getdents64(int fildes, \
d362 1
a362 1
207	STD		{ int irix_sys_ngetdents(int fildes, \
d365 1
a365 1
208	STD		{ int irix_sys_ngetdents64(int fildes, \
d369 1
a369 1
210	STD		{ irix_pid_t irix_sys_pidsprocsp(void *entry, \
d384 1
a384 1
223	STD		{ int irix_sys_usync_cntl(int cmd, void *arg); }
@


1.52
log
@-SYCALL_MPSAFE
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.51 2007/03/04 06:01:18 christos Exp $
d164 2
a165 2
77	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
d205 2
a206 2
100	NOARGS		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
d243 1
a243 1
125	NOARGS		{ int sys_getitimer(u_int which, \
d245 1
a245 1
126	NOARGS		{ int sys_setitimer(u_int which, \
d247 3
a249 3
127	NOARGS		{ int sys_adjtime(struct timeval *delta, \
			    struct timeval *olddelta); }
128	NOARGS		{ int svr4_sys_gettimeofday(struct timeval *tp); }
@


1.52.2.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.52 2008/04/23 14:07:49 ad Exp $
d61 6
a66 6
0	NOARGS		{ int|sys||nosys(void); } syscall
1	NOARGS		{ int|sys||exit(int rval); }
2	NOARGS		{ int|sys||fork(void); }
3	NOARGS		{ int|sys||read(int fd, char *buf, u_int nbyte); }
4	NOARGS		{ int|sys||write(int fd, char *buf, u_int nbyte); }
5	STD		{ int|irix_sys||open(const char *path, int flags, \
d68 1
a68 1
6	NOARGS		{ int|sys||close(int fd); }
d70 6
a75 6
8	NOARGS		{ int|svr4_sys||creat(const char *path, int mode); }
9	NOARGS		{ int|sys||link(char *path, char *link); }
10	NOARGS		{ int|sys||unlink(char *path); }
11	NOARGS		{ int|svr4_sys||execv(const char *path, char **argp); }
12	NOARGS		{ int|sys||chdir(char *path); }
13	NOARGS		{ int|svr4_sys||time(svr4_time_t *t); }
d77 2
a78 2
15	NOARGS		{ int|sys||chmod(char *path, int mode); }
16	NOARGS		{ int|sys||__posix_chown(char *path, int uid, \
d80 1
a80 1
17	STD		{ int|irix_sys||break(void *nsize); }
d82 1
a82 1
19	NOARGS		{ long|compat_43_sys||lseek(int fd, long offset, \
d84 1
a84 1
20	NOARGS 		{ pid_t|sys||getpid(void); }
d87 2
a88 2
23	NOARGS		{ int|sys||setuid(uid_t uid); }
24	NOARGS		{ uid_t|sys||getuid_with_euid(void); }
d91 4
a94 4
27	NOARGS		{ int|svr4_sys||alarm(unsigned sec); }
28	NOARGS		{ int|svr4_sys||fstat(int fd, struct svr4_stat *sb); }
29	NOARGS		{ int|svr4_sys||pause(void); }
30	NOARGS		{ int|svr4_sys||utime(const char *path, \
d98 2
a99 2
33	NOARGS		{ int|svr4_sys||access(const char *path, int flags); }
34	NOARGS		{ int|svr4_sys||nice(int prio); }
d101 2
a102 2
36	NOARGS		{ int|sys||sync(void); }
37	NOARGS		{ int|svr4_sys||kill(int pid, int signum); }
d104 2
a105 2
39	NOARGS		{ int|svr4_sys||pgrpsys(int cmd, int pid, int pgid); }
40	STD		{ ptrdiff_t|irix_sys||syssgi(int request, void *arg1, \
d107 3
a109 3
41	NOARGS		{ int|sys||dup(u_int fd); }
42	NOARGS		{ int|sys||pipe(void); }
43	NOARGS		{ int|svr4_sys||times(struct tms *tp); }
d112 2
a113 2
46	NOARGS		{ int|sys||setgid(gid_t gid); }
47	NOARGS		{ gid_t|sys||getgid_with_egid(void); }
d116 1
a116 1
49	NOARGS		{ int|svr4_sys||msgsys(int what, int a2, int a3, \
d124 1
a124 1
52	STD		{ int|irix_sys||shmsys(int what, int a2, int a3, \
d130 1
a130 1
53	NOARGS		{ int|svr4_sys||semsys(int what, int a2, int a3, \
d135 1
a135 1
54	STD		{ int|irix_sys||ioctl(int fd, u_long com, \
d138 1
a138 1
56	STD		{ int|irix_sys||sysmp(int cmd, void *arg1, void *arg2, \
d140 1
a140 1
57	STD		{ int|irix_sys||utssys(void *a1, void *a2, int sel, \
d143 1
a143 1
59	NOARGS		{ int|svr4_sys||execve(const char *path, char **argp, \
d145 4
a148 4
60	NOARGS		{ int|sys||umask(int newmask); }
61	NOARGS		{ int|sys||chroot(char *path); }
62	STD		{ int|irix_sys||fcntl(int fd, int cmd, char *arg); }
63	NOARGS		{ long|svr4_sys||ulimit(int cmd, long newlimit); }
d160 1
a160 1
75	STD		{ int|irix_sys||getrlimit64(int resource, \
d162 1
a162 1
76	STD		{ int|irix_sys||setrlimit64(int resource, \
d164 3
a166 3
77	NOARGS		{ int|compat_50_sys||nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
78	STD		{ irix_off64_t|irix_sys||lseek64(int fd, int pad1, \
d169 3
a171 3
79	NOARGS		{ int|sys||rmdir(char *path); }
80	NOARGS		{ int|sys||mkdir(char *path, int mode); }
81	STD		{ int|irix_sys||getdents(int fildes, \
d173 1
a173 1
82	STD		{ long|irix_sys||sginap (long ticks); }
d176 1
a176 1
85	NOARGS		{ int|svr4_sys||getmsg(int fd, struct svr4_strbuf *ctl, \
d178 1
a178 1
86	NOARGS		{ int|svr4_sys||putmsg(int fd, struct svr4_strbuf *ctl, \
d180 1
a180 1
87	NOARGS		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d182 1
a182 1
88	STD		{ int|irix_sys||sigreturn(struct irix_sigcontext *scp, \
d184 1
a184 1
89	NOARGS		{ int|compat_43_sys||accept(int s, \
d186 1
a186 1
90	NOARGS		{ int|sys||bind(int s, const struct sockaddr *name, \
d188 1
a188 1
91	NOARGS		{ int|sys||connect(int s, const struct sockaddr *name, \
d190 2
a191 2
92	NOARGS		{ int32_t|compat_43_sys||gethostid(void); }
93	NOARGS		{ int|compat_43_sys||getpeername(int fdes, \
d193 1
a193 1
94	NOARGS		{ int|compat_43_sys||getsockname(int fdes, \
d195 1
a195 1
95	NOARGS		{ int|sys||getsockopt(int s, int level, int name, \
d197 2
a198 2
96	NOARGS		{ int|sys||listen(int s, int backlog); }
97	NOARGS		{ int|compat_43_sys||recv(int s, void *buf, int len, \
d200 1
a200 1
98	NOARGS		{ ssize_t|compat_43_sys||recvfrom(int s, void *buf, \
d203 1
a203 1
99	NOARGS		{ ssize_t|compat_43_sys||recvmsg(int s, \
d205 3
a207 3
100	NOARGS		{ int|compat_50_sys||select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
101	NOARGS		{ int|compat_43_sys||send(int s, void *buf, int len, \
d209 1
a209 1
102	NOARGS		{ ssize_t|compat_43_sys||sendmsg(int s, \
d211 1
a211 1
103	NOARGS		{ ssize_t|sys||sendto(int s, const void *buf, \
d214 2
a215 2
104	NOARGS		{ int|compat_43_sys||sethostid(int32_t hostid); }
105	NOARGS		{ int|sys||setsockopt(int s, int level, int name, \
d217 2
a218 2
106	NOARGS		{ int|sys||shutdown(int s, int how); }
107	NOARGS		{ int|svr4_sys||socket(int domain, int type, \
d220 1
a220 1
108	NOARGS		{ int|compat_43_sys||gethostname(char *hostname, \
d222 1
a222 1
109	NOARGS		{ int|compat_43_sys||sethostname(const char *hostname, \
d224 1
a224 1
110	NOARGS		{ int|compat_09_sys||getdomainname(char *domainname, \
d226 1
a226 1
111	NOARGS		{ int|compat_09_sys||setdomainname(char *domainname, \
d228 4
a231 4
112	NOARGS		{ int|sys||truncate(const char *path, long length); }
113	NOARGS		{ int|sys||ftruncate(int fd, long length); }
114	NOARGS		{ int|sys||rename(const char *from, const char *to); }
115	NOARGS		{ int|sys||symlink(const char *path, \
d233 1
a233 1
116	NOARGS		{ int|sys||readlink(const char *path, char *buf, \
d241 3
a243 3
123	NOARGS		{ int|sys||setregid(gid_t rgid, gid_t egid); }
124	NOARGS		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
125	NOARGS		{ int|compat_50_sys||getitimer(u_int which, \
d245 1
a245 1
126	NOARGS		{ int|compat_50_sys||setitimer(u_int which, \
d247 4
a250 4
127	NOARGS		{ int|compat_50_sys||adjtime(struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
128	NOARGS		{ int|svr4_sys||gettimeofday(struct timeval50 *tp); }
129	STD		{ irix_pid_t|irix_sys||sproc(void *entry, \
d252 1
a252 1
130	STD		{ ptrdiff_t|irix_sys||prctl(unsigned int option, \
d254 2
a255 2
131	STD		{ int|irix_sys||procblk(int cmd, pid_t pid, int count); }
132	STD		{ irix_pid_t|irix_sys||sprocsp(void *entry, \
d259 1
a259 1
134	STD		{ void *|irix_sys||mmap(void *addr, irix_size_t len, \
d261 2
a262 2
135	STD		{ int|irix_sys||munmap(void *addr, int len); }
136	STD		{ int|irix_sys||mprotect(void *addr, \
d264 1
a264 1
137	NOARGS		{ int|sys|13|msync(void *addr, \
d271 2
a272 2
143	NOARGS		{ int|sys||getpgrp(void); }
144	STD		{ int|irix_sys||setpgrp(int pid, int pgid); }
d274 3
a276 3
146	NOARGS		{ int|sys||fsync(int fd); }
147	NOARGS		{ int|sys||fchdir(int fd); }
148	STD		{ int|irix_sys||getrlimit(int resource, \
d278 1
a278 1
149	STD		{ int|irix_sys||setrlimit(int resource, \
d282 1
a282 1
152	NOARGS		{ int|sys||__posix_fchown(int fd, int uid, int gid); } \
d284 1
a284 1
153	NOARGS		{ int|sys||fchmod(int fd, int mode); }
d287 1
a287 1
156	STD		{ long|irix_sys||systeminfo(int what, char *buf, \
d289 2
a290 2
157	STD		{ int|irix_sys||uname(struct irix_utsname *name); }
158	STD		{ int|irix_sys||xstat(const int version, \
d292 1
a292 1
159	STD		{ int|irix_sys||lxstat(const int version, \
d294 1
a294 1
160	STD		{ int|irix_sys||fxstat(const int version, \
d297 1
a297 1
162	STD		{ int|irix_sys||sigaction(int signum, \
d300 1
a300 1
163	NOARGS		{ int|svr4_sys||sigpending(int what, \
d302 1
a302 1
164	STD		{ int|irix_sys||sigprocmask(int how, \
d305 1
a305 1
165	NOARGS		{ int|svr4_sys||sigsuspend( \
d308 4
a311 4
167	STD		{ int|irix_sys||swapctl(int cmd, void *arg); }
168	STD		{ int|irix_sys||getcontext(irix_ucontext_t *ucp); }
169	STD		{ int|irix_sys||setcontext(const irix_ucontext_t *ucp); }
170	STD		{ int|irix_sys||waitsys(int type, int pid, \
d317 1
a317 1
174	NOARGS		{ int|svr4_sys||statvfs(const char *path, \
d319 1
a319 1
175	NOARGS		{ int|svr4_sys||fstatvfs(int fd, \
d326 1
a326 1
181	NOARGS		{ ssize_t|sys||readv(int fd, \
d328 1
a328 1
182	NOARGS		{ ssize_t|sys||writev(int fd, \
d330 1
a330 1
183	NOARGS		{ int|sys||truncate(const char *path, int pad, \
d332 1
a332 1
184	NOARGS		{ int|sys||ftruncate(int fd, int pad, off_t length); } \
d334 1
a334 1
185	STD		{ void *|irix_sys||mmap64(void *addr, irix_size_t len, \
d338 1
a338 1
187	NOARGS		{ ssize_t|svr4_sys||pread(int fd, void *buf, \
d340 1
a340 1
188	NOARGS		{ ssize_t|svr4_sys||pwrite(int fd, const void *buf, \
d356 1
a356 1
203	STD		{ int|irix_sys||getmountid(const char *path, \
d359 1
a359 1
205	STD		{ int|irix_sys||getdents64(int fildes, \
d362 1
a362 1
207	STD		{ int|irix_sys||ngetdents(int fildes, \
d365 1
a365 1
208	STD		{ int|irix_sys||ngetdents64(int fildes, \
d369 1
a369 1
210	STD		{ irix_pid_t|irix_sys||pidsprocsp(void *entry, \
d384 1
a384 1
223	STD		{ int|irix_sys||usync_cntl(int cmd, void *arg); }
@


1.52.10.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.54 2009/01/13 22:27:43 pooka Exp $
d61 6
a66 6
0	NOARGS		{ int|sys||nosys(void); } syscall
1	NOARGS		{ int|sys||exit(int rval); }
2	NOARGS		{ int|sys||fork(void); }
3	NOARGS		{ int|sys||read(int fd, char *buf, u_int nbyte); }
4	NOARGS		{ int|sys||write(int fd, char *buf, u_int nbyte); }
5	STD		{ int|irix_sys||open(const char *path, int flags, \
d68 1
a68 1
6	NOARGS		{ int|sys||close(int fd); }
d70 6
a75 6
8	NOARGS		{ int|svr4_sys||creat(const char *path, int mode); }
9	NOARGS		{ int|sys||link(char *path, char *link); }
10	NOARGS		{ int|sys||unlink(char *path); }
11	NOARGS		{ int|svr4_sys||execv(const char *path, char **argp); }
12	NOARGS		{ int|sys||chdir(char *path); }
13	NOARGS		{ int|svr4_sys||time(svr4_time_t *t); }
d77 2
a78 2
15	NOARGS		{ int|sys||chmod(char *path, int mode); }
16	NOARGS		{ int|sys||__posix_chown(char *path, int uid, \
d80 1
a80 1
17	STD		{ int|irix_sys||break(void *nsize); }
d82 1
a82 1
19	NOARGS		{ long|compat_43_sys||lseek(int fd, long offset, \
d84 1
a84 1
20	NOARGS 		{ pid_t|sys||getpid(void); }
d87 2
a88 2
23	NOARGS		{ int|sys||setuid(uid_t uid); }
24	NOARGS		{ uid_t|sys||getuid_with_euid(void); }
d91 4
a94 4
27	NOARGS		{ int|svr4_sys||alarm(unsigned sec); }
28	NOARGS		{ int|svr4_sys||fstat(int fd, struct svr4_stat *sb); }
29	NOARGS		{ int|svr4_sys||pause(void); }
30	NOARGS		{ int|svr4_sys||utime(const char *path, \
d98 2
a99 2
33	NOARGS		{ int|svr4_sys||access(const char *path, int flags); }
34	NOARGS		{ int|svr4_sys||nice(int prio); }
d101 2
a102 2
36	NOARGS		{ int|sys||sync(void); }
37	NOARGS		{ int|svr4_sys||kill(int pid, int signum); }
d104 2
a105 2
39	NOARGS		{ int|svr4_sys||pgrpsys(int cmd, int pid, int pgid); }
40	STD		{ ptrdiff_t|irix_sys||syssgi(int request, void *arg1, \
d107 3
a109 3
41	NOARGS		{ int|sys||dup(u_int fd); }
42	NOARGS		{ int|sys||pipe(void); }
43	NOARGS		{ int|svr4_sys||times(struct tms *tp); }
d112 2
a113 2
46	NOARGS		{ int|sys||setgid(gid_t gid); }
47	NOARGS		{ gid_t|sys||getgid_with_egid(void); }
d116 1
a116 1
49	NOARGS		{ int|svr4_sys||msgsys(int what, int a2, int a3, \
d124 1
a124 1
52	STD		{ int|irix_sys||shmsys(int what, int a2, int a3, \
d130 1
a130 1
53	NOARGS		{ int|svr4_sys||semsys(int what, int a2, int a3, \
d135 1
a135 1
54	STD		{ int|irix_sys||ioctl(int fd, u_long com, \
d138 1
a138 1
56	STD		{ int|irix_sys||sysmp(int cmd, void *arg1, void *arg2, \
d140 1
a140 1
57	STD		{ int|irix_sys||utssys(void *a1, void *a2, int sel, \
d143 1
a143 1
59	NOARGS		{ int|svr4_sys||execve(const char *path, char **argp, \
d145 4
a148 4
60	NOARGS		{ int|sys||umask(int newmask); }
61	NOARGS		{ int|sys||chroot(char *path); }
62	STD		{ int|irix_sys||fcntl(int fd, int cmd, char *arg); }
63	NOARGS		{ long|svr4_sys||ulimit(int cmd, long newlimit); }
d160 1
a160 1
75	STD		{ int|irix_sys||getrlimit64(int resource, \
d162 1
a162 1
76	STD		{ int|irix_sys||setrlimit64(int resource, \
d164 3
a166 3
77	NOARGS		{ int|compat_50_sys||nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
78	STD		{ irix_off64_t|irix_sys||lseek64(int fd, int pad1, \
d169 3
a171 3
79	NOARGS		{ int|sys||rmdir(char *path); }
80	NOARGS		{ int|sys||mkdir(char *path, int mode); }
81	STD		{ int|irix_sys||getdents(int fildes, \
d173 1
a173 1
82	STD		{ long|irix_sys||sginap (long ticks); }
d176 1
a176 1
85	NOARGS		{ int|svr4_sys||getmsg(int fd, struct svr4_strbuf *ctl, \
d178 1
a178 1
86	NOARGS		{ int|svr4_sys||putmsg(int fd, struct svr4_strbuf *ctl, \
d180 1
a180 1
87	NOARGS		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d182 1
a182 1
88	STD		{ int|irix_sys||sigreturn(struct irix_sigcontext *scp, \
d184 1
a184 1
89	NOARGS		{ int|compat_43_sys||accept(int s, \
d186 1
a186 1
90	NOARGS		{ int|sys||bind(int s, const struct sockaddr *name, \
d188 1
a188 1
91	NOARGS		{ int|sys||connect(int s, const struct sockaddr *name, \
d190 2
a191 2
92	NOARGS		{ int32_t|compat_43_sys||gethostid(void); }
93	NOARGS		{ int|compat_43_sys||getpeername(int fdes, \
d193 1
a193 1
94	NOARGS		{ int|compat_43_sys||getsockname(int fdes, \
d195 1
a195 1
95	NOARGS		{ int|sys||getsockopt(int s, int level, int name, \
d197 2
a198 2
96	NOARGS		{ int|sys||listen(int s, int backlog); }
97	NOARGS		{ int|compat_43_sys||recv(int s, void *buf, int len, \
d200 1
a200 1
98	NOARGS		{ ssize_t|compat_43_sys||recvfrom(int s, void *buf, \
d203 1
a203 1
99	NOARGS		{ ssize_t|compat_43_sys||recvmsg(int s, \
d205 3
a207 3
100	NOARGS		{ int|compat_50_sys||select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
101	NOARGS		{ int|compat_43_sys||send(int s, void *buf, int len, \
d209 1
a209 1
102	NOARGS		{ ssize_t|compat_43_sys||sendmsg(int s, \
d211 1
a211 1
103	NOARGS		{ ssize_t|sys||sendto(int s, const void *buf, \
d214 2
a215 2
104	NOARGS		{ int|compat_43_sys||sethostid(int32_t hostid); }
105	NOARGS		{ int|sys||setsockopt(int s, int level, int name, \
d217 2
a218 2
106	NOARGS		{ int|sys||shutdown(int s, int how); }
107	NOARGS		{ int|svr4_sys||socket(int domain, int type, \
d220 1
a220 1
108	NOARGS		{ int|compat_43_sys||gethostname(char *hostname, \
d222 1
a222 1
109	NOARGS		{ int|compat_43_sys||sethostname(const char *hostname, \
d224 1
a224 1
110	NOARGS		{ int|compat_09_sys||getdomainname(char *domainname, \
d226 1
a226 1
111	NOARGS		{ int|compat_09_sys||setdomainname(char *domainname, \
d228 4
a231 4
112	NOARGS		{ int|sys||truncate(const char *path, long length); }
113	NOARGS		{ int|sys||ftruncate(int fd, long length); }
114	NOARGS		{ int|sys||rename(const char *from, const char *to); }
115	NOARGS		{ int|sys||symlink(const char *path, \
d233 1
a233 1
116	NOARGS		{ int|sys||readlink(const char *path, char *buf, \
d241 3
a243 3
123	NOARGS		{ int|sys||setregid(gid_t rgid, gid_t egid); }
124	NOARGS		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
125	NOARGS		{ int|compat_50_sys||getitimer(u_int which, \
d245 1
a245 1
126	NOARGS		{ int|compat_50_sys||setitimer(u_int which, \
d247 4
a250 4
127	NOARGS		{ int|compat_50_sys||adjtime(struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
128	NOARGS		{ int|svr4_sys||gettimeofday(struct timeval50 *tp); }
129	STD		{ irix_pid_t|irix_sys||sproc(void *entry, \
d252 1
a252 1
130	STD		{ ptrdiff_t|irix_sys||prctl(unsigned int option, \
d254 2
a255 2
131	STD		{ int|irix_sys||procblk(int cmd, pid_t pid, int count); }
132	STD		{ irix_pid_t|irix_sys||sprocsp(void *entry, \
d259 1
a259 1
134	STD		{ void *|irix_sys||mmap(void *addr, irix_size_t len, \
d261 2
a262 2
135	STD		{ int|irix_sys||munmap(void *addr, int len); }
136	STD		{ int|irix_sys||mprotect(void *addr, \
d264 1
a264 1
137	NOARGS		{ int|sys|13|msync(void *addr, \
d271 2
a272 2
143	NOARGS		{ int|sys||getpgrp(void); }
144	STD		{ int|irix_sys||setpgrp(int pid, int pgid); }
d274 3
a276 3
146	NOARGS		{ int|sys||fsync(int fd); }
147	NOARGS		{ int|sys||fchdir(int fd); }
148	STD		{ int|irix_sys||getrlimit(int resource, \
d278 1
a278 1
149	STD		{ int|irix_sys||setrlimit(int resource, \
d282 1
a282 1
152	NOARGS		{ int|sys||__posix_fchown(int fd, int uid, int gid); } \
d284 1
a284 1
153	NOARGS		{ int|sys||fchmod(int fd, int mode); }
d287 1
a287 1
156	STD		{ long|irix_sys||systeminfo(int what, char *buf, \
d289 2
a290 2
157	STD		{ int|irix_sys||uname(struct irix_utsname *name); }
158	STD		{ int|irix_sys||xstat(const int version, \
d292 1
a292 1
159	STD		{ int|irix_sys||lxstat(const int version, \
d294 1
a294 1
160	STD		{ int|irix_sys||fxstat(const int version, \
d297 1
a297 1
162	STD		{ int|irix_sys||sigaction(int signum, \
d300 1
a300 1
163	NOARGS		{ int|svr4_sys||sigpending(int what, \
d302 1
a302 1
164	STD		{ int|irix_sys||sigprocmask(int how, \
d305 1
a305 1
165	NOARGS		{ int|svr4_sys||sigsuspend( \
d308 4
a311 4
167	STD		{ int|irix_sys||swapctl(int cmd, void *arg); }
168	STD		{ int|irix_sys||getcontext(irix_ucontext_t *ucp); }
169	STD		{ int|irix_sys||setcontext(const irix_ucontext_t *ucp); }
170	STD		{ int|irix_sys||waitsys(int type, int pid, \
d317 1
a317 1
174	NOARGS		{ int|svr4_sys||statvfs(const char *path, \
d319 1
a319 1
175	NOARGS		{ int|svr4_sys||fstatvfs(int fd, \
d326 1
a326 1
181	NOARGS		{ ssize_t|sys||readv(int fd, \
d328 1
a328 1
182	NOARGS		{ ssize_t|sys||writev(int fd, \
d330 1
a330 1
183	NOARGS		{ int|sys||truncate(const char *path, int pad, \
d332 1
a332 1
184	NOARGS		{ int|sys||ftruncate(int fd, int pad, off_t length); } \
d334 1
a334 1
185	STD		{ void *|irix_sys||mmap64(void *addr, irix_size_t len, \
d338 1
a338 1
187	NOARGS		{ ssize_t|svr4_sys||pread(int fd, void *buf, \
d340 1
a340 1
188	NOARGS		{ ssize_t|svr4_sys||pwrite(int fd, const void *buf, \
d356 1
a356 1
203	STD		{ int|irix_sys||getmountid(const char *path, \
d359 1
a359 1
205	STD		{ int|irix_sys||getdents64(int fildes, \
d362 1
a362 1
207	STD		{ int|irix_sys||ngetdents(int fildes, \
d365 1
a365 1
208	STD		{ int|irix_sys||ngetdents64(int fildes, \
d369 1
a369 1
210	STD		{ irix_pid_t|irix_sys||pidsprocsp(void *entry, \
d384 1
a384 1
223	STD		{ int|irix_sys||usync_cntl(int cmd, void *arg); }
@


1.52.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.52 2008/04/23 14:07:49 ad Exp $
a45 1
#include <sys/sa.h>
@


1.52.4.2
log
@Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.52.4.1 2008/05/10 23:48:51 wrstuden Exp $
d46 1
@


1.51
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.50 2007/02/09 21:55:18 ad Exp $
d84 1
a84 1
20	NOARGS MPSAFE	{ pid_t sys_getpid(void); }
@


1.51.36.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD$
d84 1
a84 1
20	NOARGS 		{ pid_t sys_getpid(void); }
@


1.51.36.2
log
@Sync with HEAD.
@
text
@d61 6
a66 6
0	NOARGS		{ int|sys||nosys(void); } syscall
1	NOARGS		{ int|sys||exit(int rval); }
2	NOARGS		{ int|sys||fork(void); }
3	NOARGS		{ int|sys||read(int fd, char *buf, u_int nbyte); }
4	NOARGS		{ int|sys||write(int fd, char *buf, u_int nbyte); }
5	STD		{ int|irix_sys||open(const char *path, int flags, \
d68 1
a68 1
6	NOARGS		{ int|sys||close(int fd); }
d70 6
a75 6
8	NOARGS		{ int|svr4_sys||creat(const char *path, int mode); }
9	NOARGS		{ int|sys||link(char *path, char *link); }
10	NOARGS		{ int|sys||unlink(char *path); }
11	NOARGS		{ int|svr4_sys||execv(const char *path, char **argp); }
12	NOARGS		{ int|sys||chdir(char *path); }
13	NOARGS		{ int|svr4_sys||time(svr4_time_t *t); }
d77 2
a78 2
15	NOARGS		{ int|sys||chmod(char *path, int mode); }
16	NOARGS		{ int|sys||__posix_chown(char *path, int uid, \
d80 1
a80 1
17	STD		{ int|irix_sys||break(void *nsize); }
d82 1
a82 1
19	NOARGS		{ long|compat_43_sys||lseek(int fd, long offset, \
d84 1
a84 1
20	NOARGS 		{ pid_t|sys||getpid(void); }
d87 2
a88 2
23	NOARGS		{ int|sys||setuid(uid_t uid); }
24	NOARGS		{ uid_t|sys||getuid_with_euid(void); }
d91 4
a94 4
27	NOARGS		{ int|svr4_sys||alarm(unsigned sec); }
28	NOARGS		{ int|svr4_sys||fstat(int fd, struct svr4_stat *sb); }
29	NOARGS		{ int|svr4_sys||pause(void); }
30	NOARGS		{ int|svr4_sys||utime(const char *path, \
d98 2
a99 2
33	NOARGS		{ int|svr4_sys||access(const char *path, int flags); }
34	NOARGS		{ int|svr4_sys||nice(int prio); }
d101 2
a102 2
36	NOARGS		{ int|sys||sync(void); }
37	NOARGS		{ int|svr4_sys||kill(int pid, int signum); }
d104 2
a105 2
39	NOARGS		{ int|svr4_sys||pgrpsys(int cmd, int pid, int pgid); }
40	STD		{ ptrdiff_t|irix_sys||syssgi(int request, void *arg1, \
d107 3
a109 3
41	NOARGS		{ int|sys||dup(u_int fd); }
42	NOARGS		{ int|sys||pipe(void); }
43	NOARGS		{ int|svr4_sys||times(struct tms *tp); }
d112 2
a113 2
46	NOARGS		{ int|sys||setgid(gid_t gid); }
47	NOARGS		{ gid_t|sys||getgid_with_egid(void); }
d116 1
a116 1
49	NOARGS		{ int|svr4_sys||msgsys(int what, int a2, int a3, \
d124 1
a124 1
52	STD		{ int|irix_sys||shmsys(int what, int a2, int a3, \
d130 1
a130 1
53	NOARGS		{ int|svr4_sys||semsys(int what, int a2, int a3, \
d135 1
a135 1
54	STD		{ int|irix_sys||ioctl(int fd, u_long com, \
d138 1
a138 1
56	STD		{ int|irix_sys||sysmp(int cmd, void *arg1, void *arg2, \
d140 1
a140 1
57	STD		{ int|irix_sys||utssys(void *a1, void *a2, int sel, \
d143 1
a143 1
59	NOARGS		{ int|svr4_sys||execve(const char *path, char **argp, \
d145 4
a148 4
60	NOARGS		{ int|sys||umask(int newmask); }
61	NOARGS		{ int|sys||chroot(char *path); }
62	STD		{ int|irix_sys||fcntl(int fd, int cmd, char *arg); }
63	NOARGS		{ long|svr4_sys||ulimit(int cmd, long newlimit); }
d160 1
a160 1
75	STD		{ int|irix_sys||getrlimit64(int resource, \
d162 1
a162 1
76	STD		{ int|irix_sys||setrlimit64(int resource, \
d164 3
a166 3
77	NOARGS		{ int|compat_50_sys||nanosleep(const struct timespec50 *rqtp, \
			    struct timespec50 *rmtp); }
78	STD		{ irix_off64_t|irix_sys||lseek64(int fd, int pad1, \
d169 3
a171 3
79	NOARGS		{ int|sys||rmdir(char *path); }
80	NOARGS		{ int|sys||mkdir(char *path, int mode); }
81	STD		{ int|irix_sys||getdents(int fildes, \
d173 1
a173 1
82	STD		{ long|irix_sys||sginap (long ticks); }
d176 1
a176 1
85	NOARGS		{ int|svr4_sys||getmsg(int fd, struct svr4_strbuf *ctl, \
d178 1
a178 1
86	NOARGS		{ int|svr4_sys||putmsg(int fd, struct svr4_strbuf *ctl, \
d180 1
a180 1
87	NOARGS		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
d182 1
a182 1
88	STD		{ int|irix_sys||sigreturn(struct irix_sigcontext *scp, \
d184 1
a184 1
89	NOARGS		{ int|compat_43_sys||accept(int s, \
d186 1
a186 1
90	NOARGS		{ int|sys||bind(int s, const struct sockaddr *name, \
d188 1
a188 1
91	NOARGS		{ int|sys||connect(int s, const struct sockaddr *name, \
d190 2
a191 2
92	NOARGS		{ int32_t|compat_43_sys||gethostid(void); }
93	NOARGS		{ int|compat_43_sys||getpeername(int fdes, \
d193 1
a193 1
94	NOARGS		{ int|compat_43_sys||getsockname(int fdes, \
d195 1
a195 1
95	NOARGS		{ int|sys||getsockopt(int s, int level, int name, \
d197 2
a198 2
96	NOARGS		{ int|sys||listen(int s, int backlog); }
97	NOARGS		{ int|compat_43_sys||recv(int s, void *buf, int len, \
d200 1
a200 1
98	NOARGS		{ ssize_t|compat_43_sys||recvfrom(int s, void *buf, \
d203 1
a203 1
99	NOARGS		{ ssize_t|compat_43_sys||recvmsg(int s, \
d205 3
a207 3
100	NOARGS		{ int|compat_50_sys||select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval50 *tv); }
101	NOARGS		{ int|compat_43_sys||send(int s, void *buf, int len, \
d209 1
a209 1
102	NOARGS		{ ssize_t|compat_43_sys||sendmsg(int s, \
d211 1
a211 1
103	NOARGS		{ ssize_t|sys||sendto(int s, const void *buf, \
d214 2
a215 2
104	NOARGS		{ int|compat_43_sys||sethostid(int32_t hostid); }
105	NOARGS		{ int|sys||setsockopt(int s, int level, int name, \
d217 2
a218 2
106	NOARGS		{ int|sys||shutdown(int s, int how); }
107	NOARGS		{ int|svr4_sys||socket(int domain, int type, \
d220 1
a220 1
108	NOARGS		{ int|compat_43_sys||gethostname(char *hostname, \
d222 1
a222 1
109	NOARGS		{ int|compat_43_sys||sethostname(const char *hostname, \
d224 1
a224 1
110	NOARGS		{ int|compat_09_sys||getdomainname(char *domainname, \
d226 1
a226 1
111	NOARGS		{ int|compat_09_sys||setdomainname(char *domainname, \
d228 4
a231 4
112	NOARGS		{ int|sys||truncate(const char *path, long length); }
113	NOARGS		{ int|sys||ftruncate(int fd, long length); }
114	NOARGS		{ int|sys||rename(const char *from, const char *to); }
115	NOARGS		{ int|sys||symlink(const char *path, \
d233 1
a233 1
116	NOARGS		{ int|sys||readlink(const char *path, char *buf, \
d241 3
a243 3
123	NOARGS		{ int|sys||setregid(gid_t rgid, gid_t egid); }
124	NOARGS		{ int|sys||setreuid(uid_t ruid, uid_t euid); }
125	NOARGS		{ int|compat_50_sys||getitimer(u_int which, \
d245 1
a245 1
126	NOARGS		{ int|compat_50_sys||setitimer(u_int which, \
d247 4
a250 4
127	NOARGS		{ int|compat_50_sys||adjtime(struct timeval50 *delta, \
			    struct timeval50 *olddelta); }
128	NOARGS		{ int|svr4_sys||gettimeofday(struct timeval50 *tp); }
129	STD		{ irix_pid_t|irix_sys||sproc(void *entry, \
d252 1
a252 1
130	STD		{ ptrdiff_t|irix_sys||prctl(unsigned int option, \
d254 2
a255 2
131	STD		{ int|irix_sys||procblk(int cmd, pid_t pid, int count); }
132	STD		{ irix_pid_t|irix_sys||sprocsp(void *entry, \
d259 1
a259 1
134	STD		{ void *|irix_sys||mmap(void *addr, irix_size_t len, \
d261 2
a262 2
135	STD		{ int|irix_sys||munmap(void *addr, int len); }
136	STD		{ int|irix_sys||mprotect(void *addr, \
d264 1
a264 1
137	NOARGS		{ int|sys|13|msync(void *addr, \
d271 2
a272 2
143	NOARGS		{ int|sys||getpgrp(void); }
144	STD		{ int|irix_sys||setpgrp(int pid, int pgid); }
d274 3
a276 3
146	NOARGS		{ int|sys||fsync(int fd); }
147	NOARGS		{ int|sys||fchdir(int fd); }
148	STD		{ int|irix_sys||getrlimit(int resource, \
d278 1
a278 1
149	STD		{ int|irix_sys||setrlimit(int resource, \
d282 1
a282 1
152	NOARGS		{ int|sys||__posix_fchown(int fd, int uid, int gid); } \
d284 1
a284 1
153	NOARGS		{ int|sys||fchmod(int fd, int mode); }
d287 1
a287 1
156	STD		{ long|irix_sys||systeminfo(int what, char *buf, \
d289 2
a290 2
157	STD		{ int|irix_sys||uname(struct irix_utsname *name); }
158	STD		{ int|irix_sys||xstat(const int version, \
d292 1
a292 1
159	STD		{ int|irix_sys||lxstat(const int version, \
d294 1
a294 1
160	STD		{ int|irix_sys||fxstat(const int version, \
d297 1
a297 1
162	STD		{ int|irix_sys||sigaction(int signum, \
d300 1
a300 1
163	NOARGS		{ int|svr4_sys||sigpending(int what, \
d302 1
a302 1
164	STD		{ int|irix_sys||sigprocmask(int how, \
d305 1
a305 1
165	NOARGS		{ int|svr4_sys||sigsuspend( \
d308 4
a311 4
167	STD		{ int|irix_sys||swapctl(int cmd, void *arg); }
168	STD		{ int|irix_sys||getcontext(irix_ucontext_t *ucp); }
169	STD		{ int|irix_sys||setcontext(const irix_ucontext_t *ucp); }
170	STD		{ int|irix_sys||waitsys(int type, int pid, \
d317 1
a317 1
174	NOARGS		{ int|svr4_sys||statvfs(const char *path, \
d319 1
a319 1
175	NOARGS		{ int|svr4_sys||fstatvfs(int fd, \
d326 1
a326 1
181	NOARGS		{ ssize_t|sys||readv(int fd, \
d328 1
a328 1
182	NOARGS		{ ssize_t|sys||writev(int fd, \
d330 1
a330 1
183	NOARGS		{ int|sys||truncate(const char *path, int pad, \
d332 1
a332 1
184	NOARGS		{ int|sys||ftruncate(int fd, int pad, off_t length); } \
d334 1
a334 1
185	STD		{ void *|irix_sys||mmap64(void *addr, irix_size_t len, \
d338 1
a338 1
187	NOARGS		{ ssize_t|svr4_sys||pread(int fd, void *buf, \
d340 1
a340 1
188	NOARGS		{ ssize_t|svr4_sys||pwrite(int fd, const void *buf, \
d356 1
a356 1
203	STD		{ int|irix_sys||getmountid(const char *path, \
d359 1
a359 1
205	STD		{ int|irix_sys||getdents64(int fildes, \
d362 1
a362 1
207	STD		{ int|irix_sys||ngetdents(int fildes, \
d365 1
a365 1
208	STD		{ int|irix_sys||ngetdents64(int fildes, \
d369 1
a369 1
210	STD		{ irix_pid_t|irix_sys||pidsprocsp(void *entry, \
d384 1
a384 1
223	STD		{ int|irix_sys||usync_cntl(int cmd, void *arg); }
@


1.51.38.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.51 2007/03/04 06:01:18 christos Exp $
d84 1
a84 1
20	NOARGS 		{ pid_t sys_getpid(void); }
@


1.50
log
@Merge newlock2 to head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.49 2005/12/11 12:20:12 christos Exp $
d80 1
a80 1
17	STD		{ int irix_sys_break(caddr_t nsize); }
d136 1
a136 1
			    caddr_t data); }
d198 1
a198 1
97	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
d207 1
a207 1
101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
d256 1
a256 1
			    unsigned int inh, void *arg, caddr_t sp, \
d370 1
a370 1
			    unsigned int inh, void *arg, caddr_t sp, \
@


1.50.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.50 2007/02/09 21:55:18 ad Exp $
d80 1
a80 1
17	STD		{ int irix_sys_break(void *nsize); }
d136 1
a136 1
			    void *data); }
d198 1
a198 1
97	NOARGS		{ int compat_43_sys_recv(int s, void *buf, int len, \
d207 1
a207 1
101	NOARGS		{ int compat_43_sys_send(int s, void *buf, int len, \
d256 1
a256 1
			    unsigned int inh, void *arg, void *sp, \
d370 1
a370 1
			    unsigned int inh, void *arg, void *sp, \
@


1.49
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.47.2.1 2005/03/04 16:39:39 skrll Exp $
a45 1
#include <sys/sa.h>
@


1.49.20.1
log
@Remove support for SA. Ok core@@.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.49 2005/12/11 12:20:12 christos Exp $
d46 1
@


1.48
log
@nuke trailing whitespace
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.47 2003/01/18 07:44:52 thorpej Exp $
@


1.48.4.1
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.48 2005/02/26 23:10:19 perry Exp $
d46 1
@


1.48.4.2
log
@sync with head.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.48.4.1 2007/02/26 09:09:12 yamt Exp $
d80 1
a80 1
17	STD		{ int irix_sys_break(void *nsize); }
d136 1
a136 1
			    void *data); }
d198 1
a198 1
97	NOARGS		{ int compat_43_sys_recv(int s, void *buf, int len, \
d207 1
a207 1
101	NOARGS		{ int compat_43_sys_send(int s, void *buf, int len, \
d256 1
a256 1
			    unsigned int inh, void *arg, void *sp, \
d370 1
a370 1
			    unsigned int inh, void *arg, void *sp, \
@


1.47
log
@Merge the nathanw_sa branch.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.46 2002/10/05 23:17:30 manu Exp $
d273 1
a273 1
144	STD		{ int irix_sys_setpgrp(int pid, int pgid); } 
@


1.47.10.1
log
@sync with -current
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.48 2005/02/26 23:10:19 perry Exp $
d273 1
a273 1
144	STD		{ int irix_sys_setpgrp(int pid, int pgid); }
@


1.47.12.1
log
@sync with head.  xen and whitespace.  xen part is not finished.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.47 2003/01/18 07:44:52 thorpej Exp $
d273 1
a273 1
144	STD		{ int irix_sys_setpgrp(int pid, int pgid); }
@


1.47.2.1
log
@Sync with HEAD.

Hi Perry!
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.48 2005/02/26 23:10:19 perry Exp $
d273 1
a273 1
144	STD		{ int irix_sys_setpgrp(int pid, int pgid); }
@


1.46
log
@Added uname emulation so that IRIX's uname -s returns IRIX
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.45 2002/06/12 20:33:21 manu Exp $
d46 1
@


1.45
log
@When sproc is used to create a share group with shared memory, there is a
private area called PRDA that remains unshared. We implement this by using
different vmspace for each share group member, and keeping the memory
appings in sync on each mmap/munmap/mprotect/break...

We use irix_saddr_sync_vmcmd and irix_saddr_sync_syscall to apply a
vmcmd or a syscall to all share group member, this makes the job a bit
easier.

Also implements {get|set}rlimit{64}.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.44 2002/06/05 17:27:12 manu Exp $
d140 1
a140 1
57	NOARGS		{ int svr4_sys_utssys(void *a1, void *a2, int sel, \
d289 1
a289 1
157	UNIMPL		uname
@


1.44
log
@- Introduce irix_check_exec() to check if a given process is an IRIX one
- First implementation of procblk(). THis is supposed to suspend processes.
We emulate this by sending a SIGSTOP, which is not very accurate since
on IRIX, sending a SIGCONT to a process suspended by procblk() will not
resume it.
- support for shared groups
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.43 2002/05/22 05:14:03 manu Exp $
d80 1
a80 1
17	NOARGS		{ int svr4_sys_break(caddr_t nsize); }
d124 1
a124 1
52	NOARGS		{ int svr4_sys_shmsys(int what, int a2, int a3, \
d160 6
a165 3
75	OBSOL		sigret
76	OBSOL		rdebug
77	OBSOL		rfstop
d261 3
a263 2
135	NOARGS		{ int sys_munmap(void *addr, int len); }
136	NOARGS		{ int sys_mprotect(void *addr, int len, int prot); }
d276 4
a279 2
148	UNIMPL		getrlimit
149	UNIMPL		setrlimit
@


1.43
log
@First implementation of IRIX /dev/usemaclone functionnalities. This
successfully emulates a few test program that use poll semaphores,
including the attach-to-file-descriptor-and-select feature.

There are a few issues:
1) at least one ioctl need to set retval. We handle this in irix_sys_ioctl()
by replacing the data argument by a pointer to a strucutre in the stackgap
that carries the real data and retval. The underlying ioctl methods can
therefore retreive both data and retval.

2) usemaclone is a cloning device: each time it is open, it creates a new
context, and ioctl operation on each open file descriptor will lead to
different behavior. This functionnality is available in NetBSD through the
devvp branch. This first implementation does not use devvp yet, but this
should be done later. Currently, we create a new vnode, and we provide our
own vnode operations. Some operation are applied to the cloned vnode, others
are applied to the original vnode. The v_data field is used to hold a
reference to the original vnode so that we can work on it.

3) at least the setattr vnode operation needs some customisation: IRIX
libc relies on the fact that fchmod on /dev/usema will return 0 in case
of failure.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.42 2002/05/04 07:45:05 manu Exp $
d251 1
a251 1
131	UNIMPL		procblk
@


1.42
log
@bug for bug emulation of IRIX: on some device, including
/dev/usemaclone, fchmod returns 0 on faillure, and libc
depends on that behavior.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.41 2002/04/29 14:40:23 manu Exp $
d66 1
a66 1
5	NOARGS		{ int svr4_sys_open(const char *path, int flags, \
d278 1
a278 1
153	STD		{ int irix_sys_fchmod(int fd, int mode); }
@


1.42.2.1
log
@Catch up with -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.43 2002/05/22 05:14:03 manu Exp $
d66 1
a66 1
5	STD		{ int irix_sys_open(const char *path, int flags, \
d278 1
a278 1
153	NOARGS		{ int sys_fchmod(int fd, int mode); }
@


1.42.2.2
log
@catch up with -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.45 2002/06/12 20:33:21 manu Exp $
d80 1
a80 1
17	STD		{ int irix_sys_break(caddr_t nsize); }
d124 1
a124 1
52	STD		{ int irix_sys_shmsys(int what, int a2, int a3, \
d160 3
a162 6
75	STD		{ int irix_sys_getrlimit64(int resource, \
			    struct irix_rlimit64 *rlp); }
76	STD		{ int irix_sys_setrlimit64(int resource, \
			    const struct irix_rlimit64 *rlp); }
77	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
d251 1
a251 1
131	STD		{ int irix_sys_procblk(int cmd, pid_t pid, int count); }
d258 2
a259 3
135	STD		{ int irix_sys_munmap(void *addr, int len); }
136	STD		{ int irix_sys_mprotect(void *addr, \
			    int len, int prot); }
d272 2
a273 4
148	STD		{ int irix_sys_getrlimit(int resource, \
			     struct irix_rlimit *rlp); }
149	STD		{ int irix_sys_setrlimit(int resource, \
			    const struct irix_rlimit *rlp); }
@


1.41
log
@Added a void framework for usync_cntl(), which is another undocumented IRIX
system call.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.40 2002/04/28 20:23:22 manu Exp $
d278 1
a278 1
153	NOARGS		{ int sys_fchmod(int fd, int mode); }
@


1.40
log
@Added pread() and pwrite()
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.39 2002/04/28 17:21:59 manu Exp $
d378 1
a378 1
223	UNIMPL		usync_cntl
@


1.39
log
@Implements IRIX sproc(2) and friends.
There may be a problem with stack size overflow in this implementation
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.38 2002/04/23 05:47:38 manu Exp $
d332 4
a335 2
187	UNIMPL		pread
188	UNIMPL		pwrite
@


1.38
log
@Added fchdir, fchown and fchmod system calls
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.37 2002/04/22 05:58:49 manu Exp $
d247 2
a248 1
129	UNIMPL		sproc
d252 3
a254 1
132	UNIMPL		sprocsp
d361 3
a363 1
210	UNIMPL		pidsprocsp
@


1.37
log
@- We now use irix_sys_mmap instead of svr4_sys_mmap
- initial support for MAP_AUTOGROW flag. When mapping beyond the end of file is
requested with MAP_AUTOGROW, if pages beyond the end of file are touched, the
file should be resized. We are not able to emulate this yet, so we immediatly
resize the file to fit the whole mapping.
- implements mmap64
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.36 2002/04/20 16:56:29 manu Exp $
d268 1
a268 1
147	UNIMPL		fchdir
d273 3
a275 2
152	UNIMPL		fchown
153	UNIMPL		fchmod
@


1.36
log
@Added one more system call: msync
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.35 2002/04/16 20:15:48 manu Exp $
d253 2
a254 2
134	NOARGS		{ void *svr4_sys_mmap(void *addr, svr4_size_t len, \
			    int prot, int flags, int fd, svr4_off_t pos); }
d324 3
a326 1
185	UNIMPL		mmap64
@


1.35
log
@Added getpgrp/setpgrp.
setpgrp is stolen from compat/sunos. It should probbaly be moved to
/compat/common
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.34 2002/04/14 21:50:50 manu Exp $
d257 2
a258 1
137	UNIMPL		msync
@


1.34
log
@IRIX provide a signal trampoline in libc, we now use it.
- the signal trampoline address is given to the kernel by a sigaction()
  fourth argument
- we introduce an irix_emuldata structure to keep track of the signal
  trampoline address
- we don't support per-sigaction signal trampolines, we only do per-process
- now that we use the IRIX libc signal trampoline, we do not have to handle
  the errno update from the signal trampoline
- it is possible that IRIX 5 signal delivery works too, since theses binaries
  will come with their own signal trampoline
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.33 2002/04/12 18:44:59 manu Exp $
d263 2
a264 2
143	UNIMPL		getpgrp
144	UNIMPL		setpgrp
@


1.33
log
@Reworked IRIX signal delivery so that ucontext is used instead of sigcontext
when SA_SIGINFO is used. The IRIX process will hence find the expected
information using the third argument of the signal handler.

We do not provide code and siginfo yet.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.32 2002/04/02 20:29:52 manu Exp $
d286 1
a286 1
162	NOARGS		{ int svr4_sys_sigaction(int signum, \
d288 1
a288 1
			    struct svr4_sigaction *osa); }
@


1.32
log
@Added fsync
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.31 2002/04/02 19:58:39 manu Exp $
d179 2
a180 1
88	STD		{ int irix_sys_sigreturn(struct irix_sigreturna isr); }
@


1.31
log
@Added IRIX fcntl(F_GETBSDLK) and fcntl(F_GETBSDLKW)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.30 2002/03/28 10:36:15 manu Exp $
d265 1
a265 1
146	UNIMPL		fsync
@


1.30
log
@Use irix_sys_sigprocmask instead of svr4_sys_sigprocmask to make use
of the SETMASK32 command.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.29 2002/03/26 10:52:52 manu Exp $
d147 1
a147 1
62	NOARGS		{ int svr4_sys_fcntl(int fd, int cmd, char *arg); }
@


1.29
log
@Added truncate(2), ftruncate(2), truncate64() and ftruncate64(), the two latter
being untested yet.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.28 2002/03/16 13:29:42 manu Exp $
d290 3
a292 3
164	NOARGS		{ int svr4_sys_sigprocmask(int how, \
			    const svr4_sigset_t *set, \
			    svr4_sigset_t *oset); }
@


1.28
log
@Added enough of swaptcl() command emulation to get swap -l working. This
is needed by acad (it exec's swap -l to check if swap is enabled)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.27 2002/03/10 21:56:24 manu Exp $
d224 2
a225 2
112	UNIMPL		truncate
113	UNIMPL		ftruncate
d318 4
a321 2
183	UNIMPL		truncate64
184	UNIMPL		ftruncate64
@


1.27
log
@Added statvfs/fstatvfs
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.26 2002/03/04 22:19:02 manu Exp $
d296 1
a296 1
167	UNIMPL		swapctl
@


1.26
log
@Added setreuid/setregid
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.25 2002/03/03 20:12:17 manu Exp $
d52 1
d305 4
a308 2
174	UNIMPL		statvfs
175	UNIMPL		fstatvfs
@


1.25
log
@Implements SIOCNREAD ioctl (some kind of FIONREAD for sockets only). This
makes X11 binaries able to actually work: most of them were previously hang
in infinite loop wiaiting for data from the X server because SIOCNREAD
reported that some data where to be read whereas the X server had nothing
to say.

Tested (and works): xlogo, xterm, ghostview (IRIX build). Things are getting
interesting...
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.24 2002/02/21 22:15:29 manu Exp $
d236 2
a237 2
123	UNIMPL		setregid
124	UNIMPL		setreuid
@


1.24
log
@Added munmap() and mprotect()
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.23 2002/02/21 11:09:43 manu Exp $
d134 1
a134 1
54	NOARGS		{ int svr4_sys_ioctl(int fd, u_long com, \
@


1.23
log
@Added gethostid/sethostid and the HOSTID command to systeminfo()
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.22 2002/02/17 22:49:55 manu Exp $
d253 2
a254 2
135	UNIMPL		munmap
136	UNIMPL		mprotect
@


1.22
log
@Implemented irix_sys_systeminfo()
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.21 2002/02/17 20:50:07 manu Exp $
d185 1
a185 1
92	UNIMPL		sys_gethostid
d209 1
a209 1
104	UNIMPL		sys_sethostid
@


1.21
log
@reworked signal handling:
- do not save/and restore registers that should not be saved and restore
- do give an accurate sigcontext pointer to the signal handler
- do use the struct sigreturna from IRIX.
This eliminates panics and hangs in certain circonstances

Also some cosmetic changes with tabs usage
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.20 2002/02/04 20:26:34 manu Exp $
d49 4
d65 1
a65 1
5	STD		{ int svr4_sys_open(const char *path, int flags, \
d69 1
a69 1
8	STD		{ int svr4_sys_creat(const char *path, int mode); }
d72 1
a72 1
11	STD		{ int svr4_sys_execv(const char *path, char **argp); }
d74 1
a74 1
13	STD		{ int svr4_sys_time(svr4_time_t *t); }
d79 1
a79 1
17	STD		{ int svr4_sys_break(caddr_t nsize); }
d90 4
a93 4
27	STD		{ int svr4_sys_alarm(unsigned sec); }
28	STD		{ int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
29	STD		{ int svr4_sys_pause(void); }
30	STD		{ int svr4_sys_utime(const char *path, \
d97 2
a98 2
33	STD		{ int svr4_sys_access(const char *path, int flags); }
34	STD		{ int svr4_sys_nice(int prio); }
d101 1
a101 1
37	STD		{ int svr4_sys_kill(int pid, int signum); }
d103 1
a103 1
39	STD		{ int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
d108 1
a108 1
43	STD		{ int svr4_sys_times(struct tms *tp); }
d115 1
a115 1
49	STD		{ int svr4_sys_msgsys(int what, int a2, int a3, \
d123 1
a123 1
52	STD		{ int svr4_sys_shmsys(int what, int a2, int a3, \
d129 1
a129 1
53	STD		{ int svr4_sys_semsys(int what, int a2, int a3, \
d134 1
a134 1
54	STD		{ int svr4_sys_ioctl(int fd, u_long com, \
d139 1
a139 1
57	STD		{ int svr4_sys_utssys(void *a1, void *a2, int sel, \
d142 1
a142 1
59	STD		{ int svr4_sys_execve(const char *path, char **argp, \
d146 2
a147 2
62	STD		{ int svr4_sys_fcntl(int fd, int cmd, char *arg); }
63	STD		{ long svr4_sys_ulimit(int cmd, long newlimit); }
d172 1
a172 1
85	STD		{ int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
d174 1
a174 1
86	STD		{ int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
d213 1
a213 1
107	STD		{ int svr4_sys_socket(int domain, int type, \
d244 1
a244 1
128	STD		{ int svr4_sys_gettimeofday(struct timeval *tp); }
d251 1
a251 1
134	STD		{ void *svr4_sys_mmap(void *addr, svr4_size_t len, \
d274 2
a275 1
156	UNIMPL		systeminfo
d284 1
a284 1
162	STD		{ int svr4_sys_sigaction(int signum, \
d287 1
a287 1
163	STD		{ int svr4_sys_sigpending(int what, \
d289 1
a289 1
164	STD		{ int svr4_sys_sigprocmask(int how, \
d292 1
a292 1
165	STD		{ int svr4_sys_sigsuspend( \
@


1.20
log
@Added system calls: getdents64/ngetdents64
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.19 2002/02/03 17:39:54 manu Exp $
d174 1
a174 1
88	STD		{ int irix_sys_sigreturn(struct irix_sigframe *sf); }
@


1.19
log
@Added system calls: gettimeofday, getitimer, setitimer
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.18 2002/02/03 01:21:48 manu Exp $
d333 2
a334 1
205	UNIMPL		getdents64
d339 3
a341 1
208	UNIMPL		ngetdents64
@


1.18
log
@Added some system calls: gethostname, sethostname, getdomainname,
setdomainname, alarm
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17 2001/12/27 11:07:24 manu Exp $
d234 7
a240 4
125	UNIMPL		getitimer
126	UNIMPL		setitimer
127	UNIMPL		adjtime
128	UNIMPL		gettimeofday
@


1.17
log
@Added symlink, rename and readlink
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.16 2001/12/26 11:04:20 manu Exp $
d37 1
d86 1
a86 1
27	OBSOL		alarm
d211 8
a218 4
108	UNIMPL		sys_gethostname
109	UNIMPL		sethostname
110	UNIMPL		sys_getdomainname
111	UNIMPL		setdomainname
@


1.17.2.1
log
@file syscalls.master was added on branch nathanw_sa on 2002-02-28 04:12:43 +0000
@
text
@d1 357
@


1.17.2.2
log
@Catch up to -current.
@
text
@a0 373
	$NetBSD: syscalls.master,v 1.17.2.1 2002/02/28 04:12:43 nathanw Exp $

;	@@(#)syscalls.master	8.1 (Berkeley) 7/19/93

; NetBSD COMPAT_IRIX 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.

#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
#include "opt_sysv.h"
#include "opt_compat_43.h"
#endif

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <sys/ioctl_compat.h>
#include <sys/syscallargs.h>

#include <compat/svr4/svr4_types.h>
#include <compat/svr4/svr4_signal.h>
#include <compat/svr4/svr4_ucontext.h>
#include <compat/svr4/svr4_lwp.h>
#include <compat/svr4/svr4_syscallargs.h>

#include <compat/irix/irix_types.h>
#include <compat/irix/irix_signal.h>
#include <compat/irix/irix_syscallargs.h>

%%

0	NOARGS		{ int sys_nosys(void); } syscall
1	NOARGS		{ int sys_exit(int rval); }
2	NOARGS		{ int sys_fork(void); }
3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
5	NOARGS		{ int svr4_sys_open(const char *path, int flags, \
			    int mode); }
6	NOARGS		{ int sys_close(int fd); }
7	OBSOL		wait
8	NOARGS		{ int svr4_sys_creat(const char *path, int mode); }
9	NOARGS		{ int sys_link(char *path, char *link); }
10	NOARGS		{ int sys_unlink(char *path); }
11	NOARGS		{ int svr4_sys_execv(const char *path, char **argp); }
12	NOARGS		{ int sys_chdir(char *path); }
13	NOARGS		{ int svr4_sys_time(svr4_time_t *t); }
14	OBSOL		mknod
15	NOARGS		{ int sys_chmod(char *path, int mode); }
16	NOARGS		{ int sys___posix_chown(char *path, int uid, \
			    int gid); } chown
17	NOARGS		{ int svr4_sys_break(caddr_t nsize); }
18	OBSOL		stat
19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
			    int whence); }
20	NOARGS MPSAFE	{ pid_t sys_getpid(void); }
21	UNIMPL		old_mount
22	UNIMPL		System V umount
23	NOARGS		{ int sys_setuid(uid_t uid); }
24	NOARGS		{ uid_t sys_getuid_with_euid(void); }
25	UNIMPL		stime
26	UNIMPL		ptrace
27	NOARGS		{ int svr4_sys_alarm(unsigned sec); }
28	NOARGS		{ int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
29	NOARGS		{ int svr4_sys_pause(void); }
30	NOARGS		{ int svr4_sys_utime(const char *path, \
			     struct svr4_utimbuf *ubuf); }
31	UNIMPL		was stty
32	UNIMPL		was gtty
33	NOARGS		{ int svr4_sys_access(const char *path, int flags); }
34	NOARGS		{ int svr4_sys_nice(int prio); }
35	UNIMPL		statfs
36	NOARGS		{ int sys_sync(void); }
37	NOARGS		{ int svr4_sys_kill(int pid, int signum); }
38	UNIMPL		fstatfs
39	NOARGS		{ int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
40	STD		{ ptrdiff_t irix_sys_syssgi(int request, void *arg1, \
			    void *arg2, void *arg3, void *arg4, void *arg5); }
41	NOARGS		{ int sys_dup(u_int fd); }
42	NOARGS		{ int sys_pipe(void); }
43	NOARGS		{ int svr4_sys_times(struct tms *tp); }
44	UNIMPL		profil
45	UNIMPL		plock
46	NOARGS		{ int sys_setgid(gid_t gid); }
47	NOARGS		{ gid_t sys_getgid_with_egid(void); }
48	OBSOL		ssig
#ifdef SYSVMSG
49	NOARGS		{ int svr4_sys_msgsys(int what, int a2, int a3, \
					      int a4, int a5); }
#else
49	UNIMPL		msgsys
#endif
50	UNIMPL		sysmips
51	UNIMPL		acct
#ifdef SYSVSHM
52	NOARGS		{ int svr4_sys_shmsys(int what, int a2, int a3, \
					      int a4); }
#else
52	UNIMPL		shmsys
#endif
#ifdef SYSVSEM
53	NOARGS		{ int svr4_sys_semsys(int what, int a2, int a3, \
					      int a4, int a5); }
#else
53	UNIMPL		semsys
#endif
54	NOARGS		{ int svr4_sys_ioctl(int fd, u_long com, \
			    caddr_t data); }
55	UNIMPL		uadmin
56	STD		{ int irix_sys_sysmp(int cmd, void *arg1, void *arg2, \
			    void *arg3, void *arg4); }
57	NOARGS		{ int svr4_sys_utssys(void *a1, void *a2, int sel, \
			    void *a3); }
58	UNIMPL
59	NOARGS		{ int svr4_sys_execve(const char *path, char **argp, \
			    char **envp); }
60	NOARGS		{ int sys_umask(int newmask); }
61	NOARGS		{ int sys_chroot(char *path); }
62	NOARGS		{ int svr4_sys_fcntl(int fd, int cmd, char *arg); }
63	NOARGS		{ long svr4_sys_ulimit(int cmd, long newlimit); }
64	UNIMPL		reserved for unix/pc
65	UNIMPL		reserved for unix/pc
66	UNIMPL		reserved for unix/pc
67	UNIMPL		reserved for unix/pc
68	UNIMPL		reserved for unix/pc
69	UNIMPL		reserved for unix/pc
70	OBSOL		advfs
71	OBSOL		unadvfs
72	OBSOL		rmount
73	OBSOL		rumount
74	OBSOL		rfstart
75	OBSOL		sigret
76	OBSOL		rdebug
77	OBSOL		rfstop
78	STD		{ irix_off64_t irix_sys_lseek64(int fd, int pad1, \
			    irix_off64_t offset, int whence, \
			    int pad2, int pad3, int pad4); }
79	NOARGS		{ int sys_rmdir(char *path); }
80	NOARGS		{ int sys_mkdir(char *path, int mode); }
81	STD		{ int irix_sys_getdents(int fildes, \
			    irix_dirent_t *buf, int nbytes); }
82	STD		{ long irix_sys_sginap (long ticks); }
83	UNIMPL		sgikopt
84	UNIMPL		sysfs
85	NOARGS		{ int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
			    struct svr4_strbuf *dat, int *flags); }
86	NOARGS		{ int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
			    struct svr4_strbuf *dat, int flags); }
87	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
			    int timeout); }
88	STD		{ int irix_sys_sigreturn(struct irix_sigreturna isr); }
89	NOARGS		{ int compat_43_sys_accept(int s, \
			    struct sockaddr *name, int *anamelen); }
90	NOARGS		{ int sys_bind(int s, const struct sockaddr *name, \
			    int namelen); }
91	NOARGS		{ int sys_connect(int s, const struct sockaddr *name, \
			    int namelen); }
92	NOARGS		{ int32_t compat_43_sys_gethostid(void); }
93	NOARGS		{ int compat_43_sys_getpeername(int fdes, \
			    struct sockaddr *asa, int *alen); }
94	NOARGS		{ int compat_43_sys_getsockname(int fdes, \
			    struct sockaddr *asa, int *alen); }
95	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
			    void *val, int *avalsize); }
96	NOARGS		{ int sys_listen(int s, int backlog); }
97	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
			    int flags); }
98	NOARGS		{ ssize_t compat_43_sys_recvfrom(int s, void *buf, \
			    size_t len, int flags, struct sockaddr *from, \
			    int *fromlenaddr); }
99	NOARGS		{ ssize_t compat_43_sys_recvmsg(int s, \
			    struct msghdr *msg, int flags); }
100	NOARGS		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
			    int flags); }
102	NOARGS		{ ssize_t compat_43_sys_sendmsg(int s, \
			    const struct msghdr *msg, int flags); }
103	NOARGS		{ ssize_t sys_sendto(int s, const void *buf, \
			    size_t len, int flags, const struct sockaddr *to, \
			    int tolen); }
104	NOARGS		{ int compat_43_sys_sethostid(int32_t hostid); }
105	NOARGS		{ int sys_setsockopt(int s, int level, int name, \
			    const void *val, int valsize); }
106	NOARGS		{ int sys_shutdown(int s, int how); }
107	NOARGS		{ int svr4_sys_socket(int domain, int type, \
			    int protocol); }
108	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
			    u_int len); }
109	NOARGS		{ int compat_43_sys_sethostname(const char *hostname, \
			    u_int len); }
110	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
			    int len); }
111	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
			    int len); }
112	UNIMPL		truncate
113	UNIMPL		ftruncate
114	NOARGS		{ int sys_rename(const char *from, const char *to); }
115	NOARGS		{ int sys_symlink(const char *path, \
			    const char *link); }
116	NOARGS		{ int sys_readlink(const char *path, char *buf, \
			    size_t count); }
117	UNIMPL		lstat
118	UNIMPL
119	UNIMPL		nfs_svc
120	UNIMPL		nfs_getfh
121	UNIMPL		async_daemon
122	UNIMPL		exportfs
123	UNIMPL		setregid
124	UNIMPL		setreuid
125	NOARGS		{ int sys_getitimer(u_int which, \
			    struct itimerval *itv); }
126	NOARGS		{ int sys_setitimer(u_int which, \
			    struct itimerval *itv, struct itimerval *oitv); }
127	NOARGS		{ int sys_adjtime(struct timeval *delta, \
			    struct timeval *olddelta); }
128	NOARGS		{ int svr4_sys_gettimeofday(struct timeval *tp); }
129	UNIMPL		sproc
130	STD		{ ptrdiff_t irix_sys_prctl(unsigned int option, \
			    void *arg1); }
131	UNIMPL		procblk
132	UNIMPL		sprocsp
133	UNIMPL		sgigsc
134	NOARGS		{ void *svr4_sys_mmap(void *addr, svr4_size_t len, \
			    int prot, int flags, int fd, svr4_off_t pos); }
135	NOARGS		{ int sys_munmap(void *addr, int len); }
136	NOARGS		{ int sys_mprotect(void *addr, int len, int prot); }
137	UNIMPL		msync
138	UNIMPL		madvise
139	UNIMPL		pagelock
140	UNIMPL		getpagesize
141	UNIMPL		quotactl
142	UNIMPL
143	UNIMPL		getpgrp
144	UNIMPL		setpgrp
145	UNIMPL		vhangup
146	UNIMPL		fsync
147	UNIMPL		fchdir
148	UNIMPL		getrlimit
149	UNIMPL		setrlimit
150	UNIMPL		cacheflush
151	UNIMPL		cachectl
152	UNIMPL		fchown
153	UNIMPL		fchmod
154	UNIMPL		wait3
155	UNIMPL		socketpair
156	STD		{ long irix_sys_systeminfo(int what, char *buf, \
			    long len); }
157	UNIMPL		uname
158	STD		{ int irix_sys_xstat(const int version, \
			    const char *path, struct stat *buf); }
159	STD		{ int irix_sys_lxstat(const int version, \
			    const char *path, struct stat *buf); }
160	STD		{ int irix_sys_fxstat(const int version, \
			    const int fd, struct stat *buf); }
161	UNIMPL		xmknod
162	NOARGS		{ int svr4_sys_sigaction(int signum, \
			    const struct svr4_sigaction *nsa, \
			    struct svr4_sigaction *osa); }
163	NOARGS		{ int svr4_sys_sigpending(int what, \
			    svr4_sigset_t *set); }
164	NOARGS		{ int svr4_sys_sigprocmask(int how, \
			    const svr4_sigset_t *set, \
			    svr4_sigset_t *oset); }
165	NOARGS		{ int svr4_sys_sigsuspend( \
			    const svr4_sigset_t *set); }
166	UNIMPL		sigpoll_sys
167	UNIMPL		swapctl
168	STD		{ int irix_sys_getcontext(irix_ucontext_t *ucp); }
169	STD		{ int irix_sys_setcontext(const irix_ucontext_t *ucp); }
170	STD		{ int irix_sys_waitsys(int type, int pid, \
			    struct irix_irix5_siginfo *info, int options, \
			    struct rusage *ru); }
171	UNIMPL		sigstack
172	UNIMPL		sigaltstack
173	UNIMPL		sigsendset
174	UNIMPL		statvfs
175	UNIMPL		fstatvfs
176	UNIMPL		getpmsg
177	UNIMPL		putpmsg
178	UNIMPL		lchown
179	UNIMPL		priocntl
180	UNIMPL		sigqueue
181	NOARGS		{ ssize_t sys_readv(int fd, \
			    const struct iovec *iovp, int iovcnt); }
182	NOARGS		{ ssize_t sys_writev(int fd, \
			    const struct iovec *iovp, int iovcnt); }
183	UNIMPL		truncate64
184	UNIMPL		ftruncate64
185	UNIMPL		mmap64
186	UNIMPL		dmi
187	UNIMPL		pread
188	UNIMPL		pwrite
189	UNIMPL		fdatasync
190	UNIMPL		sgifastpath
191	UNIMPL		attr_get
192	UNIMPL		attr_getf
193	UNIMPL		attr_set
194	UNIMPL		attr_setf
195	UNIMPL		attr_remove
196	UNIMPL		attr_removef
197	UNIMPL		attr_list
198	UNIMPL		attr_listf
199	UNIMPL		attr_multi
200	UNIMPL		attr_multif
201	UNIMPL		statvfs64
202	UNIMPL		fstatvfs64
203	STD		{ int irix_sys_getmountid(const char *path, \
			    irix_mountid_t *buf); }
204	UNIMPL		nsproc
205	STD		{ int irix_sys_getdents64(int fildes, \
			    irix_dirent64_t *buf, int nbytes); }
206	UNIMPL		afs_syscall
207	STD		{ int irix_sys_ngetdents(int fildes, \
			    irix_dirent_t *buf, unsigned short nbyte, \
			    int *eof); }
208	STD		{ int irix_sys_ngetdents64(int fildes, \
			    irix_dirent64_t *buf, unsigned short nbyte, \
			    int *eof); }
209	UNIMPL		sgi_sesmgr
210	UNIMPL		pidsprocsp
211	UNIMPL		rexec
212	UNIMPL		timer_create
213	UNIMPL		timer_delete
214	UNIMPL		timer_settime
215	UNIMPL		timer_gettime
216	UNIMPL		timer_setoverrun
217	UNIMPL		sched_rr_get_interval
218	UNIMPL		sched_yield
219	UNIMPL		sched_getscheduler
220	UNIMPL		sched_setscheduler
221	UNIMPL		sched_getparam
222	UNIMPL		sched_setparam
223	UNIMPL		usync_cntl
224	UNIMPL		psema_cntl
225	UNIMPL		restartreturn
226	UNIMPL		sysget
227	UNIMPL		xpg4_recvmsg
228	UNIMPL		umfscall
229	UNIMPL		nsproctid
230	UNIMPL		rexec_complete
231	UNIMPL		xpg4_sigaltstack
232	UNIMPL		xpg4_sigaltstack
233	UNIMPL		xpg4_setregid
234	UNIMPL		linkfollow
235	UNIMPL		utimets
@


1.17.2.3
log
@Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17.2.2 2002/04/01 07:44:03 nathanw Exp $
a51 1
#include <compat/svr4/svr4_statvfs.h>
d134 1
a134 1
54	STD		{ int irix_sys_ioctl(int fd, u_long com, \
d223 2
a224 2
112	NOARGS		{ int sys_truncate(const char *path, long length); }
113	NOARGS		{ int sys_ftruncate(int fd, long length); }
d236 2
a237 2
123	NOARGS		{ int sys_setregid(gid_t rgid, gid_t egid); }
124	NOARGS		{ int sys_setreuid(uid_t ruid, uid_t euid); }
d289 3
a291 3
164	STD		{ int irix_sys_sigprocmask(int how, \
			    const irix_sigset_t *set, \
			    irix_sigset_t *oset); }
d295 1
a295 1
167	STD		{ int irix_sys_swapctl(int cmd, void *arg); }
d304 2
a305 4
174	NOARGS		{ int svr4_sys_statvfs(const char *path, \
			    struct svr4_statvfs *fs); }
175	NOARGS		{ int svr4_sys_fstatvfs(int fd, \
			    struct svr4_statvfs *fs); }
d315 2
a316 4
183	NOARGS		{ int sys_truncate(const char *path, int pad, \
			    off_t length); } truncate64
184	NOARGS		{ int sys_ftruncate(int fd, int pad, off_t length); } \
			    ftruncate64
@


1.17.2.4
log
@Catch up to -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17.2.3 2002/04/17 00:04:52 nathanw Exp $
d147 1
a147 1
62	STD		{ int irix_sys_fcntl(int fd, int cmd, char *arg); }
d179 1
a179 2
88	STD		{ int irix_sys_sigreturn(struct irix_sigcontext *scp, \
			    struct irix_ucontext *ucp, int signo); }
d265 1
a265 1
146	NOARGS		{ int sys_fsync(int fd); }
d285 1
a285 1
162	STD		{ int irix_sys_sigaction(int signum, \
d287 1
a287 1
			    struct svr4_sigaction *osa, void *sigtramp); }
@


1.17.2.5
log
@#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17.2.4 2002/05/29 21:32:29 nathanw Exp $
a45 1
#include <sys/sa.h>
@


1.17.2.6
log
@Catch up to -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17.2.5 2002/06/20 03:42:55 nathanw Exp $
d67 1
a67 1
5	STD		{ int irix_sys_open(const char *path, int flags, \
d81 1
a81 1
17	STD		{ int irix_sys_break(caddr_t nsize); }
d125 1
a125 1
52	STD		{ int irix_sys_shmsys(int what, int a2, int a3, \
d161 3
a163 6
75	STD		{ int irix_sys_getrlimit64(int resource, \
			    struct irix_rlimit64 *rlp); }
76	STD		{ int irix_sys_setrlimit64(int resource, \
			    const struct irix_rlimit64 *rlp); }
77	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
d248 1
a248 2
129	STD		{ irix_pid_t irix_sys_sproc(void *entry, \
			    unsigned int inh, void *arg); }
d251 2
a252 4
131	STD		{ int irix_sys_procblk(int cmd, pid_t pid, int count); }
132	STD		{ irix_pid_t irix_sys_sprocsp(void *entry, \
			    unsigned int inh, void *arg, caddr_t sp, \
			    irix_size_t len); }
d254 5
a258 7
134	STD		{ void *irix_sys_mmap(void *addr, irix_size_t len, \
			    int prot, int flags, int fd, irix_off_t pos); }
135	STD		{ int irix_sys_munmap(void *addr, int len); }
136	STD		{ int irix_sys_mprotect(void *addr, \
			    int len, int prot); }
137	NOARGS		{ int sys___msync13(void *addr, \
			    size_t len, int flags); }
d264 2
a265 2
143	NOARGS		{ int sys_getpgrp(void); }
144	STD		{ int irix_sys_setpgrp(int pid, int pgid); } 
d268 3
a270 5
147	NOARGS		{ int sys_fchdir(int fd); }
148	STD		{ int irix_sys_getrlimit(int resource, \
			     struct irix_rlimit *rlp); }
149	STD		{ int irix_sys_setrlimit(int resource, \
			    const struct irix_rlimit *rlp); }
d273 2
a274 3
152	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); } \
			    fchown
153	NOARGS		{ int sys_fchmod(int fd, int mode); }
d324 1
a324 3
185	STD		{ void *irix_sys_mmap64(void *addr, irix_size_t len, \
			    int prot, int flags, int fd, int pad1, \
			    irix_off_t pos); }
d326 2
a327 4
187	NOARGS		{ ssize_t svr4_sys_pread(int fd, void *buf, \
			    size_t nbyte, svr4_off_t off); }
188	NOARGS		{ ssize_t svr4_sys_pwrite(int fd, const void *buf, \
			    size_t nbyte, svr4_off_t off); }
d355 1
a355 3
210	STD		{ irix_pid_t irix_sys_pidsprocsp(void *entry, \
			    unsigned int inh, void *arg, caddr_t sp, \
			    irix_size_t len, irix_pid_t pid); }
d368 1
a368 1
223	STD		{ int irix_sys_usync_cntl(int cmd, void *arg); }
@


1.17.2.7
log
@Catch up to -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17.2.6 2002/10/18 02:41:07 nathanw Exp $
d141 1
a141 1
57	STD		{ int irix_sys_utssys(void *a1, void *a2, int sel, \
d290 1
a290 1
157	STD		{ int irix_sys_uname(struct irix_utsname *name); }
@


1.17.4.1
log
@file syscalls.master was added on branch kqueue on 2002-01-10 19:51:22 +0000
@
text
@d1 357
@


1.17.4.2
log
@Sync kqueue branch with -current.
@
text
@a0 357
	$NetBSD: syscalls.master,v 1.17.4.1 2002/01/10 19:51:22 thorpej Exp $

;	@@(#)syscalls.master	8.1 (Berkeley) 7/19/93

; NetBSD COMPAT_IRIX 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.

#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
#include "opt_sysv.h"
#endif

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <sys/ioctl_compat.h>
#include <sys/syscallargs.h>

#include <compat/svr4/svr4_types.h>

#include <compat/irix/irix_types.h>
#include <compat/irix/irix_signal.h>
#include <compat/irix/irix_syscallargs.h>

%%

0	NOARGS		{ int sys_nosys(void); } syscall
1	NOARGS		{ int sys_exit(int rval); }
2	NOARGS		{ int sys_fork(void); }
3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
5	STD		{ int svr4_sys_open(const char *path, int flags, \
			    int mode); }
6	NOARGS		{ int sys_close(int fd); }
7	OBSOL		wait
8	STD		{ int svr4_sys_creat(const char *path, int mode); }
9	NOARGS		{ int sys_link(char *path, char *link); }
10	NOARGS		{ int sys_unlink(char *path); }
11	STD		{ int svr4_sys_execv(const char *path, char **argp); }
12	NOARGS		{ int sys_chdir(char *path); }
13	STD		{ int svr4_sys_time(svr4_time_t *t); }
14	OBSOL		mknod
15	NOARGS		{ int sys_chmod(char *path, int mode); }
16	NOARGS		{ int sys___posix_chown(char *path, int uid, \
			    int gid); } chown
17	STD		{ int svr4_sys_break(caddr_t nsize); }
18	OBSOL		stat
19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
			    int whence); }
20	NOARGS MPSAFE	{ pid_t sys_getpid(void); }
21	UNIMPL		old_mount
22	UNIMPL		System V umount
23	NOARGS		{ int sys_setuid(uid_t uid); }
24	NOARGS		{ uid_t sys_getuid_with_euid(void); }
25	UNIMPL		stime
26	UNIMPL		ptrace
27	OBSOL		alarm
28	STD		{ int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
29	STD		{ int svr4_sys_pause(void); }
30	STD		{ int svr4_sys_utime(const char *path, \
			     struct svr4_utimbuf *ubuf); }
31	UNIMPL		was stty
32	UNIMPL		was gtty
33	STD		{ int svr4_sys_access(const char *path, int flags); }
34	STD		{ int svr4_sys_nice(int prio); }
35	UNIMPL		statfs
36	NOARGS		{ int sys_sync(void); }
37	STD		{ int svr4_sys_kill(int pid, int signum); }
38	UNIMPL		fstatfs
39	STD		{ int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
40	STD		{ ptrdiff_t irix_sys_syssgi(int request, void *arg1, \
			    void *arg2, void *arg3, void *arg4, void *arg5); }
41	NOARGS		{ int sys_dup(u_int fd); }
42	NOARGS		{ int sys_pipe(void); }
43	STD		{ int svr4_sys_times(struct tms *tp); }
44	UNIMPL		profil
45	UNIMPL		plock
46	NOARGS		{ int sys_setgid(gid_t gid); }
47	NOARGS		{ gid_t sys_getgid_with_egid(void); }
48	OBSOL		ssig
#ifdef SYSVMSG
49	STD		{ int svr4_sys_msgsys(int what, int a2, int a3, \
					      int a4, int a5); }
#else
49	UNIMPL		msgsys
#endif
50	UNIMPL		sysmips
51	UNIMPL		acct
#ifdef SYSVSHM
52	STD		{ int svr4_sys_shmsys(int what, int a2, int a3, \
					      int a4); }
#else
52	UNIMPL		shmsys
#endif
#ifdef SYSVSEM
53	STD		{ int svr4_sys_semsys(int what, int a2, int a3, \
					      int a4, int a5); }
#else
53	UNIMPL		semsys
#endif
54	STD		{ int svr4_sys_ioctl(int fd, u_long com, \
			    caddr_t data); }
55	UNIMPL		uadmin
56	STD		{ int irix_sys_sysmp(int cmd, void *arg1, void *arg2, \
			    void *arg3, void *arg4); }
57	STD		{ int svr4_sys_utssys(void *a1, void *a2, int sel, \
			    void *a3); }
58	UNIMPL
59	STD		{ int svr4_sys_execve(const char *path, char **argp, \
			    char **envp); }
60	NOARGS		{ int sys_umask(int newmask); }
61	NOARGS		{ int sys_chroot(char *path); }
62	STD		{ int svr4_sys_fcntl(int fd, int cmd, char *arg); }
63	STD		{ long svr4_sys_ulimit(int cmd, long newlimit); }
64	UNIMPL		reserved for unix/pc
65	UNIMPL		reserved for unix/pc
66	UNIMPL		reserved for unix/pc
67	UNIMPL		reserved for unix/pc
68	UNIMPL		reserved for unix/pc
69	UNIMPL		reserved for unix/pc
70	OBSOL		advfs
71	OBSOL		unadvfs
72	OBSOL		rmount
73	OBSOL		rumount
74	OBSOL		rfstart
75	OBSOL		sigret
76	OBSOL		rdebug
77	OBSOL		rfstop
78	STD		{ irix_off64_t irix_sys_lseek64(int fd, int pad1, \
			    irix_off64_t offset, int whence, \
			    int pad2, int pad3, int pad4); }
79	NOARGS		{ int sys_rmdir(char *path); }
80	NOARGS		{ int sys_mkdir(char *path, int mode); }
81	STD		{ int irix_sys_getdents(int fildes, \
			    irix_dirent_t *buf, int nbytes); }
82	STD		{ long irix_sys_sginap (long ticks); }
83	UNIMPL		sgikopt
84	UNIMPL		sysfs
85	STD		{ int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
			    struct svr4_strbuf *dat, int *flags); }
86	STD		{ int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
			    struct svr4_strbuf *dat, int flags); }
87	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
			    int timeout); }
88	STD		{ int irix_sys_sigreturn(struct irix_sigframe *sf); }
89	NOARGS		{ int compat_43_sys_accept(int s, \
			    struct sockaddr *name, int *anamelen); }
90	NOARGS		{ int sys_bind(int s, const struct sockaddr *name, \
			    int namelen); }
91	NOARGS		{ int sys_connect(int s, const struct sockaddr *name, \
			    int namelen); }
92	UNIMPL		sys_gethostid
93	NOARGS		{ int compat_43_sys_getpeername(int fdes, \
			    struct sockaddr *asa, int *alen); }
94	NOARGS		{ int compat_43_sys_getsockname(int fdes, \
			    struct sockaddr *asa, int *alen); }
95	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
			    void *val, int *avalsize); }
96	NOARGS		{ int sys_listen(int s, int backlog); }
97	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
			    int flags); }
98	NOARGS		{ ssize_t compat_43_sys_recvfrom(int s, void *buf, \
			    size_t len, int flags, struct sockaddr *from, \
			    int *fromlenaddr); }
99	NOARGS		{ ssize_t compat_43_sys_recvmsg(int s, \
			    struct msghdr *msg, int flags); }
100	NOARGS		{ int sys_select(int nd, fd_set *in, fd_set *ou, \
			    fd_set *ex, struct timeval *tv); }
101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
			    int flags); }
102	NOARGS		{ ssize_t compat_43_sys_sendmsg(int s, \
			    const struct msghdr *msg, int flags); }
103	NOARGS		{ ssize_t sys_sendto(int s, const void *buf, \
			    size_t len, int flags, const struct sockaddr *to, \
			    int tolen); }
104	UNIMPL		sys_sethostid
105	NOARGS		{ int sys_setsockopt(int s, int level, int name, \
			    const void *val, int valsize); }
106	NOARGS		{ int sys_shutdown(int s, int how); }
107	STD		{ int svr4_sys_socket(int domain, int type, \
			    int protocol); }
108	UNIMPL		sys_gethostname
109	UNIMPL		sethostname
110	UNIMPL		sys_getdomainname
111	UNIMPL		setdomainname
112	UNIMPL		truncate
113	UNIMPL		ftruncate
114	NOARGS		{ int sys_rename(const char *from, const char *to); }
115	NOARGS		{ int sys_symlink(const char *path, \
			    const char *link); }
116	NOARGS		{ int sys_readlink(const char *path, char *buf, \
			    size_t count); }
117	UNIMPL		lstat
118	UNIMPL
119	UNIMPL		nfs_svc
120	UNIMPL		nfs_getfh
121	UNIMPL		async_daemon
122	UNIMPL		exportfs
123	UNIMPL		setregid
124	UNIMPL		setreuid
125	UNIMPL		getitimer
126	UNIMPL		setitimer
127	UNIMPL		adjtime
128	UNIMPL		gettimeofday
129	UNIMPL		sproc
130	STD		{ ptrdiff_t irix_sys_prctl(unsigned int option, \
			    void *arg1); }
131	UNIMPL		procblk
132	UNIMPL		sprocsp
133	UNIMPL		sgigsc
134	STD		{ void *svr4_sys_mmap(void *addr, svr4_size_t len, \
			    int prot, int flags, int fd, svr4_off_t pos); }
135	UNIMPL		munmap
136	UNIMPL		mprotect
137	UNIMPL		msync
138	UNIMPL		madvise
139	UNIMPL		pagelock
140	UNIMPL		getpagesize
141	UNIMPL		quotactl
142	UNIMPL
143	UNIMPL		getpgrp
144	UNIMPL		setpgrp
145	UNIMPL		vhangup
146	UNIMPL		fsync
147	UNIMPL		fchdir
148	UNIMPL		getrlimit
149	UNIMPL		setrlimit
150	UNIMPL		cacheflush
151	UNIMPL		cachectl
152	UNIMPL		fchown
153	UNIMPL		fchmod
154	UNIMPL		wait3
155	UNIMPL		socketpair
156	UNIMPL		systeminfo
157	UNIMPL		uname
158	STD		{ int irix_sys_xstat(const int version, \
			    const char *path, struct stat *buf); }
159	STD		{ int irix_sys_lxstat(const int version, \
			    const char *path, struct stat *buf); }
160	STD		{ int irix_sys_fxstat(const int version, \
			    const int fd, struct stat *buf); }
161	UNIMPL		xmknod
162	STD		{ int svr4_sys_sigaction(int signum, \
			    const struct svr4_sigaction *nsa, \
			    struct svr4_sigaction *osa); }
163	STD		{ int svr4_sys_sigpending(int what, \
			    svr4_sigset_t *set); }
164	STD		{ int svr4_sys_sigprocmask(int how, \
			    const svr4_sigset_t *set, \
			    svr4_sigset_t *oset); }
165	STD		{ int svr4_sys_sigsuspend( \
			    const svr4_sigset_t *set); }
166	UNIMPL		sigpoll_sys
167	UNIMPL		swapctl
168	STD		{ int irix_sys_getcontext(irix_ucontext_t *ucp); }
169	STD		{ int irix_sys_setcontext(const irix_ucontext_t *ucp); }
170	STD		{ int irix_sys_waitsys(int type, int pid, \
			    struct irix_irix5_siginfo *info, int options, \
			    struct rusage *ru); }
171	UNIMPL		sigstack
172	UNIMPL		sigaltstack
173	UNIMPL		sigsendset
174	UNIMPL		statvfs
175	UNIMPL		fstatvfs
176	UNIMPL		getpmsg
177	UNIMPL		putpmsg
178	UNIMPL		lchown
179	UNIMPL		priocntl
180	UNIMPL		sigqueue
181	NOARGS		{ ssize_t sys_readv(int fd, \
			    const struct iovec *iovp, int iovcnt); }
182	NOARGS		{ ssize_t sys_writev(int fd, \
			    const struct iovec *iovp, int iovcnt); }
183	UNIMPL		truncate64
184	UNIMPL		ftruncate64
185	UNIMPL		mmap64
186	UNIMPL		dmi
187	UNIMPL		pread
188	UNIMPL		pwrite
189	UNIMPL		fdatasync
190	UNIMPL		sgifastpath
191	UNIMPL		attr_get
192	UNIMPL		attr_getf
193	UNIMPL		attr_set
194	UNIMPL		attr_setf
195	UNIMPL		attr_remove
196	UNIMPL		attr_removef
197	UNIMPL		attr_list
198	UNIMPL		attr_listf
199	UNIMPL		attr_multi
200	UNIMPL		attr_multif
201	UNIMPL		statvfs64
202	UNIMPL		fstatvfs64
203	STD		{ int irix_sys_getmountid(const char *path, \
			    irix_mountid_t *buf); }
204	UNIMPL		nsproc
205	UNIMPL		getdents64
206	UNIMPL		afs_syscall
207	STD		{ int irix_sys_ngetdents(int fildes, \
			    irix_dirent_t *buf, unsigned short nbyte, \
			    int *eof); }
208	UNIMPL		ngetdents64
209	UNIMPL		sgi_sesmgr
210	UNIMPL		pidsprocsp
211	UNIMPL		rexec
212	UNIMPL		timer_create
213	UNIMPL		timer_delete
214	UNIMPL		timer_settime
215	UNIMPL		timer_gettime
216	UNIMPL		timer_setoverrun
217	UNIMPL		sched_rr_get_interval
218	UNIMPL		sched_yield
219	UNIMPL		sched_getscheduler
220	UNIMPL		sched_setscheduler
221	UNIMPL		sched_getparam
222	UNIMPL		sched_setparam
223	UNIMPL		usync_cntl
224	UNIMPL		psema_cntl
225	UNIMPL		restartreturn
226	UNIMPL		sysget
227	UNIMPL		xpg4_recvmsg
228	UNIMPL		umfscall
229	UNIMPL		nsproctid
230	UNIMPL		rexec_complete
231	UNIMPL		xpg4_sigaltstack
232	UNIMPL		xpg4_sigaltstack
233	UNIMPL		xpg4_setregid
234	UNIMPL		linkfollow
235	UNIMPL		utimets
@


1.17.4.3
log
@Sync w/ -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17.4.2 2002/02/11 20:09:27 jdolecek Exp $
a36 1
#include "opt_compat_43.h"
d85 1
a85 1
27	STD		{ int svr4_sys_alarm(unsigned sec); }
d210 4
a213 8
108	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
			    u_int len); }
109	NOARGS		{ int compat_43_sys_sethostname(const char *hostname, \
			    u_int len); }
110	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
			    int len); }
111	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
			    int len); }
d229 4
a232 7
125	NOARGS		{ int sys_getitimer(u_int which, \
			    struct itimerval *itv); }
126	NOARGS		{ int sys_setitimer(u_int which, \
			    struct itimerval *itv, struct itimerval *oitv); }
127	NOARGS		{ int sys_adjtime(struct timeval *delta, \
			    struct timeval *olddelta); }
128	STD		{ int svr4_sys_gettimeofday(struct timeval *tp); }
d325 1
a325 2
205	STD		{ int irix_sys_getdents64(int fildes, \
			    irix_dirent64_t *buf, int nbytes); }
d330 1
a330 3
208	STD		{ int irix_sys_ngetdents64(int fildes, \
			    irix_dirent64_t *buf, unsigned short nbyte, \
			    int *eof); }
@


1.17.4.4
log
@Catch up with -current.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17.4.3 2002/03/16 16:00:28 jdolecek Exp $
a48 5
#include <compat/svr4/svr4_signal.h>
#include <compat/svr4/svr4_ucontext.h>
#include <compat/svr4/svr4_lwp.h>
#include <compat/svr4/svr4_statvfs.h>
#include <compat/svr4/svr4_syscallargs.h>
d61 1
a61 1
5	NOARGS		{ int svr4_sys_open(const char *path, int flags, \
d65 1
a65 1
8	NOARGS		{ int svr4_sys_creat(const char *path, int mode); }
d68 1
a68 1
11	NOARGS		{ int svr4_sys_execv(const char *path, char **argp); }
d70 1
a70 1
13	NOARGS		{ int svr4_sys_time(svr4_time_t *t); }
d75 1
a75 1
17	NOARGS		{ int svr4_sys_break(caddr_t nsize); }
d86 4
a89 4
27	NOARGS		{ int svr4_sys_alarm(unsigned sec); }
28	NOARGS		{ int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
29	NOARGS		{ int svr4_sys_pause(void); }
30	NOARGS		{ int svr4_sys_utime(const char *path, \
d93 2
a94 2
33	NOARGS		{ int svr4_sys_access(const char *path, int flags); }
34	NOARGS		{ int svr4_sys_nice(int prio); }
d97 1
a97 1
37	NOARGS		{ int svr4_sys_kill(int pid, int signum); }
d99 1
a99 1
39	NOARGS		{ int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
d104 1
a104 1
43	NOARGS		{ int svr4_sys_times(struct tms *tp); }
d111 1
a111 1
49	NOARGS		{ int svr4_sys_msgsys(int what, int a2, int a3, \
d119 1
a119 1
52	NOARGS		{ int svr4_sys_shmsys(int what, int a2, int a3, \
d125 1
a125 1
53	NOARGS		{ int svr4_sys_semsys(int what, int a2, int a3, \
d130 1
a130 1
54	STD		{ int irix_sys_ioctl(int fd, u_long com, \
d135 1
a135 1
57	NOARGS		{ int svr4_sys_utssys(void *a1, void *a2, int sel, \
d138 1
a138 1
59	NOARGS		{ int svr4_sys_execve(const char *path, char **argp, \
d142 2
a143 2
62	NOARGS		{ int svr4_sys_fcntl(int fd, int cmd, char *arg); }
63	NOARGS		{ long svr4_sys_ulimit(int cmd, long newlimit); }
d168 1
a168 1
85	NOARGS		{ int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
d170 1
a170 1
86	NOARGS		{ int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
d174 1
a174 1
88	STD		{ int irix_sys_sigreturn(struct irix_sigreturna isr); }
d181 1
a181 1
92	NOARGS		{ int32_t compat_43_sys_gethostid(void); }
d205 1
a205 1
104	NOARGS		{ int compat_43_sys_sethostid(int32_t hostid); }
d209 1
a209 1
107	NOARGS		{ int svr4_sys_socket(int domain, int type, \
d232 2
a233 2
123	NOARGS		{ int sys_setregid(gid_t rgid, gid_t egid); }
124	NOARGS		{ int sys_setreuid(uid_t ruid, uid_t euid); }
d240 1
a240 1
128	NOARGS		{ int svr4_sys_gettimeofday(struct timeval *tp); }
d247 1
a247 1
134	NOARGS		{ void *svr4_sys_mmap(void *addr, svr4_size_t len, \
d249 2
a250 2
135	NOARGS		{ int sys_munmap(void *addr, int len); }
136	NOARGS		{ int sys_mprotect(void *addr, int len, int prot); }
d270 1
a270 2
156	STD		{ long irix_sys_systeminfo(int what, char *buf, \
			    long len); }
d279 1
a279 1
162	NOARGS		{ int svr4_sys_sigaction(int signum, \
d282 1
a282 1
163	NOARGS		{ int svr4_sys_sigpending(int what, \
d284 1
a284 1
164	NOARGS		{ int svr4_sys_sigprocmask(int how, \
d287 1
a287 1
165	NOARGS		{ int svr4_sys_sigsuspend( \
d299 2
a300 4
174	NOARGS		{ int svr4_sys_statvfs(const char *path, \
			    struct svr4_statvfs *fs); }
175	NOARGS		{ int svr4_sys_fstatvfs(int fd, \
			    struct svr4_statvfs *fs); }
@


1.17.4.5
log
@catch up with -current on kqueue branch
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.17.4.4 2002/06/23 17:44:00 jdolecek Exp $
d66 1
a66 1
5	STD		{ int irix_sys_open(const char *path, int flags, \
d80 1
a80 1
17	STD		{ int irix_sys_break(caddr_t nsize); }
d124 1
a124 1
52	STD		{ int irix_sys_shmsys(int what, int a2, int a3, \
d147 1
a147 1
62	STD		{ int irix_sys_fcntl(int fd, int cmd, char *arg); }
d160 3
a162 6
75	STD		{ int irix_sys_getrlimit64(int resource, \
			    struct irix_rlimit64 *rlp); }
76	STD		{ int irix_sys_setrlimit64(int resource, \
			    const struct irix_rlimit64 *rlp); }
77	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
			    struct timespec *rmtp); }
d179 1
a179 2
88	STD		{ int irix_sys_sigreturn(struct irix_sigcontext *scp, \
			    struct irix_ucontext *ucp, int signo); }
d224 2
a225 2
112	NOARGS		{ int sys_truncate(const char *path, long length); }
113	NOARGS		{ int sys_ftruncate(int fd, long length); }
d246 1
a246 2
129	STD		{ irix_pid_t irix_sys_sproc(void *entry, \
			    unsigned int inh, void *arg); }
d249 2
a250 4
131	STD		{ int irix_sys_procblk(int cmd, pid_t pid, int count); }
132	STD		{ irix_pid_t irix_sys_sprocsp(void *entry, \
			    unsigned int inh, void *arg, caddr_t sp, \
			    irix_size_t len); }
d252 5
a256 7
134	STD		{ void *irix_sys_mmap(void *addr, irix_size_t len, \
			    int prot, int flags, int fd, irix_off_t pos); }
135	STD		{ int irix_sys_munmap(void *addr, int len); }
136	STD		{ int irix_sys_mprotect(void *addr, \
			    int len, int prot); }
137	NOARGS		{ int sys___msync13(void *addr, \
			    size_t len, int flags); }
d262 2
a263 2
143	NOARGS		{ int sys_getpgrp(void); }
144	STD		{ int irix_sys_setpgrp(int pid, int pgid); } 
d265 4
a268 6
146	NOARGS		{ int sys_fsync(int fd); }
147	NOARGS		{ int sys_fchdir(int fd); }
148	STD		{ int irix_sys_getrlimit(int resource, \
			     struct irix_rlimit *rlp); }
149	STD		{ int irix_sys_setrlimit(int resource, \
			    const struct irix_rlimit *rlp); }
d271 2
a272 3
152	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); } \
			    fchown
153	NOARGS		{ int sys_fchmod(int fd, int mode); }
d285 1
a285 1
162	STD		{ int irix_sys_sigaction(int signum, \
d287 1
a287 1
			    struct svr4_sigaction *osa, void *sigtramp); }
d290 3
a292 3
164	STD		{ int irix_sys_sigprocmask(int how, \
			    const irix_sigset_t *set, \
			    irix_sigset_t *oset); }
d296 1
a296 1
167	STD		{ int irix_sys_swapctl(int cmd, void *arg); }
d318 3
a320 7
183	NOARGS		{ int sys_truncate(const char *path, int pad, \
			    off_t length); } truncate64
184	NOARGS		{ int sys_ftruncate(int fd, int pad, off_t length); } \
			    ftruncate64
185	STD		{ void *irix_sys_mmap64(void *addr, irix_size_t len, \
			    int prot, int flags, int fd, int pad1, \
			    irix_off_t pos); }
d322 2
a323 4
187	NOARGS		{ ssize_t svr4_sys_pread(int fd, void *buf, \
			    size_t nbyte, svr4_off_t off); }
188	NOARGS		{ ssize_t svr4_sys_pwrite(int fd, const void *buf, \
			    size_t nbyte, svr4_off_t off); }
d351 1
a351 3
210	STD		{ irix_pid_t irix_sys_pidsprocsp(void *entry, \
			    unsigned int inh, void *arg, caddr_t sp, \
			    irix_size_t len, irix_pid_t pid); }
d364 1
a364 1
223	STD		{ int irix_sys_usync_cntl(int cmd, void *arg); }
@


1.16
log
@integrated a copy of svr4_waitsys(), which should be merged later.
This has not been fully tested, but it makes IRIX's /bin/sh able to survive
running an external command such as ls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.15 2001/12/25 21:32:31 manu Exp $
d216 5
a220 3
114	UNIMPL		rename
115	UNIMPL		symlink
116	UNIMPL		readlink
@


1.15
log
@Added accept, bind, connect, getpeername, getsockname, listen, recv, recvfrom,
recvmsg, select, send, sendmsg, sendto, setsockopt, shutdown, socket, readv,
and writev. IRIX's telnet now works.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.14 2001/12/25 19:04:19 manu Exp $
d283 3
a285 1
170	UNIMPL		waitsys
@


1.14
log
@Added getcontext/setcontext. This has not been fully tested, but it seems to
work enough for binaries that use it (eg: telnet).
Problems:
- what should we do with uc_filler?
- how to handle FP regs?
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.13 2001/12/25 16:40:48 manu Exp $
d174 6
a179 3
89	UNIMPL		accept
90	UNIMPL		bind
91	UNIMPL		connect
d181 23
a203 11
93	UNIMPL		getpeername
94	UNIMPL		getsockname
95	UNIMPL		getsockopt
96	UNIMPL		listen
97	UNIMPL		recv
98	UNIMPL		recvfrom
99	UNIMPL		recvmsg
100	UNIMPL		select
101	UNIMPL		send
102	UNIMPL		sendmsg
103	UNIMPL		sendto
d205 5
a209 3
105	UNIMPL		setsockopt
106	UNIMPL		shutdown
107	UNIMPL		socket
d294 4
a297 2
181	UNIMPL		readv
182	UNIMPL		writev
@


1.13
log
@Added irix_sys_lseek64()
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.12 2001/12/23 20:57:30 manu Exp $
d50 1
d264 2
a265 2
168	UNIMPL		getcontext
169	UNIMPL		setcontext
@


1.12
log
@more UNIMPL IRIX system calls in the table...
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.11 2001/12/23 20:15:04 manu Exp $
d156 3
a158 1
78	UNIMPL		lseek64
@


1.11
log
@Added getdents/ngetdents.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.10 2001/12/22 14:43:45 manu Exp $
d156 1
a156 1
78	UNIMPL		rfsys
d228 6
a233 6
144	UNIMPL		vhangup
145	UNIMPL		fsync
146	UNIMPL		fchdir
147	UNIMPL		getrlimit
148	UNIMPL		setrlimit
149	UNIMPL
d300 1
a300 1
206	UNIMPL		dfs_XXX
d305 1
a305 1
209	UNIMPL
d322 10
@


1.10
log
@implemented enough of getmountid to make commands using IRIX Universal Name
Service happy. Code in libc attempts to open files in the ns filesystem, and
then uses getmountid on failure to ensure that the ns filesystem is really
mounted. We don't emulate the ns filesystem yet, but getmountid now correctly
reports that ns is not present.
Note: It seems that the mountid of the ns filesystem should always be
00000005 00000000 00000000 7fff3000
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.9 2001/12/22 12:09:21 manu Exp $
d159 2
a160 2
81	STD		{ int svr4_sys_getdents(int fd, char *buf, \
			    int nbytes); }
d301 3
a303 1
207	UNIMPL		ngetdents
@


1.9
log
@implemented fxstat and lxstat. Fixed a bug in xstat (ino_t was wrong)
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.8 2001/12/08 18:08:04 manu Exp $
d296 2
a297 1
203	UNIMPL		getmountid
@


1.8
log
@Implemented irix_sys_xstat(). This duplicates some code already present
for svr4 compat, maybe these should be merged..
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.7 2001/12/08 11:17:37 manu Exp $
d244 4
a247 2
159	UNIMPL		lxstat
160	UNIMPL		fxstat
@


1.7
log
@Added IRIX signal delivery
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.6 2001/12/02 09:23:59 manu Exp $
d242 2
a243 1
158	UNIMPL		xstat
@


1.6
log
@Added enough of prctl emulation so that program do not crash on exit
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.5 2001/12/02 08:47:17 manu Exp $
d161 1
a161 1
82	UNIMPL		sginap
d170 1
a170 1
88	UNIMPL		sigreturn
d246 10
a255 4
162	UNIMPL		sigaction
163	UNIMPL		sigpending
164	UNIMPL		sigprocmask
165	UNIMPL		sigsuspend
@


1.5
log
@Uses svr4_mmap for mmap32 emulation. This will not implement all the
IRIX functionnality, but it should be enough to get dynamic linking working
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.4 2001/12/02 08:30:11 manu Exp $
d212 2
a213 1
130	UNIMPL		prctl
@


1.4
log
@Added a bit of sysmp() emulation necessary for dynamic linking.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.3 2001/11/28 12:00:54 manu Exp $
d216 2
a217 1
134	UNIMPL		mmap
@


1.3
log
@On IRIX, the first 88 system calls are quite plain SVR4, and the 137
remaining are IRIX specific. We know use SVR4 emulation for the first 88
system calls.
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.2 2001/11/26 21:36:25 manu Exp $
d131 2
a132 1
56	UNIMPL		sysmp
@


1.2
log
@Added code to match IRIX N32 binaries
@
text
@d1 1
a1 1
	$NetBSD: syscalls.master,v 1.1 2001/09/22 18:51:36 manu Exp $
d44 1
d47 5
d54 80
a133 58
0       NOARGS		{ int sys_nosys(void); } syscall
1       NOARGS		{ int sys_exit(int rval); }
2       NOARGS		{ int sys_fork(void); }
3       NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
4       NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
5	UNIMPL	
6	UNIMPL	
7	UNIMPL	
8	UNIMPL	
9	UNIMPL	
10	UNIMPL	
11	UNIMPL	
12	UNIMPL	
13	UNIMPL	
14	UNIMPL	
15	UNIMPL	
16	UNIMPL	
17	UNIMPL	
18	UNIMPL	
19	UNIMPL	
20	UNIMPL	
21	UNIMPL	
22	UNIMPL	
23	UNIMPL	
24	UNIMPL	
25	UNIMPL	
26	UNIMPL
27	UNIMPL
28	UNIMPL
29	UNIMPL
30	UNIMPL
31	UNIMPL	
32	UNIMPL
33	UNIMPL
34	UNIMPL
35	UNIMPL
36	UNIMPL
37	UNIMPL
38	UNIMPL
39	UNIMPL
40	UNIMPL
41	UNIMPL
42	UNIMPL
43	UNIMPL
44	UNIMPL
45	UNIMPL
46	UNIMPL
47	UNIMPL
48	UNIMPL
49	UNIMPL
50	UNIMPL
51	UNIMPL
52	UNIMPL
53	UNIMPL
54	UNIMPL
55	UNIMPL
56	UNIMPL
57	UNIMPL
d135 64
a198 59
59	UNIMPL
60	UNIMPL
61	UNIMPL
62	UNIMPL
63	UNIMPL
64	UNIMPL
65	UNIMPL
66	UNIMPL
67	UNIMPL
68	UNIMPL
69	UNIMPL
70	UNIMPL
71	UNIMPL
72	UNIMPL
73	UNIMPL
74	UNIMPL
75	UNIMPL
76	UNIMPL
77	UNIMPL
78	UNIMPL
79	UNIMPL
80	UNIMPL
81	UNIMPL
82	UNIMPL
83	UNIMPL
84	UNIMPL
85	UNIMPL
86	UNIMPL
87	UNIMPL
88	UNIMPL
89	UNIMPL
90	UNIMPL
91	UNIMPL
92	UNIMPL
93	UNIMPL
94	UNIMPL
95	UNIMPL
96	UNIMPL
97	UNIMPL
98	UNIMPL
99	UNIMPL
100	UNIMPL
101	UNIMPL
102	UNIMPL
103	UNIMPL
104	UNIMPL
105	UNIMPL
106	UNIMPL
107	UNIMPL
108	UNIMPL
109	UNIMPL
110	UNIMPL
111	UNIMPL
112	UNIMPL
113	UNIMPL
114	UNIMPL
115	UNIMPL
116	UNIMPL
117	UNIMPL
d200 107
a306 9
119	UNIMPL
120	UNIMPL
121	UNIMPL
122	UNIMPL
123	UNIMPL
124	UNIMPL
125	UNIMPL
126	UNIMPL
127	UNIMPL
@


1.1
log
@Empty framework for upcoming work on IRIX_COMPAT
@
text
@d1 1
a1 1
	$NetBSD$
d48 5
a52 5
0	UNIMPL	
1	UNIMPL	
2	UNIMPL	
3	UNIMPL	
4	UNIMPL	
@


1.1.2.1
log
@file syscalls.master was added on branch thorpej-devvp on 2001-10-01 12:43:29 +0000
@
text
@d1 175
@


1.1.2.2
log
@Catch up with -current.
@
text
@a0 175
	$NetBSD: syscalls.master,v 1.1.2.1 2001/10/01 12:43:29 fvdl Exp $

;	@@(#)syscalls.master	8.1 (Berkeley) 7/19/93

; NetBSD COMPAT_IRIX 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.

#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
#include "opt_sysv.h"
#endif

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <sys/syscallargs.h>

%%

0	UNIMPL	
1	UNIMPL	
2	UNIMPL	
3	UNIMPL	
4	UNIMPL	
5	UNIMPL	
6	UNIMPL	
7	UNIMPL	
8	UNIMPL	
9	UNIMPL	
10	UNIMPL	
11	UNIMPL	
12	UNIMPL	
13	UNIMPL	
14	UNIMPL	
15	UNIMPL	
16	UNIMPL	
17	UNIMPL	
18	UNIMPL	
19	UNIMPL	
20	UNIMPL	
21	UNIMPL	
22	UNIMPL	
23	UNIMPL	
24	UNIMPL	
25	UNIMPL	
26	UNIMPL
27	UNIMPL
28	UNIMPL
29	UNIMPL
30	UNIMPL
31	UNIMPL	
32	UNIMPL
33	UNIMPL
34	UNIMPL
35	UNIMPL
36	UNIMPL
37	UNIMPL
38	UNIMPL
39	UNIMPL
40	UNIMPL
41	UNIMPL
42	UNIMPL
43	UNIMPL
44	UNIMPL
45	UNIMPL
46	UNIMPL
47	UNIMPL
48	UNIMPL
49	UNIMPL
50	UNIMPL
51	UNIMPL
52	UNIMPL
53	UNIMPL
54	UNIMPL
55	UNIMPL
56	UNIMPL
57	UNIMPL
58	UNIMPL
59	UNIMPL
60	UNIMPL
61	UNIMPL
62	UNIMPL
63	UNIMPL
64	UNIMPL
65	UNIMPL
66	UNIMPL
67	UNIMPL
68	UNIMPL
69	UNIMPL
70	UNIMPL
71	UNIMPL
72	UNIMPL
73	UNIMPL
74	UNIMPL
75	UNIMPL
76	UNIMPL
77	UNIMPL
78	UNIMPL
79	UNIMPL
80	UNIMPL
81	UNIMPL
82	UNIMPL
83	UNIMPL
84	UNIMPL
85	UNIMPL
86	UNIMPL
87	UNIMPL
88	UNIMPL
89	UNIMPL
90	UNIMPL
91	UNIMPL
92	UNIMPL
93	UNIMPL
94	UNIMPL
95	UNIMPL
96	UNIMPL
97	UNIMPL
98	UNIMPL
99	UNIMPL
100	UNIMPL
101	UNIMPL
102	UNIMPL
103	UNIMPL
104	UNIMPL
105	UNIMPL
106	UNIMPL
107	UNIMPL
108	UNIMPL
109	UNIMPL
110	UNIMPL
111	UNIMPL
112	UNIMPL
113	UNIMPL
114	UNIMPL
115	UNIMPL
116	UNIMPL
117	UNIMPL
118	UNIMPL
119	UNIMPL
120	UNIMPL
121	UNIMPL
122	UNIMPL
123	UNIMPL
124	UNIMPL
125	UNIMPL
126	UNIMPL
127	UNIMPL
@
