Home | History | Annotate | Download | only in systat
History log of /src/usr.bin/systat/Makefile
RevisionDateAuthorComments
 1.45  03-Jun-2023  lukem 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.
 1.44  11-Dec-2020  simonb Add ${LIBUTIL} to DPADD.
 1.43  13-Oct-2019  mrg 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."
 1.42  29-Sep-2019  mrg convert HAVE_GCC == 7 to HAVE_GCC >= 7.
 1.41  04-Feb-2019  mrg - use -Wno-error=format-truncation
 1.40  23-Dec-2016  mrg branches: 1.40.14;
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.
 1.39  02-Aug-2016  scole PR bin/51204

Add ifstat command to systat.

Imported from FreeBSD
 1.38  23-Jan-2016  christos branches: 1.38.2;
Define _KERNTYPES for things that need it.
 1.37  06-Jan-2012  drochner kill ipsec support which hasn't been working for a long time
(neither for KAME nor for FAST_IPSEC)
 1.36  06-Feb-2010  he branches: 1.36.6;
When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
 1.35  14-Apr-2009  lukem 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
 1.34  28-May-2007  tls branches: 1.34.20;
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.
 1.33  18-Feb-2007  dsl Include code to display per system call counts and times.
 1.32  14-Apr-2006  blymn Update to use new kernel io statistics.
 1.31  07-Aug-2005  blymn Add tape statistics.
 1.30  26-Feb-2005  dsl WARNS=3
 1.29  16-Feb-2005  hubertf Add "df" display to give information about filesystems, available diskspace
and used disk capacity, similar to df(1):

Filesystem Avail Capacity
/0% /10% /20% /30% /40% /50% /60% /70% /80% /90% /100%
/ 359M |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
/tmp 180M |
/home 146G |XXXXXXXXXXXXXXXX
 1.28  10-Jan-2005  lukem 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).
 1.27  18-Sep-2002  lukem makefile delint. use NETBSDSRCDIR as appropriate
 1.26  08-Aug-2002  abs introduce puthumanint() which calls humanize_number(), and use to
display disk transfer values (Suggested by Simon Burge). Also clip
%busy to 100 and display as an int which has the useful side effect
of stopping it overflowing into the next column (100.0).
 1.25  01-Aug-2002  christos scan utmpx/utmp.
 1.24  28-Mar-2002  jmc branches: 1.24.2;
Remove check for sparc64 which adds -msoft-quad-float as that is now the
default for the compiler on sparc64.
 1.23  04-Feb-2001  mrg use -msoft-quad-float on the sparc64.
 1.22  08-Jan-2000  itojun - implement layered help.
Suggested by: Andy Doran <ad@mr-magoo.sports.gov.uk>
- inet6.ip6 and ipsec menu
- u_quad_t printing fix
- #ifdefs to allow compilation on 1.4.x
 1.21  05-Jan-2000  itojun support IPv6. commands under "netstat" are IPv6 ready.
IPv6 is supported by filters (":ignore ssh") as well.
TODO: do something about line truncation?
TODO: inet6.icmp6? ":help" will not fit into single line...
 1.20  16-Dec-1999  jwise Rototill global command matching -- switch from ad-hoc tomfoolery to a
table lookup. This will make prefix matching and so on easier.

Expect a similar change for mode-specific commands before too long.

While there, rename some structures with misleading names.

Watch this space for more changes soon.
 1.19  15-Nov-1999  simonb - Add `bufcache' display which shows buffer cache usage per filesystem,
ala the monitor(1) command for Ultrix.
- Allow `h' or `?' to show the command list (same as `:help').
- Sort commands in cmdtab.c and systat.1
 1.18  12-Sep-1999  chs branches: 1.18.4;
the PMAP_NEW option is gone as the new interface is no longer optional.
 1.17  30-May-1999  ad Add 4 new modes: ip, icmp, tcp, tcpsyn. XXX still some work to be done
on aesthetics and update modes.
 1.16  29-Apr-1999  lukem also install as `sysstat'.
rationale: `nfsstat' is not `nfstat', and
other systems have a `sysstat' but not a `systat'.
 1.15  24-Mar-1999  mrg completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
 1.14  21-Feb-1999  jwise Add a new `ps' view to systat, which shows process information. This
view is identical to the output of `ps aux' except that a.) the RSS and VSZ
fields are one character wider and b.) it shows a zero value for the RSS
and %MEM columns of processes which report a negative RSS.
 1.13  18-Feb-1998  jtc Simply include -lcurses instead of -lcurses -ltermcap
 1.12  18-Feb-1998  perry add -DPMAP_NEW if PMAP_NEW is on in mk.conf
 1.11  09-Feb-1998  mrg add -DUVM to CPPFLAGS if defined(UVM)
 1.10  24-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.9  19-Oct-1997  lukem branches: 1.9.2;
fix .Nm usage, deprecate register, getopt returns -1 not EOF, s/[br]*/[ms]*/
 1.8  21-Jul-1997  mrg WARNS?=1
 1.7  08-May-1997  gwr Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
 1.6  06-May-1997  gwr Use .PATH.c: ...
 1.5  10-May-1996  thorpej New userland code to read the statistics kept by the NetBSD generic
disk framework, from John M. Vinopal <banshee@gabriella.resort.com>
 1.4  22-Dec-1995  jonathan Update Makefiles for usr.bin/systat and usr.sbin/iostat to be
consistent with usr.bin/vmstat/Makefile wrt CLFAGS and -I, since
all three compile vmstat/names.c. (Now compiles on a pmax.)
 1.3  22-Mar-1995  mycroft Alphabetize.
 1.2  20-Jan-1995  jtc Changed to conform to NetBSD's new RCS Id convention.
 1.1  20-Jan-1995  jtc branches: 1.1.1;
Initial revision
 1.1.1.1  20-Jan-1995  jtc imported from 44lite
 1.9.2.1  08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.18.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.24.2.2  12-Nov-2002  skrll Catch up to -current.
 1.24.2.1  28-Mar-2002  skrll file Makefile was added on branch nathanw_sa on 2002-11-12 16:54:58 +0000
 1.34.20.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.36.6.1  17-Apr-2012  yamt sync with head
 1.38.2.2  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.38.2.1  06-Aug-2016  pgoyette Sync with HEAD
 1.40.14.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.40.14.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed