head	1.28;
access;
symbols
	netbsd-10-2-RELEASE:1.27
	netbsd-9-5-RELEASE:1.25
	netbsd-11-0-RELEASE:1.28
	netbsd-11-0-RC7:1.28
	netbsd-11-0-RC6:1.28
	netbsd-11-0-RC5:1.28
	netbsd-11-0-RC4:1.28
	netbsd-11-0-RC3:1.28
	netbsd-11-0-RC2:1.28
	netbsd-11-0-RC1:1.28
	perseant-exfatfs-base-20250801:1.28
	netbsd-11:1.28.0.4
	netbsd-11-base:1.28
	netbsd-10-1-RELEASE:1.27
	perseant-exfatfs-base-20240630:1.28
	perseant-exfatfs:1.28.0.2
	perseant-exfatfs-base:1.28
	netbsd-8-3-RELEASE:1.25
	netbsd-9-4-RELEASE:1.25
	netbsd-10-0-RELEASE:1.27
	netbsd-10-0-RC6:1.27
	netbsd-10-0-RC5:1.27
	netbsd-10-0-RC4:1.27
	netbsd-10-0-RC3:1.27
	netbsd-10-0-RC2:1.27
	netbsd-10-0-RC1:1.27
	netbsd-10:1.27.0.2
	netbsd-10-base:1.27
	netbsd-9-3-RELEASE:1.25
	cjep_sun2x-base1:1.26
	cjep_sun2x:1.26.0.6
	cjep_sun2x-base:1.26
	cjep_staticlib_x-base1:1.26
	netbsd-9-2-RELEASE:1.25
	cjep_staticlib_x:1.26.0.4
	cjep_staticlib_x-base:1.26
	netbsd-9-1-RELEASE:1.25
	phil-wifi-20200421:1.26
	phil-wifi-20200411:1.26
	is-mlppp:1.26.0.2
	is-mlppp-base:1.26
	phil-wifi-20200406:1.26
	netbsd-8-2-RELEASE:1.25
	netbsd-9-0-RELEASE:1.25
	netbsd-9-0-RC2:1.25
	netbsd-9-0-RC1:1.25
	phil-wifi-20191119:1.26
	netbsd-9:1.25.0.16
	netbsd-9-base:1.25
	phil-wifi-20190609:1.25
	netbsd-8-1-RELEASE:1.25
	netbsd-8-1-RC1:1.25
	pgoyette-compat-merge-20190127:1.25
	pgoyette-compat-20190127:1.25
	pgoyette-compat-20190118:1.25
	pgoyette-compat-1226:1.25
	pgoyette-compat-1126:1.25
	pgoyette-compat-1020:1.25
	pgoyette-compat-0930:1.25
	pgoyette-compat-0906:1.25
	netbsd-7-2-RELEASE:1.23
	pgoyette-compat-0728:1.25
	netbsd-8-0-RELEASE:1.25
	phil-wifi:1.25.0.14
	phil-wifi-base:1.25
	pgoyette-compat-0625:1.25
	netbsd-8-0-RC2:1.25
	pgoyette-compat-0521:1.25
	pgoyette-compat-0502:1.25
	pgoyette-compat-0422:1.25
	netbsd-8-0-RC1:1.25
	pgoyette-compat-0415:1.25
	pgoyette-compat-0407:1.25
	pgoyette-compat-0330:1.25
	pgoyette-compat-0322:1.25
	pgoyette-compat-0315:1.25
	netbsd-7-1-2-RELEASE:1.23
	pgoyette-compat:1.25.0.12
	pgoyette-compat-base:1.25
	netbsd-7-1-1-RELEASE:1.23
	matt-nb8-mediatek:1.25.0.10
	matt-nb8-mediatek-base:1.25
	perseant-stdc-iso10646:1.25.0.8
	perseant-stdc-iso10646-base:1.25
	netbsd-8:1.25.0.6
	netbsd-8-base:1.25
	prg-localcount2-base3:1.25
	prg-localcount2-base2:1.25
	prg-localcount2-base1:1.25
	prg-localcount2:1.25.0.4
	prg-localcount2-base:1.25
	pgoyette-localcount-20170426:1.25
	bouyer-socketcan-base1:1.25
	pgoyette-localcount-20170320:1.25
	netbsd-7-1:1.23.0.26
	netbsd-7-1-RELEASE:1.23
	netbsd-7-1-RC2:1.23
	netbsd-7-nhusb-base-20170116:1.23
	bouyer-socketcan:1.25.0.2
	bouyer-socketcan-base:1.25
	pgoyette-localcount-20170107:1.25
	netbsd-7-1-RC1:1.23
	pgoyette-localcount-20161104:1.24
	netbsd-7-0-2-RELEASE:1.23
	localcount-20160914:1.24
	netbsd-7-nhusb:1.23.0.24
	netbsd-7-nhusb-base:1.23
	pgoyette-localcount-20160806:1.24
	pgoyette-localcount-20160726:1.24
	pgoyette-localcount:1.24.0.2
	pgoyette-localcount-base:1.24
	netbsd-7-0-1-RELEASE:1.23
	netbsd-7-0:1.23.0.22
	netbsd-7-0-RELEASE:1.23
	netbsd-7-0-RC3:1.23
	netbsd-7-0-RC2:1.23
	netbsd-7-0-RC1:1.23
	netbsd-5-2-3-RELEASE:1.21
	netbsd-5-1-5-RELEASE:1.21
	netbsd-6-0-6-RELEASE:1.23
	netbsd-6-1-5-RELEASE:1.23
	netbsd-7:1.23.0.20
	netbsd-7-base:1.23
	yamt-pagecache-base9:1.23
	yamt-pagecache-tag8:1.23
	netbsd-6-1-4-RELEASE:1.23
	netbsd-6-0-5-RELEASE:1.23
	tls-earlyentropy:1.23.0.18
	tls-earlyentropy-base:1.23
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.23
	riastradh-drm2-base3:1.23
	netbsd-6-1-3-RELEASE:1.23
	netbsd-6-0-4-RELEASE:1.23
	netbsd-5-2-2-RELEASE:1.21
	netbsd-5-1-4-RELEASE:1.21
	netbsd-6-1-2-RELEASE:1.23
	netbsd-6-0-3-RELEASE:1.23
	netbsd-5-2-1-RELEASE:1.21
	netbsd-5-1-3-RELEASE:1.21
	netbsd-6-1-1-RELEASE:1.23
	riastradh-drm2-base2:1.23
	riastradh-drm2-base1:1.23
	riastradh-drm2:1.23.0.12
	riastradh-drm2-base:1.23
	netbsd-6-1:1.23.0.16
	netbsd-6-0-2-RELEASE:1.23
	netbsd-6-1-RELEASE:1.23
	netbsd-6-1-RC4:1.23
	netbsd-6-1-RC3:1.23
	agc-symver:1.23.0.14
	agc-symver-base:1.23
	netbsd-6-1-RC2:1.23
	netbsd-6-1-RC1:1.23
	yamt-pagecache-base8:1.23
	netbsd-5-2:1.21.0.2
	netbsd-6-0-1-RELEASE:1.23
	yamt-pagecache-base7:1.23
	netbsd-5-2-RELEASE:1.21
	netbsd-5-2-RC1:1.21
	matt-nb6-plus-nbase:1.23
	yamt-pagecache-base6:1.23
	netbsd-6-0:1.23.0.10
	netbsd-6-0-RELEASE:1.23
	netbsd-6-0-RC2:1.23
	tls-maxphys:1.23.0.8
	tls-maxphys-base:1.23
	matt-nb6-plus:1.23.0.6
	matt-nb6-plus-base:1.23
	netbsd-6-0-RC1:1.23
	yamt-pagecache-base5:1.23
	yamt-pagecache-base4:1.23
	netbsd-6:1.23.0.4
	netbsd-6-base:1.23
	netbsd-5-1-2-RELEASE:1.21
	netbsd-5-1-1-RELEASE:1.21
	yamt-pagecache-base3:1.23
	yamt-pagecache-base2:1.23
	yamt-pagecache:1.23.0.2
	yamt-pagecache-base:1.23
	cherry-xenmp:1.22.0.4
	cherry-xenmp-base:1.22
	bouyer-quota2-nbase:1.22
	bouyer-quota2:1.22.0.2
	bouyer-quota2-base:1.22
	matt-mips64-premerge-20101231:1.22
	matt-nb5-mips64-premerge-20101231:1.21
	matt-nb5-pq3:1.21.0.14
	matt-nb5-pq3-base:1.21
	netbsd-5-1:1.21.0.12
	netbsd-5-1-RELEASE:1.21
	netbsd-5-1-RC4:1.21
	matt-nb5-mips64-k15:1.21
	netbsd-5-1-RC3:1.21
	netbsd-5-1-RC2:1.21
	netbsd-5-1-RC1:1.21
	netbsd-5-0-2-RELEASE:1.21
	matt-nb5-mips64-premerge-20091211:1.21
	matt-premerge-20091211:1.22
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.21
	matt-nb4-mips64-k7-u2a-k9b:1.21
	matt-nb5-mips64-u1-k1-k5:1.21
	matt-nb5-mips64:1.21.0.10
	netbsd-5-0-1-RELEASE:1.21
	jym-xensuspend-nbase:1.22
	netbsd-5-0:1.21.0.8
	netbsd-5-0-RELEASE:1.21
	netbsd-5-0-RC4:1.21
	netbsd-5-0-RC3:1.21
	netbsd-5-0-RC2:1.21
	jym-xensuspend:1.21.0.6
	jym-xensuspend-base:1.22
	netbsd-5-0-RC1:1.21
	netbsd-5:1.21.0.4
	netbsd-5-base:1.21
	matt-mips64-base2:1.21
	matt-mips64:1.20.0.14
	netbsd-4-0-1-RELEASE:1.19
	wrstuden-revivesa-base-3:1.21
	wrstuden-revivesa-base-2:1.21
	wrstuden-fixsa-newbase:1.19
	wrstuden-revivesa-base-1:1.20
	yamt-pf42-base4:1.20
	yamt-pf42-base3:1.20
	hpcarm-cleanup-nbase:1.20
	yamt-pf42-baseX:1.20
	yamt-pf42-base2:1.20
	wrstuden-revivesa:1.20.0.12
	wrstuden-revivesa-base:1.20
	yamt-pf42:1.20.0.10
	yamt-pf42-base:1.20
	keiichi-mipv6-nbase:1.20
	keiichi-mipv6:1.20.0.8
	keiichi-mipv6-base:1.20
	matt-armv6-nbase:1.20
	matt-armv6-prevmlocking:1.20
	wrstuden-fixsa-base-1:1.19
	netbsd-4-0:1.19.0.10
	netbsd-4-0-RELEASE:1.19
	cube-autoconf:1.20.0.6
	cube-autoconf-base:1.20
	netbsd-4-0-RC5:1.19
	netbsd-4-0-RC4:1.19
	netbsd-4-0-RC3:1.19
	netbsd-4-0-RC2:1.19
	netbsd-4-0-RC1:1.19
	matt-armv6:1.20.0.4
	matt-armv6-base:1.20
	matt-mips64-base:1.20
	hpcarm-cleanup:1.20.0.2
	hpcarm-cleanup-base:1.20
	netbsd-3-1-1-RELEASE:1.17
	netbsd-3-0-3-RELEASE:1.17
	wrstuden-fixsa:1.19.0.8
	wrstuden-fixsa-base:1.19
	abandoned-netbsd-4-base:1.19
	abandoned-netbsd-4:1.19.0.4
	netbsd-3-1:1.17.0.6
	netbsd-3-1-RELEASE:1.17
	netbsd-3-0-2-RELEASE:1.17
	netbsd-3-1-RC4:1.17
	netbsd-3-1-RC3:1.17
	netbsd-3-1-RC2:1.17
	netbsd-3-1-RC1:1.17
	netbsd-4:1.19.0.6
	netbsd-4-base:1.19
	chap-midi-nbase:1.19
	netbsd-3-0-1-RELEASE:1.17
	chap-midi:1.19.0.2
	chap-midi-base:1.19
	netbsd-3-0:1.17.0.4
	netbsd-3-0-RELEASE:1.17
	netbsd-3-0-RC6:1.17
	netbsd-3-0-RC5:1.17
	netbsd-3-0-RC4:1.17
	netbsd-3-0-RC3:1.17
	netbsd-3-0-RC2:1.17
	netbsd-3-0-RC1:1.17
	netbsd-2-0-3-RELEASE:1.15
	netbsd-2-1:1.15.0.14
	netbsd-2-1-RELEASE:1.15
	netbsd-2-1-RC6:1.15
	netbsd-2-1-RC5:1.15
	netbsd-2-1-RC4:1.15
	netbsd-2-1-RC3:1.15
	netbsd-2-1-RC2:1.15
	netbsd-2-1-RC1:1.15
	netbsd-2-0-2-RELEASE:1.15
	netbsd-3:1.17.0.2
	netbsd-3-base:1.17
	netbsd-2-0-1-RELEASE:1.15
	netbsd-2:1.15.0.12
	netbsd-2-base:1.15
	netbsd-2-0-RELEASE:1.15
	netbsd-2-0-RC5:1.15
	netbsd-2-0-RC4:1.15
	netbsd-2-0-RC3:1.15
	netbsd-2-0-RC2:1.15
	netbsd-2-0-RC1:1.15
	netbsd-2-0:1.15.0.10
	netbsd-2-0-base:1.15
	netbsd-1-6-PATCH002-RELEASE:1.15
	netbsd-1-6-PATCH002:1.15
	netbsd-1-6-PATCH002-RC4:1.15
	netbsd-1-6-PATCH002-RC3:1.15
	netbsd-1-6-PATCH002-RC2:1.15
	netbsd-1-6-PATCH002-RC1:1.15
	netbsd-1-6-PATCH001:1.15
	netbsd-1-6-PATCH001-RELEASE:1.15
	netbsd-1-6-PATCH001-RC3:1.15
	netbsd-1-6-PATCH001-RC2:1.15
	netbsd-1-6-PATCH001-RC1:1.15
	fvdl_fs64_base:1.15
	netbsd-1-6-RELEASE:1.15
	netbsd-1-6-RC3:1.15
	netbsd-1-6-RC2:1.15
	netbsd-1-6-RC1:1.15
	netbsd-1-6:1.15.0.8
	netbsd-1-6-base:1.15
	netbsd-1-5-PATCH003:1.15
	netbsd-1-5-PATCH002:1.15
	kqueue:1.15.0.6
	kqueue-base:1.15
	netbsd-1-5-PATCH001:1.15
	netbsd-1-5-RELEASE:1.15
	netbsd-1-5-BETA2:1.15
	netbsd-1-5-BETA:1.15
	netbsd-1-4-PATCH003:1.12
	netbsd-1-5-ALPHA2:1.15
	netbsd-1-5:1.15.0.4
	netbsd-1-5-base:1.15
	minoura-xpg4dl-base:1.15
	minoura-xpg4dl:1.15.0.2
	netbsd-1-4-PATCH002:1.12
	wrstuden-devbsize-19991221:1.14
	wrstuden-devbsize:1.14.0.4
	wrstuden-devbsize-base:1.14
	comdex-fall-1999:1.14.0.2
	comdex-fall-1999-base:1.14
	netbsd-1-4-PATCH001:1.12
	netbsd-1-4-RELEASE:1.12
	netbsd-1-4:1.12.0.2
	netbsd-1-4-base:1.12
	netbsd-1-3-PATCH003:1.9
	netbsd-1-3-PATCH003-CANDIDATE2:1.9
	netbsd-1-3-PATCH003-CANDIDATE1:1.9
	netbsd-1-3-PATCH003-CANDIDATE0:1.9
	netbsd-1-3-PATCH002:1.9
	netbsd-1-3-PATCH001:1.9
	netbsd-1-3-RELEASE:1.9
	netbsd-1-3-BETA:1.9
	netbsd-1-3:1.9.0.2
	netbsd-1-3-base:1.9
	netbsd-1-2-PATCH001:1.8
	netbsd-1-2-RELEASE:1.8
	netbsd-1-2-BETA:1.8
	netbsd-1-2:1.8.0.6
	netbsd-1-2-base:1.8
	netbsd-1-1-PATCH001:1.8
	netbsd-1-1-RELEASE:1.8
	netbsd-1-1:1.8.0.2
	netbsd-1-1-base:1.8
	lite-2:1.1.1.2
	netbsd-1-0-PATCH06:1.7
	netbsd-1-0-PATCH05:1.7
	netbsd-1-0-PATCH04:1.7
	netbsd-1-0-PATCH03:1.7
	netbsd-1-0-PATCH02:1.7
	netbsd-1-0-PATCH1:1.7
	netbsd-1-0-PATCH0:1.7
	netbsd-1-0-RELEASE:1.7
	netbsd-1-0:1.7.0.2
	netbsd-1-0-base:1.7
	lite-1:1.1.1.2
	CSRG:1.1.1
	netbsd-0-9-RELEASE:1.2
	netbsd-0-9-BETA:1.2
	netbsd-0-9-ALPHA2:1.2
	netbsd-0-9-ALPHA:1.2
	netbsd-0-9:1.2.0.2
	netbsd-0-9-base:1.2
	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.28
