summaryrefslogtreecommitdiffstats
path: root/bin/ps/fmt.c
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of a cast to '(void) ' on the return of a call to strcpy.gad2004-06-221-1/+1
|
* Oops. Undo that last 'const' change. It expects similar changes to somegad2004-06-221-12/+10
| | | | other files that I am not ready to commit yet...
* Add 'const' to a few places.gad2004-06-221-10/+12
| | | | | PR: bin/65803 Submitted by: Cyrille Lefevre
* When displaying the "COMMAND" field for system-processes and/or kernelgad2004-06-221-1/+1
| | | | | | | | | | threads, put the command name in square brackets instead of parenthesis. This matches NetBSD, and also seems to be what linux does. The sentence which is added to the man page is taken straight from NetBSD. PR: bin/65803 Submitted by: Cyrille Lefevre Obtained from: NetBSD
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Fix long constant usage for i386.markm2003-05-031-1/+1
| | | | Tested by: Joe Marcus Clarke <marcus@marcuscom.com>
* Fix a bazillion warnings. This makes almost the whole of src/bin/*markm2003-05-031-1/+1
| | | | | | WARNS=6, std=c99 clean. Tested on: i386, alpha
* Display elapsed time (-o etime) using [[dd-]hh:]mm:ss, which according tocharnier2003-02-051-0/+1
| | | | | | Solaris man page is the POSIX way. Reviewed by: jmallett
* Don't depend on pollution in <limits.h> for the definition ofmike2002-07-051-0/+1
| | | | <stdint.h> macros.
* Consistently use FBSDIDobrien2002-06-301-4/+2
|
* Back out previous back out of previously correct code.jmallett2002-06-071-2/+1
| | | | | Double-plus-pointy-hat to: jmallett Submitted by: bde
* Cast arg_max to size_t when comparing it (times 4, plus 1) against SIZE_MAX. Ijmallett2002-06-061-1/+2
| | | | | | | | was worried about truncation of arg_max by this cast, but if it gets truncated, we know it'll obviously be greater than SIZE_MAX anyway. Big pointy hat to: jmallett Submitted by: keramida
* Returning NULL here if malloc(3) fails is silly, at this point in the codepathjmallett2002-06-051-1/+1
| | | | | we have't malloc(3)'d nearly as much as we probably will, so errx(3) away, instead of waiting for something to fail yet again later on.
* Remove an XXX comment that seems to be a tiny bit no longer pertinent. Thisjmallett2002-06-051-4/+0
| | | | | | function seems to do the right thing, and is not a "stub", and whoever "marc" is, he's had plenty of time to do "the real one", so don't wait around for him any longer.
* Use of zero here meant many things, NULL, '\0' (NUL), and 0. Sort it out.jmallett2002-06-051-5/+5
|
* Check for possible overflow from sysconf _SC_ARG_MAX and error out in ajmallett2002-05-051-5/+10
| | | | | | | | | | | | | | | correct manner. Revert my incorrect change to use err(3) for malloc(3) failing. Use a size_t variable to store the size of the argument buffer we allocate, and remove silly casts as the result of having this around. Modify the math in some of the paranoid checks for buffer overflow to account for the fact we now are dealing with the actual size of the buffer. Remove the static qualifier for arg_max, and the bogus setting of it to -1. Include <limits.h> for the definitions we use to check for possible overflows. Submitted by: bde
* Don't cast incorrectly to malloc(3), and don't use errx(3) if malloc(3)jmallett2002-05-021-2/+2
| | | | returns NULL, as malloc(3) sets errno. Use err(3).
* WARNS=4 fixes (incomplete, so set NO_WERROR), and lots of extramarkm2002-02-031-14/+19
| | | | cleanup courtesy of automatic checking (lint).
* o __P has been reovedimp2002-02-021-10/+5
| | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
* Prevent overflowing the buffer that stores the command arguments.mikeh2002-01-201-4/+8
| | | | | | PR: bin/19422 Not objected to by: -audit MFC after: 3 weeks
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Fixed -Wall regression (broken in rev.1.12). Removed unused includes.bde1998-12-071-3/+3
|
* Remove compile time dependency on ARG_MAX.jkoshy1998-06-171-2/+11
| | | | | PR: 1791 (partial) Reviewed by: Bruce Evans <bde@freebsd.org>, Tor Egge <tegge@freebsd.org>
* Correct use of .Nm. Add rcsid.charnier1998-05-151-3/+5
|
* Fix buffer overflow (probably unexploitable).guido1997-03-101-2/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* -Wall cleaning.steve1996-12-141-2/+2
|
* Remove unneded ctype.hache1995-10-231-2/+1
|
* Fix previous fix that removes an unnecessary space; the output is nowdg1995-03-091-3/+6
| | | | just like it was in 1.1.5.
* Fix an error to prevent some core dumps from ps.ats1994-11-101-2/+3
| | | | | | | | You can get ps easily to core dump, if you are running a "make depend" on a kernel in one window and a "ps -auxww" in another. The ww will try to give you the full argument list of the command that can now be 64Kb large, but ps expected only 4Kb large arg arrays and doesn't check for overflows.
* Added $Id$dg1994-09-241-0/+2
|
* Got rid of extra space between args and (command).dg1994-08-181-1/+1
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+115
OpenPOWER on IntegriCloud