head	1.84;
access;
symbols
	RELENG_8_4:1.84.0.2
	RELENG_9_1_0_RELEASE:1.79.2.2.2.2
	RELENG_9_1:1.79.2.2.0.2
	RELENG_9_1_BP:1.79.2.2
	RELENG_8_3_0_RELEASE:1.75.2.1.8.1
	RELENG_8_3:1.75.2.1.0.8
	RELENG_8_3_BP:1.75.2.1
	RELENG_9_0_0_RELEASE:1.79.2.1.2.1
	RELENG_9_0:1.79.2.1.0.2
	RELENG_9_0_BP:1.79.2.1
	RELENG_9:1.79.0.2
	RELENG_9_BP:1.79
	RELENG_7_4_0_RELEASE:1.66.2.5.4.1
	RELENG_8_2_0_RELEASE:1.75.2.1.6.1
	RELENG_7_4:1.66.2.5.0.4
	RELENG_7_4_BP:1.66.2.5
	RELENG_8_2:1.75.2.1.0.6
	RELENG_8_2_BP:1.75.2.1
	RELENG_8_1_0_RELEASE:1.75.2.1.4.1
	RELENG_8_1:1.75.2.1.0.4
	RELENG_8_1_BP:1.75.2.1
	RELENG_7_3_0_RELEASE:1.66.2.5.2.1
	RELENG_7_3:1.66.2.5.0.2
	RELENG_7_3_BP:1.66.2.5
	RELENG_8_0_0_RELEASE:1.75.2.1.2.1
	RELENG_8_0:1.75.2.1.0.2
	RELENG_8_0_BP:1.75.2.1
	RELENG_8:1.75.0.2
	RELENG_8_BP:1.75
	RELENG_7_2_0_RELEASE:1.66.2.2.2.1
	RELENG_7_2:1.66.2.2.0.2
	RELENG_7_2_BP:1.66.2.2
	RELENG_7_1_0_RELEASE:1.66.2.1.2.2
	RELENG_6_4_0_RELEASE:1.56.8.7.4.1
	RELENG_7_1:1.66.2.1.0.2
	RELENG_7_1_BP:1.66.2.1
	RELENG_6_4:1.56.8.7.0.4
	RELENG_6_4_BP:1.56.8.7
	RELENG_7_0_0_RELEASE:1.66
	RELENG_6_3_0_RELEASE:1.56.8.7
	RELENG_7_0:1.66.0.4
	RELENG_7_0_BP:1.66
	RELENG_6_3:1.56.8.7.0.2
	RELENG_6_3_BP:1.56.8.7
	RELENG_7:1.66.0.2
	RELENG_7_BP:1.66
	RELENG_6_2_0_RELEASE:1.56.8.2
	RELENG_6_2:1.56.8.2.0.4
	RELENG_6_2_BP:1.56.8.2
	RELENG_5_5_0_RELEASE:1.56
	RELENG_5_5:1.56.0.10
	RELENG_5_5_BP:1.56
	RELENG_6_1_0_RELEASE:1.56.8.2
	RELENG_6_1:1.56.8.2.0.2
	RELENG_6_1_BP:1.56.8.2
	RELENG_6_0_0_RELEASE:1.56.8.1
	RELENG_6_0:1.56.8.1.0.2
	RELENG_6_0_BP:1.56.8.1
	RELENG_6:1.56.0.8
	RELENG_6_BP:1.56
	RELENG_5_4_0_RELEASE:1.56
	RELENG_5_4:1.56.0.6
	RELENG_5_4_BP:1.56
	RELENG_4_11_0_RELEASE:1.33.2.4
	RELENG_4_11:1.33.2.4.0.16
	RELENG_4_11_BP:1.33.2.4
	RELENG_5_3_0_RELEASE:1.56
	RELENG_5_3:1.56.0.4
	RELENG_5_3_BP:1.56
	RELENG_5:1.56.0.2
	RELENG_5_BP:1.56
	RELENG_4_10_0_RELEASE:1.33.2.4
	RELENG_4_10:1.33.2.4.0.14
	RELENG_4_10_BP:1.33.2.4
	RELENG_5_2_1_RELEASE:1.53
	RELENG_5_2_0_RELEASE:1.53
	RELENG_5_2:1.53.0.2
	RELENG_5_2_BP:1.53
	RELENG_4_9_0_RELEASE:1.33.2.4
	RELENG_4_9:1.33.2.4.0.12
	RELENG_4_9_BP:1.33.2.4
	RELENG_5_1_0_RELEASE:1.49
	RELENG_5_1:1.49.0.4
	RELENG_5_1_BP:1.49
	RELENG_4_8_0_RELEASE:1.33.2.4
	RELENG_4_8:1.33.2.4.0.10
	RELENG_4_8_BP:1.33.2.4
	RELENG_5_0_0_RELEASE:1.49
	RELENG_5_0:1.49.0.2
	RELENG_5_0_BP:1.49
	RELENG_4_7_0_RELEASE:1.33.2.4
	RELENG_4_7:1.33.2.4.0.8
	RELENG_4_7_BP:1.33.2.4
	RELENG_4_6_2_RELEASE:1.33.2.4
	RELENG_4_6_1_RELEASE:1.33.2.4
	RELENG_4_6_0_RELEASE:1.33.2.4
	RELENG_4_6:1.33.2.4.0.6
	RELENG_4_6_BP:1.33.2.4
	RELENG_4_5_0_RELEASE:1.33.2.4
	RELENG_4_5:1.33.2.4.0.4
	RELENG_4_5_BP:1.33.2.4
	RELENG_4_4_0_RELEASE:1.33.2.4
	RELENG_4_4:1.33.2.4.0.2
	RELENG_4_4_BP:1.33.2.4
	RELENG_4_3_0_RELEASE:1.33.2.3
	RELENG_4_3:1.33.2.3.0.2
	RELENG_4_3_BP:1.33.2.3
	RELENG_4_2_0_RELEASE:1.33.2.3
	RELENG_4_1_1_RELEASE:1.33.2.2
	PRE_SMPNG:1.36
	RELENG_4_1_0_RELEASE:1.33
	RELENG_3_5_0_RELEASE:1.21.2.5
	RELENG_4_0_0_RELEASE:1.33
	RELENG_4:1.33.0.2
	RELENG_4_BP:1.33
	RELENG_3_4_0_RELEASE:1.21.2.5
	RELENG_3_3_0_RELEASE:1.21.2.4
	RELENG_3_2_PAO:1.21.2.2.0.2
	RELENG_3_2_PAO_BP:1.21.2.2
	RELENG_3_2_0_RELEASE:1.21.2.2
	RELENG_3_1_0_RELEASE:1.21
	RELENG_3:1.21.0.2
	RELENG_3_BP:1.21
	RELENG_2_2_8_RELEASE:1.3.2.7
	RELENG_3_0_0_RELEASE:1.21
	RELENG_2_2_7_RELEASE:1.3.2.7
	RELENG_2_2_6_RELEASE:1.3.2.7
	RELENG_2_2_5_RELEASE:1.3.2.5
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.3.2.2
	RELENG_2_2_1_RELEASE:1.3.2.1
	RELENG_2_2_0_RELEASE:1.3.2.1
	RELENG_2_1_7_RELEASE:1.1.1.1.6.1
	RELENG_2_1_6_1_RELEASE:1.1.1.1.6.1
	RELENG_2_1_6_RELEASE:1.1.1.1.6.1
	RELENG_2_2:1.3.0.2
	RELENG_2_2_BP:1.3
	RELENG_2_1_5_RELEASE:1.1.1.1.6.1
	RELENG_2_1_0_RELEASE:1.1.1.1
	RELENG_2_1_0:1.1.1.1.0.6
	RELENG_2_1_0_BP:1.1.1.1
	RELENG_2_0_5_RELEASE:1.1.1.1
	RELENG_2_0_5:1.1.1.1.0.4
	RELENG_2_0_5_BP:1.1.1.1
	RELENG_2_0_5_ALPHA:1.1.1.1
	RELEASE_2_0:1.1.1.1
	BETA_2_0:1.1.1.1
	ALPHA_2_0:1.1.1.1.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.84
date	2012.11.17.01.50.04;	author svnexp;	state Exp;
branches
	1.84.2.1;
next	1.83;

1.83
date	2012.10.30.22.18.08;	author bapt;	state Exp;
branches;
next	1.82;

1.82
date	2012.06.12.17.02.53;	author des;	state Exp;
branches;
next	1.81;

1.81
date	2012.01.12.15.45.08;	author ghelmer;	state Exp;
branches;
next	1.80;

1.80
date	2012.01.10.22.22.35;	author ghelmer;	state Exp;
branches;
next	1.79;

1.79
date	2011.05.12.10.11.39;	author stas;	state Exp;
branches
	1.79.2.1;
next	1.78;

1.78
date	2010.05.07.00.41.12;	author mckusick;	state Exp;
branches;
next	1.77;

1.77
date	2010.01.13.18.59.51;	author ed;	state Exp;
branches;
next	1.76;

1.76
date	2010.01.02.09.58.07;	author ed;	state Exp;
branches;
next	1.75;

1.75
date	2009.07.19.17.25.24;	author kensmith;	state Exp;
branches
	1.75.2.1;
next	1.74;

1.74
date	2008.12.07.03.33.36;	author peter;	state Exp;
branches;
next	1.73;

1.73
date	2008.12.02.06.50.26;	author peter;	state Exp;
branches;
next	1.72;

1.72
date	2008.11.23.23.26.12;	author scf;	state Exp;
branches;
next	1.71;

1.71
date	2008.11.05.11.06.10;	author des;	state Exp;
branches;
next	1.70;

1.70
date	2008.11.05.10.45.39;	author des;	state Exp;
branches;
next	1.69;

1.69
date	2008.11.04.13.51.15;	author des;	state Exp;
branches;
next	1.68;

1.68
date	2008.07.01.22.30.57;	author jhb;	state Exp;
branches;
next	1.67;

1.67
date	2008.04.23.00.49.12;	author scf;	state Exp;
branches;
next	1.66;

1.66
date	2007.09.01.06.19.11;	author pjd;	state Exp;
branches
	1.66.2.1;
next	1.65;

1.65
date	2007.05.21.02.49.07;	author deischen;	state Exp;
branches;
next	1.64;

1.64
date	2007.05.10.14.43.10;	author des;	state Exp;
branches;
next	1.63;

1.63
date	2006.07.27.12.36.46;	author yar;	state Exp;
branches;
next	1.62;

1.62
date	2006.06.11.09.14.06;	author akiyama;	state Exp;
branches;
next	1.61;

1.61
date	2006.06.09.18.11.29;	author delphij;	state Exp;
branches;
next	1.60;

1.60
date	2006.05.21.15.15.21;	author ume;	state Exp;
branches;
next	1.59;

1.59
date	2006.02.18.11.25.28;	author des;	state Exp;
branches;
next	1.58;

1.58
date	2005.08.24.17.21.38;	author pjd;	state Exp;
branches;
next	1.57;

1.57
date	2005.07.22.17.19.04;	author kensmith;	state Exp;
branches;
next	1.56;

1.56
date	2004.05.24.22.19.27;	author pjd;	state Exp;
branches
	1.56.8.1;
next	1.55;

1.55
date	2004.02.29.22.13.28;	author kientzle;	state Exp;
branches;
next	1.54;

1.54
date	2004.02.26.22.41.47;	author kientzle;	state Exp;
branches;
next	1.53;

1.53
date	2003.11.12.21.56.07;	author rwatson;	state Exp;
branches;
next	1.52;

1.52
date	2003.10.18.09.58.39;	author markm;	state Exp;
branches;
next	1.51;

1.51
date	2003.08.18.15.25.39;	author obrien;	state Exp;
branches;
next	1.50;

1.50
date	2003.08.17.08.28.45;	author gordon;	state Exp;
branches;
next	1.49;

1.49
date	2002.09.28.00.25.32;	author peter;	state Exp;
branches;
next	1.48;

1.48
date	2002.06.26.13.25.23;	author sobomax;	state Exp;
branches;
next	1.47;

1.47
date	2002.06.26.10.33.10;	author sobomax;	state Exp;
branches;
next	1.46;

1.46
date	2002.05.08.00.50.07;	author des;	state Exp;
branches;
next	1.45;

1.45
date	2001.11.16.05.09.45;	author rwatson;	state Exp;
branches;
next	1.44;

1.44
date	2001.07.23.12.42.07;	author assar;	state Exp;
branches;
next	1.43;

1.43
date	2001.07.22.22.26.36;	author assar;	state Exp;
branches;
next	1.42;

1.42
date	2001.06.24.23.54.46;	author dd;	state Exp;
branches;
next	1.41;

1.41
date	2001.05.18.13.41.23;	author ru;	state Exp;
branches;
next	1.40;

1.40
date	2001.03.27.17.27.17;	author ru;	state Exp;
branches;
next	1.39;

1.39
date	2001.03.15.03.00.39;	author rwatson;	state Exp;
branches;
next	1.38;

1.38
date	2001.03.14.20.51.14;	author brian;	state Exp;
branches;
next	1.37;

1.37
date	2000.10.27.01.19.02;	author green;	state Exp;
branches;
next	1.36;

1.36
date	2000.09.02.01.51.35;	author brian;	state Exp;
branches;
next	1.35;

1.35
date	2000.08.23.03.45.57;	author green;	state Exp;
branches;
next	1.34;

1.34
date	2000.08.22.02.15.52;	author green;	state Exp;
branches;
next	1.33;

1.33
date	2000.02.14.03.55.27;	author shin;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	2000.01.27.21.16.53;	author joe;	state Exp;
branches;
next	1.31;

1.31
date	2000.01.25.14.51.56;	author shin;	state Exp;
branches;
next	1.30;

1.30
date	2000.01.14.07.57.43;	author rgrimes;	state Exp;
branches;
next	1.29;

1.29
date	99.12.30.13.15.10;	author joe;	state Exp;
branches;
next	1.28;

1.28
date	99.12.29.17.50.33;	author peter;	state Exp;
branches;
next	1.27;

1.27
date	99.11.04.08.33.18;	author jkoshy;	state Exp;
branches;
next	1.26;

1.26
date	99.08.13.16.51.39;	author sheldonh;	state Exp;
branches;
next	1.25;

1.25
date	99.07.12.14.27.58;	author sheldonh;	state Exp;
branches;
next	1.24;

1.24
date	99.04.24.16.30.29;	author ache;	state Exp;
branches;
next	1.23;

1.23
date	99.04.07.14.03.31;	author brian;	state Exp;
branches;
next	1.22;

1.22
date	99.04.06.23.02.35;	author brian;	state Exp;
branches;
next	1.21;

1.21
date	98.10.08.06.53.32;	author jkh;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	98.10.07.17.32.49;	author jkh;	state Exp;
branches;
next	1.19;

1.19
date	98.05.28.23.17.07;	author brian;	state Exp;
branches;
next	1.18;

1.18
date	98.02.18.05.29.07;	author jkh;	state Exp;
branches;
next	1.17;

1.17
date	97.08.31.20.09.38;	author brian;	state Exp;
branches;
next	1.16;

1.16
date	97.08.27.20.06.18;	author brian;	state Exp;
branches;
next	1.15;

1.15
date	97.08.26.14.13.02;	author bde;	state Exp;
branches;
next	1.14;

1.14
date	97.07.18.07.27.51;	author asami;	state Exp;
branches;
next	1.13;

1.13
date	97.05.13.08.51.49;	author asami;	state Exp;
branches;
next	1.12;

1.12
date	97.05.11.08.31.43;	author davidn;	state Exp;
branches;
next	1.11;

1.11
date	97.05.10.18.55.37;	author davidn;	state Exp;
branches;
next	1.10;

1.10
date	97.05.10.12.49.29;	author davidn;	state Exp;
branches;
next	1.9;

1.9
date	97.04.01.17.44.58;	author mpp;	state Exp;
branches;
next	1.8;

1.8
date	97.03.30.12.11.24;	author brian;	state Exp;
branches;
next	1.7;

1.7
date	97.01.29.06.11.28;	author davidn;	state Exp;
branches;
next	1.6;

1.6
date	97.01.13.03.05.04;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	97.01.04.16.49.58;	author davidn;	state Exp;
branches;
next	1.4;

1.4
date	96.12.29.18.30.36;	author joerg;	state Exp;
branches;
next	1.3;

1.3
date	96.01.01.08.27.36;	author peter;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	95.12.26.22.50.07;	author peter;	state Exp;
branches;
next	1.1;

1.1
date	94.05.27.05.00.13;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.84.2.1
date	2012.11.17.01.50.04;	author svnexp;	state dead;
branches;
next	1.84.2.2;

1.84.2.2
date	2013.03.28.13.03.22;	author svnexp;	state Exp;
branches;
next	;

1.79.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.79.2.1.2.1;
next	1.79.2.2;

1.79.2.2
date	2012.07.15.11.39.35;	author des;	state Exp;
branches
	1.79.2.2.2.1;
next	1.79.2.3;

1.79.2.3
date	2012.11.17.11.36.26;	author svnexp;	state Exp;
branches;
next	;

1.79.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.79.2.1.2.2;

1.79.2.1.2.2
date	2012.11.17.08.36.27;	author svnexp;	state Exp;
branches;
next	;

1.79.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.79.2.2.2.2;

1.79.2.2.2.2
date	2012.11.17.08.47.16;	author svnexp;	state Exp;
branches;
next	;

1.75.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.75.2.1.2.1
	1.75.2.1.4.1
	1.75.2.1.6.1
	1.75.2.1.8.1;
next	1.75.2.2;

1.75.2.2
date	2012.11.17.10.36.11;	author svnexp;	state Exp;
branches;
next	;

1.75.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.75.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.75.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.75.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.75.2.1.8.2;

1.75.2.1.8.2
date	2012.11.17.08.24.51;	author svnexp;	state Exp;
branches;
next	;

1.66.2.1
date	2008.05.16.02.07.56;	author scf;	state Exp;
branches
	1.66.2.1.2.1;
next	1.66.2.2;

1.66.2.2
date	2008.12.06.19.54.50;	author peter;	state Exp;
branches
	1.66.2.2.2.1;
next	1.66.2.3;

1.66.2.3
date	2009.05.14.01.38.06;	author des;	state Exp;
branches;
next	1.66.2.4;

1.66.2.4
date	2009.06.09.01.43.58;	author des;	state Exp;
branches;
next	1.66.2.5;

1.66.2.5
date	2009.06.12.15.53.56;	author jhb;	state Exp;
branches
	1.66.2.5.2.1
	1.66.2.5.4.1;
next	1.66.2.6;

1.66.2.6
date	2012.11.17.08.03.05;	author svnexp;	state Exp;
branches;
next	;

1.66.2.1.2.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	1.66.2.1.2.2;

1.66.2.1.2.2
date	2008.12.06.20.36.46;	author peter;	state Exp;
branches;
next	;

1.66.2.2.2.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.66.2.5.2.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.66.2.5.4.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.66.2.5.4.2;

1.66.2.5.4.2
date	2012.11.17.08.16.50;	author svnexp;	state Exp;
branches;
next	;

1.56.8.1
date	2005.07.22.17.29.09;	author kensmith;	state Exp;
branches;
next	1.56.8.2;

1.56.8.2
date	2006.01.15.17.50.35;	author delphij;	state Exp;
branches;
next	1.56.8.3;

1.56.8.3
date	2007.05.28.06.16.40;	author delphij;	state Exp;
branches;
next	1.56.8.4;

1.56.8.4
date	2007.09.21.14.35.02;	author obrien;	state Exp;
branches;
next	1.56.8.5;

1.56.8.5
date	2007.09.21.14.41.55;	author obrien;	state Exp;
branches;
next	1.56.8.6;

1.56.8.6
date	2007.09.21.14.49.38;	author obrien;	state Exp;
branches;
next	1.56.8.7;

1.56.8.7
date	2007.09.21.14.52.31;	author obrien;	state Exp;
branches
	1.56.8.7.4.1;
next	1.56.8.8;

1.56.8.8
date	2012.11.17.07.40.42;	author svnexp;	state Exp;
branches;
next	;

1.56.8.7.4.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.33.2.1
date	2000.09.16.22.47.17;	author brian;	state Exp;
branches;
next	1.33.2.2;

1.33.2.2
date	2000.09.20.11.19.54;	author green;	state Exp;
branches;
next	1.33.2.3;

1.33.2.3
date	2000.10.27.01.50.31;	author green;	state Exp;
branches;
next	1.33.2.4;

1.33.2.4
date	2001.04.25.10.04.42;	author ru;	state Exp;
branches;
next	1.33.2.5;

1.33.2.5
date	2012.11.17.07.24.01;	author svnexp;	state Exp;
branches;
next	;

1.21.2.1
date	99.04.24.21.49.30;	author ache;	state Exp;
branches;
next	1.21.2.2;

1.21.2.2
date	99.05.02.08.50.44;	author brian;	state Exp;
branches;
next	1.21.2.3;