date	2023.06.03.09.09.16;	author lukem;	state Exp;
branches;
next	1.27;
commitid	aBaIRnuykonRStrE;

1.27
date	2022.06.19.11.31.19;	author simonb;	state Exp;
branches;
next	1.26;
commitid	eZjMhmWSgcxQSDID;

1.26
date	2019.10.13.07.28.15;	author mrg;	state Exp;
branches;
next	1.25;
commitid	vRNwN94v7NgB2GGB;

1.25
date	2016.12.23.10.19.57;	author mrg;	state Exp;
branches
	1.25.14.1;
next	1.24;
commitid	6mgW6jOexUXsT5zz;

1.24
date	2016.01.23.16.12.03;	author christos;	state Exp;
branches
	1.24.2.1;
next	1.23;
commitid	POcQObZAnaeRC4Sy;

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

1.22
date	2009.04.14.22.15.20;	author lukem;	state Exp;
branches;
next	1.21;

1.21
date	2008.07.22.22.58.04;	author christos;	state Exp;
branches
	1.21.6.1;
next	1.20;

1.20
date	2007.05.28.12.06.26;	author tls;	state Exp;
branches
	1.20.12.1;
next	1.19;

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

1.18
date	2005.07.17.07.36.26;	author christos;	state Exp;
branches;
next	1.17;

