head	1.57;
access;
symbols
	netbsd-11-0-RC4:1.57
	netbsd-11-0-RC3:1.57
	netbsd-11-0-RC2:1.57
	netbsd-11-0-RC1:1.57
	perseant-exfatfs-base-20250801:1.57
	netbsd-11:1.57.0.10
	netbsd-11-base:1.57
	netbsd-10-1-RELEASE:1.57
	perseant-exfatfs-base-20240630:1.57
	perseant-exfatfs:1.57.0.8
	perseant-exfatfs-base:1.57
	netbsd-8-3-RELEASE:1.45
	netbsd-9-4-RELEASE:1.53
	netbsd-10-0-RELEASE:1.57
	netbsd-10-0-RC6:1.57
	netbsd-10-0-RC5:1.57
	netbsd-10-0-RC4:1.57
	netbsd-10-0-RC3:1.57
	netbsd-10-0-RC2:1.57
	netbsd-10-0-RC1:1.57
	netbsd-10:1.57.0.6
	netbsd-10-base:1.57
	netbsd-9-3-RELEASE:1.53
	cjep_sun2x-base1:1.57
	cjep_sun2x:1.57.0.4
	cjep_sun2x-base:1.57
	cjep_staticlib_x-base1:1.57
	netbsd-9-2-RELEASE:1.53
	cjep_staticlib_x:1.57.0.2
	cjep_staticlib_x-base:1.57
	netbsd-9-1-RELEASE:1.53
	phil-wifi-20200421:1.56
	phil-wifi-20200411:1.56
	is-mlppp:1.53.0.4
	is-mlppp-base:1.53
	phil-wifi-20200406:1.56
	netbsd-8-2-RELEASE:1.45
	netbsd-9-0-RELEASE:1.53
	netbsd-9-0-RC2:1.53
	netbsd-9-0-RC1:1.53
	phil-wifi-20191119:1.53
	netbsd-9:1.53.0.2
	netbsd-9-base:1.53
	phil-wifi-20190609:1.53
	netbsd-8-1-RELEASE:1.45
	netbsd-8-1-RC1:1.45
	pgoyette-compat-merge-20190127:1.46.2.2
	pgoyette-compat-20190127:1.53
	pgoyette-compat-20190118:1.53
	pgoyette-compat-1226:1.53
	pgoyette-compat-1126:1.53
	pgoyette-compat-1020:1.53
	pgoyette-compat-0930:1.53
	pgoyette-compat-0906:1.52
	netbsd-7-2-RELEASE:1.41
	pgoyette-compat-0728:1.52
	netbsd-8-0-RELEASE:1.45
	phil-wifi:1.52.0.2
	phil-wifi-base:1.52
	pgoyette-compat-0625:1.52
	netbsd-8-0-RC2:1.45
	pgoyette-compat-0521:1.46
	pgoyette-compat-0502:1.46
	pgoyette-compat-0422:1.46
	netbsd-8-0-RC1:1.45
	pgoyette-compat-0415:1.46
	pgoyette-compat-0407:1.46
	pgoyette-compat-0330:1.46
	pgoyette-compat-0322:1.46
	pgoyette-compat-0315:1.46
	netbsd-7-1-2-RELEASE:1.41
	pgoyette-compat:1.46.0.2
	pgoyette-compat-base:1.46
	netbsd-7-1-1-RELEASE:1.41
	matt-nb8-mediatek:1.45.0.12
	matt-nb8-mediatek-base:1.45
	perseant-stdc-iso10646:1.45.0.10
	perseant-stdc-iso10646-base:1.45
	netbsd-8:1.45.0.8
	netbsd-8-base:1.45
	prg-localcount2-base3:1.45
	prg-localcount2-base2:1.45
	prg-localcount2-base1:1.45
	prg-localcount2:1.45.0.6
	prg-localcount2-base:1.45
	pgoyette-localcount-20170426:1.45
	bouyer-socketcan-base1:1.45
	pgoyette-localcount-20170320:1.45
	netbsd-7-1:1.41.0.12
	netbsd-7-1-RELEASE:1.41
	netbsd-7-1-RC2:1.41
	netbsd-7-nhusb-base-20170116:1.41
	bouyer-socketcan:1.45.0.4
	bouyer-socketcan-base:1.45
	pgoyette-localcount-20170107:1.45
	netbsd-7-1-RC1:1.41
	pgoyette-localcount-20161104:1.45
	netbsd-7-0-2-RELEASE:1.41
	localcount-20160914:1.45
	netbsd-7-nhusb:1.41.0.10
	netbsd-7-nhusb-base:1.41
	pgoyette-localcount-20160806:1.45
	pgoyette-localcount-20160726:1.45
	pgoyette-localcount:1.45.0.2
	pgoyette-localcount-base:1.45
	netbsd-7-0-1-RELEASE:1.41
	netbsd-7-0:1.41.0.8
	netbsd-7-0-RELEASE:1.41
	netbsd-7-0-RC3:1.41
	netbsd-7-0-RC2:1.41
	netbsd-7-0-RC1:1.41
	netbsd-5-2-3-RELEASE:1.38
	netbsd-5-1-5-RELEASE:1.38
	netbsd-6-0-6-RELEASE:1.39
	netbsd-6-1-5-RELEASE:1.39
	netbsd-7:1.41.0.6
	netbsd-7-base:1.41
	yamt-pagecache-base9:1.41
	yamt-pagecache-tag8:1.39
	netbsd-6-1-4-RELEASE:1.39
	netbsd-6-0-5-RELEASE:1.39
	tls-earlyentropy:1.41.0.4
	tls-earlyentropy-base:1.41
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.41
	riastradh-drm2-base3:1.41
	netbsd-6-1-3-RELEASE:1.39
	netbsd-6-0-4-RELEASE:1.39
	netbsd-5-2-2-RELEASE:1.38
	netbsd-5-1-4-RELEASE:1.38
	netbsd-6-1-2-RELEASE:1.39
	netbsd-6-0-3-RELEASE:1.39
	netbsd-5-2-1-RELEASE:1.38
	netbsd-5-1-3-RELEASE:1.38
	netbsd-6-1-1-RELEASE:1.39
	riastradh-drm2-base2:1.41
	riastradh-drm2-base1:1.41
	riastradh-drm2:1.41.0.2
	riastradh-drm2-base:1.41
	netbsd-6-1:1.39.0.18
	netbsd-6-0-2-RELEASE:1.39
	netbsd-6-1-RELEASE:1.39
	netbsd-6-1-RC4:1.39
	netbsd-6-1-RC3:1.39
	agc-symver:1.40.0.2
	agc-symver-base:1.40
	netbsd-6-1-RC2:1.39
	netbsd-6-1-RC1:1.39
	yamt-pagecache-base8:1.39
	netbsd-5-2:1.38.0.16
	netbsd-6-0-1-RELEASE:1.39
	yamt-pagecache-base7:1.39
	netbsd-5-2-RELEASE:1.38
	netbsd-5-2-RC1:1.38
	matt-nb6-plus-nbase:1.39
	yamt-pagecache-base6:1.39
	netbsd-6-0:1.39.0.14
	netbsd-6-0-RELEASE:1.39
	netbsd-6-0-RC2:1.39
	tls-maxphys:1.39.0.12
	tls-maxphys-base:1.41
	matt-nb6-plus:1.39.0.10
	matt-nb6-plus-base:1.39
	netbsd-6-0-RC1:1.39
	yamt-pagecache-base5:1.39
	yamt-pagecache-base4:1.39
	netbsd-6:1.39.0.8
	netbsd-6-base:1.39
	netbsd-5-1-2-RELEASE:1.38
	netbsd-5-1-1-RELEASE:1.38
	yamt-pagecache-base3:1.39
	yamt-pagecache-base2:1.39
	yamt-pagecache:1.39.0.6
	yamt-pagecache-base:1.39
	cherry-xenmp:1.39.0.4
	cherry-xenmp-base:1.39
	bouyer-quota2-nbase:1.39
	bouyer-quota2:1.39.0.2
	bouyer-quota2-base:1.39
	matt-mips64-premerge-20101231:1.39
	matt-nb5-mips64-premerge-20101231:1.38
	matt-nb5-pq3:1.38.0.14
	matt-nb5-pq3-base:1.38
	netbsd-5-1:1.38.0.12
	netbsd-5-1-RELEASE:1.38
	netbsd-5-1-RC4:1.38
	matt-nb5-mips64-k15:1.38
	netbsd-5-1-RC3:1.38
	netbsd-5-1-RC2:1.38
	netbsd-5-1-RC1:1.38
	netbsd-5-0-2-RELEASE:1.38
	matt-nb5-mips64-premerge-20091211:1.38
	matt-premerge-20091211:1.38
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.38
	matt-nb4-mips64-k7-u2a-k9b:1.38
	matt-nb5-mips64-u1-k1-k5:1.38
	matt-nb5-mips64:1.38.0.10
	netbsd-5-0-1-RELEASE:1.38
	jym-xensuspend-nbase:1.38
	netbsd-5-0:1.38.0.8
	netbsd-5-0-RELEASE:1.38
	netbsd-5-0-RC4:1.38
	netbsd-5-0-RC3:1.38
	netbsd-5-0-RC2:1.38
	jym-xensuspend:1.38.0.6
	jym-xensuspend-base:1.38
	netbsd-5-0-RC1:1.38
	christos-time_t-base:1.38
	christos-time_t:1.38.0.4
	netbsd-5:1.38.0.2
	netbsd-5-base:1.38
	matt-mips64-base2:1.37
	matt-mips64:1.33.0.8
	netbsd-4-0-1-RELEASE:1.31.2.1
	wrstuden-revivesa-base-3:1.36
	wrstuden-revivesa-base-2:1.36
	wrstuden-fixsa-newbase:1.31.2.1
	wrstuden-revivesa-base-1:1.36
	yamt-pf42-base4:1.36
	yamt-pf42-base3:1.36
	hpcarm-cleanup-nbase:1.36
	yamt-pf42-baseX:1.36
	yamt-pf42-base2:1.36
	wrstuden-revivesa:1.36.0.4
	wrstuden-revivesa-base:1.36
	yamt-pf42:1.36.0.2
	yamt-pf42-base:1.36
	keiichi-mipv6-nbase:1.35
	keiichi-mipv6:1.34.0.2
	keiichi-mipv6-base:1.35
	matt-armv6-nbase:1.35
	matt-armv6-prevmlocking:1.33
	wrstuden-fixsa-base-1:1.31.2.1
	netbsd-4-0:1.31.2.1.0.4
	netbsd-4-0-RELEASE:1.31.2.1
	cube-autoconf:1.33.0.6
	cube-autoconf-base:1.33
	netbsd-4-0-RC5:1.31.2.1
	netbsd-4-0-RC4:1.31.2.1
	netbsd-4-0-RC3:1.31.2.1
	netbsd-4-0-RC2:1.31.2.1
	netbsd-4-0-RC1:1.31.2.1
	matt-armv6:1.33.0.4
	matt-armv6-base:1.33
	matt-mips64-base:1.33
	hpcarm-cleanup:1.33.0.2
	hpcarm-cleanup-base:1.34
	netbsd-3-1-1-RELEASE:1.20
	netbsd-3-0-3-RELEASE:1.20
	wrstuden-fixsa:1.31.2.1.0.2
	wrstuden-fixsa-base:1.31.2.1
	abandoned-netbsd-4-base:1.23
	abandoned-netbsd-4:1.23.0.2
	netbsd-3-1:1.20.0.6
	netbsd-3-1-RELEASE:1.20
	netbsd-3-0-2-RELEASE:1.20
	netbsd-3-1-RC4:1.20
	netbsd-3-1-RC3:1.20
	netbsd-3-1-RC2:1.20
	netbsd-3-1-RC1:1.20
	netbsd-4:1.31.0.2
	netbsd-4-base:1.31
	chap-midi-nbase:1.23
	netbsd-3-0-1-RELEASE:1.20
	chap-midi:1.21.0.2
	chap-midi-base:1.23
	netbsd-3-0:1.20.0.4
	netbsd-3-0-RELEASE:1.20
	netbsd-3-0-RC6:1.20
	netbsd-3-0-RC5:1.20
	netbsd-3-0-RC4:1.20
	netbsd-3-0-RC3:1.20
	netbsd-3-0-RC2:1.20
	netbsd-3-0-RC1:1.20
	netbsd-2-0-3-RELEASE:1.13
	netbsd-2-1:1.13.0.6
	netbsd-2-1-RELEASE:1.13
	netbsd-2-1-RC6:1.13
	netbsd-2-1-RC5:1.13
	netbsd-2-1-RC4:1.13
	netbsd-2-1-RC3:1.13
	netbsd-2-1-RC2:1.13
	netbsd-2-1-RC1:1.13
	netbsd-2-0-2-RELEASE:1.13
	netbsd-3:1.20.0.2
	netbsd-3-base:1.20
	netbsd-2-0-1-RELEASE:1.13
	netbsd-2:1.13.0.4
	netbsd-2-base:1.13
	netbsd-2-0-RELEASE:1.13
	netbsd-2-0-RC5:1.13
	netbsd-2-0-RC4:1.13
	netbsd-2-0-RC3:1.13
	netbsd-2-0-RC2:1.13
	netbsd-2-0-RC1:1.13
	netbsd-2-0:1.13.0.2
	netbsd-2-0-base:1.13
	netbsd-1-6-PATCH002-RELEASE:1.11
	netbsd-1-6-PATCH002:1.11
	netbsd-1-6-PATCH002-RC4:1.11
	netbsd-1-6-PATCH002-RC3:1.11
	netbsd-1-6-PATCH002-RC2:1.11
	netbsd-1-6-PATCH002-RC1:1.11
	netbsd-1-6-PATCH001:1.11
	netbsd-1-6-PATCH001-RELEASE:1.11
	netbsd-1-6-PATCH001-RC3:1.11
	netbsd-1-6-PATCH001-RC2:1.11
	netbsd-1-6-PATCH001-RC1:1.11
	fvdl_fs64_base:1.11
	netbsd-1-6-RELEASE:1.11
	netbsd-1-6-RC3:1.11
	netbsd-1-6-RC2:1.11
	netbsd-1-6-RC1:1.11
	netbsd-1-6:1.11.0.2
	netbsd-1-6-base:1.11
	netbsd-1-5-PATCH003:1.10
	netbsd-1-5-PATCH002:1.10
	netbsd-1-5-PATCH001:1.10
	netbsd-1-5-RELEASE:1.10
	netbsd-1-5-BETA2:1.10
	netbsd-1-5-BETA:1.10
	netbsd-1-4-PATCH003:1.10
	netbsd-1-5-ALPHA2:1.10
	netbsd-1-5:1.10.0.12
	netbsd-1-5-base:1.10
	minoura-xpg4dl-base:1.10
	minoura-xpg4dl:1.10.0.10
	netbsd-1-4-PATCH002:1.10
	wrstuden-devbsize-19991221:1.10
	wrstuden-devbsize:1.10.0.8
	wrstuden-devbsize-base:1.10
	comdex-fall-1999:1.10.0.6
	comdex-fall-1999-base:1.10
	netbsd-1-4-PATCH001:1.10
	netbsd-1-4-RELEASE:1.10
	netbsd-1-4:1.10.0.4
	netbsd-1-4-base:1.10
	netbsd-1-3-PATCH003:1.10
	netbsd-1-3-PATCH003-CANDIDATE2:1.10
	netbsd-1-3-PATCH003-CANDIDATE1:1.10
	netbsd-1-3-PATCH003-CANDIDATE0:1.10
	netbsd-1-3-PATCH002:1.10
	netbsd-1-3-PATCH001:1.10
	netbsd-1-3-RELEASE:1.10
	netbsd-1-3-BETA:1.10
	netbsd-1-3:1.10.0.2
	netbsd-1-3-base:1.10
	netbsd-1-2-PATCH001:1.7
	netbsd-1-2-RELEASE:1.7
	netbsd-1-2-BETA:1.7
	netbsd-1-2:1.7.0.6
	netbsd-1-2-base:1.7
	netbsd-1-1-PATCH001:1.7
	netbsd-1-1-RELEASE:1.7
	netbsd-1-1:1.7.0.2
	netbsd-1-1-base:1.7
	lite-2:1.1.1.2
	netbsd-1-0-PATCH06:1.2
	netbsd-1-0-PATCH05:1.2
	netbsd-1-0-PATCH04:1.2
	netbsd-1-0-PATCH03:1.2
	netbsd-1-0-PATCH02:1.2
	netbsd-1-0-PATCH1:1.2
	netbsd-1-0-PATCH0:1.2
	netbsd-1-0-RELEASE:1.2
	netbsd-1-0:1.2.0.2
	netbsd-1-0-base:1.2
	lite-1:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.57
