summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* add human readable output (-h and -H)mharo1999-12-153-12/+158
| | | | | | | | | | Obtained from: parts of human readable code from OpenBSD Reviewed by: obrien add POSIX, byte and megabyte block size ouput flags PR: 13579 (POSIX flag) Submitted by: Mike Meyer <mwm@phone.net>
* I've been Brucified! I did evil things with typedefs, but I'll do itgreen1999-12-081-4/+4
| | | | | | | the correct (but less aesthetic) way, now. New lesson: correctness and aestheticity may be mutually exclusive at times. Brucified by: bde
* Do proper constification in args.c. This shuts up -Wcast-qual (thanks,green1999-12-072-4/+8
| | | | | | | bfumerola for that pointer!) in GCC complaining about losing a const. While I'm here, might as well mark in the Makefile that I'm the ${MAINTAINER}. It seems like that's what everyone's doing these days.
* make '|' character visible.cracauer1999-12-051-1/+1
| | | | | PR: docs/15265 Submitted by: takamune@avrl.mei.co.jp
* Fix "subscript has type `char'" warnings by casting to int, ascracauer1999-12-042-5/+6
| | | | discussed on -arch.
* Include strerror(errno) in error messages after failed system calls.cracauer1999-11-2910-15/+21
| | | | Fix a warning.
* Default to not -v.obrien1999-11-281-2/+2
| | | | Fix usage() style bug spotted by BDE.
* brucifymharo1999-11-283-29/+33
| | | | Reviewed by: obrien
* Add "-v".obrien1999-11-272-2/+18
|
* Correct use of .Nm. Add DIAGNOSTICS section. Add rcsidcharnier1999-11-212-8/+12
|
* Follow-up on mdoc fixes in rev 1.35; this includes things that I missedsheldonh1999-11-181-29/+58
| | | | | | in that revision as well as things I broke in that revision. A note- worthy instance of the latter case was the inversion of -E and -V in the subsection on Commandline Editing.
* The pipleline problem introduced in version 1.22 wasn't fully fixed incracauer1999-11-171-1/+1
| | | | | | | 1.23. This revision should work for long pipes both in here-documents/backquote and in normal cases. Fix works for jmz, bde.
* I'm probably jumping the gun, but what the heck, this is -current.peter1999-11-171-2/+2
| | | | | | | | | | | | | | | Turn off setgid-kmem for /bin/ps, it's now quite functional without it. ps no longer needs /dev/*mem or /proc. (It will still use some /proc files if they are available for -e, but it's not required, so it'll happily run in a jail or chroot). The proc stats are now part of eproc (obtained via sysctl) and no longer needs to beat up the u-page reading code and the problems with that. This also has the side effect of disabling 'ps -e' for normal users *EXCEPT* when looking at their own processes. ie: they can see environments in processes with their uid, enforced by the ownership of /proc/*/mem. Root can still see them all, as it can open all /proc/*/mem.
* Use eproc.e_stats, not a series of crude hacks to fetch it from the u-area.peter1999-11-171-60/+19
| | | | Also, fix some indentation that got messed up somehow..
* Introduce commandline caching in the kernel.phk1999-11-161-1/+1
| | | | | | | | | | | This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike. To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0 For full details see the current@FreeBSD.org mail-archives.
* Typo (appropiate -> appropriate)kris1999-11-151-1/+1
| | | | Obtained from: OpenBSD (inspired by)
* Allow the year to be specified with an optional century.sheldonh1999-11-102-4/+14
| | | | | PR: 14472 Reported by: j_guojun@lbl.gov (Jin Guojun)
* Don't call bash(1) a Korn shell clone. Instead, use pdksh(1) as ansheldonh1999-11-101-2/+2
| | | | | | | example of such a clone. PR: 14601 Submitted by: Matthias Buelow <mkb@altair.mayn.de>
* Correct logic from previous commit - middle processes in long pipessteve1999-11-071-1/+1
| | | | | | don't have their stdin closed indisciminantly. Reviewed by: markm
* When a backquote command inside a here-document had a pipe with morecracauer1999-11-051-1/+2
| | | | | | | | than two processes (got that? :-), the stdin fd of the middle processes that has just been set up was accidetially closed. Don't do this. PR: bin/14527
* Most modern OSs have the ability to flag certain mounts as ones tojulian1999-11-012-6/+14
| | | | | | | | | | | | | | be ignored by default by the df(1) program. This is used mostly to avoid stat()-ing entries that do not represent "real" disk mount points (such as those made by an automounter such as amd.) It is also useful not to have to stat() these entries because it takes longer to report them that for other file systems, being that these mount points are served by a user-level file server and resulting in several context switches. Worse, if the automounter is down unexpectedly, a causal df(1) will hang in an interruptible way. PR: kern/9764 Submitted by: Erez Zadok <ezk@cs.columbia.edu>
* Restore reference to sleep(3).ru1999-10-281-1/+2
|
* Fix ';' command when used with -e flag.cracauer1999-10-261-1/+8
| | | | PR: bin/14509
* Add `n' to the synopsis.obrien1999-10-161-1/+1
| | | | Forgotten by: sheldonh
* Implement ulimit -b for RLIMIT_SBSIZE.green1999-10-091-1/+4
|
* This implements the RLIMIT_SBSIZE ("sbsize") administrative limits forgreen1999-10-091-0/+1
| | | | | userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome.
* Mdoc cleanup, with a few grammar cleanups on the side.sheldonh1999-10-071-498/+922
| | | | Reviewed by: mpp
* Nuke the FIODTYPE compatibility bits. It's time.green1999-10-031-3/+1
|
* Let sleep(1) handle fractions of a second (up to nanosecond).ru1999-10-012-12/+72
| | | | | | | This is a conservative change. It does the same thing in weird cases like the old one. For example, 'sleep abcd' still sleeps for zero seconds. `sleep 10.a' and `sleep 10.05aa' do the best and not abort (ie: 10.a == 10 seconds, 10.05a == 10.05 seconds).
* Fix for new Kerberos4.markm1999-09-192-3/+6
|
* Make count=0 set cpy_cnt to -1, which is slight overloading, but makesgreen1999-09-163-5/+18
| | | | | | what I was trying to do work much better (ie at all. I could have sworn it was working...) Fix a SEEK_SET to be SEEK_CUR, and make Bruce's lseek() test work correctly.
* Let count=-something fail, while count=0 may succeed, thus making dd(1)green1999-09-161-2/+2
| | | | | | | useful as a seeking-tool as well as its many other uses. Previously, dd(1) would succeed with count=0, but wouldn't get to the point that blocks were to be read/written. This is a more useful behavior, and this specific case doesn't seem to be handled by POSIX.
* Correct some hard sentence breaks. Only those surrounding the previoussheldonh1999-09-145-76/+83
| | | | | | | | commit and those which cause ugly nroff output have been fixed, since the purpose of the style guideline which they contravene is to reduce the sizes of deltas. Reported by: bde
* Even more dd(1) cleanups! Thanks to Bruce for staying on my case untilgreen1999-09-136-37/+45
| | | | we're done (not yet!) :)
* Fix SEE ALSO section:phantom1999-09-131-2/+4
| | | | | | | . add printenv(1) . correct reference to "CSH introduction" Reviewed by: mpp
* Fixed longstanding breakage of rm of deep directories in rev.1.2.bde1999-09-131-1/+1
| | | | | | | | | | rm must not use FTS_NOCHDIR, since chdir'ing is required for removing deep directory trees and the ability to remove such trees is required by POSIX.2 and POLA. The breakage didn't make much difference until recently, since fts(3) didn't work in deep directory trees. It isn't clear whether using FTS_NOCHDIR ever fixed anything (Net/2's rm.c is similar to Lite1's). Perhaps it was actually to limit the damage caused by the fts bug.
* ISDISK -> ISSEEKgreen1999-09-123-5/+5
| | | | Allow a device type of D_DISK or D_MEM to be ISSEEK.
* Even more cleanups to dd(1). This is probably the culmination of thegreen1999-09-127-120/+117
| | | | | | | | | | | | | BDEification process of dd(1). Most of the changes are from BDE's archive. Support for negative offsets is gone again, but the case where you lseek() onto byte -1 of something from a negative offset using seek/skip is fixed; if you end up on -1, you won't get a false positive lseek failure. The biggest changes are to data types (more size_t, for instance) and argument parsing. skip/seek on /dev/{,k}mem now occurs (instead of "read until you reach the offset") due to mem devices now being D_DISK. Some const things are now correctly declared as such, and the "case table" building is better. The only thing that seems to be left to make dd(1) everything TOG wants it to be is l10n.
* Add verbose processing flag.obrien1999-09-112-5/+21
|
* Make a bit more headway with dd's argument parsing, etc. get_bsz() isgreen1999-09-112-26/+32
| | | | | renamed get_num() since it's not just about block sizes. skip and seek can be any offset, including negative, now. Some style bogons are fixed.
* Improve shell documentation:sheldonh1999-09-087-52/+91
| | | | | | | | | | | | | | | | | | | | | | | | | * Consistently misspell built-in as builtin. * Add a builtin(1) manpage and create builtin(1) MLINKS for all shell builtin commands for which no standalone utility exists. These MLINKS replace those that were created for csh(1). * Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages, as well as to the manpages of standalone utilities which are supported as shell builtin commands in at least one of the shells. In such manpages, explain that similar functionality may be provided as a shell builtin command. * Improve sh(1)'s description of the cd builtin command. Csh(1) already describes it adequately. Replace the cd(1) manpage with a builtin(1) MLINKS link. * Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use Ic instead of Xr for shell builtin commands. * Undo English contractions. Reviewed by: mpp, rgrimes
* brucify, `v' before `W', mention -v is non-standard in manpage andmharo1999-09-042-18/+25
| | | | | | make code slightly easier to read Reviewed by: obrien
* mention that -v is non-standardmharo1999-09-041-0/+4
| | | | Reviewed-by: obrien
* brucify and add comment about -v being non-standard to manpagemharo1999-09-042-6/+10
| | | | Reviewed by: obrien
* Revert to using .Xr for builtins. The cross-references don't work now,sheldonh1999-08-311-5/+5
| | | | | | but that doesn't mean that they will never work. Requested by: mpp, rgrimes
* Clean-up:sheldonh1999-08-301-69/+160
| | | | | | | | | | Fix grammar and spelling nits. Use .Dq and .Qq where appropriate. Divorce trailing punctuation from quoted elements. Use .Dq instead of .Xr for builtins. Remove trailing whitespace and blank lines. PR: 13340
* Yet another previously forgotten merge from Lite2. (Describebde1999-08-301-4/+5
| | | | | | | `opaque', fix reversed description of `nodump', and don't use `nodump' as an example of adding a `no' prefix since the double negative would be confusing (it's still confusing -- the implicitly documented `nonodump' flag doesn't exist).)
* fix rm -rmharo1999-08-291-1/+2
| | | | Submitted by: John Hay -- John.Hay@mikom.csir.co.za
* add verbose flagmharo1999-08-292-7/+23
|
* brucify and move printf() to catch cases of special filesmharo1999-08-293-11/+7
|
OpenPOWER on IntegriCloud