summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Add 'f' flag to the optstring.dima1998-02-181-2/+2
|
* cosmetic change for optstringdima1998-02-181-2/+2
|
* Explicitly describe the rules the shell uses to search for a filejdp1998-02-121-1/+10
| | | | sourced by the "." command.
* spellingeivind1998-02-111-2/+2
| | | | Obtained from: OpenBSD (src/bin/chio/chio.c rev 1.7) by todd@openbsd.org
* Fix printing for bytes read > 4G.asami1998-02-112-4/+4
| | | | Reviewed by: bde
* Back out my previous attempt to fix SIGINT/SIGTERM behaviourcracauer1998-02-061-16/+0
|
* Fix handling of SIGINT/SIGQUIT for foreground subprocesses. Mostcracauer1998-02-061-1/+17
| | | | | | | | | | | | | | | | urgent need is when you run sh around a program that intentionally uses SIGQUIT/SIGINT for asynchronous events, i.e. $EDITOR started from system(2), like many mailers do. This fixes PR bin/1206 and possibly bin/4241. The solution committed has been tested for a large number of possible cases (see recent discussion on cvs-committers). I completed a make world, made sure 'make world' is interruptable and used the changed /bin/sh as a login shell all day, including job control and using SIGQUIT-catching programs (to write this message :-). PR: bin/1206 Reviewed by: discussion on cvs-commiters
* Display VSZ much more accurately now.dyson1998-02-021-3/+2
|
* setpwent now has a void return type, so remove the now bogus cast.steve1998-02-011-3/+3
|
* Cast a size_t to a long to avoid a gcc warning.jb1998-01-251-3/+3
|
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-201-2/+2
| | | | the default.
* Fixed syntax error in normally-unconfigured code in previous commit.bde1998-01-171-2/+2
|
* Fixed handling of short writes. Previously, we stopped copying andbde1998-01-161-5/+17
| | | | | | printed a bogus warning with a stale errno if write() returns a short count. Now we continue copying. We still print a bogus warning if write() returns an "impossible" short count of 0.
* Make a couple of the stat flags dependent on the sys/stat.h header filejb1998-01-091-1/+9
| | | | | | | | | | | that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture. With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-)
* Oops, back out rev 1.5, it wasn't my intention to also commit thejoerg1998-01-071-2/+1
| | | | -g. ;)
* Use the correct value in the call to swab(3) with conv=swab. Previously,joerg1998-01-072-3/+4
| | | | | | | | | | dd if=/dev/zero of=/dev=null obs=23520 conv=swab coredumped. Please somebody review it, i'm not 105 % sure i'm understanding all this mess correctly. Detected by: Holm Tiffe <holm@geophysik.tu-freiberg.de>
* Correct a bogon in an example.steve1998-01-021-2/+2
| | | | | PR: 5415 Submitted by: Sergei S. Laskavy <laskavy@pc759.cs.msu.su>
* Ensure stdout is line buffered.helbig1997-12-312-3/+7
| | | | Change "pat" -> "re" in man page.
* Added $Id$.alex1997-12-291-0/+2
|
* Use consistent spelling,hoek1997-12-251-2/+2
| | | | | | | | writeable -> writable (recall prior debate over this? :-) initialise -> initialize recognise -> recognize Merry Christmas! :)
* Add (BSD) copyright headers.brian1997-12-212-0/+56
|
* Don't strip trailing slashes (for the initial rmdir). It breaksbde1997-12-191-9/+1
| | | | | | | | | | | | | | | | | following of the symlink for `rmdir symlink/' and is unnecessary for ordinary directories (POSIX doesn't require rmdir(1) to do anything for trailing slashes; it requires rmdir(2) to let them "refer to a directory", and following the symlink for symlink/ is what BSD does). This also fixes bugs in the slash-stripping code (for paths consisting entirely of slashes, the pointer into the string was decremented to "before" the beginning of the string, and the path was at best stripped to "". The behaviour is unchanged except for the final directory for `rmdir -p ...'. There is no alternative to stripping intermediate slashes since they must be specified. The sloppy slash-stripping code is adequate for intermediate directories, since the all-slashes case fails early.
* 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>)
OpenPOWER on IntegriCloud