date	2020.09.12.01.36.26;	author roy;	state Exp;
branches;
next	1.56;
commitid	GE8KvchembxykHnC;

1.56
date	2020.04.02.21.36.03;	author christos;	state Exp;
branches;
next	1.55;
commitid	AUhMGyIML2GVcR2C;

1.55
date	2020.04.02.17.41.34;	author christos;	state Exp;
branches;
next	1.54;
commitid	eOo9WMZU8XBsUP2C;

1.54
date	2020.04.02.17.40.33;	author christos;	state Exp;
branches;
next	1.53;
commitid	Psf9xMDLP1H7UP2C;

1.53
date	2018.09.29.14.41.36;	author rmind;	state Exp;
branches;
next	1.52;
commitid	1PaZzhI9AYpgB0UA;

1.52
date	2018.06.12.15.40.39;	author christos;	state Exp;
branches
	1.52.2.1;
next	1.51;
commitid	JP4BiAcnKx00s0GA;

1.51
date	2018.06.02.20.07.15;	author mrg;	state Exp;
branches;
next	1.50;
commitid	GJf7HbQgMbyzfKEA;

1.50
date	2018.05.29.14.29.53;	author martin;	state Exp;
branches;
next	1.49;
commitid	WrAAWGlwIuOOvcEA;

