head	1.105;
access;
symbols
	netbsd-11-0-RC4:1.105
	netbsd-11-0-RC3:1.105
	netbsd-11-0-RC2:1.105
	netbsd-11-0-RC1:1.105
	perseant-exfatfs-base-20250801:1.105
	netbsd-11:1.105.0.2
	netbsd-11-base:1.105
	netbsd-10-1-RELEASE:1.95.10.1
	perseant-exfatfs-base-20240630:1.99
	perseant-exfatfs:1.99.0.2
	perseant-exfatfs-base:1.99
	netbsd-8-3-RELEASE:1.92.8.1
	netbsd-9-4-RELEASE:1.95
	netbsd-10-0-RELEASE:1.95
	netbsd-10-0-RC6:1.95
	netbsd-10-0-RC5:1.95
	netbsd-10-0-RC4:1.95
	netbsd-10-0-RC3:1.95
	netbsd-10-0-RC2:1.95
	netbsd-10-0-RC1:1.95
	netbsd-10:1.95.0.10
	netbsd-10-base:1.95
	netbsd-9-3-RELEASE:1.95
	cjep_sun2x-base1:1.95
	cjep_sun2x:1.95.0.8
	cjep_sun2x-base:1.95
	cjep_staticlib_x-base1:1.95
	netbsd-9-2-RELEASE:1.95
	cjep_staticlib_x:1.95.0.6
	cjep_staticlib_x-base:1.95
	netbsd-9-1-RELEASE:1.95
	phil-wifi-20200421:1.95
	phil-wifi-20200411:1.95
	is-mlppp:1.95.0.4
	is-mlppp-base:1.95
	phil-wifi-20200406:1.95
	netbsd-8-2-RELEASE:1.92.8.1
	netbsd-9-0-RELEASE:1.95
	netbsd-9-0-RC2:1.95
	netbsd-9-0-RC1:1.95
	phil-wifi-20191119:1.95
	netbsd-9:1.95.0.2
	netbsd-9-base:1.95
	phil-wifi-20190609:1.95
	netbsd-8-1-RELEASE:1.92.8.1
	netbsd-8-1-RC1:1.92.8.1
	pgoyette-compat-merge-20190127:1.94
	pgoyette-compat-20190127:1.94
	pgoyette-compat-20190118:1.94
	pgoyette-compat-1226:1.94
	pgoyette-compat-1126:1.94
	pgoyette-compat-1020:1.94
	pgoyette-compat-0930:1.94
	pgoyette-compat-0906:1.94
	netbsd-7-2-RELEASE:1.82.2.3
	pgoyette-compat-0728:1.94
	netbsd-8-0-RELEASE:1.92.8.1
	phil-wifi:1.94.0.4
	phil-wifi-base:1.94
	pgoyette-compat-0625:1.94
	netbsd-8-0-RC2:1.92.8.1
	pgoyette-compat-0521:1.94
	pgoyette-compat-0502:1.94
	pgoyette-compat-0422:1.94
	netbsd-8-0-RC1:1.92.8.1
	pgoyette-compat-0415:1.94
	pgoyette-compat-0407:1.94
	pgoyette-compat-0330:1.94
	pgoyette-compat-0322:1.94
	pgoyette-compat-0315:1.94
	netbsd-7-1-2-RELEASE:1.82.2.3
	pgoyette-compat:1.94.0.2
	pgoyette-compat-base:1.94
	netbsd-7-1-1-RELEASE:1.82.2.3
	matt-nb8-mediatek:1.92.8.1.0.2
	matt-nb8-mediatek-base:1.92.8.1
	perseant-stdc-iso10646:1.93.0.2
	perseant-stdc-iso10646-base:1.93
	netbsd-8:1.92.0.8
	netbsd-8-base:1.92
	prg-localcount2-base3:1.92
	prg-localcount2-base2:1.92
	prg-localcount2-base1:1.92
	prg-localcount2:1.92.0.6
	prg-localcount2-base:1.92
	pgoyette-localcount-20170426:1.92
	bouyer-socketcan-base1:1.92
	pgoyette-localcount-20170320:1.92
	netbsd-7-1:1.82.2.3.0.2
	netbsd-7-1-RELEASE:1.82.2.3
	netbsd-7-1-RC2:1.82.2.3
	netbsd-7-nhusb-base-20170116:1.82.2.3
	bouyer-socketcan:1.92.0.4
	bouyer-socketcan-base:1.92
	pgoyette-localcount-20170107:1.92
	netbsd-7-1-RC1:1.82.2.3
	pgoyette-localcount-20161104:1.92
	netbsd-7-0-2-RELEASE:1.82.2.2
	localcount-20160914:1.92
	netbsd-7-nhusb:1.82.2.2.0.4
	netbsd-7-nhusb-base:1.82.2.2
	pgoyette-localcount-20160806:1.92
	pgoyette-localcount-20160726:1.92
	pgoyette-localcount:1.92.0.2
	pgoyette-localcount-base:1.92
	netbsd-7-0-1-RELEASE:1.82.2.2
	netbsd-7-0:1.82.2.2.0.2
	netbsd-7-0-RELEASE:1.82.2.2
	netbsd-7-0-RC3:1.82.2.2
	netbsd-7-0-RC2:1.82.2.2
	netbsd-7-0-RC1:1.82.2.2
	netbsd-5-2-3-RELEASE:1.71
	netbsd-5-1-5-RELEASE:1.71
	netbsd-6-0-6-RELEASE:1.78
	netbsd-6-1-5-RELEASE:1.78
	netbsd-7:1.82.0.2
	netbsd-7-base:1.82
	yamt-pagecache-base9:1.81
	yamt-pagecache-tag8:1.78
	netbsd-6-1-4-RELEASE:1.78
	netbsd-6-0-5-RELEASE:1.78
	tls-earlyentropy:1.81.0.2
	tls-earlyentropy-base:1.82
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.81
	riastradh-drm2-base3:1.81
	netbsd-6-1-3-RELEASE:1.78
	netbsd-6-0-4-RELEASE:1.78
	netbsd-5-2-2-RELEASE:1.71
	netbsd-5-1-4-RELEASE:1.71
	netbsd-6-1-2-RELEASE:1.78
	netbsd-6-0-3-RELEASE:1.78
	netbsd-5-2-1-RELEASE:1.71
	netbsd-5-1-3-RELEASE:1.71
	netbsd-6-1-1-RELEASE:1.78
	riastradh-drm2-base2:1.79
	riastradh-drm2-base1:1.79
	riastradh-drm2:1.79.0.2
	riastradh-drm2-base:1.79
	netbsd-6-1:1.78.0.16
	netbsd-6-0-2-RELEASE:1.78
	netbsd-6-1-RELEASE:1.78
	netbsd-6-1-RC4:1.78
	netbsd-6-1-RC3:1.78
	agc-symver:1.78.0.14
	agc-symver-base:1.78
	netbsd-6-1-RC2:1.78
	netbsd-6-1-RC1:1.78
	yamt-pagecache-base8:1.78
	netbsd-5-2:1.71.0.16
	netbsd-6-0-1-RELEASE:1.78
	yamt-pagecache-base7:1.78
	netbsd-5-2-RELEASE:1.71
	netbsd-5-2-RC1:1.71
	matt-nb6-plus-nbase:1.78
	yamt-pagecache-base6:1.78
	netbsd-6-0:1.78.0.10
	netbsd-6-0-RELEASE:1.78
	netbsd-6-0-RC2:1.78
	tls-maxphys:1.78.0.8
	tls-maxphys-base:1.82
	matt-nb6-plus:1.78.0.6
	matt-nb6-plus-base:1.78
	netbsd-6-0-RC1:1.78
	yamt-pagecache-base5:1.78
	yamt-pagecache-base4:1.78
	netbsd-6:1.78.0.4
	netbsd-6-base:1.78
	netbsd-5-1-2-RELEASE:1.71
	netbsd-5-1-1-RELEASE:1.71
	yamt-pagecache-base3:1.78
	yamt-pagecache-base2:1.78
	yamt-pagecache:1.78.0.2
	yamt-pagecache-base:1.78
	cherry-xenmp:1.77.0.2
	cherry-xenmp-base:1.77
	bouyer-quota2-nbase:1.75
	bouyer-quota2:1.75.0.2
	bouyer-quota2-base:1.75
	matt-mips64-premerge-20101231:1.75
	matt-nb5-mips64-premerge-20101231:1.71
	matt-nb5-pq3:1.71.0.14
	matt-nb5-pq3-base:1.71
	netbsd-5-1:1.71.0.12
	netbsd-5-1-RELEASE:1.71
	netbsd-5-1-RC4:1.71
	matt-nb5-mips64-k15:1.71
	netbsd-5-1-RC3:1.71
	netbsd-5-1-RC2:1.71
	netbsd-5-1-RC1:1.71
	netbsd-5-0-2-RELEASE:1.71
	matt-nb5-mips64-premerge-20091211:1.71
	matt-premerge-20091211:1.73
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.71
	matt-nb4-mips64-k7-u2a-k9b:1.71
	matt-nb5-mips64-u1-k1-k5:1.71
	matt-nb5-mips64:1.71.0.10
	netbsd-5-0-1-RELEASE:1.71
	jym-xensuspend-nbase:1.71
	netbsd-5-0:1.71.0.8
	netbsd-5-0-RELEASE:1.71
	netbsd-5-0-RC4:1.71
	netbsd-5-0-RC3:1.71
	netbsd-5-0-RC2:1.71
	jym-xensuspend:1.71.0.6
	jym-xensuspend-base:1.71
	netbsd-5-0-RC1:1.71
	christos-time_t-nbase:1.71
	christos-time_t:1.71.0.4
	christos-time_t-base:1.71
	netbsd-5:1.71.0.2
	netbsd-5-base:1.71
	matt-mips64-base2:1.70
	matt-mips64:1.65.0.14
	netbsd-4-0-1-RELEASE:1.65
	wrstuden-revivesa-base-3:1.70
	wrstuden-revivesa-base-2:1.70
	wrstuden-fixsa-newbase:1.65
	wrstuden-revivesa-base-1:1.68
	yamt-pf42-base4:1.68
	yamt-pf42-base3:1.68
	hpcarm-cleanup-nbase:1.68
	yamt-pf42-baseX:1.68
	yamt-pf42-base2:1.68
	wrstuden-revivesa:1.68.0.8
	wrstuden-revivesa-base:1.68
	yamt-pf42:1.68.0.6
	yamt-pf42-base:1.68
	keiichi-mipv6:1.68.0.4
	keiichi-mipv6-base:1.68
	matt-armv6-nbase:1.68
	matt-armv6-prevmlocking:1.65.10.1
	wrstuden-fixsa-base-1:1.65
	netbsd-4-0:1.65.0.12
	netbsd-4-0-RELEASE:1.65
	cube-autoconf:1.68.0.2
	cube-autoconf-base:1.68
	netbsd-4-0-RC5:1.65
	netbsd-4-0-RC4:1.65
	netbsd-4-0-RC3:1.65
	netbsd-4-0-RC2:1.65
	netbsd-4-0-RC1:1.65
	matt-armv6:1.65.0.10
	matt-armv6-base:1.68
	matt-mips64-base:1.65
	hpcarm-cleanup:1.65.0.8
	hpcarm-cleanup-base:1.68
	netbsd-3-1-1-RELEASE:1.57.2.1
	netbsd-3-0-3-RELEASE:1.57.2.1
	wrstuden-fixsa:1.65.0.6
	wrstuden-fixsa-base:1.65
	abandoned-netbsd-4-base:1.65
	abandoned-netbsd-4:1.65.0.2
	netbsd-3-1:1.57.2.1.0.4
	netbsd-3-1-RELEASE:1.57.2.1
	netbsd-3-0-2-RELEASE:1.57.2.1
	netbsd-3-1-RC4:1.57.2.1
	netbsd-3-1-RC3:1.57.2.1
	netbsd-3-1-RC2:1.57.2.1
	netbsd-3-1-RC1:1.57.2.1
	netbsd-4:1.65.0.4
	netbsd-4-base:1.65
	netbsd-3-0-1-RELEASE:1.57.2.1
	netbsd-3-0:1.57.2.1.0.2
	netbsd-3-0-RELEASE:1.57.2.1
	netbsd-3-0-RC6:1.57.2.1
	netbsd-3-0-RC5:1.57.2.1
	netbsd-3-0-RC4:1.57.2.1
	netbsd-3-0-RC3:1.57.2.1
	netbsd-3-0-RC2:1.57.2.1
	netbsd-3-0-RC1:1.57.2.1
	netbsd-2-0-3-RELEASE:1.55.2.1
	netbsd-2-1:1.55.2.1.0.4
	netbsd-2-1-RELEASE:1.55.2.1
	netbsd-2-1-RC6:1.55.2.1
	netbsd-2-1-RC5:1.55.2.1
	netbsd-2-1-RC4:1.55.2.1
	netbsd-2-1-RC3:1.55.2.1
	netbsd-2-1-RC2:1.55.2.1
	netbsd-2-1-RC1:1.55.2.1
	netbsd-2-0-2-RELEASE:1.55.2.1
	netbsd-3:1.57.0.2
	netbsd-3-base:1.57
	netbsd-2-0-1-RELEASE:1.55.2.1
	netbsd-2:1.55.2.1.0.2
	netbsd-2-base:1.55.2.1
	netbsd-2-0-RELEASE:1.55.2.1
	netbsd-2-0-RC5:1.55.2.1
	netbsd-2-0-RC4:1.55.2.1
	netbsd-2-0-RC3:1.55.2.1
	netbsd-2-0-RC2:1.55.2.1
	netbsd-2-0-RC1:1.55.2.1
	netbsd-2-0:1.55.0.2
	netbsd-2-0-base:1.55
	netbsd-1-6-PATCH002-RELEASE:1.52
	netbsd-1-6-PATCH002:1.52
	netbsd-1-6-PATCH002-RC4:1.52
	netbsd-1-6-PATCH002-RC3:1.52
	netbsd-1-6-PATCH002-RC2:1.52
	netbsd-1-6-PATCH002-RC1:1.52
	netbsd-1-6-PATCH001:1.52
	netbsd-1-6-PATCH001-RELEASE:1.52
	netbsd-1-6-PATCH001-RC3:1.52
	netbsd-1-6-PATCH001-RC2:1.52
	netbsd-1-6-PATCH001-RC1:1.52
	nathanw_sa_end:1.51.2.2
	nathanw_sa_before_merge:1.53
	fvdl_fs64_base:1.53
	nathanw_sa_base:1.53
	netbsd-1-6-RELEASE:1.52
	netbsd-1-6-RC3:1.52
	netbsd-1-6-RC2:1.52
	netbsd-1-6-RC1:1.52
	netbsd-1-6:1.52.0.2
	netbsd-1-6-base:1.52
	netbsd-1-5-PATCH003:1.47.4.1
	netbsd-1-5-PATCH002:1.47.4.1
	netbsd-1-5-PATCH001:1.47.4.1
	nathanw_sa:1.51.0.2
	netbsd-1-5-RELEASE:1.47
	netbsd-1-5-BETA2:1.47
	netbsd-1-5-BETA:1.47
	netbsd-1-4-PATCH003:1.41
	netbsd-1-5-ALPHA2:1.47
	netbsd-1-5:1.47.0.4
	netbsd-1-5-base:1.47
	minoura-xpg4dl:1.47.0.2
	minoura-xpg4dl-base:1.47
	netbsd-1-4-PATCH002:1.41
	wrstuden-devbsize-19991221:1.44
	wrstuden-devbsize:1.44.0.4
	wrstuden-devbsize-base:1.44
	comdex-fall-1999:1.44.0.2
	comdex-fall-1999-base:1.44
	netbsd-1-4-PATCH001:1.41
	netbsd-1-4-RELEASE:1.41
	netbsd-1-4:1.41.0.2
	netbsd-1-4-base:1.41
	netbsd-1-3-PATCH003:1.33.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.33.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.33.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.33.2.1
	netbsd-1-3-PATCH002:1.33.2.1
	netbsd-1-3-PATCH001:1.33.2.1
	lite-2:1.1.1.2
	CSRG:1.1.1
	netbsd-1-3-RELEASE:1.33.2.1
	netbsd-1-3-BETA:1.33.2.1
	netbsd-1-3:1.33.0.2
	netbsd-1-3-base:1.33
	netbsd-1-2-PATCH001:1.27
	nsswitch:1.28.0.2
	ivory_soap2:1.27.0.2
	netbsd-1-2-RELEASE:1.27
	netbsd-1-2-BETA:1.27
	netbsd-1-2:1.27.0.4
	netbsd-1-2-base:1.27
	netbsd-1-1-PATCH001:1.26
	netbsd-1-1-RELEASE:1.26
	netbsd-1-1:1.26.0.2
	netbsd-1-1-base:1.26
	ivory_soap:1.23.0.2
	netbsd-1-0-PATCH06:1.21
	netbsd-1-0-PATCH05:1.21
	netbsd-1-0-PATCH04:1.21
	netbsd-1-0-PATCH03:1.21
	netbsd-1-0-PATCH02:1.21
	netbsd-1-0-PATCH1:1.21
	netbsd-1-0-PATCH0:1.21
	netbsd-1-0-RELEASE:1.21
	netbsd-1-0:1.21.0.2
	netbsd-1-0-base:1.21
	netbsd-0-9-RELEASE:1.3
	netbsd-0-9-BETA:1.3
	netbsd-0-9-ALPHA2:1.3
	netbsd-0-9-ALPHA:1.3
	netbsd-0-9:1.3.0.2
	netbsd-0-9-base:1.3
	netbsd-0-8:1.1.1.1
	netbsd-alpha-1:1.1.1.1
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.105
date	2025.07.20.23.09.09;	author dholland;	state Exp;
branches;
next	1.104;
commitid	uasrZ8kTUpeuwx3G;

