freebsd-skq/bin/ps
Juli Mallett 634d96e194 Check for possible overflow from sysconf _SC_ARG_MAX and error out in a
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
2002-05-05 04:42:50 +00:00
..
extern.h Fixed unsorting. 2002-02-23 21:00:14 +00:00
fmt.c Check for possible overflow from sysconf _SC_ARG_MAX and error out in a 2002-05-05 04:42:50 +00:00
keyword.c Revert wchan functionality. Add 'mwchan' to supply new duel mutex/msleep 2002-02-21 18:27:16 +00:00
lomac.c Install sys/security/lomac/*.h to /usr/include/security/lomac/. 2002-03-26 16:05:14 +00:00
lomac.h NAI DBA update. 2002-03-14 21:51:00 +00:00
Makefile Correct inadvertent style botches in previous commit. 2002-02-04 03:06:51 +00:00
nlist.c WARNS=4 fixes (incomplete, so set NO_WERROR), and lots of extra 2002-02-03 14:43:04 +00:00
print.c ANSIfy. 2002-02-22 23:31:57 +00:00
ps.1 Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
ps.c errx()/strerror() -> err() 2002-04-07 04:59:13 +00:00
ps.h WARNS=4 fixes (incomplete, so set NO_WERROR), and lots of extra 2002-02-03 14:43:04 +00:00