1.49
date	2018.05.29.13.10.28;	author martin;	state Exp;
branches;
next	1.48;
commitid	7S2TEvUS98cB4cEA;

1.48
date	2018.05.29.11.18.50;	author martin;	state Exp;
branches;
next	1.47;
commitid	2ZMOqvhgW6w6sbEA;

1.47
date	2018.05.28.21.05.02;	author chs;	state Exp;
branches;
next	1.46;
commitid	NQFwoUduS0toJ6EA;

1.46
date	2017.11.05.17.44.28;	author christos;	state Exp;
branches
	1.46.2.1;
next	1.45;
commitid	jurx3e6x7CYOaSdA;

1.45
date	2015.10.22.00.29.58;	author christos;	state Exp;
branches;
next	1.44;
commitid	0AltrarXHkx2p2Gy;

1.44
date	2015.09.27.03.37.16;	author christos;	state Exp;
branches;
next	1.43;
commitid	Y6HKMHRZQoJ2fQCy;

1.43
date	2015.05.20.07.16.15;	author matt;	state Exp;
branches;
next	1.42;
commitid	27RH5XJPZUghD9my;

1.42
date	2015.02.06.20.08.23;	author christos;	state Exp;
branches;
next	1.41;
commitid	ra2e7D2juwqodZ8y;

1.41
date	2013.04.04.22.32.12;	author dsl;	state Exp;
branches;
next	1.40;

1.40
date	2013.03.01.18.26.10;	author joerg;	state Exp;
branches;
next	1.39;

1.39
date	2010.03.22.01.29.30;	author mrg;	state Exp;
branches
	1.39.6.1
	1.39.12.1;
next	1.38;

1.38
date	2008.10.25.22.18.15;	author apb;	state Exp;
branches
	1.38.4.1;
next	1.37;

1.37
date	2008.10.19.22.10.05;	author apb;	state Exp;
branches;
next	1.36;

1.36
date	2008.03.23.18.53.51;	author christos;	state Exp;
branches;
next	1.35;

1.35
date	2008.03.11.20.39.57;	author joerg;	state Exp;
branches;
next	1.34;

1.34
date	2008.02.11.22.43.39;	author dyoung;	state Exp;
branches
	1.34.2.1;
next	1.33;

1.33
date	2007.06.29.16.39.51;	author dmcmahill;	state Exp;
branches
	1.33.4.1;
next	1.32;

1.32
date	2007.03.05.17.38.25;	author he;	state Exp;
branches;
next	1.31;

1.31
date	2006.11.30.01.59.45;	author elad;	state Exp;
branches
	1.31.2.1;
next	1.30;

1.30
date	2006.11.29.03.48.57;	author dogcow;	state Exp;
branches;
next	1.29;

1.29
date	2006.08.31.22.41.14;	author he;	state Exp;
branches;
next	1.28;

1.28
date	2006.08.31.22.25.34;	author he;	state Exp;
branches;
next	1.27;

1.27
date	2006.08.30.23.26.25;	author he;	state Exp;
branches;
next	1.26;

1.26
date	2006.08.29.14.53.57;	author christos;	state Exp;
branches;
next	1.25;

1.25
date	2006.08.27.21.41.18;	author christos;	state Exp;
branches;
next	1.24;

1.24
date	2006.08.27.20.31.26;	author christos;	state Exp;
branches;
next	1.23;

1.23
date	2006.06.03.03.15.24;	author christos;	state Exp;
branches;
next	1.22;

1.22
date	2006.06.03.00.02.51;	author christos;	state Exp;
branches;
next	1.21;

1.21
date	2005.07.16.22.00.01;	author christos;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	2004.07.08.03.22.32;	author christos;	state Exp;
branches;
next	1.19;

1.19
date	2004.06.22.17.30.52;	author christos;	state Exp;
branches;
next	1.18;

1.18
date	2004.05.10.20.46.44;	author drochner;	state Exp;
branches;
next	1.17;

1.17
date	2004.05.10.20.41.32;	author hannken;	state Exp;
branches;
next	1.16;

1.16
date	2004.05.10.15.25.57;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	2004.05.08.21.03.43;	author jmc;	state Exp;
branches;
next	1.14;

1.14
date	2004.04.22.22.31.18;	author christos;	state Exp;
branches;
next	1.13;

1.13
date	2003.08.27.20.35.42;	author thorpej;	state Exp;
branches;
next	1.12;

1.12
date	2003.06.24.11.27.50;	author mjl;	state Exp;
branches;
next	1.11;

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

1.10
date	97.10.19.03.38.30;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	97.07.23.05.51.08;	author mikel;	state Exp;
branches;
next	1.8;

1.8
date	97.04.14.13.49.56;	author leo;	state Exp;
branches;
next	1.7;

1.7
date	95.08.31.23.09.38;	author jtc;	state Exp;
branches;
next	1.6;

1.6
date	95.06.06.23.45.27;	author thorpej;	state Exp;
branches;
next	1.5;

1.5
date	95.01.15.07.51.08;	author mycroft;	state Exp;
branches;
next	1.4;

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

1.3
date	94.10.06.15.44.35;	author mycroft;	state Exp;
branches;
next	1.2;

1.2
date	94.06.18.16.33.25;	author mycroft;	state Exp;
branches;
next	1.1;

1.1
date	94.05.11.07.10.27;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.52.2.1
date	2019.06.10.22.10.20;	author christos;	state Exp;
branches;
next	1.52.2.2;
commitid	jtc8rnCzWiEEHGqB;

1.52.2.2
date	2020.04.08.14.09.16;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.46.2.1
date	2018.06.25.07.26.10;	author pgoyette;	state Exp;
branches;
next	1.46.2.2;
commitid	8PtAu9af7VvhiDHA;

1.46.2.2
date	2018.09.30.01.45.59;	author pgoyette;	state Exp;
branches;
next	;
commitid	SQ44grEPCeKPh4UA;

1.39.6.1
date	2014.05.22.11.42.45;	author yamt;	state Exp;
branches;
next	;
commitid	cG7DCbrDdiE9MwBx;

1.39.12.1
date	2013.06.23.06.29.00;	author tls;	state Exp;
branches;
next	;
commitid	OnlO1cBgtQRcIHUw;

1.38.4.1
date	2008.10.25.22.18.15;	author apb;	state dead;
branches;
next	1.38.4.2;

1.38.4.2
date	2008.10.25.22.18.16;	author apb;	state Exp;
branches;
next	;

1.34.2.1
date	2008.03.24.07.16.34;	author keiichi;	state Exp;
branches;
next	;

1.33.4.1
date	2008.03.23.00.49.01;	author matt;	state Exp;
branches;
next	;

