summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* It's more portable to use <errno.h> than <sys/errno.h>eivind1997-12-151-2/+2
| | | | Pointed-out-by: bde (a long while ago)
* Revert 1.15 - duplicate code (initialization).eivind1997-12-151-5/+0
| | | | Pointed-out-by: bde
* Make code slightly more robust towards change by calculating sizeeivind1997-12-121-2/+2
| | | | | | in-place. Obtained from: OpenBSD ar_subs.c rev 1.7 by Tood Miller <millert@openbsd.org)
* Make this lint more cleanlyeivind1997-12-121-1/+6
| | | | Obtained from: OpenBSD file rev 1.4 by mickey
* Merge from OpenBSD:eivind1997-12-121-3/+5
| | | | | | | >sprintf -> snprintf paranoia Obtainted from: OpenBSD src/bin/stty/print.c v1.5 by Todd Miller <millert@openbsd.org>
* Put [+format] at the end of the usage message.brian1997-12-112-7/+8
| | | | | | Make `date -?' output (pretty much) the same as the man page PR: 5269
* Remove simultaneous include of <sys/param.h> and <sys/types.h>.eivind1997-12-1020-56/+28
| | | | | Reorder includes to be alphabetical some places since I already was in here.
* Merge from OpenBSD:eivind1997-12-101-2/+16
| | | | | | | | | > Error out if someone tries to mv a mount point. Old behavior was to > move all files contained in the mounted filesystem to the dest. dir > which could be quite nasty. Personally, I think rename(2) should > return EPERM or EINVAL instead of EXDEV. Obtained from: OpenBSD mv.c rev 1.6 by Todd Miller <millert@openbsd.org>
* Add -P option to cp(1) for local to local copying.wosch1997-12-081-2/+2
| | | | Pointed out by: bde
* Use `cp -R' instead `cp -r' for local to local copingwosch1997-12-071-2/+2
| | | | (e.g.: rcp -r /tmp/1 /tmp/2). See the cp(1) manpage for more details.
* Move procctl to the Attic, it's been copied to usr.sbin/procctl aspeter1997-12-074-91/+2
| | | | suggested by bde via sef.
* Add procctl to the list of programs built.sef1997-12-061-2/+2
|
* First checkin of the procctl program.sef1997-12-063-0/+89
|
* Document the new -f flag.dyson1997-12-051-1/+3
| | | | | PR: 5196 Submitted by: Matt Dillon <dillon@best.net>
* Add an option to building PS, so that the upages are explicitly paged in onlydyson1997-12-052-13/+44
| | | | | | | | | | | | | for users who are root, or in group wheel. This is useful on large timesharing systems where a PS command can cause the system to grind to a halt. The ability to get the information isn't diminished for those who really need the additional detail (administrators.) Normal users won't see any difference unless the processes are swapped out. The "really get it mode" is invoked by the use of an additional flag in the command string "-f". New/old behavior is selectable with a compile option. PR: 5196 Submitted by: Matt Dillon <dillon@best.net>
* Reviewed by: hackers@freebsd.org in generaljulian1997-11-131-2/+6
| | | | | | | | | | | | | Obtained from: Whistle Communications tree Add an option to the way UFS works dependent on the SUID bit of directories This changes makes things a whole lot simpler on systems running as fileservers for PCs and MACS. to enable the new code you must 1/ enable option SUIDDIR on the kernel. 2/ mount the filesystem with option suiddir. hopefully this makes it difficult enough for people to do this accidentally. see the new chmod(2) man page for detailed info.
* Document the exit status for a command that was terminated by ajdp1997-11-121-1/+5
| | | | signal.
* Sort "sparse" into alphabetical order, since dd's `conv' options needjoerg1997-11-111-2/+2
| | | | to be sorted. This temporarily broke the "osync" option.
* Fixed some type and value mismatches. setsignal() returned a boguslybde1997-11-102-12/+11
| | | | | | cast value that was always ignored. Rev.1.9 of trap.c made this more bogus by returning a semantically different value after calling siginterrupt(). Avoid these problems by not returning a value.
* 1) Fix longstanding bug:ache1997-11-051-3/+10
| | | | | | | | | | | | | | trap 'echo xxx' 1 2 3 15 read x is not interrupted by ^C (due to restartable read syscall) and must be interrupted per POSIX Worse case: read -t 5 x hangs forever after ^C pressed (supposed to timeout after 5 secs) Fixed by adding siginterrupt(signo, 1) after catch handler installed 2) Do not reinstall sighandler immediately after it is called, BSD do it for us
* Synchronize usage() and man page.helbig1997-10-262-5/+5
| | | | Pointed out by bde.
* Style police: keep a variable list in alphabetical order, and addjoerg1997-10-131-5/+5
| | | | | | pointless paren's to return statements. Nitpicked by: bde :)
* Make df(1) exit with non-success status if something went wrong.joerg1997-10-121-11/+18
| | | | PR: bin/4415
* Teach dd(1) about an option to write sparse files. Can be useful forjoerg1997-10-114-7/+45
| | | | | | | things like diskless clients' swap files etc. Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many stylistic changes by me)
* Un-clobber mktemp->mkstemp patch.eivind1997-10-091-3/+2
|
* Add <sys/errno.h>eivind1997-10-091-1/+2
|
* make signal handlers errno safeeivind1997-10-081-3/+8
| | | | Obtained from: OpenBSD (file rev 1.11) - Theo de Raadt <deraadt@openbsd.org>
* mktemp -> mkstempeivind1997-10-081-2/+3
| | | | Obtained from: OpenBSD (file rev 1.4 by Theo de Raadt <deraadt@openbsd.org>)
* make signal handlers errno safeeivind1997-10-081-1/+3
| | | | Obtained from: OpenBSD (file rev 1.5) Theo de Raadt <deraadt@openbsd.org>
* Slightly improved fix compared to my insirationeivind1997-10-081-1/+3
| | | | | | | don't munge argv strings -- copy them first. avoids 'w' showing: deraadt p8 zeus.theos.com 8:26AM 3 dd if of bs Obtained from: OpenBSD (file rev 1.3) by Theo de Raadt <deraadt@openbsd.org>
* save errno in sigchld handlereivind1997-10-071-1/+3
| | | | Obtained from: Theo deRaadt <theo@openbsd.org> (OpenBSD rev 1.6)
* vsprintf -> vnsprintf paranoia.eivind1997-10-071-2/+2
| | | | Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD rev 1.3)
* Don't honor $HOME if >= MAXPATHLENeivind1997-10-071-2/+3
| | | | Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD csh.c rev 1.3 and 1.4)
* Changes to support full make parallelism (-j<n>) in the worldjkh1997-10-051-6/+9
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* mv(1) is too silent if used with the option -i. It shouldwosch1997-10-041-6/+9
| | | | | print which input mv(1) expect (y/n) and print a warning if the file was not overwritten.
* cp(1) is too silent if used with the option -i. It shouldwosch1997-10-031-2/+5
| | | | | print which input cp(1) expect (y/n) and print a warning if the file was not overwritten.
* Change example from US to international standard date notation.wosch1997-10-031-3/+3
|
* Back out suppress '\n' mod.danny1997-10-032-16/+8
|
* Add the '-s' flag to the usage string.danny1997-10-011-2/+2
|
* Add the ability to supress the '\n' at the end of the date printed.danny1997-10-012-7/+15
|
* Fix the broken `date HHMM.SS' handling.joerg1997-09-301-2/+3
| | | | | PR: bin/4661 Submitted by: blank@sliphost37.uni-trier.de (Sascha Blank)
* Add the '-t timeout' option to the 'read' builtin. This allows themsmith1997-09-292-6/+72
| | | | | | | | 'read' command to return an error if the user fails to supply any input withink a given time period. The behaviour of this option is similar to that of the like-named option in ksh93. Reviewed by: joerg
* Endless loop.wosch1997-09-281-5/+6
| | | | | | | $ touch from to $ echo -n loop | mv -i from to overwrite to? ^C
* Change to use the new KTH Kerberos.markm1997-09-282-11/+13
| | | | Also make -Wall a bit quieter.
* environmental -> environment.charnier1997-09-182-5/+5
|
* Fix sorting of directories when doing '-d'.sef1997-09-181-10/+6
| | | | | PR: bin/4558 Submitted by: Keith Bostic
* PR: docs/4449wosch1997-09-131-1/+6
| | | | | | The -c flag is not documented in the sh(1) manapge. Submitted by: adrian@virginia.edu
* spelling corrections.wosch1997-09-132-3/+3
| | | | | PR: docs/4450 Submitted by: josh@quick.net
* This command doesn't need to be setuid root, it's only askingjkh1997-09-121-3/+1
| | | | | | for potential trouble. Reviewed by: security officers. Noted by: OpenBSD
* fix misspellingjmg1997-08-301-2/+2
| | | | | | Submitted-by: Josh Gilliam Closes PR:4427
OpenPOWER on IntegriCloud