1.17
date	2005.01.10.02.58.59;	author lukem;	state Exp;
branches;
next	1.16;

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

1.15
date	2000.01.17.16.14.39;	author itojun;	state Exp;
branches;
next	1.14;

1.14
date	99.09.12.01.19.25;	author chs;	state Exp;
branches;
next	1.13;

1.13
date	99.08.02.17.39.13;	author jdolecek;	state Exp;
branches;
next	1.12;

1.12
date	99.03.24.05.51.31;	author mrg;	state Exp;
branches;
next	1.11;

1.11
date	99.02.18.06.09.25;	author lukem;	state Exp;
branches;
next	1.10;

1.10
date	98.03.04.18.07.29;	author mycroft;	state Exp;
branches;
next	1.9;

1.9
date	97.01.09.20.19.28;	author tls;	state Exp;
branches;
next	1.8;

1.8
date	94.08.03.20.41.58;	author deraadt;	state Exp;
branches;
next	1.7;

1.7
date	94.06.13.22.12.07;	author mycroft;	state Exp;
branches;
next	1.6;

1.6
date	94.05.20.07.27.27;	author pk;	state Exp;
branches;
next	1.5;

1.5
date	94.05.09.07.07.32;	author cgd;	state Exp;
branches;
next	1.4;

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

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

