summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Rename a local variable in order to avoid collision with standard 'log'kan2003-06-301-3/+3
| | | | function.
* pass -1 to setfile in cp.cjmg2003-06-301-1/+1
| | | | Submitted by: Jun Kuriyama
* Tweak a couple of utilities so they compile cleanly for /rescue. Mostlygordon2003-06-291-0/+4
| | | | | | path fixes. Submitted by: Tim Kientzle <kientzle@acm.org>
* Unbreak NOCRYPT buildworld.ru2003-06-291-1/+1
| | | | Reviewed by: markm
* support saving both user/group and permissions on symlinks (from PR)jmg2003-06-221-13/+20
| | | | | | | | also fix a slight bogon that assumed an fd of 0 was not valid. Changed it to be -1. PR: bin/25017 Submitted by: Martin Kammerhofer
* Get this area compiling with the highest WARNS= that it works with.markm2003-06-1311-18/+7
| | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386
* Add the -H option to ps(1) to display all kernel visible threads in eachscottl2003-06-122-6/+19
| | | | | process. The default behavior of showing only the process is retained as the default.
* add section name to .Xrcharnier2003-06-081-1/+1
|
* Fix for the NO_OPENSSL case.markm2003-06-081-1/+1
| | | | Reported by: Marius Strobl <marius@alchemy.franken.de>
* Clarify what -p option does.ru2003-06-071-11/+12
| | | | | | Prodded by: marcel While here, spell the "set-{user,group}-ID bit" correctly.
* Usekuriyama2003-06-061-1/+1
| | | | | | | | | cat ${.ALLSRC} > ${.TARGET} rather than ln -sf ${.ALLSRC} ${.TARGET} not to depends on absolute-path of symbolic links. Commented by: marcel, obrien, bde
* Make ed compile in the NOCRYPT case.jhay2003-06-031-0/+4
| | | | Reviewed by: markm
* 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
|
OpenPOWER on IntegriCloud