1.104
date	2025.03.02.16.35.41;	author riastradh;	state Exp;
branches;
next	1.103;
commitid	XjPSGN9UMZGmQvLF;

1.103
date	2024.09.23.15.49.42;	author christos;	state Exp;
branches;
next	1.102;
commitid	05PlokeeZhlDJWqF;

1.102
date	2024.09.23.15.44.43;	author christos;	state Exp;
branches;
next	1.101;
commitid	YujpDT1udL7YHWqF;

1.101
date	2024.09.23.15.42.06;	author christos;	state Exp;
branches;
next	1.100;
commitid	7P2zBS2YEpa5HWqF;

1.100
date	2024.07.24.08.55.08;	author kre;	state Exp;
branches;
next	1.99;
commitid	1shZ73McU3hWo4jF;

1.99
date	2024.06.07.20.50.13;	author riastradh;	state Exp;
branches
	1.99.2.1;
next	1.98;
commitid	fP8yGvLFlp43S5dF;

1.98
date	2024.01.27.17.58.36;	author christos;	state Exp;
branches;
next	1.97;
commitid	rVu9ISyeq7Dda7WE;

1.97
date	2024.01.20.16.45.07;	author christos;	state Exp;
branches;
next	1.96;
commitid	GdyxcrIJdCXRYcVE;

1.96
date	2024.01.19.18.41.30;	author christos;	state Exp;
branches;
next	1.95;
commitid	hDDy2IREKqNPE5VE;

1.95
date	2019.03.04.17.30.33;	author christos;	state Exp;
branches
	1.95.2.1
	1.95.10.1;
next	1.94;
commitid	r5uzmHXGS99Sx4eB;

1.94
date	2018.01.05.20.51.13;	author snj;	state Exp;
branches
	1.94.4.1;
next	1.93;
commitid	AbkboWCQA19ufJlA;

1.93
date	2017.07.11.15.21.35;	author joerg;	state Exp;
branches;
next	1.92;
commitid	j27SMvSzJaMk6PYz;

1.92
date	2016.04.01.12.37.48;	author msaitoh;	state Exp;
branches
	1.92.8.1;
next	1.91;
commitid	OTI8cYvhK8jKdV0z;

1.91
date	2015.11.07.16.21.42;	author nros;	state Exp;
branches;
next	1.90;
commitid	guYSC2DYbEnN8bIy;

1.90
date	2015.05.01.14.17.56;	author christos;	state Exp;
branches;
next	1.89;
commitid	CbUcmycRcq3fzKjy;

1.89
date	2015.02.17.20.29.21;	author joerg;	state Exp;
branches;
next	1.88;
commitid	zOhsR9FYL0mvXoay;

1.88
date	2015.02.05.20.02.28;	author christos;	state Exp;
branches;
next	1.87;
commitid	G8fimbG2XVrcdR8y;

1.87
date	2015.02.05.16.04.35;	author christos;	state Exp;
branches;
next	1.86;
commitid	6bBY5fEtANg1TP8y;

1.86
date	2015.01.18.17.59.36;	author christos;	state Exp;
branches;
next	1.85;
commitid	MXFBssdp5KC87x6y;

1.85
date	2015.01.16.18.41.33;	author christos;	state Exp;
branches;
next	1.84;
commitid	9U2P46GoXomuph6y;

1.84
date	2015.01.16.18.37.21;	author christos;	state Exp;
branches;
next	1.83;
commitid	6LBoryJSrih4oh6y;

1.83
date	2014.12.10.16.55.54;	author pooka;	state Exp;
branches;
next	1.82;
commitid	nNkbwK1Zck1eVv1y;

1.82
date	2014.07.20.13.34.17;	author christos;	state Exp;
branches
	1.82.2.1;
next	1.81;
commitid	yLHcadhl22qhu7Jx;

1.81
date	2014.01.08.02.15.42;	author christos;	state Exp;
branches
	1.81.2.1;
next	1.80;
commitid	utpDDTiusjfGWfkx;

1.80
date	2013.12.02.04.39.10;	author lneto;	state Exp;
branches;
next	1.79;
commitid	63cyf88869JEVvfx;

1.79
date	2013.04.26.18.29.55;	author christos;	state Exp;
branches;
next	1.78;

1.78
date	2011.09.14.23.33.51;	author christos;	state Exp;
branches
	1.78.2.1
	1.78.8.1;
next	1.77;

1.77
date	2011.04.13.07.12.52;	author jruoho;	state Exp;
branches;
next	1.76;

1.76
date	2011.04.13.06.56.50;	author jruoho;	state Exp;
branches;
next	1.75;

1.75
date	2010.11.14.18.11.43;	author tron;	state Exp;
branches;
next	1.74;

1.74
date	2010.05.03.05.01.53;	author jruoho;	state Exp;
branches;
next	1.73;

1.73
date	2009.07.31.20.39.59;	author dsl;	state Exp;
branches;
next	1.72;

1.72
date	2009.07.20.17.03.37;	author joerg;	state Exp;
branches;
next	1.71;

1.71
date	2008.10.26.07.43.07;	author mrg;	state Exp;
branches
	1.71.4.1;
next	1.70;

1.70
date	2008.08.20.12.42.26;	author joerg;	state Exp;
branches;
next	1.69;

1.69
date	2008.08.04.21.29.27;	author matt;	state Exp;
branches;
next	1.68;

1.68
date	2007.11.28.21.55.14;	author christos;	state Exp;
branches
	1.68.8.1;
next	1.67;

1.67
date	2007.11.19.14.48.42;	author ad;	state Exp;
branches;
next	1.66;

1.66
date	2007.10.06.01.09.07;	author ad;	state Exp;
branches;
next	1.65;

1.65
date	2006.03.22.22.03.58;	author drochner;	state Exp;
branches
	1.65.10.1;
next	1.64;

1.64
date	2006.03.15.17.35.18;	author kleink;	state Exp;
branches;
next	1.63;

1.63
date	2006.01.25.15.43.01;	author kleink;	state Exp;
branches;
next	1.62;

1.62
date	2006.01.20.22.02.07;	author christos;	state Exp;
branches;
next	1.61;

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

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

1.59
date	2005.07.06.14.43.24;	author drochner;	state Exp;
branches;
next	1.58;

1.58
date	2005.04.03.20.09.29;	author christos;	state Exp;
branches;
next	1.57;

1.57
date	2004.08.05.00.17.02;	author yamt;	state Exp;
branches
	1.57.2.1;
next	1.56;

1.56
date	2004.05.27.02.58.48;	author christos;	state Exp;
branches;
next	1.55;

1.55
date	2003.04.07.17.18.20;	author kleink;	state Exp;
branches
	1.55.2.1;
next	1.54;

1.54
date	2003.04.07.16.22.43;	author drochner;	state Exp;
branches;
next	1.53;

1.53
date	2002.11.29.12.58.17;	author lukem;	state Exp;
branches;
next	1.52;

1.52
date	2001.04.28.15.41.30;	author kleink;	state Exp;
branches;
next	1.51;

1.51
date	2001.02.16.12.25.09;	author msaitoh;	state Exp;
branches
	1.51.2.1;
next	1.50;

1.50
date	2001.02.14.05.44.29;	author cgd;	state Exp;
branches;
next	1.49;

1.49
date	2001.01.08.14.06.09;	author lukem;	state Exp;
branches;
next	1.48;

1.48
date	2000.12.21.11.29.48;	author itojun;	state Exp;
branches;
next	1.47;

1.47
date	2000.04.02.20.27.58;	author christos;	state Exp;
branches
	1.47.2.1
	1.47.4.1;
next	1.46;

1.46
date	2000.03.08.20.17.20;	author kleink;	state Exp;
branches;
next	1.45;

1.45
date	2000.03.06.18.32.28;	author kleink;	state Exp;
branches;
next	1.44;

1.44
date	99.08.02.03.18.46;	author lukem;	state Exp;
branches;
next	1.43;

1.43
date	99.06.26.04.44.36;	author tls;	state Exp;
branches;
next	1.42;

1.42
date	99.06.17.19.33.36;	author tls;	state Exp;
branches;
next	1.41;

1.41
date	99.02.24.15.05.21;	author drochner;	state Exp;
branches;
next	1.40;

1.40
date	99.02.22.10.33.15;	author christos;	state Exp;
branches;
next	1.39;