1.2
date	93.06.17.13.17.48;	author mycroft;	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.25.14.1
date	2020.04.13.08.05.42;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.24.2.1
date	2017.01.07.08.56.57;	author pgoyette;	state Exp;
branches;
next	;
commitid	uEL0C1YuiJrlV0Bz;

1.21.6.1
date	2009.05.13.19.19.50;	author jym;	state Exp;
branches;
next	;

1.20.12.1
date	2008.09.18.04.29.12;	author wrstuden;	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	94.05.09.07.06.20;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.28
log
@bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@#	$NetBSD: Makefile,v 1.27 2022/06/19 11:31:19 simonb Exp $
#	from: @@(#)Makefile	8.1 (Berkeley) 6/6/93

.include <bsd.own.mk>

USE_FORT?= yes	# setuid
PROG=	fstat
SRCS=	fstat.c isofs.c ntfs.c ptyfs.c tmpfs.c misc.c
.if (${MKZFS} != "no")
SRCS+=	zfs.c
.endif
DPADD=	${LIBKVM}
LDADD=	-lkvm
BINGRP=	kmem
BINMODE=2555

CPPFLAGS+= -I${NETBSDSRCDIR}/sys

.if (${USE_INET6} != "no")
CPPFLAGS+=-DINET6
.endif
.if (${MKZFS} != "no")
CPPFLAGS+=-DHAVE_ZFS
.endif
CPPFLAGS+=-D_KMEMUSER