1.21.2.3
date	99.07.12.14.28.57;	author sheldonh;	state Exp;
branches;
next	1.21.2.4;

1.21.2.4
date	99.09.10.15.10.57;	author sheldonh;	state Exp;
branches;
next	1.21.2.5;

1.21.2.5
date	99.11.22.10.43.33;	author jkoshy;	state Exp;
branches;
next	;

1.3.2.1
date	96.12.30.21.15.43;	author mpp;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	97.05.10.19.33.07;	author davidn;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	97.07.18.07.28.33;	author asami;	state Exp;
branches;
next	1.3.2.4;

1.3.2.4
date	97.08.27.20.09.22;	author brian;	state Exp;
branches;
next	1.3.2.5;

1.3.2.5
date	97.08.31.20.11.34;	author brian;	state Exp;
branches;
next	1.3.2.6;

1.3.2.6
date	98.02.18.02.59.02;	author jkh;	state Exp;
branches;
next	1.3.2.7;

1.3.2.7
date	98.02.18.05.29.47;	author jkh;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.27.05.00.14;	author rgrimes;	state Exp;
branches
	1.1.1.1.6.1;
next	;

1.1.1.1.6.1
date	96.02.22.19.36.20;	author peter;	state Exp;
branches;
next	;


desc
@@


1.84
log
@Switching exporter and resync
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 6/4/93
#	$FreeBSD: head/lib/libutil/Makefile 242381 2012-10-30 22:18:08Z bapt $

SHLIBDIR?= /lib

.include <bsd.own.mk>

LIB=	util
SHLIB_MAJOR= 9

SRCS=	_secure_path.c auth.c expand_number.c flopen.c fparseln.c gr_util.c \
	hexdump.c humanize_number.c kinfo_getfile.c kinfo_getfile.c \
	kinfo_getallproc.c kinfo_getproc.c kinfo_getvmmap.c kld.c \
	login_auth.c login_cap.c \
	login_class.c login_crypt.c login_ok.c login_times.c login_tty.c \
	pidfile.c property.c pty.c pw_util.c quotafile.c realhostname.c \
	stub.c trimdomain.c uucplock.c
INCS=	libutil.h login_cap.h

CFLAGS+= -DLIBC_SCCS

.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif

CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../libc/gen/

MAN+=	expand_number.3 flopen.3 fparseln.3 hexdump.3 \
	humanize_number.3 kinfo_getallproc.3 kinfo_getfile.3 \
	kinfo_getproc.3 kinfo_getvmmap.3 kld.3 login_auth.3 login_cap.3 \
	login_class.3 login_ok.3 login_times.3 login_tty.3 pidfile.3 \
	property.3 pty.3 quotafile.3 realhostname.3 realhostname_sa.3 \
	_secure_path.3 trimdomain.3 uucplock.3 pw_util.3
MAN+=	login.conf.5
MLINKS+= kld.3 kld_isloaded.3 kld.3 kld_load.3
MLINKS+=login_auth.3 auth_cat.3 login_auth.3 auth_checknologin.3
MLINKS+=login_cap.3 login_close.3 login_cap.3 login_getcapbool.3 \
	login_cap.3 login_getcaplist.3 login_cap.3 login_getcapnum.3 \
	login_cap.3 login_getcapsize.3 login_cap.3 login_getcapstr.3 \
	login_cap.3 login_getcaptime.3 login_cap.3 login_getclass.3 \
	login_cap.3 login_getclassbyname.3 login_cap.3 login_getpath.3 \
	login_cap.3 login_getpwclass.3 login_cap.3 login_getstyle.3 \
	login_cap.3 login_getuserclass.3 login_cap.3 login_setcryptfmt.3
MLINKS+=login_class.3 setclasscontext.3 login_class.3 setclassenvironment.3 \
	login_class.3 setclassresources.3 login_class.3 setusercontext.3
MLINKS+=login_ok.3 auth_hostok.3 login_ok.3 auth_timeok.3 \
	login_ok.3 auth_ttyok.3
MLINKS+=login_times.3 in_lt.3 login_times.3 in_ltm.3 \
	login_times.3 in_ltms.3 \
	login_times.3 in_lts.3 \
	login_times.3 parse_lt.3
MLINKS+=pidfile.3 pidfile_close.3 \
	pidfile.3 pidfile_fileno.3 \
	pidfile.3 pidfile_open.3 \
	pidfile.3 pidfile_remove.3 \
	pidfile.3 pidfile_write.3
MLINKS+= property.3 property_find.3  property.3 properties_free.3
MLINKS+= property.3 properties_read.3
MLINKS+= pty.3 forkpty.3  pty.3 openpty.3
MLINKS+=quotafile.3 quota_close.3 \
	quotafile.3 quota_fsname.3 \
	quotafile.3 quota_open.3 \
	quotafile.3 quota_qfname.3 \
	quotafile.3 quota_read.3 \
	quotafile.3 quota_statfs.3 \
	quotafile.3 quota_write_limits.3 \
	quotafile.3 quota_write_usage.3
MLINKS+=uucplock.3 uu_lock.3 uucplock.3 uu_lock_txfr.3 \
	uucplock.3 uu_lockerr.3 uucplock.3 uu_unlock.3 
MLINKS+=pw_util.3 pw_copy.3 \
	pw_util.3 pw_dup.3 \
	pw_util.3 pw_edit.3 \
	pw_util.3 pw_equal.3 \
	pw_util.3 pw_fini.3 \
	pw_util.3 pw_init.3 \
	pw_util.3 pw_make.3 \
	pw_util.3 pw_make_v7.3 \
	pw_util.3 pw_mkdb.3 \
	pw_util.3 pw_lock.3 \
	pw_util.3 pw_scan.3 \
	pw_util.3 pw_tempname.3 \
	pw_util.3 pw_tmp.3

.include <bsd.lib.mk>
@


1.84.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:03:22 +0000
@
text
@d1 84
@


1.84.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 63
#	@@(#)Makefile	8.1 (Berkeley) 6/4/93
#	$FreeBSD: releng/8.4/lib/libutil/Makefile 195767 2009-07-19 17:25:24Z kensmith $

SHLIBDIR?= /lib

.include <bsd.own.mk>

LIB=	util
SHLIB_MAJOR= 8

SRCS=	_secure_path.c auth.c expand_number.c flopen.c fparseln.c gr_util.c \
	hexdump.c humanize_number.c kinfo_getfile.c kinfo_getvmmap.c kld.c \
	login.c login_auth.c login_cap.c \
	login_class.c login_crypt.c login_ok.c login_times.c login_tty.c \
	logout.c logwtmp.c pidfile.c property.c pty.c pw_util.c realhostname.c \
	stub.c trimdomain.c uucplock.c
INCS=	libutil.h login_cap.h

WARNS?=	6

CFLAGS+= -DLIBC_SCCS

.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif

CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../libc/gen/

MAN+=	kld.3 login.3 login_auth.3 login_tty.3 logout.3 logwtmp.3 pty.3 \
	login_cap.3 login_class.3 login_times.3 login_ok.3 \
	_secure_path.3 uucplock.3 property.3 auth.3 realhostname.3 \
	realhostname_sa.3 trimdomain.3 fparseln.3 humanize_number.3 \
	pidfile.3 flopen.3 expand_number.3 hexdump.3 \
	kinfo_getfile.3 kinfo_getvmmap.3
MAN+=	login.conf.5 auth.conf.5
MLINKS+= kld.3 kld_isloaded.3 kld.3 kld_load.3
MLINKS+= property.3 properties_read.3  property.3 properties_free.3
MLINKS+= property.3 property_find.3
MLINKS+= auth.3 auth_getval.3
MLINKS+= pty.3 openpty.3  pty.3 forkpty.3
MLINKS+=login_cap.3 login_getclassbyname.3 login_cap.3 login_close.3 \
	login_cap.3 login_getclass.3 login_cap.3 login_getuserclass.3 \
	login_cap.3 login_getcapstr.3 login_cap.3 login_getcaplist.3 \
	login_cap.3 login_getstyle.3 login_cap.3 login_getcaptime.3 \
	login_cap.3 login_getcapnum.3 login_cap.3 login_getcapsize.3 \
	login_cap.3 login_getcapbool.3 login_cap.3 login_getpath.3 \
	login_cap.3 login_getpwclass.3 login_cap.3 login_setcryptfmt.3
MLINKS+=login_class.3 setusercontext.3 login_class.3 setclasscontext.3 \
	login_class.3 setclassenvironment.3 login_class.3 setclassresources.3
MLINKS+=login_times.3 parse_lt.3 login_times.3 in_ltm.3 \
	login_times.3 in_lt.3 login_times.3 in_ltms.3 \
	login_times.3 in_lts.3
MLINKS+=login_ok.3 auth_ttyok.3 login_ok.3 auth_hostok.3 \
	login_ok.3 auth_timeok.3
MLINKS+=login_auth.3 auth_checknologin.3 login_auth.3 auth_cat.3
MLINKS+=uucplock.3 uu_lock.3 uucplock.3 uu_lock_txfr.3 \
	uucplock.3 uu_unlock.3 uucplock.3 uu_lockerr.3
MLINKS+=pidfile.3 pidfile_open.3 \
	pidfile.3 pidfile_write.3 \
	pidfile.3 pidfile_close.3 \
	pidfile.3 pidfile_remove.3

.include <bsd.lib.mk>
@


1.83
log
@SVN rev 242381 on 2012-10-30 22:18:08Z by bapt

Document the pw_util(3) functions

Reviewed by:	des, gjb
@
text
@d2 1
a2 1
#	$FreeBSD$
@


1.82
log
@SVN rev 236965 on 2012-06-12 17:02:53Z by des

Finally nuke auth.conf, nine years after it was deprecated.  The only
thing it was still used for was to set the "global default" password
hash.  Since the stock auth.conf contained nothing but comments, the
global default was actually the first algorithm in crypt(3)'s list,
which happens to be DES; I take the fact that nobody noticed as proof
that it was not used outside of crypt(3).

The only other use in our tree was in the Kerberos support code in
in tinyware's passwd(1).  I removed that code in an earlier commit;
it would not have compiled anyway, as it only supported Kerberos IV.

The auth_getval() function is now a stub that always returns NULL,
which has the same effect as a functional auth_getval() with an
empty auth.conf.

MFC after:	3 weeks
@
text
@d33 1
a33 1
	_secure_path.3 trimdomain.3 uucplock.3
d70 13
@


1.81
log
@SVN rev 230016 on 2012-01-12 15:45:08Z by ghelmer

Fix disorder in MAN and MLINKS lists.