1.39
date	99.02.06.15.04.05;	author kleink;	state Exp;
branches;
next	1.38;

1.38
date	98.06.14.17.49.21;	author kleink;	state Exp;
branches;
next	1.37;

1.37
date	98.02.02.23.20.35;	author perry;	state Exp;
branches;
next	1.36;

1.36
date	98.02.01.14.03.47;	author frueauf;	state Exp;
branches;
next	1.35;

1.35
date	98.01.30.23.37.40;	author perry;	state Exp;
branches;
next	1.34;

1.34
date	97.11.05.23.00.30;	author cgd;	state Exp;
branches;
next	1.33;

1.33
date	97.07.15.00.42.29;	author kleink;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	97.07.13.20.16.31;	author christos;	state Exp;
branches;
next	1.31;

1.31
date	97.04.23.01.17.59;	author mrg;	state Exp;
branches;
next	1.30;

1.30
date	97.04.21.12.36.27;	author mrg;	state Exp;
branches;
next	1.29;

1.29
date	96.11.19.02.56.35;	author jtc;	state Exp;
branches;
next	1.28;

1.28
date	96.10.16.17.56.37;	author perry;	state Exp;
branches;
next	1.27;

1.27
date	95.12.28.08.51.55;	author thorpej;	state Exp;
branches;
next	1.26;

1.26
date	95.04.25.15.36.39;	author ragge;	state Exp;
branches;
next	1.25;

1.25
date	95.03.22.00.36.52;	author jtc;	state Exp;
branches;
next	1.24;

1.24
date	95.03.21.23.12.35;	author jtc;	state Exp;
branches;
next	1.23;

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

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

1.21
date	94.06.16.05.27.17;	author mycroft;	state Exp;
branches;
next	1.20;

1.20
date	94.05.20.06.19.47;	author jtc;	state Exp;
branches;
next	1.19;

1.19
date	94.05.17.12.44.06;	author mycroft;	state Exp;
branches;
next	1.18;

1.18
date	94.03.17.01.58.55;	author jtc;	state Exp;
branches;
next	1.17;

1.17
date	94.01.03.22.58.35;	author jtc;	state Exp;
branches;
next	1.16;

1.16
date	93.12.05.15.46.05;	author briggs;	state Exp;
branches;
next	1.15;

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

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

1.13
date	93.10.22.17.26.43;	author jtc;	state Exp;
branches;
next	1.12;

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

1.11
date	93.10.13.21.44.23;	author jtc;	state Exp;
branches;
next	1.10;

1.10
date	93.10.09.00.08.02;	author jtc;	state Exp;
branches;
next	1.9;

1.9
date	93.10.09.00.03.32;	author jtc;	state Exp;
branches;
next	1.8;

1.8
date	93.10.08.00.08.12;	author jtc;	state Exp;
branches;
next	1.7;

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

1.6
date	93.10.07.00.23.55;	author cgd;	state Exp;
branches;
next	1.5;

1.5
date	93.09.17.19.23.38;	author phil;	state Exp;
branches;
next	1.4;

1.4
date	93.08.01.05.40.41;	author mycroft;	state Exp;
branches;
next	1.3;

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

1.2
date	93.07.09.09.40.15;	author cgd;	state Exp;
branches;
next	1.1;

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

1.99.2.1
date	2025.08.02.05.54.41;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.95.2.1
date	2024.08.23.18.50.16;	author martin;	state Exp;
branches;
next	;
commitid	snV61vN5rdNrJYmF;

1.95.10.1
date	2024.08.23.16.15.13;	author martin;	state Exp;
branches;
next	;
commitid	SeYHNI0DLhFgSXmF;

1.94.4.1
date	2019.06.10.22.05.21;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.92.8.1
date	2017.08.29.09.43.16;	author bouyer;	state Exp;
branches;
next	;
commitid	nPgbPzeE7jcLG55A;

1.82.2.1
date	2015.04.22.07.18.58;	author snj;	state Exp;
branches;
next	1.82.2.2;
commitid	gPptfE5iUQUcxyiy;

1.82.2.2
date	2015.05.16.17.58.46;	author snj;	state Exp;
branches
	1.82.2.2.4.1;
next	1.82.2.3;
commitid	7LA62dzrDmEeiHly;

1.82.2.3
date	2016.12.08.07.43.44;	author snj;	state Exp;
branches;
next	;
commitid	ZfIGcJVDmFSIw9xz;

1.82.2.2.4.1
date	2017.01.18.08.46.23;	author skrll;	state Exp;
branches;
next	;
commitid	M6f3RyDtiAR3wqCz;

1.81.2.1
date	2014.08.10.06.51.51;	author tls;	state Exp;
branches;
next	;
commitid	lXZyR8D6WjIWAMLx;

1.78.2.1
date	2014.05.22.11.36.54;	author yamt;	state Exp;
branches;
next	;
commitid	HJV5p3BoaVY5KwBx;

1.78.8.1
date	2013.06.23.06.21.06;	author tls;	state Exp;
branches;
next	1.78.8.2;
commitid	NYFFXRB0xCbrHHUw;

1.78.8.2
date	2014.08.20.00.02.16;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.71.4.1
date	2008.10.26.07.43.07;	author mrg;	state dead;
branches;
next	1.71.4.2;

1.71.4.2
date	2008.10.26.07.43.08;	author mrg;	state Exp;
branches;
next	;

1.68.8.1
date	2008.09.18.04.39.22;	author wrstuden;	state Exp;
branches;
next	;

1.65.10.1
date	2007.11.06.23.11.18;	author matt;	state Exp;
branches;
next	1.65.10.2;

1.65.10.2
date	2008.01.09.01.34.13;	author matt;	state Exp;
branches;
next	;

1.57.2.1
date	2005.08.04.17.32.57;	author tron;	state Exp;
branches;
next	;

1.55.2.1
date	2004.08.12.18.27.31;	author jmc;	state Exp;
branches;
next	;

1.51.2.1
date	2001.10.08.20.21.00;	author nathanw;	state Exp;
branches;
next	1.51.2.2;

1.51.2.2
date	2002.12.10.06.25.54;	author thorpej;	state Exp;
branches;
next	;

1.47.2.1
date	2000.05.28.22.41.10;	author minoura;	state Exp;
branches;
next	;

1.47.4.1
date	2001.03.13.21.19.55;	author he;	state Exp;
branches;
next	;

1.33.2.1
date	97.11.08.21.52.27;	author veego;	state Exp;
branches;
next	;

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

1.1.1.2
date	98.01.30.21.41.41;	author perry;	state Exp;
branches;
next	;


desc
@@


1.105
log
@lib/libc/stdlib: sort MLINKS (p comes before q)
@
text
@#	$NetBSD: Makefile.inc,v 1.104 2025/03/02 16:35:41 riastradh Exp $
#	from: @@(#)Makefile.inc	8.3 (Berkeley) 2/4/95

# stdlib sources
.PATH: ${ARCHDIR}/stdlib ${.CURDIR}/stdlib

SRCS+=	_env.c _rand48.c \
	a64l.c abort.c atexit.c atof.c atoi.c atol.c atoll.c \
	bsearch.c cxa_thread_atexit.c drand48.c exit.c \
	getenv.c getopt.c getopt_long.c getsubopt.c \
	hcreate.c heapsort.c imaxdiv.c insque.c jrand48.c l64a.c lldiv.c \
	lcong48.c lrand48.c lsearch.c merge.c mi_vector_hash.c mrand48.c \
	nrand48.c putenv.c qabs.c qdiv.c qsort.c posix_openpt.c pty.c \
	quick_exit.c radixsort.c rand.c rand_r.c random.c remque.c \
	reallocarr.c reallocarray.c seed48.c setenv.c srand48.c strsuftoll.c \
	strtoi.c strtou.c strtonum.c \
	strtoimax.c strtol.c strtoll.c strtoq.c strtoul.c strtoull.c \
	strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c \
	unsetenv.c strfmon.c

# These are often replaced by MD .S versions
SRCS+=	abs.c labs.c llabs.c imaxabs.c
SRCS+=	div.c ldiv.c imaxdiv.c

# This might be replaced by erand48.c
SRCS+= erand48_ieee754.c

.if ${RUMPRUN} != "yes"
.   if (${USE_JEMALLOC} != "no")
.      if ${HAVE_JEMALLOC} > 100
.         include "${NETBSDSRCDIR}/external/bsd/${EXTERNAL_JEMALLOC_SUBDIR}/lib/Makefile.inc"
.      else
SRCS+=	jemalloc.c aligned_alloc.c
.      endif 
.   else
SRCS+=	malloc.c
.   endif
.endif

CPPFLAGS.strtol.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtoq.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtouq.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib

.include "${ARCHDIR}/stdlib/Makefile.inc"

MAN+=	a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 atoll.3 \
	at_quick_exit.3 \
	bsearch.3 \
	div.3 \
	exit.3 \
	getenv.3 getopt.3 getopt_long.3 getsubopt.3 grantpt.3 \
	hcreate.3 \
	insque.3 \
	jemalloc.3 \
	lsearch.3 \
	malloc.3 memory.3 mi_vector_hash.3 \
	posix_memalign.3 posix_openpt.3 ptsname.3 \
	qabs.3 qdiv.3 quick_exit.3 qsort.3 \
	radixsort.3 rand48.3 rand.3 random.3 reallocarr.3 reallocarray.3 \
	strfmon.3 strsuftoll.3 strtod.3 strtoi.3 strtol.3 strtou.3 strtoul.3 \
	strtonum.3 system.3 \
	tsearch.3 \
	unlockpt.3

strtou.3: strtoi.3
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/strtoi/strtou/g -e s/STRTOI/STRTOU/g \
	    -e 's/an intmax_t/a unitmax_t/g' -e 's/strtou 3/strtoi 3/g' \
	    -e s/intmax_t/uintmax_t/g -e s/%jd/%ju/g ${.ALLSRC} > ${.TARGET}
CLEANFILES += strtou.3

MLINKS+=a64l.3 l64a.3
MLINKS+=a64l.3 l64a_r.3
MLINKS+=abs.3 labs.3 \
	abs.3 llabs.3 \
	abs.3 imaxabs.3
MLINKS+=div.3 ldiv.3 \
	div.3 lldiv.3 \
	div.3 imaxdiv.3
MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3
MLINKS+=getenv.3 getenv_r.3
MLINKS+=hcreate.3 hdestroy.3 hcreate.3 hsearch.3
MLINKS+=hcreate.3 hcreate_r.3 hcreate.3 hdestroy_r.3 hcreate.3 hsearch_r.3
MLINKS+=hcreate.3 hdestroy1.3 hcreate.3 hdestroy1_r.3
MLINKS+=insque.3 remque.3
MLINKS+=jemalloc.3 malloc.conf.5
MLINKS+=lsearch.3 lfind.3
MLINKS+=malloc.3 calloc.3 malloc.3 realloc.3 malloc.3 free.3
MLINKS+=posix_memalign.3 aligned_alloc.3
MLINKS+=ptsname.3 ptsname_r.3
MLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3
MLINKS+=qsort.3 heapsort_r.3
MLINKS+=qsort.3 mergesort_r.3
MLINKS+=qsort.3 qsort_r.3
MLINKS+=rand.3 rand_r.3
MLINKS+=rand.3 srand.3
MLINKS+=rand48.3 drand48.3 rand48.3 erand48.3 rand48.3 lrand48.3
MLINKS+=rand48.3 mrand48.3 rand48.3 nrand48.3 rand48.3 jrand48.3
MLINKS+=rand48.3 srand48.3 rand48.3 seed48.3 rand48.3 lcong48.3
MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3
MLINKS+=radixsort.3 sradixsort.3
MLINKS+=strfmon.3 strfmon_l.3
MLINKS+=strsuftoll.3 strsuftollx.3
MLINKS+=strtod.3 strtof.3 strtod.3 strtold.3
MLINKS+=strtoi.3 strtoi_l.3
MLINKS+=strtol.3 strtoimax.3
MLINKS+=strtol.3 strtoll.3
MLINKS+=strtol.3 strtoq.3
MLINKS+=strtou.3 strtou_l.3
MLINKS+=strtoul.3 strtoull.3
MLINKS+=strtoul.3 strtoumax.3
MLINKS+=strtoul.3 strtouq.3
MLINKS+=tsearch.3 tfind.3 tsearch.3 twalk.3 tsearch.3 tdelete.3

# lint(1) spuriously complains about `*s == CHAR_MAX' even though *s
# has type char.
LINTFLAGS.strfmon.c += -X 230
@


1.104
log
@libc: New _r variants of heapsort, mergesort, qsort.

Also kheapsort_r for kernel/standalone use.

These variants allow the caller to pass a cookie through to the
comparison function, e.g. if you want to sort an array of indices
into a buffer.

qsort_r is new in POSIX.1-2024; the others are obvious analogues of
our nonstandard extensions for heapsort and mergesort.

PR lib/58931: qsort_r() missing
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.103 2024/09/23 15:49:42 christos Exp $
d90 1
a94 1
MLINKS+=ptsname.3 ptsname_r.3
@