LDADD+=-lutil
DPADD+=${LIBUTIL}

.include "../../compat/exec.mk"

COPTS.fstat.c+=		${CC_WNO_FORMAT_TRUNCATION}

.include <bsd.prog.mk>
@


1.27
log
@Add basic ZFS support to fstat(1).
XXX: Use a local zfs_znode.h for a znode_t definition because the ZFS
kernel code makes it too hard to include headers from userland.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2019/10/13 07:28:15 mrg Exp $
d32 1
a32 1
COPTS.fstat.c+=		${GCC_NO_FORMAT_TRUNCATION}
@


1.26
log
@introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2016/12/23 10:19:57 mrg Exp $
d9 3
d22 3
@


1.25
log
@for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2016/01/23 16:12:03 christos Exp $
d26 2
@


1.25.14.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
a25 2
COPTS.fstat.c+=		${GCC_NO_FORMAT_TRUNCATION}

@


1.24
log
@put _KMEMUSER in the Makefile
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2011/09/10 18:34:54 christos Exp $
d24 2
@


1.24.2.1
log
@Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2016/12/23 10:19:57 mrg Exp $
a23 2
.include "../../compat/exec.mk"

@


1.23
log
@add libutil.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2009/04/14 22:15:20 lukem Exp $
d19 1
@