1.31.2.1
date	2007.03.31.16.10.01;	author bouyer;	state Exp;
branches;
next	;

1.21.2.1
date	2006.06.19.04.17.06;	author chap;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.11.07.10.28;	author cgd;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	95.08.31.22.52.52;	author jtc;	state Exp;
branches;
next	;


desc
@@


1.57
log
@kdump: include netinet/in_var.h to access in_nbrinfo
@
text
@#!/bin/sh
#	$NetBSD: mkioctls,v 1.56 2020/04/02 21:36:03 christos Exp $
#
# Copyright (c) 1994
#	The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#	@@(#)mkioctls	8.2 (Berkeley) 4/28/95
#

: ${AWK:=awk}
: ${CC:=cc}
: ${SED:=sed}

echo "/* Automatically generated file, do not edit! */"
#echo "#define const" 	# XXX: timepps lossage
echo "#define COMPAT_43"
echo "#define COMPAT_FREEBSD_NET80211"
echo "struct lwp;"
echo "struct crap { int _xxx; };" # XXX arm video lossage
echo "typedef struct crap videomemory_t;" # XXX arm video lossage
echo "typedef struct crap RF_AccTotals_t;" # XXX Raidframe lossage
echo "struct rf_test_acc { int _xxx; };" # XXX Raidframe lossage
echo "struct map_info { int _xxx[22]; };" # XXX Xorg lossage
echo "#include <stdio.h>"
echo "#include <sys/types.h>"
echo "#include <sys/param.h>"
echo "#include <sys/mutex.h>"
echo "#ifndef NBPG"
echo "#define NBPG 4096 /* workaround / dummy for sparc */"
echo "#endif /* NBPG */"
echo "#include <sys/disk.h>"
echo "#include <sys/dkbad.h>"
echo "#include <sys/mount.h>"
echo "#include <sys/termios.h>"
echo "#include <sys/disklabel.h>"
echo "#include <sys/exec_elf.h>"
echo "#include <net/if.h>"
echo "#include <net/if_ether.h>"
echo "#include <net/route.h>"
echo "#include <net/ppp_defs.h>"
echo "#include <netinet/in.h>"
echo "#include <netinet/in_var.h>"
echo "#include <netinet/in_systm.h>"
echo "#include <netinet/ip.h>"
echo "#include <netinet/ip_mroute.h>"
echo "#include <netinet/ip_compat.h>"
echo "#include <net80211/ieee80211.h>"
echo "#include <net80211/ieee80211_radiotap.h>"
echo "#include <netinet6/in6_var.h>"
echo "#include <netinet6/nd6.h>"
echo "#include <dev/ic/hd44780reg.h>"
echo "#include <dev/pci/mlyreg.h>"
echo "#include <prop/proplib.h>"
echo "#include <nv.h>"
echo

# kernel headers <sys/*.h> and <net/*.h> should not include stdbool.h
# but they do; then xf86Opt.h needs a bool struct field.

needundef=true
for i
do
	case $i in
	*X11*)
		if $needundef; then
			echo "#undef bool"
			needundef=false;
		fi;;
	esac
	echo "#include <$i>"
done | ${SED} -e "s,${DESTDIR}/usr/include/,,g" \
	-e "s,${DESTDIR}/usr/X11R7/include/,,g" \
	-e "s,${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common/,,g"

if ! $needundef; then
    echo "#define bool _Bool"
fi

${CC} -E -nostdinc -isystem ${DESTDIR}/usr/include ${CPPFLAGS} -dM "${@@}" | \
    ${AWK} '
BEGIN {
	keep["SLIOCGUNIT"] = 1;	# Same as PPPIOCGASYNCMAP
	keep["TUNSLMODE"] = 1;	# Same as PPPIOCGASYNCMAP
	keep["SIOCRMNAT"] = 1;	# Same as SIOCRMAFR
	keep["SIOCADNAT"] = 1;	# Same as SIOCADAFR
	keep["SIOCDELST"] = 1;	# Same as SIOCRMNAT
	keep["SIOCPROXY"] = 1; # Same as SIOCLOOKUPSTAT
	keep["CHIOGPICKER"] = 1; # Same as CDIOREADTOCHEADER
	keep["KBDSTPMAT"] = 1;	# Same as LMREADY, pcvt is gone so ok.
	keep["SIOCSLOWAT"] = 1;	# Same as SATIOSBUFSIZE
	keep["UTOPPYIOTURBO"] = 1; # Same as OTIOCSETD
	keep["TIOCHPCL"] = 1; # Same as UTOPPYIOCANCEL
	keep["TIOCCBRK"] = 1; # Same as CONSOLE_X_MODE_OFF
	keep["TIOCSDTR"] = 1; # Same as CONSOLE_X_MODE_ON
	keep["APM_IOC_SUSPEND"] = 1; # Same as AGPIOC_RELEASE
	keep["APM_IOC_STANDBY"] = 1; # Same as AGPIOC_ACQUIRE
	keep["BTDEV_GETINFO"] = 1; # Same as BTSCO_GETINFO
	keep["BTHSET_GETINFO"] = 1; # Same as BTSCO_GETINFO
	keep["JOY_GET_X_OFFSET"] = 1; # Same as GDT_IOCTL_CTRCNT
	keep["JOY_GET_X_OFFSET"] = 1; # Same as GDT_IOCTL_CTRCNT
	keep["SCIOC_USE_ADF"] = 1; # Same as STICIO_STARTQ
	keep["SCBUSIOLLSCAN"] = 1; # Same as USB_DISCOVER
	keep["OPIOCGETNEXT"] = 1; # Same as OFIOCGETNEXT
	keep["OPIOCGET"] = 1; # Same as OFIOCGET
	keep["OPIOCGETCHILD"] = 1; # Same as OFIOCGETCHILD
	keep["OPIOCFINDDEVICE"] = 1; # Same as OFIOCFINDDEVICE
	keep["OPIOCGETOPTNODE"] = 1; # Same as OFIOCGETOPTNODE
	keep["OPIOCNEXTPROP"] = 1; # Same as OFIOCNEXTPROP
	keep["OPIOCSET"] = 1; # Same as OFIOCSET
	keep["MBPPIOCSPARAM"] = 1; # Same as PARIOCSPARAM
	keep["MBPPIOCGPARAM"] = 1; # Same as PARIOCGPARAM
	keep["CLOCKCTL_ADJTIME"] = 1; # Same as TCTRL_MODEM_PWR
	keep["OFIOCNEXTPROP"] = 1; # Same as PNVIOCGETNUMGE
	keep["OFIOCGET"] = 1; # Same as PNVIOCGET
	keep["SIOCPHASE2"] = 1; # Same as GRESADDRS
	keep["I4B_CTL_CLR_CHIPSTAT"] = 1; # Same as CLOCKCTL_NTP_ADJTIME
	keep["STICIO_STARTQ"] = 1; # Same as SPKRTONE
	keep["STICIO_RESET860"] = 1; # Same as SCIOCRESTART
	keep["STICIO_START860"] = 1; # Same as SPKRTUNE
	keep["I4B_CTL_SET_DEBUG"] = 1; # Same as CLOCKCTL_SETTIMEOFDAY

	keep["SIOCGETSGCNT_IN6"] = 1; # Type sioc_sg_req6 not exported
	keep["SIOCGPRLST_IN6"] = 1; Type in6_oprlist not exported
	keep["SIOCGETMIFCNT_IN6"] = 1; Type sioc_mif_req6 not exported

	i = 1;
	altqt[i++] = "RED";
	altqt[i++] = "BLUE";
	altqt[i++] = "RIO";
	altqt[i++] = "FIFOQ";
	altqt[i++] = "HFSC";
	altqt[i++] = "PRIQ";
	altqt[i++] = "WFQ";
	altqt[i++] = "CBQ";
	altqt[i++] = "CNDR";

	i = 1;
	altqf[i++] = "IF_ATTACH";
	altqf[i++] = "DISABLE";
	altqf[i++] = "ENABLE";
	altqf[i++] = "CONFIG";
	altqf[i++] = "GETSTATS";
	altqf[i++] = "IF_DETACH";
	altqf[i++] = "ADD_CLASS";
	altqf[i++] = "DEL_CLASS";
	altqf[i++] = "MOD_CLASS";
	altqf[i++] = "ADD_FILTER";
	altqf[i++] = "DEL_FILTER";
	altqf[i++] = "CLEAR_HIERARCHY";

	for (t in altqt) {
		for (f in altqf) {
			keep[altqt[t] "_" altqf[f]] = 1;
		}
	}

	print ""
	print "#include \"ktrace.h\""
	print ""
	print "const char *"
	print "ioctlname(u_long val)"
	print "{"
	print ""
	print "\tswitch (val) {\n"
}

