aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sa/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-8/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. 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. No functional change intended. Notes: svn path=/head/; revision=326276
* Commit the 64-bit inode project.Konstantin Belousov2017-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the ino_t, dev_t, nlink_t types to 64-bit ints. Modify struct dirent layout to add d_off, increase the size of d_fileno to 64-bits, increase the size of d_namlen to 16-bits, and change the required alignment. Increase struct statfs f_mntfromname[] and f_mntonname[] array length MNAMELEN to 1024. ABI breakage is mitigated by providing compatibility using versioned symbols, ingenious use of the existing padding in structures, and by employing other tricks. Unfortunately, not everything can be fixed, especially outside the base system. For instance, third-party APIs which pass struct stat around are broken in backward and forward incompatible ways. Kinfo sysctl MIBs ABI is changed in backward-compatible way, but there is no general mechanism to handle other sysctl MIBS which return structures where the layout has changed. It was considered that the breakage is either in the management interfaces, where we usually allow ABI slip, or is not important. Struct xvnode changed layout, no compat shims are provided. For struct xtty, dev_t tty device member was reduced to uint32_t. It was decided that keeping ABI compat in this case is more useful than reporting 64-bit dev_t, for the sake of pstat. Update note: strictly follow the instructions in UPDATING. Build and install the new kernel with COMPAT_FREEBSD11 option enabled, then reboot, and only then install new world. Credits: The 64-bit inode project, also known as ino64, started life many years ago as a project by Gleb Kurtsou (gleb). Kirk McKusick (mckusick) then picked up and updated the patch, and acted as a flag-waver. Feedback, suggestions, and discussions were carried by Ed Maste (emaste), John Baldwin (jhb), Jilles Tjoelker (jilles), and Rick Macklem (rmacklem). Kris Moore (kris) performed an initial ports investigation followed by an exp-run by Antoine Brodin (antoine). Essential and all-embracing testing was done by Peter Holm (pho). The heavy lifting of coordinating all these efforts and bringing the project to completion were done by Konstantin Belousov (kib). Sponsored by: The FreeBSD Foundation (emaste, kib) Differential revision: https://reviews.freebsd.org/D10439 Notes: svn path=/head/; revision=318736
* ANSIfy almost all applications that use WARNS=6.Ed Schouten2009-12-291-1/+1
| | | | | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application. Notes: svn path=/head/; revision=201227
* Increase precision of time values in the process accountingDiomidis Spinellis2007-05-221-65/+45
| | | | | | | | structure, while maintaining backward compatibility with legacy file and record formats. Notes: svn path=/head/; revision=169857
* Add -U and -P options that allow the specification of the per-userDiomidis Spinellis2007-05-181-2/+12
| | | | | | | | | and per-process summary file location. These make the program more flexible, and also make it possible to write sane regression tests. Notes: svn path=/head/; revision=169670
* Full modernize cleanup:Xin LI2005-02-101-20/+10
| | | | | | | | | | | - De-__P() - constify where appropriate - ANSI functions instead of K&R Pointed out by: stefanf Notes: svn path=/head/; revision=141638
* Code cleanup:Xin LI2005-02-101-2/+1
| | | | | | | | - Prefer modern declaration of functions - WARNS?= 4 -> 6 Notes: svn path=/head/; revision=141603
* Userland signed char fixes for PPC build. Problems were using a charPeter Grehan2004-01-221-2/+1
| | | | | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe Notes: svn path=/head/; revision=124830
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-5/+4
| | | | Notes: svn path=/head/; revision=114601
* Get rid of %qd, and unbreak Alpha build.Dag-Erling Smørgrav2002-07-151-2/+4
| | | | Notes: svn path=/head/; revision=100107
* WARNS=4, de-__P()Alfred Perlstein2002-07-111-20/+21
| | | | Notes: svn path=/head/; revision=99829
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | Seperate does not exist in the english language. Notes: svn path=/head/; revision=72091
* fix unaligned access errors by copying untyped data to properly alignedAndrew Gallatin2000-10-261-46/+46
| | | | | | | | | | locals PR: alpha/13912 obtained from: NetBSD tested by: Marcin Gryszkalis <dagoon@rs.math.uni.lodz.pl> Notes: svn path=/head/; revision=67642
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Initialize exit code so that the program exits with code 0 on success.Jean-Marc Zucconi1999-05-221-2/+2
| | | | | | | | PR: bin/10904 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk> Notes: svn path=/head/; revision=47416
* Add usage().Philippe Charnier1997-10-151-8/+18
| | | | Notes: svn path=/head/; revision=30425
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fix the -t option so that its output matches what the manMike Pritchard1996-01-221-2/+3
| | | | | | | page says it prints. Also silence a few "cc -Wall" warnings. Notes: svn path=/head/; revision=13558
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-4/+4
| | | | Notes: svn path=/head/; revision=8857
* Process accounting utility by Chris Demetriou.David Greenman1994-09-261-0/+542
Obtained from: NetBSD Notes: svn path=/vendor/NetBSD/dist/; revision=3125