1.22
log
@Enable WARNS=4 by default for usr.bin, except for:
	awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2008/07/22 22:58:04 christos Exp $
d20 3
@


1.21
log
@a better attempt on printing dtype_misc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2007/05/28 12:06:26 tls Exp $
a6 1
WARNS=	3
@


1.21.6.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2009/04/14 22:15:20 lukem Exp $
d7 1
@


1.20
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2006/02/10 16:01:45 christos Exp $
d9 1
a9 1
SRCS=	fstat.c isofs.c ntfs.c ptyfs.c tmpfs.c
@


1.20.12.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2007/05/28 12:06:26 tls Exp $
d9 1
a9 1
SRCS=	fstat.c isofs.c ntfs.c ptyfs.c tmpfs.c misc.c
@


1.19
log
@PR/32788: KAMADA Ken'ichi: add support for tmpfs
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2005/07/17 07:36:26 christos Exp $
d6 1
@


1.18
log
@WARNS=3, knf, ansi prototypes
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2005/01/10 02:58:59 lukem Exp $
d8 1
a8 1
SRCS=	fstat.c isofs.c ntfs.c ptyfs.c
@


1.17
log
@Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2004/12/12 22:41:03 christos Exp $
d6 1
@


1.16
log
@Add ptyfs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2000/01/17 16:14:39 itojun Exp $
d4 2
d14 2
d17 1
@


