summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Catch up with revs 1.49-1.50 of df.c: don't mention -t in the BUGS sectionbde2003-06-031-3/+1
| | | | since it has been fixed.
* Fixed exit code in previous commit. "var++" to set a flag to nonzerobde2003-06-031-5/+9
| | | | | | | | | | | | | | | | is a style bug at best. When the variable isn't a flag, it potentially overflows after a large number of settings. Here the number of settings is limited by ARG_MAX, but the variable is the exit code so it became bogus after the second setting and effectively overflowed to 0 after approx. 128 settings. Fixed some style bugs involving comments in and near previous commit. Clarification of previous commit message: df -t didn't give undefined behaviour, and the behaviour used to conform perfectly with the man page, since the buggy behaviour is documented in the BUGS section. -t just worked when no files or file systems were specified, and was just ignored if a file or file system was specified.
* From the df man page:jkh2003-06-021-0/+9
| | | | | | | | | | -t Only print out statistics for filesystems of the specified types. Make the behavior of df(1) conform to its man page (behavior is otherwise undefined). Submitted by: Rob Braun <bbraun@apple.com> Obtained from: Apple
* Modernise. Use libcrypto for DES instead of libcipher.markm2003-06-023-52/+51
|
* Instead of eating trailing newlines after inserting them into thefenner2003-05-311-5/+12
| | | | | | | | | | | | | output buffer, don't insert them at all. This prevents a buffer *underrun* when the substitution consists completely of newlines (e.g. `echo`) and the byte before the source buffer to which p points is a '\n', in which case more characters would be removed from the output buffer than were inserted. This fixes certain port builds on sparc64. Approved by: re (scottl) Reviewed by: des, tjr
* Erase whitspace at EOL.ru2003-05-221-1/+1
| | | | Approved by: re (blanket)
* Retire the useless NOSECURE knob.des2003-05-191-1/+1
| | | | Approved by: re (scottl)
* mdoc(7) police: A better version of the same.ru2003-05-162-3/+3
| | | | Approved by: re (blanket)
* mdoc(7) police: Fix document date.ru2003-05-161-1/+1
| | | | Approved by: re (blanket)
* Note that -n and \c are implementation-defined as per TC1 to POSIX 2001.schweikh2003-05-081-2/+11
| | | | | Approved by: re@ (bmah) MFC after: 3 days
* df(1) and ls(1) print units in 'four or fewer' not 'three or less'.trhodes2003-05-062-3/+3
| | | | | PR: 35523 Submitted by: Tomas Svensson <tsn@gbdev.net>
* Centralize _PATH_* definitions.obrien2003-05-053-40/+2
| | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
* Fix long constant usage for i386.markm2003-05-031-1/+1
| | | | Tested by: Joe Marcus Clarke <marcus@marcuscom.com>
* Fix a broken reference to locale(5) and point to re_format(7) too for ankeramida2003-05-031-2/+3
| | | | explanation of `collating elements'.
* Fix a bazillion warnings. This makes almost the whole of src/bin/*markm2003-05-0317-148/+161
| | | | | | WARNS=6, std=c99 clean. Tested on: i386, alpha
* WARNS cleaning for the Alpha. On alpha, size_t is a long, and itmarkm2003-05-031-13/+17
| | | | | solicits a warning when used for the '*' in printf("%*d"). Cast to u_int for universal use.
* Fix a shedload of warnings, some memory leaks and clean up WARNSmarkm2003-05-031-39/+61
| | | | and lint. This is now WARNS=9, std=c99 clean on i386.
* Fix format warning. This is WARNS=9, std=c99 clean on i386.markm2003-05-031-1/+1
|
* Fix warnings. This is now WARNS=9, std=c99 clean in i386.markm2003-05-031-9/+10
| | | | | Use return(0) for main() instead of exit(0). Makes it a wee bit smaller.
* Make this WARNS=1 as that is all we can do with GCC 3.3 -- too manyobrien2003-05-021-0/+1
| | | | sized/unsigned comparisons.
* Make count a size_t as that is what is compared against and how it is used.obrien2003-05-021-1/+2
|
* The is_name and is_in_name macros are FUBAR'ed.obrien2003-05-021-0/+2
| | | | | | Due to the use of signed vs. unsigned chars on our various platforms, one gets "warning: comparison is always true due to limited range of data type" from GCC 3.3.
* fmt.c has a comparison between signed and unsigned that is unclear howobrien2003-05-021-0/+1
| | | | to properly fix.
* Quiet warnings about copyright[].obrien2003-05-021-2/+2
|
* Fix signed/unsigned mix comparisons involving sizeof.obrien2003-05-023-11/+13
|
* Quiet warnings about copyright[].obrien2003-05-0124-44/+47
|
* Make GCC 3.3 STFU about copyright[].obrien2003-05-011-1/+1
|
* Add the -j and -y options to the synopsis.tjr2003-05-011-1/+1
|
* Fix references to non-existing or obsoleted man pages.schweikh2003-04-302-5/+2
| | | | | PR: docs/51480 (only a small part) Submitted by: Diomidis D. Spinellis <dds@aueb.gr>
* We have to hide copyright[] for gcc33. :-(obrien2003-04-301-0/+2
|
* When mac_from_text() fails with -Z, print "-" rather than "" so thatrwatson2003-04-261-1/+1
| | | | | | | scripts parsing ls(1) output can still count columns. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Revert the zombie part of previous commitcharnier2003-04-151-1/+1
|
* Correct style bugs. Don't skip zombies in cputime(), according to Bruce,charnier2003-04-141-58/+42
| | | | | | zombie CPU times are valid. Adjust array size in strftime(3). Submitted by: Bruce
* Include <signal.h> instead of depending on namespace pollution inbde2003-04-131-1/+2
| | | | | <sys/param.h>. Include <sys/types.h> instead of of <sys/param.h> so that further such dependencies don't develop.
* Fixed some style bugs in rev.1.44.bde2003-04-131-3/+2
|
* Display residency and sleep times (re and sl fields) larger than 127 as 127.tjr2003-04-123-3/+6
| | | | | | | This is what the manual page says ps should do, and what OpenBSD and NetBSD do. Based on a patch from Ken Stailey. PR: 27433, 46232
* Refer to 1003.1-2001 in the Standards section now that TC1 allows thetjr2003-04-121-4/+4
| | | | traditional BSD behaviour (-n option) and FreeBSD extensions (\c).
* Document the -L and -P options as being mutually exclusive.tjr2003-04-121-2/+2
|
* Document the -L and -P options to the cd and pwd commands as beingtjr2003-04-121-3/+3
| | | | | | mutually exclusive. The fact that the most recent one specified on the command line is the one that takes effect is an implementation detail and users should not rely on this.
* Use the correct data type and qualifier for signal flag.mdodd2003-04-072-2/+2
|
* Add a SIGINFO handler.mdodd2003-04-074-0/+45
|
* Document how to clear flags with negative-logic, currently onlyjohan2003-03-241-4/+9
| | | | | | | | the nodump flag. PR: 46912 Reported by: dave@syix.com <dave@syix.com> MFC after: 2 weeks
* The .Nm utilitycharnier2003-03-241-2/+3
|
* Flush the output buffers before forking a child process to avoidtjr2003-03-171-0/+1
| | | | | | | the child process writing data that the parent should have written. PR: 50051 MFC after: 2 weeks
* ssize_t is not required to be the same width as size_t by theru2003-03-151-4/+6
| | | | | | specs, so cast to intmax_t where appropriate. Pointed out by: bde
* Fixed (soon might be fatal) -Wformat warnings.ru2003-03-152-4/+5
|
* Add an -o filename option to have the output written to a file.marcel2003-03-152-6/+22
| | | | | | | This option is present on most uuidgen(1) implementations even though normal file redirection can be used to achieve the same. Submitted by: Hiten Pandya <hiten@unixdaemons.com>
* WARNS=4 fixes. This would be WARNS=9 if we were -std=99 instead ofmarkm2003-02-278-47/+50
| | | | | | -ansi, due to 'long long'. Reviewed by: green (slightly earlier version)
* Third attempt at removing machdep.h and using ALIGN from <sys/param.h>.marcel2003-02-243-101/+54
| | | | | | | | | | | | | | The initial stack_block is staticly allocated and will be aligned according to the alignment requirements of pointers, which does not necessarily match the alignment enforced by ALIGN. To solve this a more involved change is required: remove the static initial stack and deal with an initial condition of not having a stack at all. This change is therefore more risky than the previous ones, but unavoidable (other than not using the platform default alignment). Discussed with: tjr Approved and reviewed by: tjr Tested on: alpha, i386, ia64 and sparc64
* mdoc(7) police: markup laundry.ru2003-02-231-31/+22
|
OpenPOWER on IntegriCloud