/^#[ 	]*define[ 	]*[A-Z0-9_]*[ 	]*[D]*[R]*[M]*_IO[W]*[R]*[ 	]*\(/ {
	
	# find where the name starts
	for (i = 1; i <= NF; i++)
		if ($i ~ /define/)
			break;
	++i;
	name = $i;
	printf("/* %s [%s] */\n", $0, name);
	# 
	if (name !~ /^[A-Z0-9a-z_]*$/)
		next;
	if (keep[name] == 1)
		next;
	keep[name] = 1;
	printf("\t#ifdef %s\n", name);
	printf("\tcase %s:\n\t\treturn \"%s\";\n", name, name);
	printf("\t#endif /* %s */\n", $i);
	name = name;
	names[name] = name;
	exprs[name] = "";
	files[name] = filename;
	do {
		++i;
		exprs[name] = exprs[name] " " $i;
	} while ($i !~ /.*)/);
	exprs[name] = substr(exprs[name], 2);
}
END {
	print "\tdefault:\n\t\treturn NULL;\n"
	print "\t}\n"
	print "}"
	print "const struct ioctlinfo ioctlinfo[] = {\n";
	for (name in names) {
		printf("\t{ .name = \"%s\", .expr = \"%s\", .value = %s },\n",
		    names[name], exprs[name], names[name]);
	}
	print "\t{ .name = NULL, .expr = NULL, .value = 0 },\n};";
}
'
@


1.56
log
@remove debugging
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.55 2020/04/02 17:41:34 christos Exp $
d70 1
@


1.55
log
@Add the ability to:
1. list all ioctls (-l)
2. print the internal definition symbolically
3. search by name

$ ioctlprint -f "%n %E %e\n" TIOCGETA
TIOCGETA _IOR('t', 19, struct termios) _IOR('t',0x13,0x2c)
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.54 2020/04/02 17:40:33 christos Exp $
a41 3
set -x
AWK=gawk

@


1.54
log
@*** empty log message ***
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.53 2018/09/29 14:41:36 rmind Exp $
@


1.53
log
@NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
  a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
  previous versions.  Also, different serialisation format means NPF
  connection/config saving and loading is not compatible with the
  previous versions either.

Thanks to christos@@ for extra testing.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.52 2018/06/12 15:40:39 christos Exp $
d42 3
d204 2
a205 1
	printf("/* %s [%s] */\n", $0, $i);
d207 17
a223 8
	if ($i ~ /^[A-Z0-9a-z_]*$/) {
		if (keep[$i] != 1) {
			printf("\t#ifdef %s\n", $i);
			printf("\tcase %s:\n\t\treturn \"%s\";\n", $i, $i);
			printf("\t#endif /* %s */\n", $i);
			keep[$i] = 1;
		}
	}
d229 6
@


1.52
log
@- instead of hard-coding the include paths in mkioctls, pass them in
  from the Makefile so that they are consistent.
- do more sed so that destination paths are not hard-coded inside #include
  statements.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.51 2018/06/02 20:07:15 mrg Exp $
d81 1
@


1.52.2.1
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.53 2018/09/29 14:41:36 rmind Exp $
a80 1
echo "#include <nv.h>"
@


1.52.2.2
log
@Merge changes from current as of 20200406
@
text
@d2 1
a2 1
#	$NetBSD$
d201 1
a201 2
	name = $i;
	printf("/* %s [%s] */\n", $0, name);
d203 8
a210 17
	if (name !~ /^[A-Z0-9a-z_]*$/)
		next;
	if (keep[name] == 1)
		next;
	keep[name] = 1;
	printf("\t#ifdef %s\n", name);
	printf("\tcase %s:\n\t\treturn \"%s\";\n", name, name);
	printf("\t#endif /* %s */\n", $i);
	name = name;
	names[name] = name;
	exprs[name] = "";
	files[name] = filename;
	do {
		++i;
		exprs[name] = exprs[name] " " $i;
	} while ($i !~ /.*)/);
	exprs[name] = substr(exprs[name], 2);
a215 6
	print "const struct ioctlinfo ioctlinfo[] = {\n";
	for (name in names) {
		printf("\t{ .name = \"%s\", .expr = \"%s\", .value = %s },\n",
		    names[name], exprs[name], names[name]);
	}
	print "\t{ .name = NULL, .expr = NULL, .value = 0 },\n};";
@


1.51
log
@just include <sys/mutex.h> for mkioctls.  this works fine for me
for several platforms and fixes the clang build.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.50 2018/05/29 14:29:53 martin Exp $
d97 3
a99 1
done | ${SED} -e "s,${DESTDIR}/usr/include/,,g"
d105 2
a106 7
${CC} -E -nostdinc -isystem ${DESTDIR}/usr/include \
    -I${DESTDIR}/usr/X11R7/include \
    -I${DESTDIR}/usr/X11R7/include/pixman-1 \
    -I${DESTDIR}/usr/X11R7/include/libdrm \
    -D_VIA_DRM_H_ \
    -dM "${@@}" | \
${AWK} '
@


1.50
log
@Use proper forward declaration for kmutex_t. This makes MKDTRACE=no builds
work again.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.49 2018/05/29 13:10:28 martin Exp $
a51 1
echo "typedef struct kmutex kmutex_t;" # XXX needed by ZFS headers
d55 1
@


1.49
log
@Ooops, backout previous - it was an update build artifact (or something)
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.47 2018/05/28 21:05:02 chs Exp $
d52 1
a52 1
echo "typedef void *kmutex_t;" # XXX needed by ZFS headers
@


1.48
log
@Backout previous: "typedef void *kmutex_t;
is incompatible with our kmutex_t and breaks the build. ZFS will need
to find a better way to work around this.
@
text
@d52 1
@


1.47
log
@merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.46 2017/11/05 17:44:28 christos Exp $
a51 1
echo "typedef void *kmutex_t;" # XXX needed by ZFS headers
@


1.46
log
@deal with the stdbool.h mess defining bool in <net/if.h> and <net/route.h>
and then xf86Opt.h wanting to define a struct field called bool.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.45 2015/10/22 00:29:58 christos Exp $
d52 1
@


1.46.2.1
log
@Sync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.52 2018/06/12 15:40:39 christos Exp $
a54 1
echo "#include <sys/mutex.h>"
d96 1
a96 3
done | ${SED} -e "s,${DESTDIR}/usr/include/,,g" \
	-e "s,${DESTDIR}/usr/X11R7/include/,,g" \
	-e "s,${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common/,,g"
d102 7
a108 2
${CC} -E -nostdinc -isystem ${DESTDIR}/usr/include ${CPPFLAGS} -dM "${@@}" | \
    ${AWK} '
@


1.46.2.2
log
@Ssync with HEAD
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.53 2018/09/29 14:41:36 rmind Exp $
a80 1
echo "#include <nv.h>"
@


1.45
log
@simplify
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.44 2015/09/27 03:37:16 christos Exp $
d82 4
d88 7
d98 4
@


1.44
log
@Kill sys/modctl.h which we don't need.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.43 2015/05/20 07:16:15 matt Exp $
a86 1
grep -v "<sys/modctl.h>" ${1+"$@@"} | \
d92 1
a92 1
    -dM - | \
@


1.43
log
@#include <sys/exec_elf.h> for ksyms
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.42 2015/02/06 20:08:23 christos Exp $
d87 1
d93 1
a93 1
    -dM ${1+"$@@"} | \
@


1.42
log
@Extend the scripts to handle the X drm ioctls.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.41 2013/04/04 22:32:12 dsl Exp $
d63 1
@


1.41
log
@Output a blank line between the fixed and variable #include lines.
Just a little hint that they come from different places.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.40 2013/03/01 18:26:10 joerg Exp $
d51 1
d86 6
a91 1
${CC} -E -nostdinc -isystem ${DESTDIR}/usr/include -dM ${1+"$@@"} | \
d179 1
a179 1
/^#[ 	]*define[ 	]*[A-Z0-9_]*[ 	]*_IO[W]*[R]*[ 	]*\(/ {
@