1.103
log
@Move lintflags to jemalloc Makefile.inc fragment
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.102 2024/09/23 15:44:43 christos Exp $
d91 3
@


1.102
log
@get the variable name right
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.101 2024/09/23 15:42:06 christos Exp $
a114 34

# jemalloc
LINTFLAGS.arena.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.background_thread.c += -X 86,117,132,161,191,193,207,217,226
LINTFLAGS.base.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.bin.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.bitmap.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.chk.c += -X 191,193,217,226,239
LINTFLAGS.ckh.c += -X 86,117,161,191,193,207,217,226,239,284
LINTFLAGS.ctl.c += -X 86,117,135,161,193,191,207,217,226
LINTFLAGS.divide.c += -X 226
LINTFLAGS.extent.c += -X 86,161,117,191,193,207,217,226
LINTFLAGS.extent_dss.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.extent_mmap.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.jemalloc.c += -X 86,117,161,191,193,207,217,226,236,307
LINTFLAGS.jemalloc.c += -X 141 # i386
LINTFLAGS.hooks.c += -X 226
LINTFLAGS.large.c += -X 86,161,117,191,193,207,217,226
LINTFLAGS.log.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.malloc_io.c += -X 86,117,161,191,193,207,217,226,284
LINTFLAGS.malloc_io.c += -X 132 # i386
LINTFLAGS.mutex.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.mutex_pool.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.nstime.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.pages.c += -X 86,117,161,191,193,207,217,226,298
LINTFLAGS.prng.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.prof.c += -X 86,117,161,181,191,193,207,217,226,236
LINTFLAGS.rtree.c += -X 86,117,161,191,193,207,217,226,239
LINTFLAGS.sz.c += -X 86,226
LINTFLAGS.stats.c += -X 42,86,117,135,161,191,193,207,217,226,247,351
LINTFLAGS.tcache.c += -X 86,117,161,191,193,207,217,226,239,309
LINTFLAGS.ticker.c += -X 86,117,161,191,193,207,217,226
LINTFLAGS.tsd.c += -X 86,117,161,191,193,207,217,226,346,351
LINTFLAGS.witness.c += -X 86,117,161,191,193,207,217,226
@


1.101
log
@Handle multiple versions of jemalloc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.100 2024/07/24 08:55:08 kre Exp $
d31 1
a31 1
.         include "${NETBSDSRCDIR}/external/bsd/${JEMALLOC_EXTERNAL_SUBDIR}/lib/Makefile.inc"
@


1.100
log
@Improve the man for strtoi() (and consequently strtou())

PR lib/58461  PR lib/58453

Improve the wording so it is clearer exactly what strtoi() is
intended to do in various cases.

While here, add, in the most minimalist way possible, the
strtoi_l(), and so also strtou_l(), functions, which seem to
have been previously undocumented.

Do some linguistic gymnastics so that the conversion of the
page from strtoi(3) -> strtou(3) will not generate "an unitmax_t"
which is incorrect, we need "a unitmax_t" - one of those was
easy to fix in the Makefile sed script, the others would have
been more difficult, so reword instead.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.99 2024/06/07 20:50:13 riastradh Exp $
d31 1
a31 1
.         include "${NETBSDSRCDIR}/external/bsd/jemalloc/lib/Makefile.inc"
@


1.99
log
@libc: Pacify lint on aarch64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.98 2024/01/27 17:58:36 christos Exp $
d68 1
d102 1
d106 1
@


1.99.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.105 2025/07/20 23:09:09 dholland Exp $
d31 1
a31 1
.         include "${NETBSDSRCDIR}/external/bsd/${EXTERNAL_JEMALLOC_SUBDIR}/lib/Makefile.inc"
a67 1
	    -e 's/an intmax_t/a unitmax_t/g' -e 's/strtou 3/strtoi 3/g' \
d89 1
a90 4
MLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3
MLINKS+=qsort.3 heapsort_r.3
MLINKS+=qsort.3 mergesort_r.3
MLINKS+=qsort.3 qsort_r.3
a100 1
MLINKS+=strtoi.3 strtoi_l.3
a103 1
MLINKS+=strtou.3 strtou_l.3
d112 34
@


1.98
log
@fix i386 lint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.97 2024/01/20 16:45:07 christos Exp $
d109 4
@


1.97
log
@generate strtou.3 from strtoi.3, grammar police
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.96 2024/01/19 18:41:30 christos Exp $
d123 1
d128 1
@


1.96
log
@Add lint flags for jemalloc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.95 2019/03/04 17:30:33 christos Exp $
d65 6
@


1.95
log
@Hook for jemalloc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.94 2018/01/05 20:51:13 snj Exp $
d102 32
@


