aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat/devs.c
Commit message (Collapse)AuthorAgeFilesLines
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: two-line .c patternWarner Losh2023-08-161-3/+0
| | | | Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/
* systat: mostly clean up warnsMateusz Guzik2021-11-011-5/+5
| | | | Sponsored by: Rubicon Communications, LLC ("Netgate")
* systat: Handle SIGWINCH to properly window resizing and adjustMichael Reifenberger2021-04-211-7/+1
| | | | | | | | | | -swap disk stat based on new size. Display corrupts after resizing a window. Process SIGWINCH to redraw all window. Submitted by: Yoshihiro Ota ota@j.email.ne.jp Differential Revision: https://reviews.freebsd.org/D29337
* systat -zarc to display disk activities like -vmMichael Reifenberger2019-04-021-8/+118
| | | | | | | | | | PR: 213310 Submitted by: ota MFH: 4 weeks Differential Revision: https://reviews.freebsd.org/D18726 Notes: svn path=/head/; revision=345804
* Fix systat's :only command parser for the multiple arguments caseOleksandr Tymoshenko2019-01-231-2/+2
| | | | | | | | | | | | | According to systat(1) :only option is supposed to accept multiple drives but the parser for its arguments stops after first entry. Fix the parser logic to accept multiple drives. PR: 59220 Reported by: Andy Farkas <andyf@speednet.com.au> MFC after: 1 week Notes: svn path=/head/; revision=343338
* Fix inconsistency in return values introduced by r343222Oleksandr Tymoshenko2019-01-201-1/+1
| | | | | | | | | | | Consistently return 1 or the case of missing arguments in both functions PR: 219689 MFC after: 1 week X-MFC-With: 343222 Notes: svn path=/head/; revision=343223
* Fix crash in systat(4) when certain commands are called without argumentsOleksandr Tymoshenko2019-01-201-0/+10
| | | | | | | | | | | Add check for missing arguments to dsmatchselect and dsselect PR: 219689 Submitted by: Marko Turk <mt@markoturk.info> MFC after: 1 week Notes: svn path=/head/; revision=343222
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Replace index() and rindex() calls with strchr() and strrchr().Ed Schouten2012-01-031-1/+1
| | | | | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls. Notes: svn path=/head/; revision=229403
* Fix whitespace inconsistencies in systat(1).Ed Schouten2011-10-151-5/+5
| | | | | | | According to md5(1), the resulting binary is the same. Notes: svn path=/head/; revision=226396
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* ANSIfy and remove register.Xin LI2008-01-161-1/+1
| | | | | | | Resulting binary verified with strip(1)+md5(1). Notes: svn path=/head/; revision=175387
* When a numeric field overflows its width, try formatting the number inPoul-Henning Kamp2003-10-201-1/+1
| | | | | | | | 'kilo' or 'mega' with appropriate suffix instead of filling the field with stars. Notes: svn path=/head/; revision=121291
* Add #include <sys/resource.h>Poul-Henning Kamp2003-02-161-0/+1
| | | | Notes: svn path=/head/; revision=111007
* Remove #include <sys/dkstat.h>Poul-Henning Kamp2003-02-161-1/+0
| | | | Notes: svn path=/head/; revision=111002
* WARNS=2 fixes with NO_WERROR set, as there are some header issuesMark Murray2001-12-121-30/+37
| | | | | | | with namelists. use __FBSDID(). Notes: svn path=/head/; revision=87715
* Convert systat(1) to use the new devstat interface.Kenneth D. Merry2001-09-061-31/+24
| | | | | | | Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru> Notes: svn path=/head/; revision=83131
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Quiet many compiler warnings.David E. O'Brien1998-10-081-2/+5
| | | | Notes: svn path=/head/; revision=40060
* Change the devstat generation number from an int to a long. The int-sizedKenneth D. Merry1998-09-201-3/+5
| | | | | | | | | | | | | generation was causing unaligned access faults on the Alpha. I have incremented the devstat version number, since this is an interface change. You'll need to recompile libdevstat, systat, iostat, vmstat and rpc.rstatd along with your kernel. Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=39498
* Update system to new device statistics code.Justin T. Gibbs1998-09-151-0/+320
Submitted by: "Kenneth D. Merry" <ken@plutotech.com> Notes: svn path=/head/; revision=39230