1.40
log
@Retire OSI network stack. OK core@@
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.39 2010/03/22 01:29:30 mrg Exp $
d78 1
@


1.39
log
@convert -idirafter to -isystem, as recommended by cgd in PR 11843.
most of the list in that PR were already done.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.38 2008/10/25 22:18:15 apb Exp $
a74 1
echo "#include <netiso/iso.h>"
@


1.39.6.1
log
@sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.39 2010/03/22 01:29:30 mrg Exp $
d75 1
a78 1
echo
@


1.39.12.1
log
@resync from head
@
text
@d2 1
a2 1
#	$NetBSD$
d75 1
a78 1
echo
@


1.38
log
@In shell scripts run during the build, add a SED variable, defaulting
to "sed".  SED=${TOOL_SED:Q} should be passed in the environment to
override this.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.37 2008/10/19 22:10:05 apb Exp $
d85 1
a85 1
${CC} -E -nostdinc -idirafter ${DESTDIR}/usr/include -dM ${1+"$@@"} | \
@


1.38.4.1
log
@file mkioctls was added on branch christos-time_t on 2008-10-25 22:18:16 +0000
@
text
@d1 196
@


1.38.4.2
log
@In shell scripts run during the build, add a SED variable, defaulting
to "sed".  SED=${TOOL_SED:Q} should be passed in the environment to
override this.
@
text
@a0 196
#!/bin/sh
#	$NetBSD: mkioctls,v 1.38 2008/10/25 22:18:15 apb Exp $
#
# Copyright (c) 1994
#	The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#	@@(#)mkioctls	8.2 (Berkeley) 4/28/95
#

: ${AWK:=awk}
: ${CC:=cc}
: ${SED:=sed}

echo "/* Automatically generated file, do not edit! */"
#echo "#define const" 	# XXX: timepps lossage
echo "#define COMPAT_43"
echo "#define COMPAT_FREEBSD_NET80211"
echo "struct lwp;"
echo "struct crap { int _xxx; };" # XXX arm video lossage
echo "typedef struct crap videomemory_t;" # XXX arm video lossage
echo "typedef struct crap RF_AccTotals_t;" # XXX Raidframe lossage
echo "struct rf_test_acc { int _xxx; };" # XXX Raidframe lossage
echo "#include <stdio.h>"
echo "#include <sys/types.h>"
echo "#include <sys/param.h>"
echo "#ifndef NBPG"
echo "#define NBPG 4096 /* workaround / dummy for sparc */"
echo "#endif /* NBPG */"
echo "#include <sys/disk.h>"
echo "#include <sys/dkbad.h>"
echo "#include <sys/mount.h>"
echo "#include <sys/termios.h>"
echo "#include <sys/disklabel.h>"
echo "#include <net/if.h>"
echo "#include <net/if_ether.h>"
echo "#include <net/route.h>"
echo "#include <net/ppp_defs.h>"
echo "#include <netinet/in.h>"
echo "#include <netinet/in_systm.h>"
echo "#include <netinet/ip.h>"
echo "#include <netinet/ip_mroute.h>"
echo "#include <netinet/ip_compat.h>"
echo "#include <net80211/ieee80211.h>"
echo "#include <net80211/ieee80211_radiotap.h>"
echo "#include <netinet6/in6_var.h>"
echo "#include <netinet6/nd6.h>"
echo "#include <netiso/iso.h>"
echo "#include <dev/ic/hd44780reg.h>"
echo "#include <dev/pci/mlyreg.h>"
echo "#include <prop/proplib.h>"

for i
do
	echo "#include <$i>"
done | ${SED} -e "s,${DESTDIR}/usr/include/,,g"

${CC} -E -nostdinc -idirafter ${DESTDIR}/usr/include -dM ${1+"$@@"} | \
${AWK} '
BEGIN {
	keep["SLIOCGUNIT"] = 1;	# Same as PPPIOCGASYNCMAP
	keep["TUNSLMODE"] = 1;	# Same as PPPIOCGASYNCMAP
	keep["SIOCRMNAT"] = 1;	# Same as SIOCRMAFR
	keep["SIOCADNAT"] = 1;	# Same as SIOCADAFR
	keep["SIOCDELST"] = 1;	# Same as SIOCRMNAT
	keep["SIOCPROXY"] = 1; # Same as SIOCLOOKUPSTAT
	keep["CHIOGPICKER"] = 1; # Same as CDIOREADTOCHEADER
	keep["KBDSTPMAT"] = 1;	# Same as LMREADY, pcvt is gone so ok.
	keep["SIOCSLOWAT"] = 1;	# Same as SATIOSBUFSIZE
	keep["UTOPPYIOTURBO"] = 1; # Same as OTIOCSETD
	keep["TIOCHPCL"] = 1; # Same as UTOPPYIOCANCEL
	keep["TIOCCBRK"] = 1; # Same as CONSOLE_X_MODE_OFF
	keep["TIOCSDTR"] = 1; # Same as CONSOLE_X_MODE_ON
	keep["APM_IOC_SUSPEND"] = 1; # Same as AGPIOC_RELEASE
	keep["APM_IOC_STANDBY"] = 1; # Same as AGPIOC_ACQUIRE
	keep["BTDEV_GETINFO"] = 1; # Same as BTSCO_GETINFO
	keep["BTHSET_GETINFO"] = 1; # Same as BTSCO_GETINFO
	keep["JOY_GET_X_OFFSET"] = 1; # Same as GDT_IOCTL_CTRCNT
	keep["JOY_GET_X_OFFSET"] = 1; # Same as GDT_IOCTL_CTRCNT
	keep["SCIOC_USE_ADF"] = 1; # Same as STICIO_STARTQ
	keep["SCBUSIOLLSCAN"] = 1; # Same as USB_DISCOVER
	keep["OPIOCGETNEXT"] = 1; # Same as OFIOCGETNEXT
	keep["OPIOCGET"] = 1; # Same as OFIOCGET
	keep["OPIOCGETCHILD"] = 1; # Same as OFIOCGETCHILD
	keep["OPIOCFINDDEVICE"] = 1; # Same as OFIOCFINDDEVICE
	keep["OPIOCGETOPTNODE"] = 1; # Same as OFIOCGETOPTNODE
	keep["OPIOCNEXTPROP"] = 1; # Same as OFIOCNEXTPROP
	keep["OPIOCSET"] = 1; # Same as OFIOCSET
	keep["MBPPIOCSPARAM"] = 1; # Same as PARIOCSPARAM
	keep["MBPPIOCGPARAM"] = 1; # Same as PARIOCGPARAM
	keep["CLOCKCTL_ADJTIME"] = 1; # Same as TCTRL_MODEM_PWR
	keep["OFIOCNEXTPROP"] = 1; # Same as PNVIOCGETNUMGE
	keep["OFIOCGET"] = 1; # Same as PNVIOCGET
	keep["SIOCPHASE2"] = 1; # Same as GRESADDRS
	keep["I4B_CTL_CLR_CHIPSTAT"] = 1; # Same as CLOCKCTL_NTP_ADJTIME
	keep["STICIO_STARTQ"] = 1; # Same as SPKRTONE
	keep["STICIO_RESET860"] = 1; # Same as SCIOCRESTART
	keep["STICIO_START860"] = 1; # Same as SPKRTUNE
	keep["I4B_CTL_SET_DEBUG"] = 1; # Same as CLOCKCTL_SETTIMEOFDAY

	keep["SIOCGETSGCNT_IN6"] = 1; # Type sioc_sg_req6 not exported
	keep["SIOCGPRLST_IN6"] = 1; Type in6_oprlist not exported
	keep["SIOCGETMIFCNT_IN6"] = 1; Type sioc_mif_req6 not exported

	i = 1;
	altqt[i++] = "RED";
	altqt[i++] = "BLUE";
	altqt[i++] = "RIO";
	altqt[i++] = "FIFOQ";
	altqt[i++] = "HFSC";
	altqt[i++] = "PRIQ";
	altqt[i++] = "WFQ";
	altqt[i++] = "CBQ";
	altqt[i++] = "CNDR";

	i = 1;
	altqf[i++] = "IF_ATTACH";
	altqf[i++] = "DISABLE";
	altqf[i++] = "ENABLE";
	altqf[i++] = "CONFIG";
	altqf[i++] = "GETSTATS";
	altqf[i++] = "IF_DETACH";
	altqf[i++] = "ADD_CLASS";
	altqf[i++] = "DEL_CLASS";
	altqf[i++] = "MOD_CLASS";
	altqf[i++] = "ADD_FILTER";
	altqf[i++] = "DEL_FILTER";
	altqf[i++] = "CLEAR_HIERARCHY";

	for (t in altqt) {
		for (f in altqf) {
			keep[altqt[t] "_" altqf[f]] = 1;
		}
	}

	print ""
	print "#include \"ktrace.h\""
	print ""
	print "const char *"
	print "ioctlname(u_long val)"
	print "{"
	print ""
	print "\tswitch (val) {\n"
}