Requested by bde.
@
text
@d28 1
a28 1
MAN+=	auth.3 expand_number.3 flopen.3 fparseln.3 hexdump.3 \
d34 1
a34 2
MAN+=	auth.conf.5 login.conf.5
MLINKS+= auth.3 auth_getval.3
@


1.80
log
@SVN rev 229943 on 2012-01-10 22:22:35Z by ghelmer

Add link for pidfile_fileno.3 to pidfile.3 - thanks again pjd!
@
text
@d28 8
a35 8
MAN+=	kld.3 login_auth.3 login_tty.3 pty.3 \
	login_cap.3 login_class.3 login_times.3 login_ok.3 \
	_secure_path.3 uucplock.3 property.3 auth.3 realhostname.3 \
	realhostname_sa.3 trimdomain.3 fparseln.3 humanize_number.3 \
	pidfile.3 flopen.3 expand_number.3 hexdump.3 \
	kinfo_getfile.3 kinfo_getallproc.3 kinfo_getproc.3 \
	kinfo_getvmmap.3 quotafile.3
MAN+=	login.conf.5 auth.conf.5
d37 19
a55 24
MLINKS+= property.3 properties_read.3  property.3 properties_free.3
MLINKS+= property.3 property_find.3
MLINKS+= auth.3 auth_getval.3
MLINKS+= pty.3 openpty.3  pty.3 forkpty.3
MLINKS+=login_cap.3 login_getclassbyname.3 login_cap.3 login_close.3 \
	login_cap.3 login_getclass.3 login_cap.3 login_getuserclass.3 \
	login_cap.3 login_getcapstr.3 login_cap.3 login_getcaplist.3 \
	login_cap.3 login_getstyle.3 login_cap.3 login_getcaptime.3 \
	login_cap.3 login_getcapnum.3 login_cap.3 login_getcapsize.3 \
	login_cap.3 login_getcapbool.3 login_cap.3 login_getpath.3 \
	login_cap.3 login_getpwclass.3 login_cap.3 login_setcryptfmt.3
MLINKS+=login_class.3 setusercontext.3 login_class.3 setclasscontext.3 \
	login_class.3 setclassenvironment.3 login_class.3 setclassresources.3
MLINKS+=login_times.3 parse_lt.3 login_times.3 in_ltm.3 \
	login_times.3 in_lt.3 login_times.3 in_ltms.3 \
	login_times.3 in_lts.3
MLINKS+=login_ok.3 auth_ttyok.3 login_ok.3 auth_hostok.3 \
	login_ok.3 auth_timeok.3
MLINKS+=login_auth.3 auth_checknologin.3 login_auth.3 auth_cat.3
MLINKS+=uucplock.3 uu_lock.3 uucplock.3 uu_lock_txfr.3 \
	uucplock.3 uu_unlock.3 uucplock.3 uu_lockerr.3
MLINKS+=pidfile.3 pidfile_open.3 \
	pidfile.3 pidfile_write.3 \
	pidfile.3 pidfile_close.3 \
d57 5
a61 2
	pidfile.3 pidfile_fileno.3
MLINKS+=quotafile.3 quota_open.3 \
d63 1
d65 1
a66 1
	quotafile.3 quota_read.3 \
d68 3
a70 2
	quotafile.3 quota_write_usage.3 \
	quotafile.3 quota_close.3
@


1.79
log
@SVN rev 221807 on 2011-05-12 10:11:39Z by stas