1.15
log
@IPv6 support.
NetBSD PR: 9199 (with minor changes)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1999/09/12 01:19:25 chs Exp $
d5 1
a5 1
SRCS=	fstat.c isofs.c ntfs.c
d11 1
@


1.14
log
@the PMAP_NEW option is gone as the new interface is no longer optional.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1999/08/02 17:39:13 jdolecek Exp $
d10 2
@


1.13
log
@add support for ntfs
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1999/03/24 05:51:31 mrg Exp $
a11 5

# XXX
.if defined(PMAP_NEW)
CPPFLAGS+=      -DPMAP_NEW
.endif
@


1.12
log
@completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1999/02/18 06:09:25 lukem Exp $
d5 1
a5 1
SRCS=	fstat.c isofs.c
@


1.11
log
@as suggested by chuck cranor, pull in some openbsd mods:
* display ip address details of tcp/udp connections
* display isofs details
* use %p instead of %lx in error messages

other mods by me:
* don't put \n at the end of err()/warn() format
* man page cleanups (use .Dq and .Pq as appropriate)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1998/03/04 18:07:29 mycroft Exp $
a13 3
.if defined(UVM)
CPPFLAGS+=      -DUVM
.endif
@


1.10
log
@fstat(1) also depends on UVM and PMAP_NEW.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1997/01/09 20:19:28 tls Exp $
d5 1
@


1.9
log
@RCS ID police
@
text
@d1 1
a1 1
#	$NetBSD$
d11 8
@


1.8
log
@do not need -I/sys
@
text
@d1 1
a2 1
#	$Id: Makefile,v 1.7 1994/06/13 22:12:07 mycroft Exp $
@


1.7
log
@Merge local changes.
@
text
@d2 1
a2 1
#	$Id: $
a4 1
CFLAGS+=-I${DESTDIR}/sys
@


1.6
log
@Aid cross-compiling, like iostat
@
text
@d1 2
a2 1
#	@@(#)Makefile	8.1 (Berkeley) 6/6/93
@


1.5
log
@clean up import
@
text
@d4 1
a4 1
CFLAGS+=-I/sys
@


1.4
log
@needs -lkvm, not -lutil
@
text
@d1 1
a1 2
#	from: @@(#)Makefile	5.5 (Berkeley) 4/23/91
#	$Id: Makefile,v 1.3 1993/07/31 15:22:35 mycroft Exp $
d4 1
a4 2
SRCS=	fstat.c devname.c
.PATH:	${.CURDIR}/../../bin/ps
@


1.3
log
@Add RCS indentifiers.
@
text
@d2 1
a2 1
#	$Id: $
d7 2
a8 2
DPADD=	${LIBUTIL}
LDADD=	-lutil
@


1.2
log
@Don't need -I/sys.  (Why was it here?)
@
text
@d1 2
a2 1
#	@@(#)Makefile	5.5 (Berkeley) 4/23/91
@


1.1
log
@Initial revision
@
text
@a4 1
CFLAGS+=-I/sys
@


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


1.1.1.2
log
@new fstat
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.1 (Berkeley) 6/6/93
d4 1
d6 3
a8 2
DPADD=	${LIBKVM}
LDADD=	-lkvm
@