/^#[ 	]*define[ 	]*[A-Z0-9_]*[ 	]*_IO[W]*[R]*[ 	]*\(/ {
	
	# find where the name starts
	for (i = 1; i <= NF; i++)
		if ($i ~ /define/)
			break;
	++i;
	printf("/* %s [%s] */\n", $0, $i);
	# 
	if ($i ~ /^[A-Z0-9a-z_]*$/) {
		if (keep[$i] != 1) {
			printf("\t#ifdef %s\n", $i);
			printf("\tcase %s:\n\t\treturn \"%s\";\n", $i, $i);
			printf("\t#endif /* %s */\n", $i);
			keep[$i] = 1;
		}
	}
}
END {
	print "\tdefault:\n\t\treturn NULL;\n"
	print "\t}\n"
	print "}"
}
'
@


1.37
log
@In shell scripts invoked during a build, and in crunchgen, use ${AWK}
instead of plain "awk".  The Makefiles that invoke these scripts
or programs will pass AWK=${HOST_AWK:Q}.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.36 2008/03/23 18:53:51 christos Exp $
d38 1
d40 1
a40 1
: ${AWK:=awk}
d83 1
a83 1
done | sed -e "s,${DESTDIR}/usr/include/,,g"
@


1.36
log
@little cleanups.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.35 2008/03/11 20:39:57 joerg Exp $
d37 4
d78 1
d84 2
a85 2
${CC:-cc} -E -nostdinc -idirafter ${DESTDIR}/usr/include -dM ${1+"$@@"} | \
${AWK:-awk} '
@


1.35
log
@Don't skip ioctls with a digit in the name.
Add a number of conflicting entries.
Add some entries from the IPv6 stack where the used structure is not
exported to userland.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.34 2008/02/11 22:43:39 dyoung Exp $
d79 2
a80 1
${CC:-cc} -E -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@@"} | ${AWK:-awk} '
d178 1
d180 1
@


1.34
log
@Do not #include <sys/device.h> from userland.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.33 2007/06/29 16:39:51 dmcmahill Exp $
d40 1
d114 10
d166 1
a166 1
/^#[ 	]*define[ 	]*[A-Z_]*[ 	]*_IO[W]*[R]*[ 	]*\(/ {
@


1.34.2.1
log
@sync with head.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.35 2008/03/11 20:39:57 joerg Exp $
a39 1
echo "#define COMPAT_FREEBSD_NET80211"
a112 10
	keep["SIOCPHASE2"] = 1; # Same as GRESADDRS
	keep["I4B_CTL_CLR_CHIPSTAT"] = 1; # Same as CLOCKCTL_NTP_ADJTIME
	keep["STICIO_STARTQ"] = 1; # Same as SPKRTONE
	keep["STICIO_RESET860"] = 1; # Same as SCIOCRESTART
	keep["STICIO_START860"] = 1; # Same as SPKRTUNE
	keep["I4B_CTL_SET_DEBUG"] = 1; # Same as CLOCKCTL_SETTIMEOFDAY

	keep["SIOCGETSGCNT_IN6"] = 1; # Type sioc_sg_req6 not exported
	keep["SIOCGPRLST_IN6"] = 1; Type in6_oprlist not exported
	keep["SIOCGETMIFCNT_IN6"] = 1; Type sioc_mif_req6 not exported
d155 1
a155 1
/^#[ 	]*define[ 	]*[A-Z0-9_]*[ 	]*_IO[W]*[R]*[ 	]*\(/ {
@


1.33
log
@Replace "awk" with "${AWK:-awk}".

Needed to be able to cross-build on systems with a feeble awk (SunOS-5.9
for example).  Example error message is:
awk: record `#define CTL_IPPROTO_...' has too many fields
 record number 404
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.32 2007/03/05 17:38:25 he Exp $
a55 1
echo "#include <sys/device.h>"
@


1.33.4.1
log
@sync with HEAD
@
text
@d2 1
a2 1
#	mkioctls,v 1.33 2007/06/29 16:39:51 dmcmahill Exp
a39 1
echo "#define COMPAT_FREEBSD_NET80211"
d56 1
a113 10
	keep["SIOCPHASE2"] = 1; # Same as GRESADDRS
	keep["I4B_CTL_CLR_CHIPSTAT"] = 1; # Same as CLOCKCTL_NTP_ADJTIME
	keep["STICIO_STARTQ"] = 1; # Same as SPKRTONE
	keep["STICIO_RESET860"] = 1; # Same as SCIOCRESTART
	keep["STICIO_START860"] = 1; # Same as SPKRTUNE
	keep["I4B_CTL_SET_DEBUG"] = 1; # Same as CLOCKCTL_SETTIMEOFDAY

	keep["SIOCGETSGCNT_IN6"] = 1; # Type sioc_sg_req6 not exported
	keep["SIOCGPRLST_IN6"] = 1; Type in6_oprlist not exported
	keep["SIOCGETMIFCNT_IN6"] = 1; Type sioc_mif_req6 not exported
d156 1
a156 1
/^#[ 	]*define[ 	]*[A-Z0-9_]*[ 	]*_IO[W]*[R]*[ 	]*\(/ {
@


1.32
log
@Add two more ioctl values which are the same.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.31 2006/11/30 01:59:45 elad Exp $
d79 1
a79 1
${CC:-cc} -E -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@@"} | awk '
@


1.31
log
@Conflict was resolved, so revert previous.

Okay dogcow@@.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.30 2006/11/29 03:48:57 dogcow Exp $
d112 2
@


1.31.2.1
log
@Pull up following revision(s) (requested by garbled in ticket #536):
	usr.bin/kdump/mkioctls: revision 1.32
Add two more ioctl values which are the same.
@
text
@d2 1
a2 1
#	$NetBSD$
a111 2
	keep["OFIOCNEXTPROP"] = 1; # Same as PNVIOCGETNUMGE
	keep["OFIOCGET"] = 1; # Same as PNVIOCGET
@


1.30
log
@deal with VERIEXEC_LOAD/SPKRTONE conflict
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.29 2006/08/31 22:41:14 he Exp $
a111 1
	keep["SPKRTONE"] = 1; # Same as VERIEXEC_LOAD
@


1.29
log
@Provide a dummy default for NBPG after including <sys/param.h> to deal
with a build problem for sparc.  The reason is that <dev/tc/sticio.h>
(yes, irrelevant for sparc...) wants NBPG declared, but for sparc user-land
that symbol is not available since sun4/sun4c/sun4m do not all share the
same page size.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.28 2006/08/31 22:25:34 he Exp $
d112 1
@


1.28
log
@Add one more conflicting ioctl set: CLOCKCTL_ADJTIME / TCTRL_MODEM_PWR,
(partially) fixes build problem for sparc.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.27 2006/08/30 23:26:25 he Exp $
d48 3
@


1.27
log
@Add handling of two more pairs of duplicate ioctl values:  amiga's
and x68k's PARIOC[SG]PARAM reuse the ioctl values from sbus/mbppio.h's
MBPPIOC[SG]PARAM.

Suggested by Christos.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.26 2006/08/29 14:53:57 christos Exp $
d108 1
@


1.26
log
@Fix sparc64 build; thanks to Martin S. Weber
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.25 2006/08/27 21:41:18 christos Exp $
d106 2
@


1.25
log
@Include <sys/device.h> needed by iopio.h
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.24 2006/08/27 20:31:26 christos Exp $
d99 7
@


1.24
log
@pick up ioctls from other devices too.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.23 2006/06/03 03:15:24 christos Exp $
d53 1
@


1.23
log
@We don't need to define struct ap_control anymore
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.22 2006/06/03 00:02:51 christos Exp $
d41 5
a45 2
echo "struct videomemory_t { int _xxx; };" # XXX arm video lossage
echo "typedef struct videomemory_t videomemory_t;" # XXX arm video lossage
d54 1
d63 3
d67 3
d85 44
d140 1
a140 1
/^#[ 	]*define[ 	]*[A-Z]*[ 	]*_IO/ {
@


1.22
log
@SIOCLOOKUPSTAT is the same as SIOCPROXY.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.21 2005/07/16 22:00:01 christos Exp $
a38 1
echo "struct ap_control { int _xxx; };" # XXX: ip_nat.h lossage
@


1.21
log
@WARNS=3
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.20 2004/07/08 03:22:32 christos Exp $
d73 1
@


1.21.2.1
log
@Sync with head.
@
text
@d2 1
a2 1
#	$NetBSD$
d39 1
a72 1
	keep["SIOCPROXY"] = 1; # Same as SIOCLOOKUPSTAT
@


1.20
log
@deal with another dup ioctl; fortunately this is from pcvt and it will die.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.19 2004/06/22 17:30:52 christos Exp $
d38 1
a38 1
echo "#define const" 	# XXX: timepps lossage
d77 1
a77 1
	print "char *ioctlname __P((long));"
d79 2
a80 3
	print "char *"
	print "ioctlname(val)"
	print "\tlong val;"
@


1.19
log
@Include ioctl's that don't have IO in their names [lkm ones eg.]
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.18 2004/05/10 20:46:44 drochner Exp $
d74 1
@


1.18
log
@remove creation of the intermediate "sourcefile" which was for debugging
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.17 2004/05/10 20:41:32 hannken Exp $
d69 1
d86 1
a86 1
/^#[ 	]*define[ 	]*[A-Z]*IO[A-Z]*[ 	]*_IO/ {
d93 1
d95 5
a99 3
	if (keep[$i] != 1) {
		printf("\tcase %s:\n\t\treturn \"%s\";\n", $i, $i);
		keep[$i] = 1;
@


1.17
log
@Add "sys/dkbad.h" for DIOCSBAD from sys/dkio.h.
Use # to start comment in awk program.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.16 2004/05/10 15:25:57 christos Exp $
d66 1
a66 1
${CC:-cc} -E -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@@"} | tee sourcefile | awk '
@


1.16
log
@Change code to use a switch statement, and add exceptions to fix the
conflicts.

XXX: Fix the conflicts.

1. chio: change to 'x' from 'c' so that it does not conflict with cdio.
   keep the 'c' ioctls in the driver for compat.
2. ppp/slip: change SLCGUNIT to some other number and accept the old number
   in the driver.
3. ipf: [3 instances] Have darren fix them.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.15 2004/05/08 21:03:43 jmc Exp $
d47 1
d68 5
a72 5
	keep["SLIOCGUNIT"] = 1;	/* Same as PPPIOCGASYNCMAP */
	keep["SIOCRMNAT"] = 1;	/* Same as SIOCRMAFR */
	keep["SIOCADNAT"] = 1;	/* Same as SIOCADAFR */
	keep["SIOCDELST"] = 1;	/* Same as SIOCRMNAT */
	keep["CHIOGPICKER"] = 1; /* Same as CDIOREADTOCHEADER */
@


1.15
log
@Add another exception for broken includes (showed up on acorn32 build)
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.14 2004/04/22 22:31:18 christos Exp $
d37 1
d49 1
d65 1
a65 1
${CC:-cc} -E -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@@"} | awk '
d67 6
d81 1
d84 1
a84 1
/^#[ 	]*define[ 	]*(TIO|FIO|SIO|OSIO|CIO|CRIO)[A-Z]*[ 	]*_IO/ {
d92 4
a95 2
	printf("\tif (val == %s)\n\t\treturn (\"%s\");\n", $i, $i);

d98 2
a99 1
	print "\n\treturn (NULL);"
@


1.14
log
@Instead of pussy-footing around and grabbing a few of the ioctl's here and
there randomly, grab all the ioctls from the include files.
Read the XXX's in mkioctls about problems with our header files.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.13 2003/08/27 20:35:42 thorpej Exp $
d41 2
@


1.13
log
@* Make it a little easier to add new "ioctl defns are in these files".
* Add the ability to decode the cryptodev ioctls.
@
text
@d1 2
a2 2
#!/bin/sh -
#	$NetBSD: mkioctls,v 1.12 2003/06/24 11:27:50 mjl Exp $
d37 24
a62 12
	print "#include <sys/param.h>"
	print "#include <sys/socket.h>"
	print "#include <sys/sockio.h>"
	print "#include <sys/socketvar.h>"
	print "#include <net/route.h>"
	print "#include <net/if.h>"
	print "#include <netinet/in.h>"
	print "#include <netinet/ip_mroute.h>"
	print "#include <sys/termios.h>"
	print "#define COMPAT_43"
	print "#include <sys/ioctl.h>"
	print "#include <crypto/cryptodev.h>"
@


1.12
log
@Add sys/sockio.h to needed includes for SIOCGIFASYNCMAP.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.11 2000/07/27 01:36:56 cgd Exp $
d50 1
d61 1
a61 1
/^#[ 	]*define[ 	]*(TIO|FIO|SIO|OSIO)[A-Z]*[ 	]*_IO/ {
@


1.11
log
@'${CC:-cc} -E' rather than 'cpp': want to use a cross-compiler if
appropriate, but worse: 'cpp' (real-UNIX or stock gnu) takes args
[infile [outfile]].  I.e., the second arg (ioctl_compat.h) would
end up being nuked by this script if using a vendor or stock gnu cpp!
Our /usr/bin/cpp works Differently.
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.10 1997/10/19 03:38:30 lukem Exp $
d41 1
@


1.10
log
@WARNSify mkioctls output, fix .Nm usage, deprecate register
@
text
@d2 1
a2 1
#	$NetBSD: mkioctls,v 1.9 1997/07/23 05:51:08 mikel Exp $
d37 1
a37 1
cpp -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@@"} | awk '
@


1.9
log
@RCSid police
@
text
@d2 1
a2 1
#	$NetBSD$
d49 2
@


1.8
log
@Make it obey the DESTDIR environment.
@
text
@d2 1
@


1.7
log
@Sync with 4.4lite2
@
text
@d36 1
a36 1
cpp -dM ${1+"$@@"} | awk '
@


1.6
log
@Bring in all includes necessary since the multicast changes.  Fixes
PR #1114.
@
text
@d1 34
a34 1
#	$Id: mkioctls,v 1.1.1.1 1995/05/02 22:57:49 thorpej Exp $
@


1.5
log
@Gather a more complete ioctl list.  From Matt Green (somewhat edited).
@
text
@d1 1
a1 1
#	$Id: mkioctls,v 1.4 1994/12/24 16:47:28 cgd Exp $
d10 2
@


1.4
log
@val is a long, now.
@
text
@d1 1
a1 1
#	$Id: mkioctls,v 1.3 1994/10/06 15:44:35 mycroft Exp $
d3 1
a3 1
awk '
d16 1
a16 1
	print "long val;"
d29 1
a29 1
	printf("\tif (val ==  %s)\n\t\treturn(\"%s\");\n", $i, $i);
d33 1
a33 1
	print "\n\treturn(NULL);"
d36 1
a36 1
' $1 $2
@


1.3
log
@Add RCS ids.
@
text
@d1 1
a1 1
#	$Id: $
d16 1
@


1.2
log
@Pass the file names in to mkioctl, to help cross-compilation.
@
text
@d1 2
@


1.1
log
@Initial revision
@
text
@d33 1
a33 1
' /usr/include/sys/ioctl.h /usr/include/sys/ioctl_compat.h
@


1.1.1.1
log
@updated kdump
@
text
@@


1.1.1.2
log
@imported from 44lite2
@
text
@a0 35
#!/bin/sh -
#
# Copyright (c) 1994
#	The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#	@@(#)mkioctls	8.2 (Berkeley) 4/28/95
#
@