- Commit work from libprocstat project.  These patches add support for runtime
  file and processes information retrieval from the running kernel via sysctl
  in the form of new library, libprocstat.  The library also supports KVM backend
  for analyzing memory crash dumps.  Both procstat(1) and fstat(1) utilities have
  been modified to take advantage of the library (as the bonus point the fstat(1)
  utility no longer need superuser privileges to operate), and the procstat(1)
  utility is now able to display information from memory dumps as well.

  The newly introduced fuser(1) utility also uses this library and able to operate
  via sysctl and kvm backends.

  The library is by no means complete (e.g. KVM backend is missing vnode name
  resolution routines, and there're no manpages for the library itself) so I
  plan to improve it further.  I'm commiting it so it will get wider exposure
  and review.

  We won't be able to MFC this work as it relies on changes in HEAD, which
  was introduced some time ago, that break kernel ABI.  OTOH we may be able
  to merge the library with KVM backend if we really need it there.

Discussed with:	rwatson
@
text
@d61 2
a62 1
	pidfile.3 pidfile_remove.3
@


1.79.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.79.2.2
log
@SVN rev 238481 on 2012-07-15 11:39:35Z by des

MFH r236751: document sha256 / sha512 support
MFH r236892: remove mention of auth.conf from programs that don't use it
MFH r236963: remove dead code relating to auth.conf
MFH r236965 r236966 r236967 r237005 r237006 r237011: retire auth.conf

Approved by:    re
@
text
@d11 1
a11 1
SRCS=	_secure_path.c expand_number.c flopen.c fparseln.c gr_util.c \
d30 1
a30 1
	_secure_path.3 uucplock.3 property.3 realhostname.3 \
d35 1
a35 1
MAN+=	login.conf.5
d39 1
@


1.79.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
#	$FreeBSD: stable/9/lib/libutil/Makefile 238481 2012-07-15 11:39:35Z des $
@


1.79.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.79.2.2.2.2
log
@Switch importer
@
text
@d2 1
a2 1
#	$FreeBSD: releng/9.1/lib/libutil/Makefile 238481 2012-07-15 11:39:35Z des $
@


1.79.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.79.2.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
#	$FreeBSD: releng/9.0/lib/libutil/Makefile 221807 2011-05-12 10:11:39Z stas $
@


1.78
log
@SVN rev 207736 on 2010-05-07 00:41:12Z by mckusick

Merger of the quota64 project into head.

This joint work of Dag-Erling Smørgrav and myself updates the
FFS quota system to support both traditional 32-bit and new 64-bit
quotas (for those of you who want to put 2+Tb quotas on your users).

By default quotas are not compiled into the kernel. To include them
in your kernel configuration you need to specify:

options         QUOTA                   # Enable FFS quotas

If you are already running with the current 32-bit quotas, they
should continue to work just as they have in the past. If you
wish to convert to using 64-bit quotas, use `quotacheck -c 64';
if you wish to revert from 64-bit quotas back to 32-bit quotas,
use `quotacheck -c 32'.

There is a new library of functions to simplify the use of the
quota system, do `man quotafile' for details. If your application
is currently using the quotactl(2), it is highly recommended that
you convert your application to use the quotafile interface.
Note that existing binaries will continue to work.

Special thanks to John Kozubik of rsync.net for getting me
interested in pursuing 64-bit quota support and for funding
part of my development time on this project.
@
text
@d12 2
a13 1
	hexdump.c humanize_number.c kinfo_getfile.c kinfo_getvmmap.c kld.c \
d33 2
a34 1
	kinfo_getfile.3 kinfo_getvmmap.3 quotafile.3
@


1.77
log
@SVN rev 202216 on 2010-01-13 18:59:51Z by ed

Remove login(3), logout(3) and logwtmp(3) from libutil.

These functions only apply to utmp(5). They cannot be kept intact when
moving towards utmpx. The login(3) function would break, because its
argument is an utmp structure. The logout(3) and logwtmp(3) functions
cannot be used, since they provide a functionality which partially
overlaps.

Increment SHLIB_MAJOR to 9 to indicate the removal.
@
text
@d15 1
a15 1
	pidfile.c property.c pty.c pw_util.c realhostname.c \
d32 1
a32 1
	kinfo_getfile.3 kinfo_getvmmap.3
d60 8
@


1.76
log
@SVN rev 201381 on 2010-01-02 09:58:07Z by ed

Build lib/ with WARNS=6 by default.

Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and
lower it when needed.

I'm setting WARNS?=0 for secure/. It seems secure/ includes the
Makefile.inc provided by lib/. I'm not going to touch that directory.
Most of the code there is contributed anyway.
@
text
@d9 1
a9 1
SHLIB_MAJOR= 8
d13 1
a13 1
	login.c login_auth.c login_cap.c \
d15 1
a15 1
	logout.c logwtmp.c pidfile.c property.c pty.c pw_util.c realhostname.c \
d27 1
a27 1
MAN+=	kld.3 login.3 login_auth.3 login_tty.3 logout.3 logwtmp.3 pty.3 \
@


1.75
log
@SVN rev 195767 on 2009-07-19 17:25:24Z by kensmith

Bump the version of all non-symbol-versioned shared libraries in
preparation for 8.0-RELEASE.  Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.

Reviewed by:    kib
Approved by:    re (rwatson)
@
text
@a18 2
WARNS?=	6

@


1.75.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.75.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
#	$FreeBSD: stable/8/lib/libutil/Makefile 195767 2009-07-19 17:25:24Z kensmith $
@


1.75.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.75.2.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
#	$FreeBSD: releng/8.3/lib/libutil/Makefile 195767 2009-07-19 17:25:24Z kensmith $
@


1.75.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.75.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.75.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.74
log
@SVN rev 185729 on 2008-12-07 03:33:36Z by peter

Add filler man pages for the kinfo functions I added recently.
While here, hook up the hexdump(3) man page which wasn't being installed.
@
text
@d9 1
a9 1
SHLIB_MAJOR= 7
@


1.73
log
@SVN rev 185548 on 2008-12-02 06:50:26Z by peter

Merge user/peter/kinfo branch as of r185547 into head.

This changes struct kinfo_filedesc and kinfo_vmentry such that they are
same on both 32 and 64 bit platforms like i386/amd64 and won't require
sysctl wrapping.

Two new OIDs are assigned.  The old ones are available under
COMPAT_FREEBSD7 - but it isn't that simple.  The superceded interface
was never actually released on 7.x.

The other main change is to pack the data passed to userland via the
sysctl.  kf_structsize and kve_structsize are reduced for the copyout.
If you have a process with 100,000+ sockets open, the unpacked records
require a 132MB+ copyout.  With packing, it is "only" ~35MB.  (Still
seriously unpleasant, but not quite as devastating).  A similar problem
exists for the vmentry structure - have lots and lots of shared libraries
and small mmaps and its copyout gets expensive too.

My immediate problem is valgrind.  It traditionally achieves this
functionality by parsing procfs output, in a packed format.  Secondly, when
tracing 32 bit binaries on amd64 under valgrind, it uses a cross compiled
32 bit binary which ran directly into the differing data structures in 32
vs 64 bit mode.  (valgrind uses this to track file descriptor operations
and this therefore affected every single 32 bit binary)

I've added two utility functions to libutil to unpack the structures into
a fixed record length and to make it a little more convenient to use.
@
text
@d33 2
a34 1
	pidfile.3 flopen.3 expand_number.3
@


1.72
log
@SVN rev 185237 on 2008-11-23 23:26:12Z by scf

Fixed style issues with variable ordering and naming, spacing and
parentheses.

Fixed alignment issue in gr_dup() in its assignment of gr_mem using a
struct to force alignment without performing alignment mathematics.  This
was noticed recently with libutil was built with WARNS=6 on platform such
as sparc64.

Added checks to gr_dup(), gr_equal() and gr_make() to prevent segfaults
when examining struct group's with the struct members pointing to NULL's.

With fix of alignment issue, restore WARNS?=6.

Reviewed by:	des
MFC after:	1 week
@
text
@d12 2
a13 1
	hexdump.c humanize_number.c kld.c login.c login_auth.c login_cap.c \
@


1.71
log
@SVN rev 184677 on 2008-11-05 11:06:10Z by des

Comment out WARNS.  There are too many alignment issues in libutil.
@
text
@d11 1
a11 1
SRCS=	_secure_path.c auth.c expand_number.c flopen.c fparseln.c \
d18 1
a18 1
#WARNS?=	6
@


1.70
log
@SVN rev 184676 on 2008-11-05 10:45:39Z by des

Disconnect gr_util.c from the build.  It isn't documented or used anywhere
in the tree, and due to unsafe pointer arithmetic, it will most likely crash
on architectures with strict alignment requirements.
@
text
@d18 1
a18 1
WARNS?=	6
@


1.69
log
@SVN rev 184635 on 2008-11-04 13:51:15Z by des

libutil now builds at WARNS level 6.

MFC after:	3 weeks
@
text
@d11 1
a11 1
SRCS=	_secure_path.c auth.c gr_util.c expand_number.c flopen.c fparseln.c \
@


1.68
log
@SVN rev 180161 on 2008-07-01 22:30:57Z by jhb

Merge hexdump(9) to userland as hexdump(3) in libutil.  I'm tired of doing
this by hand in userland utilities.

MFC after:	1 month
@
text
@d18 2
@


1.67
log
@Add four utility functions related to struct grp processing modeled in-part
after similar calls related to struct pwd in libutil/pw_util.c:
  - gr_equal()
    Perform a deep comparison of two struct grp's.  It does a thorough, yet
    unoptimized comparison of all the members regardless of order.

  - gr_make()
    Create a string (see group(5)) from a struct grp.

  - gr_dup()
    Duplicate a struct grp.  Returns a value that is a single contiguous
    block of memory.

  - gr_scan()
    Create a struct grp from a string (as produced by gr_make()).

MFC after:	3 weeks
@
text
@d12 3
a14 3
	humanize_number.c kld.c login.c login_auth.c login_cap.c login_class.c \
	login_crypt.c login_ok.c login_times.c login_tty.c logout.c \
	logwtmp.c pidfile.c property.c pty.c pw_util.c realhostname.c \
@


1.66
log
@Implement expand_number(3), which is the opposite of humanize_number(3), ie.
a number in human-readable form is converted to int64_t, for example:
123b -> 123
10k -> 10240
16G -> 17179869184

First version submitted by:	Eric Anderson <anderson@@freebsd.org>
Approved by:	re (bmah)
@
text
@d11 1
a11 1
SRCS=	_secure_path.c auth.c expand_number.c flopen.c fparseln.c \
@


1.66.2.1
log
@MFC:
Add four utility functions related to struct grp processing modeled in-part
after similar calls related to struct pwd in libutil/pw_util.c:
  - gr_equal()
    Perform a deep comparison of two struct grp's.  It does a thorough, yet
    unoptimized comparison of all the members regardless of order.

  - gr_make()
    Create a string (see group(5)) from a struct grp.

  - gr_dup()
    Duplicate a struct grp.  Returns a value that is a single contiguous
    block of memory.

  - gr_scan()
    Create a struct grp from a string (as produced by gr_make()).

    src/lib/libutil/Makefile: rev 1.66 -> 1.67
    src/lib/libutil/gr_util.c: rev 0 -> 1.1
    src/lib/libutil/libutil.h: rev 1.46 -> 1.47
@
text
@d11 1
a11 1
SRCS=	_secure_path.c auth.c gr_util.c expand_number.c flopen.c fparseln.c \
@


1.66.2.2
log
@SVN rev 185716 on 2008-12-06 19:54:50Z by peter

MFC: 185548 and followups.
Add new KERN_PROC_* handlers with 32/64 bit stable interfaces.  Pack
records from sysctl to reduce copyout size.  Add helper to unpack and
provide a more stable interface.

Approved by:	re (kensmith)
@
text
@d12 1
a12 2
	humanize_number.c kinfo_getfile.c kinfo_getvmmap.c kld.c \
	login.c login_auth.c login_cap.c login_class.c \
@


1.66.2.3
log
@SVN rev 192069 on 2009-05-14 01:38:06Z by des

MFC r184633, r184635, r184683: WARNS cleanup
@
text
@a18 2
WARNS?=	6

@


1.66.2.4
log
@SVN rev 193795 on 2009-06-09 01:43:58Z by des

merge r180815,184081-184088,184091-184094,184634,184676-184677, 185277,
93589,193591: style and warning cleanups, libutil is now WARNS=6 clean.
Also merged setclasscpumask(), which would have been a b***h to isolate
from the rest of the changes.  AFAICT, nobody uses it anyway.
@
text
@d11 1
a11 1
SRCS=	_secure_path.c auth.c expand_number.c flopen.c fparseln.c gr_util.c \
@


1.66.2.5
log
@SVN rev 194063 on 2009-06-12 15:53:56Z by jhb

MFC: Add manpages for kinfo_getfile() and kinfo_getvmmap().
@
text
@d33 1
a33 2
	pidfile.3 flopen.3 expand_number.3 \
	kinfo_getfile.3 kinfo_getvmmap.3
@


1.66.2.6
log
@Switch importer
@
text
@d2 1
a2 1
#	$FreeBSD: stable/7/lib/libutil/Makefile 194063 2009-06-12 15:53:56Z jhb $
@


1.66.2.5.4.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.66.2.5.4.2
log
@Switch importer
@
text
@d2 1
a2 1
#	$FreeBSD: releng/7.4/lib/libutil/Makefile 194063 2009-06-12 15:53:56Z jhb $
@


1.66.2.5.2.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.66.2.2.2.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.66.2.1.2.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.66.2.1.2.2
log
@SVN rev 185717 on 2008-12-06 20:36:46Z by peter

MF7: 185716 (head 185548 + followups).  KERN_PROC_* kinfo updates.

Approved by:	re (kensmith)
@
text
@d12 1
a12 2
	humanize_number.c kinfo_getfile.c kinfo_getvmmap.c kld.c \
	login.c login_auth.c login_cap.c login_class.c \
@


1.65
log
@Bump library versions in preparation for 7.0.

Ok'd by:	kan
@
text
@d11 2
a12 2
SRCS=	_secure_path.c auth.c flopen.c fparseln.c humanize_number.c \
	kld.c login.c login_auth.c login_cap.c login_class.c \
d30 1
a30 1
	pidfile.3 flopen.3
@


1.64
log
@I'm tired of seeing this done incorrectly and non-portably, so add a
flopen(3) function which reliably opens and locks a file.

MFC after:	3 weeks
@
text
@d9 1
a9 1
SHLIB_MAJOR= 6
@


1.63
log
@style.Makefile(5) is good for our eyes.
@
text
@d11 5
a15 5
SRCS=	_secure_path.c auth.c fparseln.c humanize_number.c kld.c login.c \
	login_auth.c login_cap.c login_class.c login_crypt.c login_ok.c \
	login_times.c login_tty.c logout.c logwtmp.c \
	pidfile.c property.c pty.c pw_util.c realhostname.c stub.c \
	trimdomain.c uucplock.c
d30 1
a30 1
	pidfile.3
@


1.62
log
@Specify default path for SHLIBDIR before bsd.own.mk does.
This fix shared library installed correct place.
@
text
@a10 4
CFLAGS+=-DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../libc/gen/
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=-DINET6
.endif
d18 8
@


1.61
log
@Don't build IPv6 support if we have choosen not to have it.
@
text
@d4 2
d10 1
a10 1
SHLIBDIR?= /lib
@


1.60
log
@Bump library majro version for gethostbyaddr(3).
@
text
@d4 2
d10 1
d12 1
@


1.59
log
@Add utility functions for checking if a given kernel module is loaded,
and loading it.
@
text
@d5 1
a5 1
SHLIB_MAJOR= 5
@


1.58
log
@Add a family of functions for reliable pidfiles handling.

Idea from:	jmg
Discussed on:	arch@@
@
text
@d9 1
a9 1
SRCS=	_secure_path.c auth.c fparseln.c humanize_number.c login.c \
d16 1
a16 1
MAN+=	login.3 login_auth.3 login_tty.3 logout.3 logwtmp.3 pty.3 \
d22 1
@


1.57
log
@Bump the shared library version number of all libraries that have not
been bumped since RELENG_5.

Reviewed by:	ru
Approved by:	re (not needed for commit check but in principle...)
@
text
@d11 2
a12 2
	login_times.c login_tty.c logout.c logwtmp.c property.c pty.c \
	pw_util.c realhostname.c stub.c \
d19 2
a20 1
	realhostname_sa.3 trimdomain.3 fparseln.3 humanize_number.3
d43 4
@


1.56
log
@Add humanize_number(3) to libutil for formating numbers into a human
readable form.

Obtained from:	NetBSD
@
text
@d5 1
a5 1
SHLIB_MAJOR= 4
@


1.56.8.1
log
@Insta-MFC of the shared library version bump.  All shared libraries
whose version has not already been bumped since RELENG_5 are being
bumped.

Revisions of files being MFC-ed:

> Path						Revision
> src/gnu/lib/libdialog/Makefile		1.43
> src/gnu/lib/libg2c/Makefile			1.16
> src/gnu/lib/libobjc/Makefile			1.27
> src/gnu/lib/libreadline/Makefile.inc		1.12
> src/gnu/lib/libregex/Makefile			1.32
> src/gnu/lib/libstdc++/Makefile		1.56
> src/kerberos5/lib/Makefile.inc		1.7
> src/lib/Makefile.inc				1.3
> src/lib/libalias/Makefile			1.31
> src/lib/libarchive/Makefile			1.37
> src/lib/libbegemot/Makefile			1.3
> src/lib/libbluetooth/Makefile			1.2
> src/lib/libbsnmp/Makefile.inc			1.6
> src/lib/libbz2/Makefile			1.6
> src/lib/libc_r/Makefile			1.42
> src/lib/libcrypt/Makefile			1.36
> src/lib/libdevstat/Makefile			1.15
> src/lib/libdevstat/devstat.h			1.11
> src/lib/libedit/Makefile			1.29
> src/lib/libexpat/Makefile			1.5
> src/lib/libfetch/Makefile			1.45
> src/lib/libftpio/Makefile			1.14
> src/lib/libgpib/Makefile			1.2
> src/lib/libipsec/Makefile			1.17
> src/lib/libkiconv/Makefile			1.3
> src/lib/libmagic/Makefile			1.7
> src/lib/libmp/Makefile			1.10
> src/lib/libncp/Makefile			1.6
> src/lib/libncurses/Makefile			1.79
> src/lib/libnetgraph/Makefile			1.11
> src/lib/libngatm/Makefile			1.6
> src/lib/libopie/Makefile			1.21
> src/lib/libpam/Makefile.inc			1.17
> src/lib/libpthread/Makefile			1.54
> src/lib/libradius/Makefile			1.12
> src/lib/libsdp/Makefile			1.4
> src/lib/libsmb/Makefile			1.8
> src/lib/libtacplus/Makefile			1.7
> src/lib/libthr/Makefile			1.14
> src/lib/libthread_db/Makefile			1.6
> src/lib/libugidfw/Makefile			1.7
> src/lib/libusbhid/Makefile			1.10
> src/lib/libutil/Makefile			1.57
> src/lib/libvgl/Makefile			1.11
> src/lib/libwrap/Makefile			1.17
> src/lib/libypclnt/Makefile			1.13
> src/lib/msun/Makefile				1.72
> src/secure/lib/libcrypto/Makefile		1.74
> src/secure/lib/libssh/Makefile		1.35
> src/secure/lib/libssl/Makefile		1.22
> src/usr.sbin/bsnmpd/modules/Makefile.inc	1.10

Reviewed by:	ru
Approved by:	re (scottl)
@
text
@d5 1
a5 1
SHLIB_MAJOR= 5
@


1.56.8.2
log
@MFC pidfile(3) function, and convert several applications to make use
of it.

Bump __FreeBSDversion for the MFC.

Discussed with:	pjd
@
text
@d11 2
a12 2
	login_times.c login_tty.c logout.c logwtmp.c \
	pidfile.c property.c pty.c pw_util.c realhostname.c stub.c \
d19 1
a19 2
	realhostname_sa.3 trimdomain.3 fparseln.3 humanize_number.3 \
	pidfile.3
a41 4
MLINKS+=pidfile.3 pidfile_open.3 \
	pidfile.3 pidfile_write.3 \
	pidfile.3 pidfile_close.3 \
	pidfile.3 pidfile_remove.3
@


1.56.8.3
log
@Respect NO_INET6 knob (MFC in spirit of rev. 1.61).

Submitted by:	Alex Kozlov <spam rm-rf.kiev.ua>
PR:		bin/96335
@
text
@a7 1
.if !defined(NO_INET6)
a8 1
.endif
@


1.56.8.4
log
@MFC: expand_number(3)
@
text
@d11 5
a15 5
SRCS=	_secure_path.c auth.c expand_number.c fparseln.c \
	humanize_number.c login.c login_auth.c login_cap.c login_class.c \
	login_crypt.c login_ok.c login_times.c login_tty.c logout.c \
	logwtmp.c pidfile.c property.c pty.c pw_util.c realhostname.c \
	stub.c trimdomain.c uucplock.c
d22 1
a22 1
	pidfile.3 expand_number.3
@


1.56.8.5
log
@MFC: flopen(3)
@
text
@d11 1
a11 1
SRCS=	_secure_path.c auth.c expand_number.c flopen.c fparseln.c \
d22 1
a22 1
	pidfile.3 flopen.3 expand_number.3
@


1.56.8.6
log
@style.Makefile(9)
@
text
@d7 4
a10 1

a17 6
CFLAGS+=-DLIBC_SCCS
.if !defined(NO_INET6)
CFLAGS+=-DINET6
.endif
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../libc/gen/

@


1.56.8.7
log
@MFC: kld(3)
@
text
@d9 1
a9 1
	humanize_number.c kld.c login.c login_auth.c login_cap.c login_class.c \
d21 1
a21 1
MAN+=	kld.3 login.3 login_auth.3 login_tty.3 logout.3 logwtmp.3 pty.3 \
a26 1
MLINKS+= kld.3 kld_isloaded.3  kld.3 kld_load.3
@


1.56.8.8
log
@Switch importer
@
text
@d2 1
a2 1
#	$FreeBSD: stable/6/lib/libutil/Makefile 172283 2007-09-21 14:52:31Z obrien $
@


1.56.8.7.4.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.55
log
@Back out the "clean_environment()" function from libutil.

Further contemplation has convinced me that this was
not going to really solve the problem of environment-poisoning
without raising serious administrative headaches.  There
must be a better way...
@
text
@d9 3
a11 3
SRCS=	_secure_path.c auth.c fparseln.c login.c login_auth.c \
	login_cap.c login_class.c login_crypt.c login_ok.c login_times.c \
	login_tty.c logout.c logwtmp.c property.c pty.c \
d19 1
a19 1
	realhostname_sa.3 trimdomain.3 fparseln.3
@


1.54
log
@Add a clean_environment call to libutil.

This function removes all environment variables except
the ones listed on a "whitelist."

The function accepts two whitelist arguments.
If the first is NULL, a built-in default list will be
used.  This allows callers to get a variety of behaviors:
  * Default screening: provide NULL for both lists
  * Custom screening: provide a custom list for the first argument
  * Modified default screening: provide NULL for first arg,
     list of additional variables to preserve in the second arg

Idea from: Jacques Vidrine

MFC after: 2 weeks
@
text
@d9 3
a11 3
SRCS=	_secure_path.c auth.c clean_environment.c fparseln.c login.c \
	login_auth.c login_cap.c login_class.c login_crypt.c login_ok.c \
	login_times.c login_tty.c logout.c logwtmp.c property.c pty.c \
d19 1
a19 1
	realhostname_sa.3 trimdomain.3 fparseln.3 clean_environment.3
@


1.53
log
@Bump the major version on libtuil.  libutil now relies on the mac_*
symbols exported by newer versions of libc, and so we want applications
depending on the newer library code to be required to link against the
newer libc.

Discussed with:	scottl, kris, imp
@
text
@d9 3
a11 3
SRCS=	_secure_path.c auth.c fparseln.c login.c login_auth.c \
	login_cap.c login_class.c login_crypt.c login_ok.c login_times.c \
	login_tty.c logout.c logwtmp.c property.c pty.c \
d19 1
a19 1
	realhostname_sa.3 trimdomain.3 fparseln.3
@


1.52
log
@Remove a GCC specifig CFLAG. We should be using WARNS=? for this.
WARNS=? is not added here at this point, because I've not tested
it on enough platforms, and I don't want to break builds.
@
text
@d5 1
a5 1
SHLIB_MAJOR= 3
@


1.51
log
@style.Makefile(5)
@
text
@d7 1
a7 1
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../libc/gen/
@


1.50
log
@Stage 3 of dynamic root support. Make all the libraries needed to run
binaries in /bin and /sbin installed in /lib. Only the versioned files
reside in /lib, the .so symlink continues to live /usr/lib so the
toolchain doesn't need to be modified.
@
text
@d6 1
a6 1
SHLIBDIR?=/lib
@


1.49
log
@Zap now-unused SHLIB_MINOR
@
text
@d6 1
@


1.48
log
@Backout previous delta (addition of -I${.CURDIR}/../../sys).

Submitted by:	bde
@
text
@a5 1
SHLIB_MINOR= 0
@


1.47
log
@Add -I${.CURDIR}/../../sys into CFLAGS, which should fix the world broken
by RLIMIT_VMEM addition.
@
text
@d7 1
a7 2
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../libc/gen/ \
	-I${.CURDIR}/../../sys
@


1.46
log
@Add passwd manipulation code based on parts of vipw and chpass.

Sponsored by:	DARPA, NAI Labs
@
text
@d7 2
a8 1
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../libc/gen/
@


1.45
log
@o Reflect repo-copy of extattr.[c3] from libutil to libc, moving
  extattr namespace routines to the libc/posix1e directory.  While
  the extattr calls are not strictly POSIX.1e, POSIX.1e wasn't
  strictly ever approved, so I think that's OK.

Obtained from:	TrustedBSD Project
@
text
@d7 1
a7 1
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR}
d9 4
a12 3
SRCS=	_secure_path.c auth.c fparseln.c login.c login_auth.c	      \
	login_cap.c login_class.c login_crypt.c login_ok.c login_times.c      \
	login_tty.c logout.c logwtmp.c property.c pty.c realhostname.c stub.c \
@


1.44
log
@remove emalloc,ecalloc,erealloc,estrdup
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.43 2001/07/22 22:26:36 assar Exp $
d9 1
a9 1
SRCS=	_secure_path.c auth.c extattr.c fparseln.c login.c login_auth.c	      \
a14 1
MAN+=	extattr.3
a19 2
MLINKS+= extattr.3 extattr_namespace_to_string.3 \
	extattr.3 extattr_string_to_namespace.3 
@


1.43
log
@add ecalloc, emalloc, erealloc, estrdup - versions of the e-less
functions that exit instead of failing
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.42 2001/06/24 23:54:46 dd Exp $
d9 1
a9 2
SRCS=	_secure_path.c auth.c ecalloc.c emalloc.c erealloc.c estrdup.c	      \
	extattr.c fparseln.c login.c login_auth.c			      \
a20 2
MAN+=	emalloc.3

a43 1
MLINKS+=emalloc.3 ecalloc.3 emalloc.3 erealloc.3 emalloc.3 estrdup.3
@


1.42
log
@Add a manual page for extattr_string_to_namespace and
extattr_namespace_to_string.

Reviewed by:	rwatson
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.41 2001/05/18 13:41:23 ru Exp $
d9 3
a11 2
SRCS=	_secure_path.c auth.c extattr.c fparseln.c login.c login_auth.c \
	login_cap.c login_class.c login_crypt.c login_ok.c login_times.c \
d22 2
d47 1
@


1.41
log
@Removed -I${.CURDIR}/.../sys from CFLAGS.
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.40 2001/03/27 17:27:17 ru Exp $
d15 1
d21 2
@


1.40
log
@MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.39 2001/03/15 03:00:39 rwatson Exp $
d7 1
a7 1
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../../sys
@


1.39
log
@o To support new EA interface with explicit namespaces, introduce two
  utility functions which convert between string namespace names and
  numeric constants used by the interface.  Right now, two namespaces
  are supported, EXTATTR_NAMESPACE_SYSTEM ("system") and
  EXTATTR_NAMESPACE_USER ("user").  These functions are used by
  various userland EA utilities, rather than hard coding the routines
  all over the place.

Obtained from:	TrustedBSD Project
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.38 2001/03/14 20:51:14 brian Exp $
d15 1
a15 1
MAN3+=	login.3 login_auth.3 login_tty.3 logout.3 logwtmp.3 pty.3 \
d19 1
a19 1
MAN5+=	login.conf.5 auth.conf.5
@


1.38
log
@Move trimdomain() into it's own source file and tidy things up a bit.
Fix disorder in the Makefile.

Reviewed (mostly) by: bde
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.37 2000/10/27 01:19:02 green Exp $
d9 3
a11 3
SRCS=	_secure_path.c auth.c fparseln.c login.c login_auth.c login_cap.c \
	login_class.c login_crypt.c login_ok.c login_times.c login_tty.c \
	logout.c logwtmp.c property.c pty.c realhostname.c stub.c \
@


1.37
log
@Fix problems people were having with large -O levels with GCC and
getting libutil/libcrypt to work properly.  I've determined that GCC
thinks it can inline all functions, including weak-symboled ones, if
it feels like it.

Create a new stub.c and move any stubs there to prevent inlining.
Thanks to jdp and William S. Duncanson for helping me finally find the
problem.
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.36 2000/09/02 01:51:35 brian Exp $
d9 4
a12 4
SRCS=	login.c login_tty.c logout.c logwtmp.c pty.c \
	login_cap.c login_class.c login_auth.c login_times.c login_ok.c \
	login_crypt.c _secure_path.c uucplock.c property.c auth.c \
	realhostname.c fparseln.c stub.c
@


1.36
log
@Move setproctitle() from libutil to libc (after a repo-copy)
and bump __FreeBSD_version to 500012 to mark the occasion.

setproctitle() is prototyped in unistd.h as opposed to stdlib.h
where OpenBSD and NetBSD have it.

Reviewed by: peter
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.35 2000/08/23 03:45:57 green Exp $
d12 1
a12 1
	realhostname.c fparseln.c
@


1.35
log
@Stick login_setcryptfmt() in its own file to make pulling in of
-lcrypt only happen if truly necessary.
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.34 2000/08/22 02:15:52 green Exp $
d9 1
a9 1
SRCS=	login.c login_tty.c logout.c logwtmp.c pty.c setproctitle.c \
d16 1
a16 1
	setproctitle.3 login_cap.3 login_class.3 login_times.3 login_ok.3 \
@


1.34
log
@Add working and easy crypt(3)-switching.  Yes, we need a whole new API
for crypt(3) by now.  In any case:

Add crypt_set_format(3) + documentation to -lcrypt.
Add login_setcryptfmt(3) + documentation to -lutil.
Support for switching crypt formats in passwd(8).
Support for switching crypt formats in pw(8).

The simple synopsis is:
edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)

Reviewed by:	peter
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.33 2000/02/14 03:55:27 shin Exp $
d11 2
a12 1
	_secure_path.c uucplock.c property.c auth.c realhostname.c fparseln.c
a13 3

LDADD+=	-lcrypt
DPADD+=	${LIBCRYPT}
@


1.33
log
@Update major version.

    Now libutil depends on libc.so.4, so needs to update the major version.
    Without this, old binaries which use libutil and build with libc.so.3
    will coredump on recent 4.0.

Solicited comment for cvs-committers and there seems to be no objection.

Approved by: jkh
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.32 2000/01/27 21:16:53 joe Exp $
d13 4
d32 1
a32 1
	login_cap.3 login_getpwclass.3
@


1.33.2.1
log
@MFC: Move setproctitle() from libutil to libc
     and bump __FreeBSD_version to 410002 to mark the occasion.
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.33 2000/02/14 03:55:27 shin Exp $
d9 1
a9 1
SRCS=	login.c login_tty.c logout.c logwtmp.c pty.c \
d14 1
a14 1
	login_cap.3 login_class.3 login_times.3 login_ok.3 \
@


1.33.2.2
log
@MFC: login.conf password format switching
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.33.2.1 2000/09/16 22:47:17 brian Exp $
d11 1
a11 2
	login_crypt.c _secure_path.c uucplock.c property.c auth.c \
	realhostname.c fparseln.c
a12 1

d28 1
a28 1
	login_cap.3 login_getpwclass.3 login_cap.3 login_setcryptfmt.3
@


1.33.2.3
log
@MFC: fix accidental inlining
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.33.2.2 2000/09/20 11:19:54 green Exp $
d12 1
a12 1
	realhostname.c fparseln.c stub.c
@


1.33.2.4
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.33.2.3 2000/10/27 01:50:31 green Exp $
d15 1
a15 1
MAN+=	login.3 login_auth.3 login_tty.3 logout.3 logwtmp.3 pty.3 \
d19 1
a19 1
MAN+=	login.conf.5 auth.conf.5
@


1.33.2.5
log
@Switch importer
@
text
@d2 1
a2 1
#	$FreeBSD: stable/4/lib/libutil/Makefile 75949 2001-04-25 10:04:44Z ru $
@


1.32
log
@Historically file flags (schg, uschg, etc) have been converted from
string to u_long and back using two functions, flags_to_string and
string_to_flags, which co-existed with 'ls'.  As time has progressed
more and more other tools have used these private functions to
manipulate the file flags.

Recently I moved these functions from /usr/src/bin/ls to libutil,
but after some discussion with bde it's been decided that they
really ought to go in libc.

There are two already existing libc functions for manipulating file
modes:  setmode and getmode.  In keeping with these flags_to_string
has been renamed getflags and string_to_flags to setflags.

The manual page could probably be improved upon ;)
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.31 2000/01/25 14:51:56 shin Exp $
d5 2
a6 2
SHLIB_MAJOR= 2
SHLIB_MINOR= 2
@


1.31
log
@several tcp apps IPv6 update
 -inetd
 -rshd
 -rlogind
 -telnetd
 -rsh
 -rlogin

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.30 2000/01/14 07:57:43 rgrimes Exp $
d11 1
a11 2
	_secure_path.c uucplock.c property.c auth.c realhostname.c fparseln.c \
	stat_flags.c
@


1.30
log
@Replace beforeinstall target with new variables used by .mk system.

Reviewed by:	marcel, and make world
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.29 1999/12/30 13:15:10 joe Exp $
d8 1
d17 1
a17 1
	trimdomain.3 fparseln.3
@


1.29
log
@Moved flags_to_string and string_to_flags into libutil.  It's used in
many places nowadays.
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.28 1999/12/29 17:50:33 peter Exp $
d12 1
a38 6

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/libutil.h \
		${DESTDIR}/usr/include
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/login_cap.h \
		${DESTDIR}/usr/include
@


1.28
log
@Connect fparseln(3) for mailwrapper(8)
@
text
@d2 1
a2 1
#	$FreeBSD: src/lib/libutil/Makefile,v 1.27 1999/11/04 08:33:18 jkoshy Exp $
d10 2
a11 1
	_secure_path.c uucplock.c property.c auth.c realhostname.c fparseln.c
@


1.27
log
@Link manual page for login_getpwclass(3) to login_cap(3).

PR:             docs/14673
Submitted by:   Andrew <andrew@@ugh.net.au>
@
text
@d2 1
a2 1
#	$FreeBSD$
d10 1
a10 1
	_secure_path.c uucplock.c property.c auth.c realhostname.c
d14 1
a14 1
	trimdomain.3
@


1.26
log
@Axe LOGIN_CAP_AUTH.

PR:	10115
Reported by:	Gene Skonicki <gene@@cif.rochester.edu>
Requested by:	jdp
@
text
@d2 1
d25 2
a26 1
	login_cap.3 login_getcapbool.3 login_cap.3 login_getpath.3
@


1.25
log
@Fix commented out CFLAGS addition for LOGIN_CAP_AUTH, which was missing
a make -D option.

PR:	12591
Submitted by:	Craig Leres <leres@@ee.lbl.gov>
@
text
@a6 1
#CFLAGS+=-DLOGIN_CAP_AUTH
@


1.24
log
@add MLINKS for two functions used from login_auth.c
comment out unused functions from login_auth.3
@
text
@d7 1
a7 1
#CFLAGS+=LOGIN_CAP_AUTH
@


1.23
log
@Tidy up trimdomain() and document it.
Don't truncate one byte short of the passed length.
@
text
@d33 1
@


1.22
log
@Add realhostname() - a function to correctly lookup
a name by address and ensure that the name resolves
back to the original address.
@
text
@d13 2
a14 1
	_secure_path.3 uucplock.3 property.3 auth.3 realhostname.3
@


1.21
log
@Add some rudimentary documentation for my new functions.
@
text
@d10 1
a10 1
	_secure_path.c uucplock.c property.c auth.c
d13 1
a13 1
	_secure_path.3 uucplock.3 property.3 auth.3
@


1.21.2.1
log
@login_auth MFC
@
text
@a31 1
MLINKS+=login_auth.3 auth_checknologin.3 login_auth.3 auth_cat.3
@


1.21.2.2
log
@MFC: Add some const keywords and fix some typos in man pages.
     Fix and document trimdomain and make it handle DISPLAY names.
     Switch to the correct user before reading .login_conf.
     Add realhostname().
@
text
@d10 1
a10 1
	_secure_path.c uucplock.c property.c auth.c realhostname.c
d13 1
a13 2
	_secure_path.3 uucplock.3 property.3 auth.3 realhostname.3 \
	trimdomain.3
@


1.21.2.3
log
@MFC: Fix commented out CFLAGS modifier.
@
text
@d7 1
a7 1
#CFLAGS+=-DLOGIN_CAP_AUTH
@


1.21.2.4
log
@MFC: Apply the Danish Axe to LOGIN_CAP_AUTH.

Approved by:	jkh
@
text
@d7 1
@


1.21.2.5
log
@MFC: {rev 1.27} Link manual page for login_getpwclass(3) to login_cap(3).

Add $FreeBSD$.
@
text
@a1 1
#	$FreeBSD$
d24 1
a24 2
	login_cap.3 login_getcapbool.3 login_cap.3 login_getpath.3 \
	login_cap.3 login_getpwclass.3
@


1.20
log
@Add a simple mechanism for reading property lists from files (which
I'll convert sysinstall to use shortly) and a simple call which uses
this mechanism to implement an /etc/auth.conf file.  I'll let Mark Murray
handle the format and checkin of the sample auth.conf file.
Reviewed by:	markm
@
text
@d13 5
a17 2
	_secure_path.3 uucplock.3
MAN5+=	login.conf.5
@


1.19
log
@Add uu_lock_txfr() to transfer ownership of a successful
uu_lock() to another process.
@
text
@d10 1
a10 1
	_secure_path.c uucplock.c
@


1.18
log
@MF22: add login_auth.3 to man page list.
@
text
@d29 2
a30 1
MLINKS+=uucplock.3 uu_lock.3 uucplock.3 uu_unlock.3 uucplock.3 uu_lockerr.3
@


1.17
log
@Remove login_progok()
Suggested by: guido
@
text
@d11 2
a12 2
MAN3+=	login.3 login_tty.3 logout.3 logwtmp.3 pty.3 setproctitle.3 \
	login_cap.3 login_class.3 login_times.3 login_ok.3 \
@


1.16
log
@Add full support for determining if a user
is restricted from running a given program.
@
text
@d10 1
a10 1
	_secure_path.c uucplock.c login_progok.c
d13 1
a13 1
	_secure_path.3 uucplock.3 login_progok.3
@


1.15
log
@-I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.
@
text
@d10 1
a10 1
	_secure_path.c uucplock.c
d13 1
a13 1
	_secure_path.3 uucplock.3
@


1.14
log
@Add appropriate ${DESTDIR} in front of absolute paths.
@
text
@d6 1
a6 1
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${DESTDIR}/sys
@


1.13
log
@Back out previous revision.  Shlib version numbers are supposed to be
bumped only 0.1 or 1.0 between releases.  (See handbook.)

Note that if you have built world in -current in the last 48 hours or
so, you should manually remove /usr/lib/libutil.so.2.3 before
rebuilding world to cleanse your system.
@
text
@d6 1
a6 1
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I/sys
@


1.12
log
@Bump shared lib version to 2.3.

Suggested by: bde
@
text
@d5 1
a5 1
SHLIB_MINOR= 3
@


1.11
log
@Summary of login.conf support changes:

o Incorporated BSDI code and enhancements, better logging for error
  checking (which has been shown to be a problem, and is therefore
  justified, imho); also some minor things we were missing, including
  better quad_t math, which checks for under/overflows.

o setusercontext() now allows user resource limit overrides, but
  does this AFTER dropping root privs, to restrict the user to
  droping hard limits and set soft limits within the kernel's
  allowed user limits.

o umask() only set once, and only if requested.

o add _secure_path(), and use in login.conf to guard against
  symlinks etc. and non-root owned or non-user owned files being
  used. Derived from BSDI contributed code.

o revamped authentication code to BSDI's latest api, which
  includes deleting authenticate() and adding auth_check()
  and a few other functions. This is still marked as depecated
  in BSDI, but is included for completeness. No other source
  in the tree uses this anyway, so it is now bracketed with
  #ifdef LOGIN_CAP_AUTH which is by default not defined. Only
  auth_checknologin() and auth_cat() are actually used in
  module login_auth.c.

o AUTH_NONE definition removed (collided with other includes
  in the tree). [bde]

o BSDI's login_getclass() now accepts a char *classname
  parameter rather than struct passwd *pwd. We now do likewise,
  but added login_getpwclass() for (sort of) backwards
  compatiblity, namely because we handle root as a special
  case for the default class. This will require quite a few
  changes elsewhere in the source tree.

o We no longer pretend to support rlim_t as a long type.

o Revised code formatting to be more bsd-ish style.
@
text
@d5 1
a5 1
SHLIB_MINOR= 2
@


1.10
log
@Move login_cap.h from src/include for easier maintenance with
related files.
@
text
@d7 1
d10 1
a10 1
	uucplock.c
d12 2
a13 1
	login_cap.3 login_class.3 login_times.3 login_ok.3 uucplock.3
@


1.9
log
@MLINK uu_lockerr(3).
@
text
@d32 2
@


1.8
log
@Move uucplock into libutil and create a manual page.
@
text
@d27 1
a27 1
MLINKS+=uucplock.3 uu_lock.3 uucplock.3 uu_unlock.3
@


1.7
log
@Added -Wall to CFLAGS, cleaned up (all avoidable) warnings.
@
text
@d8 2
a9 1
	login_cap.c login_class.c login_auth.c login_times.c login_ok.c
d11 1
a11 1
	login_cap.3 login_class.3 login_times.3 login_ok.3
d27 1
@


1.6
log
@Bump libutil.so version (2.1 -> 2.2) since a whole heap of new functions
were added with the login class stuff.  This is needed since libutil.so.2.1
is what is used in RELENG_2_2 and well into the release cycle.  We only
bump once per release cycle as needed.
@
text
@d6 1
a6 1
CFLAGS+=-DLIBC_SCCS -I${.CURDIR} -I/sys
@


1.5
log
@Library functions relating to the login class capabilities database,
including manpages.
See also login_cap.h.
@
text
@d5 1
a5 1
SHLIB_MINOR= 1
@


1.4
log
@Finally document the interfaces found in libutil.  While being here,
also add the missing declaration of forkpty() to libutil.h.

Btw., the calling interface for login(3) is crude.  Some better
abstraction is needed, perhaps similar to logwtmp(3).

2.2 candidate, but i'll wait for the spelling police first. :)
@
text
@d7 5
a11 2
SRCS=	login.c login_tty.c logout.c logwtmp.c pty.c setproctitle.c
MAN3+=	login.3 login_tty.3 logout.3 logwtmp.3 pty.3 setproctitle.3
d13 13
@


1.3
log
@Bump libutil revision after recent addition of setproctitle().

Install (optional) libutil.h with prototypes for the functions and
document this in the man page.

minor cleanups to the various routines, include the prototype file, declare
return codes etc.
@
text
@d8 2
a9 1
MAN3+=	setproctitle.3
@


1.3.2.1
log
@YAMFC:

Install the new login*.3 man pages and pty.3.
mdoc changes to setproctitle.3.

The new man pages were tagged onto the RELENG_2_2.
branch.
@
text
@d8 1
a8 2
MAN3+=	login.3 login_tty.3 logout.3 logwtmp.3 pty.3 setproctitle.3
MLINKS+= pty.3 openpty.3  pty.3 forkpty.3
@


1.3.2.2
log
@Brings in login.conf, uucplock to 2.2 branch.
Bumps sharedlib version to 2.2, in line with current (since they are
now identical in both branches).
@
text
@d5 4
a8 10
SHLIB_MINOR= 2
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I/sys
#CFLAGS+=LOGIN_CAP_AUTH
SRCS=	login.c login_tty.c logout.c logwtmp.c pty.c setproctitle.c \
	login_cap.c login_class.c login_auth.c login_times.c login_ok.c \
	_secure_path.c uucplock.c
MAN3+=	login.3 login_tty.3 logout.3 logwtmp.3 pty.3 setproctitle.3 \
	login_cap.3 login_class.3 login_times.3 login_ok.3 \
	_secure_path.3 uucplock.3
MAN5+=	login.conf.5
a9 14
MLINKS+=login_cap.3 login_getclassbyname.3 login_cap.3 login_close.3 \
	login_cap.3 login_getclass.3 login_cap.3 login_getuserclass.3 \
	login_cap.3 login_getcapstr.3 login_cap.3 login_getcaplist.3 \
	login_cap.3 login_getstyle.3 login_cap.3 login_getcaptime.3 \
	login_cap.3 login_getcapnum.3 login_cap.3 login_getcapsize.3 \
	login_cap.3 login_getcapbool.3 login_cap.3 login_getpath.3
MLINKS+=login_class.3 setusercontext.3 login_class.3 setclasscontext.3 \
	login_class.3 setclassenvironment.3 login_class.3 setclassresources.3
MLINKS+=login_times.3 parse_lt.3 login_times.3 in_ltm.3 \
	login_times.3 in_lt.3 login_times.3 in_ltms.3 \
	login_times.3 in_lts.3
MLINKS+=login_ok.3 auth_ttyok.3 login_ok.3 auth_hostok.3 \
	login_ok.3 auth_timeok.3
MLINKS+=uucplock.3 uu_lock.3 uucplock.3 uu_unlock.3 uucplock.3 uu_lockerr.3
a12 2
		${DESTDIR}/usr/include
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/login_cap.h \
@


1.3.2.3
log
@MFC: add ${DESTDIR}.
@
text
@d6 1
a6 1
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${DESTDIR}/sys
@


1.3.2.4
log
@YAMFC: Add full support for determining if a user
       is restricted from running a given program.
Although this is "new" code, nothing should be
changed to use it prior to Sep 15.
@
text
@d10 1
a10 1
	_secure_path.c uucplock.c login_progok.c
d13 1
a13 1
	_secure_path.3 uucplock.3 login_progok.3
@


1.3.2.5
log
@MFC: Remove login_progok()
     Suggested by: guido
@
text
@d10 1
a10 1
	_secure_path.c uucplock.c
d13 1
a13 1
	_secure_path.3 uucplock.3
@


1.3.2.6
log
@MFC: /sys relativity.
@
text
@d6 1
a6 1
CFLAGS+=-Wall -DLIBC_SCCS -I${.CURDIR} -I${.CURDIR}/../../sys
@


1.3.2.7
log
@MFC: add new login_auth(3) man page and merge various fixes from current
@
text
@d11 2
a12 2
MAN3+=	login.3 login_auth.3 login_tty.3 logout.3 logwtmp.3 pty.3 \
	setproctitle.3 login_cap.3 login_class.3 login_times.3 login_ok.3 \
@


1.2
log
@Bring in an initial version of setproctitle()..  This is intended to
replace the dozen other various hacks in the code that do all sorts
of crude things including spamming the envrionment strings with the new
argv string.

This version is mainly inspired by the sendmail version, with a couple of
ideas taken from the NetBSD implementation as well.
@
text
@d4 3
a6 1
CFLAGS+=-DLIBC_SCCS -I/sys
d9 4
@


1.1
log
@Initial revision
@
text
@d5 2
a6 1
SRCS=	login.c login_tty.c logout.c logwtmp.c pty.c
@


1.1.1.1
log
@BSD 4.4 Lite Lib Sources
@
text
@@


1.1.1.1.6.1
log
@Add setproctitle to makefile (which was manually tagged onto the branch)
Bump shared lib version to libutil.so.2.1, as per -current
@
text
@d4 2
a5 9
SHLIB_MAJOR= 2
SHLIB_MINOR= 1
CFLAGS+=-DLIBC_SCCS -I${.CURDIR} -I/sys
SRCS=	login.c login_tty.c logout.c logwtmp.c pty.c setproctitle.c
MAN3+=	setproctitle.3

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/libutil.h \
		${DESTDIR}/usr/include
@