1.95.2.1
log
@Pull up following revision(s) (requested by riastradh in ticket #1870):

	common/lib/libc/stdlib/_strtoi.h: revision 1.3
	lib/libc/stdlib/strtou.3: revision 1.8
	lib/libc/stdlib/strtonum.c: revision 1.7
	lib/libc/stdlib/Makefile.inc: revision 1.97
	lib/libc/stdlib/strtoi.3: revision 1.8
	lib/libc/stdlib/strtoi.3: revision 1.9
	lib/libc/stdlib/strtou.3: file removal
	tests/lib/libc/stdlib/t_strtoi.c: revision 1.3

PR/57828: Alejandro Colomar: Prioritize test for ERANGE before testing for
fully consuming the string. Adjust strtonum(3) to behave as before. Document
the order of the tests and sync the man pages (I should really autogenerate
one of the two man pages...)
generate strtou.3 from strtoi.3, grammar police

Add range tests with trailing characters.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.95 2019/03/04 17:30:33 christos Exp $
a64 6
strtou.3: strtoi.3
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/strtoi/strtou/g -e s/STRTOI/STRTOU/g \
	    -e s/intmax_t/uintmax_t/g -e s/%jd/%ju/g ${.ALLSRC} > ${.TARGET}
CLEANFILES += strtou.3

@


1.95.10.1
log
@Pull up following revision(s) (requested by riastradh in ticket #792):

	common/lib/libc/stdlib/_strtoi.h: revision 1.3
	lib/libc/stdlib/strtou.3: revision 1.8
	lib/libc/stdlib/strtonum.c: revision 1.7
	lib/libc/stdlib/Makefile.inc: revision 1.97
	lib/libc/stdlib/strtoi.3: revision 1.8
	lib/libc/stdlib/strtoi.3: revision 1.9
	lib/libc/stdlib/strtou.3: file removal
	tests/lib/libc/stdlib/t_strtoi.c: revision 1.3

PR/57828: Alejandro Colomar: Prioritize test for ERANGE before testing for
fully consuming the string. Adjust strtonum(3) to behave as before. Document
the order of the tests and sync the man pages (I should really autogenerate
one of the two man pages...)

generate strtou.3 from strtoi.3, grammar police

Add range tests with trailing characters.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.95 2019/03/04 17:30:33 christos Exp $
a64 6
strtou.3: strtoi.3
	${_MKTARGET_CREATE}
	${TOOL_SED} -e s/strtoi/strtou/g -e s/STRTOI/STRTOU/g \
	    -e s/intmax_t/uintmax_t/g -e s/%jd/%ju/g ${.ALLSRC} > ${.TARGET}
CLEANFILES += strtou.3

@


1.94
log
@add strfmon_l man page links
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.93 2017/07/11 15:21:35 joerg Exp $
d8 1
a8 1
	a64l.c abort.c aligned_alloc.c atexit.c atof.c atoi.c atol.c atoll.c \
d29 7
a35 3
.if (${USE_JEMALLOC} != "no")
SRCS+=	jemalloc.c
.else
d37 1
a37 1
.endif
@


1.94.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.95 2019/03/04 17:30:33 christos Exp $
d8 1
a8 1
	a64l.c abort.c atexit.c atof.c atoi.c atol.c atoll.c \
d29 3
a31 7
.   if (${USE_JEMALLOC} != "no")
.      if ${HAVE_JEMALLOC} > 100
.         include "${NETBSDSRCDIR}/external/bsd/jemalloc/lib/Makefile.inc"
.      else
SRCS+=	jemalloc.c aligned_alloc.c
.      endif 
.   else
d33 1
a33 1
.   endif
@


1.93
log
@Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.

If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.

Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.92 2016/04/01 12:37:48 msaitoh Exp $
d88 1
@


1.92
log
@Add malloc.conf.5 (link to jemalloc.3).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.91 2015/11/07 16:21:42 nros Exp $
d9 1
a9 1
	bsearch.c drand48.c exit.c \
@


1.92.8.1
log
@Pull up following revision(s) (requested by joerg in ticket #127):
	tests/libexec/ld.elf_so/h_thread_local_dtor.c: revision 1.1
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/c++config.h: revision 1.14
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/c++config.h: revision 1.17
	lib/libc/stdlib/atexit.h: file removal
	lib/libc/stdlib/exit.c: revision 1.16
	external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h: revision 1.8
	lib/libc/stdlib/exit.c: revision 1.17
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/c++config.h: revision 1.14
	distrib/sets/lists/debug/shl.mi: revision 1.178
	external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h: revision 1.21
	distrib/sets/lists/debug/shl.mi: revision 1.179
	distrib/sets/lists/debug/mi: revision 1.219
	lib/libpthread/pthread.c: revision 1.150
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/c++config.h: revision 1.14
	libexec/ld.elf_so/symbols.map: revision 1.2
	include/dlfcn.h: revision 1.25
	external/gpl3/gcc/lib/libstdc++-v3/arch/arm/c++config.h: revision 1.21
	external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h: revision 1.23
	external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/c++config.h: revision 1.18
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/c++config.h: revision 1.14
	external/gpl3/gcc/lib/libstdc++-v3/arch/earm/c++config.h: revision 1.19
	external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/c++config.h: revision 1.19
	external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/c++config.h: revision 1.5
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/c++config.h: revision 1.14
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h: revision 1.17
	distrib/sets/lists/tests/mi: revision 1.755
	external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/c++config.h: revision 1.19
	external/gpl3/gcc/lib/libstdc++-v3/arch/i386/c++config.h: revision 1.20
	external/gpl3/gcc/lib/libstdc++-v3/arch/vax/c++config.h: revision 1.21
	external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/c++config.h: revision 1.21
	external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/c++config.h: revision 1.20
	lib/libc/dlfcn/dlfcn_elf.c: revision 1.14
	tests/libexec/ld.elf_so/t_thread_local_dtor.sh: revision 1.1
	tests/lib/libpthread/t_thread_local_dtor.sh: revision 1.1
	lib/libc/stdlib/Makefile.inc: revision 1.93
	lib/libc/include/atexit.h: revision 1.1
	lib/libc/include/atexit.h: revision 1.2
	external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/c++config.h: revision 1.19
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/c++config.h: revision 1.14
	distrib/sets/lists/debug/shl.mi: revision 1.180
	external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/c++config.h: revision 1.19
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/c++config.h: revision 1.14
	external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/c++config.h: revision 1.19
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/c++config.h: revision 1.14
	lib/libc/stdlib/cxa_thread_atexit.c: revision 1.1
	tests/libexec/ld.elf_so/helper_dso3/h_helper_dso3.cpp: revision 1.1
	tests/libexec/ld.elf_so/helper_dso3/Makefile: revision 1.1
	external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h: revision 1.5
	libexec/ld.elf_so/rtld.c: revision 1.185
	external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/c++config.h: revision 1.19
	external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/c++config.h: revision 1.5
	external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/c++config.h: revision 1.15
	external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/c++config.h: revision 1.21
	external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/c++config.h: revision 1.12
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/c++config.h: revision 1.14
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/c++config.h: revision 1.15
	external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/c++config.h: revision 1.19
	tests/libexec/ld.elf_so/Makefile: revision 1.9
	external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h: revision 1.20
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/c++config.h: revision 1.14
	tests/lib/libpthread/h_thread_local_dtor.cpp: revision 1.1
	distrib/sets/lists/tests/shl.mi: revision 1.11
	tests/lib/libpthread/Makefile: revision 1.13
	libexec/ld.elf_so/rtld.h: revision 1.129
	external/gpl3/gcc/lib/libstdc++-v3/arch/or1k/c++config.h: revision 1.6
Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.
If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.
Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
Fix filename of new debug file
Add misising DEBUGLIB file
Avoid common declaration.
Drop TLS variant checks, emutls is enough for VAX and Sun2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.92 2016/04/01 12:37:48 msaitoh Exp $
d9 1
a9 1
	bsearch.c cxa_thread_atexit.c drand48.c exit.c \
@


1.91
log
@Add the C11 function aligned_alloc to libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.90 2015/05/01 14:17:56 christos Exp $
d75 1
@


1.90
log
@- new test for strtoi
- namespace protection for strto{i,u}
- separate manpages for strto{i,u} from the ones for strto{u,}l
From: Kamil Rytarowski
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.89 2015/02/17 20:29:21 joerg Exp $
d8 1
a8 1
	a64l.c abort.c atexit.c atof.c atoi.c atol.c atoll.c \
d77 1
@


1.89
log
@Introduce reallocarr(3) for easy (re)allocation of memory with overflow
checks. Compared to OpenBSD's reallocarray, makes it easier to avoid memory
leaks on allocation failures and it doesn't depend on malloc(0) != NULL
for correct error checking. Compared to plain realloc, it also avoids
the problem of intermediate integer overflows. The trade-off is the use
of void * to side step C type system with regard to generic pointer to
pointer.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.88 2015/02/05 20:02:28 christos Exp $
d56 2
a57 2
	strfmon.3 strsuftoll.3 strtod.3 strtol.3 strtoul.3 strtonum.3 \
	system.3 \
a90 1
MLINKS+=strtol.3 strtoi.3
a93 1
MLINKS+=strtoul.3 strtou.3
@


1.88
log
@Revert addition to reallocarray to the malloc man page, but keep
the examples.  Add separate manual page to reallocarray explaining
what are the problems with it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.87 2015/02/05 16:04:35 christos Exp $
d15 1
a15 1
	reallocarray.c seed48.c setenv.c srand48.c strsuftoll.c \
d55 1
a55 1
	radixsort.3 rand48.3 rand.3 random.3 reallocarray.3 \
@


1.87
log
@Add and use reallocarray() to prevent a multiplication overflow in allocation.
Reported by Guido Vranken, thanks!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.86 2015/01/18 17:59:36 christos Exp $
d55 1
a55 1
	radixsort.3 rand48.3 rand.3 random.3 \
a76 1
MLINKS+=malloc.3 reallocarray.3
@


1.86
log
@man page for strtonum.3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.85 2015/01/16 18:41:33 christos Exp $
d15 1
a15 1
	seed48.c setenv.c srand48.c strsuftoll.c \
d77 1
@


1.85
log
@Add strtonum implemented as a wrapper of strtoi.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.84 2015/01/16 18:37:21 christos Exp $
d56 2
a57 1
	strfmon.3 strsuftoll.3 strtod.3 strtol.3 strtoul.3 system.3 \
@


1.84
log
@strtoi and strtou additions
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.83 2014/12/10 16:55:54 pooka Exp $
d16 1
a16 1
	strtoi.c strtou.c \
@


1.83
log
@Add two more Makefile conditionals required for RUMPRUN=yes

 * do not build _errno.c (different thread/tls handling)
 * do not build either phk- or jemalloc (different backing page allocation)

Somehow I missed these in the previous commit, but now libc built with
RUMPRUN=yes works also with rumprun-posix, so there's reasonably high
confidence that I didn't miss anything anymore.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.82 2014/07/20 13:34:17 christos Exp $
d16 1
d90 1
d94 1
@


1.82
log
@Our hdestroy implementation was non-conformant because it freed the key of
each entry. Add a new function hdestroy1 that allows the user to control
what gets freed. Pointed out by Pedro Giffuni at FreeBSD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.81 2014/01/08 02:15:42 christos Exp $
d27 1
d33 1
@


1.82.2.1
log
@Pull up following revision(s) (requested by roy in ticket #648):
	common/lib/libc/stdlib/_strtoi.h: revisions 1.1, 1.2
	common/lib/libc/stdlib/strtoi.c: revision 1.1
	common/lib/libc/stdlib/strtou.c: revision 1.1
	distrib/sets/lists/base/ad.aarch64: patch
	distrib/sets/lists/base/ad.arm: patch
	distrib/sets/lists/base/ad.mips: patch
	distrib/sets/lists/base/ad.powerpc: patch
	distrib/sets/lists/base/md.amd64: patch
	distrib/sets/lists/base/md.sparc64: patch
	distrib/sets/lists/base/shl.mi: patch
	distrib/sets/lists/comp/mi: revision 1.1939
	distrib/sets/lists/debug/ad.aarch64: patch
	distrib/sets/lists/debug/ad.arm: patch
	distrib/sets/lists/debug/ad.mips: patch
	distrib/sets/lists/debug/ad.powerpc: patch
	distrib/sets/lists/debug/md.amd64: patch
	distrib/sets/lists/debug/md.sparc64: patch
	distrib/sets/lists/debug/shl.mi: patch
	include/inttypes.h: revision 1.11
	lib/libc/shlib_version: patch
	lib/libc/stdlib/Makefile.inc: revision 1.84
	lib/libc/stdlib/strtol.3: revisions 1.27-1.31
	lib/libc/stdlib/strtoul.3: revisions 1.26-1.29
	sys/lib/libkern/Makefile.libkern: revision 1.37
	sys/lib/libkern/libkern.h: revision 1.117
	tools/compat/Makefile: revision 1.73
	tools/compat/compat_defs.h: revision 1.101
	tools/compat/configure.ac: revision 1.83
	tools/compat/configure: revision 1.82
	tools/compat/nbtool_config.h.in: revision 1.36
add strto{i,u} from Kamil Rytarowski as discussed in tech-userlevel.
--
strtoi and strtou additions
--
strtoi and strtou for the kernel
--
strtoi and strtou additions
--
strtoi and strtou man pages
--
strto{i,u}
--
regen
--
Remove trailing whitespace.
--
match variable names with man page (Kamil Rytarowski)
--
cleanups from (Kamil Rytarowski)
--
add strtoi strtou (Kamil Rytarowski)
--
PR/49640: Kamil Rytarowski: Improve error printing
--
Use existing month for Dd.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.82 2014/07/20 13:34:17 christos Exp $
a15 1
	strtoi.c strtou.c \
a86 1
MLINKS+=strtol.3 strtoi.3
a89 1
MLINKS+=strtoul.3 strtou.3
@


1.82.2.2
log
@Pull up following revision(s) (requested by christos in ticket #781):
	common/lib/libc/stdlib/strtoi.c: revision 1.2
	common/lib/libc/stdlib/strtou.c: revision 1.2
	distrib/sets/lists/debug/mi: revision 1.113
	distrib/sets/lists/tests/mi: revision 1.617
	lib/libc/include/namespace.h: revision 1.178
	lib/libc/stdlib/Makefile.inc: revision 1.90 via patch
	lib/libc/stdlib/strtoi.3: revisions 1.1, 1.2
	lib/libc/stdlib/strtol.3: revision 1.32
	lib/libc/stdlib/strtou.3: revisions 1.1, 1.2
	lib/libc/stdlib/strtoul.3: revisions 1.30, 1.31
	tests/lib/libc/stdlib/Makefile: revision 1.25
	tests/lib/libc/stdlib/t_strtoi.c: revision 1.1
- new test for strtoi
- namespace protection for strto{i,u}
- separate manpages for strto{i,u} from the ones for strto{u,}l
From: Kamil Rytarowski
--
Sort ERRORS and SEE ALSO.
--
Sort ERRORS and SEE ALSO.
--
Sort SEE ALSO.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.82.2.1 2015/04/22 07:18:58 snj Exp $
d54 1
a54 1
	strfmon.3 strsuftoll.3 strtod.3 strtoi.3 strtol.3 strtou.3 strtoul.3 system.3 \
d88 1
d92 1
@


1.82.2.2.4.1
log
@Sync with netbsd-5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.82.2.3 2016/12/08 07:43:44 snj Exp $
a71 1
MLINKS+=jemalloc.3 malloc.conf.5
@


1.82.2.3
log
@Pull up following revision(s) (requested by msaitoh in ticket #1288):
	distrib/sets/lists/man/mi: revisions 1.1521, 1.1522
	lib/libc/stdlib/Makefile.inc: revision 1.92
Add malloc.conf.5 (link to jemalloc.3).
--
Add malloc.conf.0 to fix build with MKCATPAGES
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.82.2.2 2015/05/16 17:58:46 snj Exp $
a71 1
MLINKS+=jemalloc.3 malloc.conf.5
@


1.81
log
@add ptsname_r
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.80 2013/12/02 04:39:10 lneto Exp $
d69 1
@


1.81.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.82 2014/07/20 13:34:17 christos Exp $
a68 1
MLINKS+=hcreate.3 hdestroy1.3 hcreate.3 hdestroy1_r.3
@


1.80
log
@changed lua_Number to int64_t
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.79 2013/04/26 18:29:55 christos Exp $
d73 1
@


1.79
log
@add {at_,}quick_exit(3) from FreeBSD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.78 2011/09/14 23:33:51 christos Exp $
a32 1
CPPFLAGS.strtoimax.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
@


1.78
log
@add re-entrant versions of the hash functions based on the GNU api.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.77 2011/04/13 07:12:52 jruoho Exp $
d14 1
a14 1
	radixsort.c rand.c rand_r.c random.c remque.c \
d41 1
d52 1
a52 1
	qabs.3 qdiv.3 qsort.3 \
@


1.78.2.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
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.78 2011/09/14 23:33:51 christos Exp $
d14 1
a14 1
	quick_exit.c radixsort.c rand.c rand_r.c random.c remque.c \
d33 1
a40 1
	at_quick_exit.3 \
d51 1
a51 1
	qabs.3 qdiv.3 quick_exit.3 qsort.3 \
a72 1
MLINKS+=ptsname.3 ptsname_r.3
@


1.78.8.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
d14 1
a14 1
	quick_exit.c radixsort.c rand.c rand_r.c random.c remque.c \
a40 1
	at_quick_exit.3 \
d51 1
a51 1
	qabs.3 qdiv.3 quick_exit.3 qsort.3 \
@


1.78.8.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d33 1
a69 1
MLINKS+=hcreate.3 hdestroy1.3 hcreate.3 hdestroy1_r.3
a73 1
MLINKS+=ptsname.3 ptsname_r.3
@


1.77
log
@Collect also the division functions to single place, div(3).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.76 2011/04/13 06:56:50 jruoho Exp $
d68 1
@


1.76
log
@Collect abs(3), labs(3), llabs(3), and imaxabs(3) to a single small page.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.75 2010/11/14 18:11:43 tron Exp $
d46 1
a46 1
	imaxdiv.3 insque.3 \
d48 1
a48 1
	ldiv.3 lldiv.3 lsearch.3 \
d62 3
@


1.75
log
@Improve and simplify implementation of *env(3) functions:
- Use RB tree to keep track of memory allocated via setenv(3) as
  suggested by Enami Tsugutomo in private e-mail.
  This simplifies the code a lot as we no longer need to keep the size
  of "environ" in sync with an array of allocated environment variables.
  It also makes it possible to free environment variables in unsetenv(3)
  if something has changed the order of the "environ" array.
- Fix a bug in getenv(3) and getenv_r(3) which would return bogus
  results e.g. for " getenv("A=B") " if an environment variable "A"
  with value "B=C" exists.
- Clean up the internal functions:
  - Don't expose the read/write lock for the environment to other parts
    of "libc". Provide locking functions instead.
  - Use "bool" to report success or failure.
  - Use "ssize_t" or "size_t" instead of "int" for indexes.
  - Provide internal functions with simpler interfaces e.g. don't
    combine return values and reference arguments.
  - Don't copy "environ" into an allocated block unless we really need
    to grow it.

Code reviewed by Joerg Sonnenberger and Christos Zoulas, tested by
Joerg Sonnenberger and me. These changes also fix problems in
zsh 4.3.* and pam_ssh according to Joerg.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.74 2010/05/03 05:01:53 jruoho Exp $
d46 1
a46 1
	imaxabs.3 imaxdiv.3 insque.3 \
d48 1
a48 1
	labs.3 ldiv.3 llabs.3 lldiv.3 lsearch.3 \
d59 3
@


1.74
log
@Split the implementation details of malloc(3) to a separate jemalloc(3)
manual page. This way malloc(3) can follow the standard terse format used
elsewhere in the libc, while additional details can be added to jemalloc(3).

Note HISTORY and AUTHORS in jemalloc(3), and add some reading material to
SEE ALSO.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.73 2009/07/31 20:39:59 dsl Exp $
d7 1
a7 1
SRCS+=	_rand48.c \
@


1.73
log
@Add the 'abs', 'div' and 'erand48' sources to stdlib/Makefile.inc.
Change the arch files only include the .S files.
This adds imaxdiv() to some archs where it was missing.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.72 2009/07/20 17:03:37 joerg Exp $
d47 1
@


1.72
log
@Add a fast, platform independent hash function to libc.
The algorithm used is the Jenkins hash.  The name (mi_vector_hash)
reflects the nature of the hash function.
Add glue for libc ATF tests and include a test case to make sure that
(mis)alignment and endianess are handled correctly.

Bump libc minor to 169.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.71 2008/10/26 07:43:07 mrg Exp $
d20 7
a37 4
# machine-dependent stdlib sources
# m-d Makefile.inc must include sources for:
#       abs() div() labs() ldiv() llabs() imaxabs() imaxdiv()

@


1.71
log
@define and use LIBCDIR in terms of .CURDIR.  fixes compat/lib/libc build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.70 2008/08/20 12:42:26 joerg Exp $
d12 1
a12 1
	lcong48.c lrand48.c lsearch.c merge.c mrand48.c \
d45 1
a45 1
	malloc.3 memory.3 \
@


1.71.4.1
log
@file Makefile.inc was added on branch christos-time_t on 2008-10-26 07:43:08 +0000
@
text
@d1 77
@


1.71.4.2
log
@define and use LIBCDIR in terms of .CURDIR.  fixes compat/lib/libc build.
@
text
@a0 77
#	$NetBSD: Makefile.inc,v 1.71 2008/10/26 07:43:07 mrg Exp $
#	from: @@(#)Makefile.inc	8.3 (Berkeley) 2/4/95

# stdlib sources
.PATH: ${ARCHDIR}/stdlib ${.CURDIR}/stdlib

SRCS+=	_rand48.c \
	a64l.c abort.c atexit.c atof.c atoi.c atol.c atoll.c \
	bsearch.c drand48.c exit.c \
	getenv.c getopt.c getopt_long.c getsubopt.c \
	hcreate.c heapsort.c imaxdiv.c insque.c jrand48.c l64a.c lldiv.c \
	lcong48.c lrand48.c lsearch.c merge.c mrand48.c \
	nrand48.c putenv.c qabs.c qdiv.c qsort.c posix_openpt.c pty.c \
	radixsort.c rand.c rand_r.c random.c remque.c \
	seed48.c setenv.c srand48.c strsuftoll.c \
	strtoimax.c strtol.c strtoll.c strtoq.c strtoul.c strtoull.c \
	strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c \
	unsetenv.c strfmon.c

.if (${USE_JEMALLOC} != "no")
SRCS+=	jemalloc.c
.else
SRCS+=	malloc.c
.endif

CPPFLAGS.strtoimax.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtol.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtoq.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtouq.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib

# machine-dependent stdlib sources
# m-d Makefile.inc must include sources for:
#       abs() div() labs() ldiv() llabs() imaxabs() imaxdiv()

.include "${ARCHDIR}/stdlib/Makefile.inc"

MAN+=	a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 atoll.3 \
	bsearch.3 \
	div.3 \
	exit.3 \
	getenv.3 getopt.3 getopt_long.3 getsubopt.3 grantpt.3 \
	hcreate.3 \
	imaxabs.3 imaxdiv.3 insque.3 \
	labs.3 ldiv.3 llabs.3 lldiv.3 lsearch.3 \
	malloc.3 memory.3 \
	posix_memalign.3 posix_openpt.3 ptsname.3 \
	qabs.3 qdiv.3 qsort.3 \
	radixsort.3 rand48.3 rand.3 random.3 \
	strfmon.3 strsuftoll.3 strtod.3 strtol.3 strtoul.3 system.3 \
	tsearch.3 \
	unlockpt.3

MLINKS+=a64l.3 l64a.3
MLINKS+=a64l.3 l64a_r.3
MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3
MLINKS+=getenv.3 getenv_r.3
MLINKS+=hcreate.3 hdestroy.3 hcreate.3 hsearch.3
MLINKS+=insque.3 remque.3
MLINKS+=lsearch.3 lfind.3
MLINKS+=malloc.3 calloc.3 malloc.3 realloc.3 malloc.3 free.3
MLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3
MLINKS+=rand.3 rand_r.3
MLINKS+=rand.3 srand.3
MLINKS+=rand48.3 drand48.3 rand48.3 erand48.3 rand48.3 lrand48.3
MLINKS+=rand48.3 mrand48.3 rand48.3 nrand48.3 rand48.3 jrand48.3
MLINKS+=rand48.3 srand48.3 rand48.3 seed48.3 rand48.3 lcong48.3
MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3
MLINKS+=radixsort.3 sradixsort.3
MLINKS+=strsuftoll.3 strsuftollx.3
MLINKS+=strtod.3 strtof.3 strtod.3 strtold.3
MLINKS+=strtol.3 strtoimax.3
MLINKS+=strtol.3 strtoll.3
MLINKS+=strtol.3 strtoq.3
MLINKS+=strtoul.3 strtoull.3
MLINKS+=strtoul.3 strtoumax.3
MLINKS+=strtoul.3 strtouq.3
MLINKS+=tsearch.3 tfind.3 tsearch.3 twalk.3 tsearch.3 tdelete.3
@


1.70
log
@Unify the implementation of strto{l,ul,ll,ull,imax,umax,q,uq} into one
version for signed and one version for unsigned data types.

Add a check for supported bases and set errno (userland) or panic
(kernel, libsa) otherwise.

Make strto{ll,ull,imax,umax} normal symbols and just keep the underscore
versions as strong alias.

Obtained from DragonFly, based on the wide char version from Citrus.
Reviewed by christos@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.69 2008/08/04 21:29:27 matt Exp $
d26 4
a29 4
CPPFLAGS.strtoimax.c+=	-I${.CURDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtol.c+=	-I${.CURDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtoq.c+=	-I${.CURDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtouq.c+=	-I${.CURDIR}/../../common/lib/libc/stdlib
@


1.69
log
@Add C99 functions imaxabs and imaxdiv.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.68 2007/11/28 21:55:14 christos Exp $
d7 1
a7 1
SRCS+=	_rand48.c _strtoimax.c _strtoumax.c _strtoll.c _strtoull.c \
d26 5
@


1.68
log
@Sync phk malloc.c with the latest one from FreeBSD. This gives us the
same api as jemalloc by:

    - adding posix_memalign()
    - moving calloc in the same file
    - renaming malloc_options -> _malloc_options
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.67 2007/11/19 14:48:42 ad Exp $
d11 1
a11 1
	hcreate.c heapsort.c insque.c jrand48.c l64a.c lldiv.c \
d28 1
a28 1
#       abs() div() labs() ldiv() llabs()
d33 7
a39 2
	bsearch.3 div.3 exit.3 getenv.3 getopt.3 getopt_long.3 getsubopt.3 \
	grantpt.3 hcreate.3 insque.3 labs.3 ldiv.3 llabs.3 lldiv.3 lsearch.3 \
d41 6
a46 4
	posix_memalign.3 posix_openpt.3 ptsname.3 qabs.3 \
	qdiv.3 qsort.3 radixsort.3 rand48.3 rand.3 random.3 \
	strsuftoll.3 strtod.3 strtol.3 strtoul.3 system.3 tsearch.3 unlockpt.3 \
	strfmon.3
@


1.68.8.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.68 2007/11/28 21:55:14 christos Exp $
d7 1
a7 1
SRCS+=	_rand48.c \
d11 1
a11 1
	hcreate.c heapsort.c imaxdiv.c insque.c jrand48.c l64a.c lldiv.c \
a25 5
CPPFLAGS.strtoimax.c+=	-I${.CURDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtol.c+=	-I${.CURDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtoq.c+=	-I${.CURDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtouq.c+=	-I${.CURDIR}/../../common/lib/libc/stdlib

d28 1
a28 1
#       abs() div() labs() ldiv() llabs() imaxabs() imaxdiv()
d33 2
a34 7
	bsearch.3 \
	div.3 \
	exit.3 \
	getenv.3 getopt.3 getopt_long.3 getsubopt.3 grantpt.3 \
	hcreate.3 \
	imaxabs.3 imaxdiv.3 insque.3 \
	labs.3 ldiv.3 llabs.3 lldiv.3 lsearch.3 \
d36 4
a39 6
	posix_memalign.3 posix_openpt.3 ptsname.3 \
	qabs.3 qdiv.3 qsort.3 \
	radixsort.3 rand48.3 rand.3 random.3 \
	strfmon.3 strsuftoll.3 strtod.3 strtol.3 strtoul.3 system.3 \
	tsearch.3 \
	unlockpt.3
@


1.67
log
@Enable posix_memalign().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.66 2007/10/06 01:09:07 ad Exp $
d23 1
a23 1
SRCS+=	malloc.c calloc.c
@


1.66
log
@Use jemalloc as the default allocator unless USE_JEMALLOC=no.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.65 2006/03/22 22:03:58 drochner Exp $
d36 1
a36 1
	posix_openpt.3 ptsname.3 qabs.3 \
@


1.65
log
@build erand48_ieee754.c on everything but vax
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.64 2006/03/15 17:35:18 kleink Exp $
d9 1
a9 1
	bsearch.c calloc.c drand48.c exit.c \
d11 2
a12 3
	hcreate.c heapsort.c insque.c jrand48.c \
	l64a.c lldiv.c lcong48.c lrand48.c lsearch.c \
	malloc.c merge.c mrand48.c \
d20 6
@


1.65.10.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.66 2007/10/06 01:09:07 ad Exp $
d9 1
a9 1
	bsearch.c drand48.c exit.c \
d11 3
a13 2
	hcreate.c heapsort.c insque.c jrand48.c l64a.c lldiv.c \
	lcong48.c lrand48.c lsearch.c merge.c mrand48.c \
a20 6
.if (${USE_JEMALLOC} != "no")
SRCS+=	jemalloc.c
.else
SRCS+=	malloc.c calloc.c
.endif

@


1.65.10.2
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d23 1
a23 1
SRCS+=	malloc.c
d36 1
a36 1
	posix_memalign.3 posix_openpt.3 ptsname.3 qabs.3 \
@


1.64
log
@Add strtof(3) and strtold(3); welcome libc 12.137.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.63 2006/01/25 15:43:01 kleink Exp $
d9 1
a9 1
	bsearch.c calloc.c drand48.c erand48.c exit.c \
@


1.63
log
@Drop in gdtoa as a replacement for dtoa, strtod() from stdlib/strtod.c.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.62 2006/01/20 22:02:07 christos Exp $
d53 1
@


1.62
log
@Kill _Exit; breaks build on cygwin and this implementation "is not exactly
equivalent to calling _exit".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.61 2005/09/25 20:08:01 christos Exp $
d16 1
a16 1
	seed48.c setenv.c srand48.c strsuftoll.c strtod.c \
@


1.61
log
@add getenv_r and ttyname_r
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.60 2005/09/13 01:44:10 christos Exp $
d9 1
a9 1
	bsearch.c calloc.c drand48.c erand48.c exit.c _Exit.c \
@


1.60
log
@compat core reorg.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.59 2005/07/06 14:43:24 drochner Exp $
d39 1
@


1.59
log
@Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.58 2005/04/03 20:09:29 christos Exp $
d19 1
a19 2
	__unsetenv13.c unsetenv.c \
	strfmon.c
@


1.58
log
@Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage
of the getpwent_r bump.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.57 2004/08/05 00:17:02 yamt Exp $
d11 3
a13 2
	hcreate.c heapsort.c jrand48.c \
	l64a.c lldiv.c lcong48.c lrand48.c malloc.c merge.c mrand48.c \
d15 2
a16 2
	radixsort.c rand.c rand_r.c random.c seed48.c setenv.c srand48.c \
	strsuftoll.c strtod.c \
d30 2
a31 1
	grantpt.3 hcreate.3 labs.3 ldiv.3 llabs.3 lldiv.3 malloc.3 memory.3 \
d41 2
@


1.57
log
@actually add _Exit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.56 2004/05/27 02:58:48 christos Exp $
d18 2
a19 1
	__unsetenv13.c unsetenv.c
d32 2
a33 1
	strsuftoll.3 strtod.3 strtol.3 strtoul.3 system.3 tsearch.3 unlockpt.3
@


1.57.2.1
log
@Pull up revision 1.59 (requested by drochner in ticket #632):
Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
@
text
@d1 1
a1 1
#	$NetBSD$
d11 2
a12 3
	hcreate.c heapsort.c insque.c jrand48.c \
	l64a.c lldiv.c lcong48.c lrand48.c lsearch.c \
	malloc.c merge.c mrand48.c \
d14 2
a15 2
	radixsort.c rand.c rand_r.c random.c remque.c \
	seed48.c setenv.c srand48.c strsuftoll.c strtod.c \
d28 1
a28 2
	grantpt.3 hcreate.3 insque.3 labs.3 ldiv.3 llabs.3 lldiv.3 lsearch.3 \
	malloc.3 memory.3 \
a36 2
MLINKS+=insque.3 remque.3
MLINKS+=lsearch.3 lfind.3
@


1.56
log
@unix/98 pty functions and manual pages.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.55 2003/04/07 17:18:20 kleink Exp $
d9 1
a9 1
	bsearch.c calloc.c drand48.c erand48.c exit.c \
@


1.55
log
@Observed in other places: move __unsetenv13.c near unsetenv.c, only
group name space wrappers separately.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.54 2003/04/07 16:22:43 drochner Exp $
d13 2
a14 2
	nrand48.c putenv.c qabs.c qdiv.c qsort.c radixsort.c \
	rand.c rand_r.c random.c seed48.c setenv.c srand48.c \
d28 2
a29 1
	hcreate.3 labs.3 ldiv.3 llabs.3 lldiv.3 malloc.3 memory.3 qabs.3 \
d31 1
a31 1
	strsuftoll.3 strtod.3 strtol.3 strtoul.3 system.3 tsearch.3
@


1.55.2.1
log
@Pullup rev 1.57 (requested by yamt in ticket #750)

Actually add _Exit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.55 2003/04/07 17:18:20 kleink Exp $
d9 1
a9 1
	bsearch.c calloc.c drand48.c erand48.c exit.c _Exit.c \
@


1.54
log
@compile unsetenv(3) into libc or you'll mess up your system
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.53 2002/11/29 12:58:17 lukem Exp $
a7 1
	__unsetenv13.c \
d18 1
a18 1
	unsetenv.c
@


1.53
log
@add strsuftoll(3) and strsuftollx(3) - parse a string for a number
with an optional suffix, product (two numbers separated by `x'), and
provide range checking
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.52 2001/04/28 15:41:30 kleink Exp $
d8 1
d18 2
a19 1
	strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c
@


1.52
log
@* Move definitions of exact-width integer types from <machine/types.h>
  to <sys/types.h> and <sys/stdint.h>.
* Add a new C99 <stdint.h> header, which provides integer types of
  explicit width, related limits and integer constant macros.
* Extend <inttypes.h> to provide <stdint.h> definitions and format
  macros for printf() and scanf().
* Add C99 strtoimax() and strtoumax() functions.
* Use the latter within scanf().
* Add C99 %j, %t and %z printf()/scanf() conversions for
  intmax_t, pointer-type and size_t arguments.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.51 2001/02/16 12:25:09 msaitoh Exp $
d14 2
a15 1
	rand.c rand_r.c random.c seed48.c setenv.c srand48.c strtod.c \
d28 2
a29 2
	qdiv.3 qsort.3 radixsort.3 rand48.3 rand.3 random.3 strtod.3 \
	strtol.3 strtoul.3 system.3 tsearch.3
d44 1
@


1.51
log
@add hcreate.3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.50 2001/02/14 05:44:29 cgd Exp $
d7 1
a7 1
SRCS+=	_rand48.c _strtoll.c _strtoull.c \
d15 2
a16 2
	strtol.c strtoll.c strtoq.c strtoul.c strtoull.c strtouq.c system.c \
	tdelete.c tfind.c tsearch.c twalk.c
d43 1
d47 1
@


1.51.2.1
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.51 2001/02/16 12:25:09 msaitoh Exp $
d7 1
a7 1
SRCS+=	_rand48.c _strtoimax.c _strtoumax.c _strtoll.c _strtoull.c \
d15 2
a16 2
	strtoimax.c strtol.c strtoll.c strtoq.c strtoul.c strtoull.c \
	strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c
a42 1
MLINKS+=strtol.3 strtoimax.3
a45 1
MLINKS+=strtoul.3 strtoumax.3
@


1.51.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.51.2.1 2001/10/08 20:21:00 nathanw Exp $
d14 1
a14 2
	rand.c rand_r.c random.c seed48.c setenv.c srand48.c \
	strsuftoll.c strtod.c \
d27 2
a28 2
	qdiv.3 qsort.3 radixsort.3 rand48.3 rand.3 random.3 \
	strsuftoll.3 strtod.3 strtol.3 strtoul.3 system.3 tsearch.3
a42 1
MLINKS+=strsuftoll.3 strsuftollx.3
@


1.50
log
@build new hsearch() code
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.49 2001/01/08 14:06:09 lukem Exp $
d26 2
a27 2
	labs.3 ldiv.3 llabs.3 lldiv.3 malloc.3 memory.3 qabs.3 qdiv.3 qsort.3 \
	radixsort.3 rand48.3 rand.3 random.3 strtod.3 \
@


1.49
log
@link sradixsort(3) -> radixsort(3)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.48 2000/12/21 11:29:48 itojun Exp $
d10 2
a11 1
	getenv.c getopt.c getopt_long.c getsubopt.c heapsort.c jrand48.c \
d33 1
@


1.48
log
@first import of citrus LC_CTYPE locale.  singlebyte only at this moment.
shot-term TODO:
- enable multibyte locales.  this includes loadable locale modules
  (#ifdef DLRUNE).
- populate LC_CTYPE definition files.
- other functions such as iconv()
- make libc functions more friendly with multibyte.
- multilingualize other LC_xx
- torture tests

XXX don't forget to "make depend" when you rebuild libc, multibyte.c is
moved from lib/libc/stdlib to lib/libc/locale.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.47 2000/04/02 20:27:58 christos Exp $
d40 1
@


1.47
log
@New getopt_long from Thomas Klausner and Dieter Baron
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.46 2000/03/08 20:17:20 kleink Exp $
d12 1
a12 1
	multibyte.c nrand48.c putenv.c qabs.c qdiv.c qsort.c radixsort.c \
@


1.47.4.1
log
@Pull up revisions 1.50-1.51 (requested by cgs):
  Replace hcreate() / hsearch() / hdestroy() implementation with
  one that actually works as it's supposed to.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.47 2000/04/02 20:27:58 christos Exp $
d10 1
a10 2
	getenv.c getopt.c getopt_long.c getsubopt.c \
	hcreate.c heapsort.c jrand48.c \
d25 2
a26 2
	hcreate.3 labs.3 ldiv.3 llabs.3 lldiv.3 malloc.3 memory.3 qabs.3 \
	qdiv.3 qsort.3 radixsort.3 rand48.3 rand.3 random.3 strtod.3 \
a31 1
MLINKS+=hcreate.3 hdestroy.3 hcreate.3 hsearch.3
@


1.47.2.1
log
@Citrus Project XPG4DL, an implementation of I18N (locale) framework,
is imported.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.47 2000/04/02 20:27:58 christos Exp $
d12 1
a12 1
	nrand48.c putenv.c qabs.c qdiv.c qsort.c radixsort.c \
@


1.46
log
@No longer need internal names for strtoq() and strtouq().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.45 2000/03/06 18:32:28 kleink Exp $
d10 4
a13 4
	getenv.c getopt.c getsubopt.c heapsort.c jrand48.c l64a.c \
	lldiv.c lcong48.c lrand48.c malloc.c merge.c mrand48.c multibyte.c \
	nrand48.c putenv.c qabs.c qdiv.c qsort.c radixsort.c rand.c \
	rand_r.c random.c seed48.c setenv.c srand48.c strtod.c \
d24 1
a24 1
	bsearch.3 div.3 exit.3 getenv.3 getopt.3 getsubopt.3 \
@


1.45
log
@Add ISO C99 long long integer general utility interfaces; partially addresses
PR standards/9482.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.44 1999/08/02 03:18:46 lukem Exp $
d7 1
a7 1
SRCS+=	_rand48.c _strtoll.c _strtoq.c _strtoull.c _strtouq.c \
@


1.44
log
@replace malloc(3) with one from freebsd which documents our new malloc.c
(also from freebsd). comment out references to reallocf with .\"XXX"
for now. i also fixed some roff misuse as well.
replace calloc(3), free(3) and realloc(3) with links to malloc(3)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.43 1999/06/26 04:44:36 tls Exp $
d7 3
a9 2
SRCS+=	_rand48.c _strtoq.c _strtouq.c a64l.c abort.c atexit.c atof.c \
	atoi.c atol.c bsearch.c calloc.c drand48.c erand48.c exit.c \
d11 1
a11 1
	lcong48.c lrand48.c malloc.c merge.c mrand48.c multibyte.c \
d14 1
a14 1
	strtol.c strtoq.c strtoq.c strtoul.c strtouq.c system.c \
d19 1
a19 1
#       abs() div() labs() ldiv()
d23 3
a25 3
MAN+=	a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 bsearch.3 \
	div.3 exit.3 getenv.3 getopt.3 getsubopt.3 \
	labs.3 ldiv.3 malloc.3 memory.3 qabs.3 qdiv.3 qsort.3 \
d40 1
d42 1
@


1.43
log
@The 'new malloc' (phk's malloc, from FreeBSD) is now our only malloc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.42 1999/06/17 19:33:36 tls Exp $
d23 1
a23 1
	calloc.3 div.3 exit.3 free.3 getenv.3 getopt.3 getsubopt.3 \
d25 1
a25 1
	radixsort.3 rand48.3 rand.3 random.3 realloc.3 strtod.3 \
d31 1
@


1.42
log
@add FreeBSD's malloc, compiled in only if MALLOC_NEW is set in mk.conf
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.41 1999/02/24 15:05:21 drochner Exp $
d10 1
a10 1
	lcong48.c lrand48.c merge.c mrand48.c multibyte.c \
a14 7

.if defined (MALLOC_NEW)
SRCS+=  malloc-new.c
.else
SRCS+=	malloc.c
.endif

@


1.41
log
@use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.40 1999/02/22 10:33:15 christos Exp $
d10 1
a10 1
	lcong48.c lrand48.c malloc.c merge.c mrand48.c multibyte.c \
d15 7
@


1.40
log
@t{search,find,walk,delete} from OpenBSD via Neil A. Carson
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.39 1999/02/06 15:04:05 kleink Exp $
d5 1
a5 1
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/stdlib ${.CURDIR}/stdlib
d20 1
a20 1
.include "${.CURDIR}/arch/${MACHINE_ARCH}/stdlib/Makefile.inc"
@


1.39
log
@Add l64a_r(), a reentrant version of l64a(); found in the Multithreading
Extension of SVID4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.38 1998/06/14 17:49:21 kleink Exp $
d13 2
a14 1
	strtol.c strtoq.c strtoq.c strtoul.c strtouq.c system.c
d26 1
a26 1
	strtol.3 strtoul.3 system.3
d40 1
@


1.38
log
@Add a manual page for a64l() and l64a().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.37 1998/02/02 23:20:35 perry Exp $
d28 1
@


1.37
log
@realpath is now part of getcwd.c in gen/; man page moved to gen, too.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.36 1998/02/01 14:03:47 frueauf Exp $
d21 1
a21 1
MAN+=	abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 bsearch.3 \
d27 1
@


1.36
log
@Add _strtoq.c back to SRCS+= which seemed to get lost while reordering it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.35 1998/01/30 23:37:40 perry Exp $
d7 6
a12 7
# add getsubopt.c later
SRCS+=	_rand48.c _strtoq.c _strtouq.c a64l.c abort.c atexit.c atof.c atoi.c \
	atol.c bsearch.c calloc.c drand48.c erand48.c exit.c getenv.c \
	getopt.c heapsort.c jrand48.c l64a.c lcong48.c \
	lrand48.c malloc.c merge.c mrand48.c multibyte.c nrand48.c \
	putenv.c qabs.c qdiv.c qsort.c radixsort.c rand.c rand_r.c \
	random.c realpath.c seed48.c setenv.c srand48.c strtod.c \
a20 1
# add getsubopt.3 later
d22 1
a22 1
	calloc.3 div.3 exit.3 free.3 getenv.3 getopt.3 \
d24 2
a25 2
	radixsort.3 rand48.3 rand.3 random.3 realloc.3 realpath.3 \
	strtod.3 strtol.3 strtoul.3 system.3
@


1.35
log
@update to lite-2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.34 1997/11/05 23:00:30 cgd Exp $
d8 1
a8 1
SRCS+=	_rand48.c _strtouq.c a64l.c abort.c atexit.c atof.c atoi.c \
@


1.34
log
@A foolish consistency...  gen, net, and string all get MD sources
specified by including a Makefile.inc from the appropriate MD directory.
stdlib doesn't do that, but there's no reason that it shouldn't (and
it'd be nice to eliminate the 'if's from the MI stdlib Makefile.inc).
@
text
@d1 2
a2 2
#	$NetBSD: Makefile.inc,v 1.33 1997/07/15 00:42:29 kleink Exp $
#	from: @@(#)Makefile.inc	5.6 (Berkeley) 6/4/91
d7 8
a14 8
SRCS+=	_strtoq.c _strtouq.c a64l.c abort.c atexit.c atoi.c atof.c atol.c \
	bsearch.c calloc.c \
	exit.c getenv.c getopt.c heapsort.c l64a.c malloc.c merge.c \
	multibyte.c putenv.c qsort.c radixsort.c rand.c rand_r.c random.c \
	realpath.c \
	setenv.c strtod.c strtol.c strtoq.c strtoul.c strtouq.c \
	system.c _rand48.c drand48.c erand48.c jrand48.c lcong48.c lrand48.c \
	mrand48.c nrand48.c seed48.c srand48.c qabs.c qdiv.c
d22 1
d24 4
a27 4
	calloc.3 div.3 exit.3 free.3 getenv.3 getopt.3 labs.3 ldiv.3 \
	malloc.3 memory.3 qabs.3 qdiv.3 qsort.3 radixsort.3 rand48.3 \
	rand.3 random.3 realloc.3 realpath.3 strtod.3 strtol.3 strtoul.3 \
	system.3
a30 1
MLINKS+=strtol.3 strtoq.3
a32 2
MLINKS+=strtoul.3 strtouq.3
MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3
d36 3
@


1.33
log
@Link rand_r(3) to rand(3).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32 1997/07/13 20:16:31 christos Exp $
d16 5
a20 14
.if   (${MACHINE_ARCH} == "m68k")
SRCS+=	abs.S div.c labs.c ldiv.c
.elif (${MACHINE_ARCH} == "i386")
SRCS+=	abs.S div.S labs.S ldiv.S
.elif (${MACHINE_ARCH} == "ns32k")
SRCS+=	abs.S div.c labs.c ldiv.c
.elif (${MACHINE_ARCH} == "vax")
SRCS+=	abs.c div.c labs.c ldiv.c
.elif (${MACHINE_ARCH} == "alpha")
# XXX should be .S's
SRCS+=	abs.c div.c labs.c ldiv.c
.else
SRCS+=	abs.c div.c labs.c ldiv.c
.endif
@


1.33.2.1
log
@pull up changes from the trunk (approved by perry) from cgd:
>lint stubs for assembly routines.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.34 1997/11/05 23:00:30 cgd Exp $
d16 14
a29 5
# machine-dependent stdlib sources
# m-d Makefile.inc must include sources for:
#       abs() div() labs() ldiv()

.include "${.CURDIR}/arch/${MACHINE_ARCH}/stdlib/Makefile.inc"
@


1.32
log
@Add local.h for local prototypes.
Fix namespace issues for strtoq and strtouq
Fix gcc warnings.
Fix RCSID's
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.31 1997/04/23 01:17:59 mrg Exp $
d39 2
a41 1
MLINKS+=strtol.3 strtoq.3
@


1.31
log
@move str[fp]time into libc/time.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.30 1997/04/21 12:36:27 mrg Exp $
d7 2
a8 1
SRCS+=	a64l.c abort.c atexit.c atoi.c atof.c atol.c bsearch.c calloc.c \
@


1.30
log
@add strptime() to libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.29 1996/11/19 02:56:35 jtc Exp $
d11 1
a11 1
	setenv.c strptime.c strtod.c strtol.c strtoq.c strtoul.c strtouq.c \
@


1.29
log
@Added rand_r()
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.28 1996/10/16 17:56:37 perry Exp $
d11 2
a12 2
	setenv.c strtod.c strtol.c strtoq.c strtoul.c strtouq.c system.c \
	_rand48.c drand48.c erand48.c jrand48.c lcong48.c lrand48.c \
@


1.28
log
@Nuked machine specific conditionals for tahoe.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.27 1995/12/28 08:51:55 thorpej Exp $
d9 2
a10 1
	multibyte.c putenv.c qsort.c radixsort.c rand.c random.c realpath.c \
@


1.27
log
@New-style RCS ids.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26 1995/04/25 15:36:39 ragge Exp $
a18 2
SRCS+=	abs.S div.c labs.c ldiv.c
.elif (${MACHINE_ARCH} == "tahoe")
@


1.26
log
@Changed abs.S to abs.c for vax.
@
text
@d1 1
a2 1
#	$Id: Makefile.inc,v 1.25 1995/03/22 00:36:52 jtc Exp $
@


1.25
log
@Enable qabs(), a quad_t version of abs() and labs().
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.24 1995/03/21 23:12:35 jtc Exp $
d23 1
a23 1
SRCS+=	abs.S div.c labs.c ldiv.c
@


1.24
log
@New function qdiv.  Like div and ldiv, but works with quad_t's.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.23 1995/02/10 17:46:54 cgd Exp $
d12 1
a12 1
	mrand48.c nrand48.c seed48.c srand48.c qdiv.c
d33 3
a35 2
	malloc.3 memory.3 qdiv.3 qsort.3 radixsort.3 rand48.3 rand.3 \
	random.3 realloc.3 realpath.3 strtod.3 strtol.3 strtoul.3 system.3
@


1.23
log
@list the files needed on the alpha.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.22 1994/12/22 10:14:56 cgd Exp $
d12 1
a12 1
	mrand48.c nrand48.c seed48.c srand48.c
d33 2
a34 2
	malloc.3 memory.3 qsort.3 radixsort.3 rand48.3 rand.3 random.3 \
	realloc.3 realpath.3 strtod.3 strtol.3 strtoul.3 system.3
@


1.22
log
@specify man pages the new way.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.21 1994/06/16 05:27:17 mycroft Exp $
d24 3
@


1.21
log
@Add merge.c and mergesort.3.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.20 1994/05/20 06:19:47 jtc Exp $
d28 4
a31 4
MAN3+=	abort.0 abs.0 alloca.0 atexit.0 atof.0 atoi.0 atol.0 bsearch.0 \
	calloc.0 div.0 exit.0 free.0 getenv.0 getopt.0 labs.0 ldiv.0 \
	malloc.0 memory.0 qsort.0 radixsort.0 rand48.0 rand.0 random.0 \
	realloc.0 realpath.0 strtod.0 strtol.0 strtoul.0 system.0
@


1.20
log
@44lite moved cfree() to libcompat
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.19 1994/05/17 12:44:06 mycroft Exp $
d8 1
a8 1
	exit.c getenv.c getopt.c heapsort.c l64a.c malloc.c \
d34 1
a34 1
MLINKS+=qsort.3 heapsort.3
@


1.19
log
@Add realpath(3).
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.18 1994/03/17 01:58:55 jtc Exp $
d8 1
a8 1
	cfree.c exit.c getenv.c getopt.c heapsort.c l64a.c malloc.c \
@


1.18
log
@Remove machine-dependent atof() implementations; use machine independant
version that wraps strtod() instead.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.17 1994/01/03 22:58:35 jtc Exp $
d9 2
a10 2
	multibyte.c putenv.c qsort.c radixsort.c rand.c random.c setenv.c \
	strtod.c strtol.c strtoq.c strtoul.c strtouq.c system.c \
d31 1
a31 1
	realloc.0 strtod.0 strtol.0 strtoul.0 system.0
@


1.17
log
@Integrate strtoq() and strtouq() from bsd-sources on uunet.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.16 1993/12/05 15:46:05 briggs Exp $
d7 4
a10 4
SRCS+=	a64l.c abort.c atexit.c atoi.c atol.c bsearch.c calloc.c cfree.c \
	exit.c getenv.c getopt.c heapsort.c l64a.c malloc.c multibyte.c \
	putenv.c qsort.c radixsort.c rand.c random.c setenv.c strtod.c \
	strtol.c strtoq.c strtoul.c strtouq.c system.c \
d15 1
a15 1
SRCS+=	abs.S div.c labs.c ldiv.c atof.c
d17 1
a17 1
SRCS+=	abs.S div.S labs.S ldiv.S atof.c
d19 1
a19 1
SRCS+=	abs.S div.c labs.c ldiv.c atof.c
d21 1
a21 1
SRCS+=	abs.S div.c labs.c ldiv.c atof.S
d23 1
a23 1
SRCS+=	abs.S div.c labs.c ldiv.c atof.S
d25 1
a25 1
SRCS+=	abs.c div.c labs.c ldiv.c atof.c
@


1.16
log
@Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k"
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.15 1993/12/05 02:21:20 cgd Exp $
d10 1
a10 1
	strtol.c strtoul.c system.c \
d36 2
@


1.15
log
@get pc532 moved into ns32k; that's is MACHINE_ARCH
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.14 1993/12/04 02:38:30 cgd Exp $
d14 1
a14 1
.if   (${MACHINE_ARCH} == "hp300")
@


1.14
log
@update for .S and MACHINE_ARCH
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.13 1993/10/22 17:26:43 jtc Exp $
d18 1
a18 1
.elif (${MACHINE_ARCH} == "pc532")
@


1.13
log
@Added 1170's a64l() & l64a() functions.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.12 1993/10/19 00:36:34 cgd Exp $
d5 1
a5 1
.PATH: ${.CURDIR}/arch/${MACHINE}/stdlib ${.CURDIR}/stdlib
d14 10
a23 10
.if   (${MACHINE} == "hp300")
SRCS+=	abs.s div.c labs.c ldiv.c atof.c
.elif (${MACHINE} == "i386")
SRCS+=	abs.s div.s labs.s ldiv.s atof.c
.elif (${MACHINE} == "pc532")
SRCS+=	abs.s div.c labs.c ldiv.c atof.c
.elif (${MACHINE} == "tahoe")
SRCS+=	abs.s div.c labs.c ldiv.c atof.s
.elif (${MACHINE} == "vax")
SRCS+=	abs.s div.c labs.c ldiv.c atof.s
@


1.12
log
@fixes from Thomas Eberhardt <thomas@@mathematik.uni-Bremen.de> to:
	(1) don't clobber the MLINKS variable in rpc
	(2) install the rand48 man page in stdlib
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.11 1993/10/13 21:44:23 jtc Exp $
d7 2
a8 2
SRCS+=	abort.c atexit.c atoi.c atol.c bsearch.c calloc.c cfree.c exit.c \
	getenv.c getopt.c heapsort.c malloc.c multibyte.c \
@


1.11
log
@Split cfree() out of calloc.c.
If a user compiling in a strict ANSI or strict POSIX environment uses his
own function named cfree (which is legal, since cfree is not in a restricted
namespace) and calloc, the link will fail due to the cfree in calloc.c.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.10 1993/10/09 00:08:02 jtc Exp $
d30 2
a31 2
	malloc.0 memory.0 qsort.0 radixsort.0 rand.0 random.0 realloc.0 \
	strtod.0 strtol.0 strtoul.0 system.0
@


1.10
log
@Added rand48 manual page.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.9 1993/10/09 00:03:32 jtc Exp $
d7 1
a7 1
SRCS+=	abort.c atexit.c atoi.c atol.c bsearch.c calloc.c exit.c \
@


1.9
log
@Make it possible to use machine dependant versions of div and ldiv functions.
Use the new i386 versions of div and ldiv.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.8 1993/10/08 00:08:12 jtc Exp $
d37 3
@


1.8
log
@Use machine dependant version of labs.[cs] if one is present.
If not one of the enumerated list of machines, use the C language
versions of abs, labs, and atof.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.7 1993/10/07 19:53:35 brezak Exp $
d7 2
a8 2
SRCS+=	abort.c atexit.c atoi.c atol.c bsearch.c calloc.c div.c exit.c \
	getenv.c getopt.c heapsort.c ldiv.c malloc.c multibyte.c \
d15 1
a15 1
SRCS+=	abs.s labs.c atof.c
d17 1
a17 1
SRCS+=	abs.s labs.s atof.c
d19 1
a19 1
SRCS+=	abs.s labs.c atof.c
d21 1
a21 1
SRCS+=	abs.s labs.c atof.s
d23 1
a23 1
SRCS+=	abs.s labs.c atof.s
d25 1
a25 1
SRCS+=	abs.c labs.c atof.c
@


1.7
log
@Rand48 routines from  martin@@ntkupc1.tuwien.ac.at (Martin Birgmeier)
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.6 1993/10/07 00:23:55 cgd Exp $
d7 2
a8 2
SRCS+=	abort.c atexit.c atoi.c atof.c atol.c bsearch.c calloc.c div.c exit.c \
	getenv.c getopt.c heapsort.c labs.c ldiv.c malloc.c multibyte.c \
d15 1
a15 1
SRCS+=	abs.s atof.c
d17 1
a17 1
SRCS+=	abs.s
d19 1
a19 1
SRCS+=	abs.s atof.c
d21 1
a21 1
SRCS+=	abs.s atof.s
d23 3
a25 1
SRCS+=	abs.s atof.s
@


1.6
log
@make an arch directory in libc, and move all machine dirs into it
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.5 1993/09/17 19:23:38 phil Exp $
d10 3
a12 1
	strtol.c strtoul.c system.c
@


1.5
log
@pc532 specifics.
@
text
@d2 1
a2 1
#	$Id: Makefile.inc,v 1.4 1993/08/01 05:40:41 mycroft Exp $
d5 1
a5 1
.PATH: ${.CURDIR}/${MACHINE}/stdlib ${.CURDIR}/stdlib
@


1.4
log
@Add RCS identifiers.
@
text
@d2 1
a2 1
#	$Id: $
d16 2
@


1.3
log
@don't include an extra atof.c...
@
text
@d1 2
a2 1
#	@@(#)Makefile.inc	5.6 (Berkeley) 6/4/91
@


1.2
log
@update for better FP routines, from AT&T & elsewhere
@
text
@d14 1
a14 1
SRCS+=	abs.s atof.c
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
SRCS+=	abort.c atexit.c atoi.c atol.c bsearch.c calloc.c div.c exit.c \
d8 2
a9 2
	putenv.c qsort.c radixsort.c rand.c random.c setenv.c strtol.c \
	strtoul.c system.c
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@


1.1.1.2
log
@import lite-2
@
text
@d1 1
a1 1
#	@@(#)Makefile.inc	8.3 (Berkeley) 2/4/95
d3 1
a3 1
# machine-independent stdlib sources
d6 4
a9 5
SRCS+=	abort.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c \
	exit.c getenv.c getopt.c getsubopt.c heapsort.c labs.c ldiv.c \
	malloc.c merge.c putenv.c qsort.c radixsort.c rand.c random.c \
	setenv.c strtod.c strtol.c strtoq.c strtoul.c \
	strtouq.c system.c
d11 9
a19 2
# machine-dependent stdlib sources
.include "${.CURDIR}/${MACHINE}/stdlib/Makefile.inc"
d22 3
a24 3
	calloc.0 div.0 exit.0 free.0 getenv.0 getopt.0 getsubopt.0 labs.0 \
	ldiv.0 malloc.0 memory.0 qsort.0 radixsort.0 rand.0 random.0 \
	realloc.0 strtol.0 strtoul.0 system.0
d27 1
a27 1
MLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3
a29 2
MLINKS+=strtol.3 strtoq.3
MLINKS+=strtoul.3 strtouq.3
@
