summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* add verbose flagmharo1999-08-292-10/+27
| | | | | | exit(1) --> exit(EX_USAGE) Reviewed by: obrien
* Fix typo in previous commit that documented the -v option.mpp1999-08-281-1/+1
|
* add verbose flagmharo1999-08-282-5/+17
| | | | Reviewed by: obrien
* Relax things a bit. Not having FIODTYPE will be a warning for now.green1999-08-281-8/+12
| | | | | Pointy hat: green Pointed out by: peter
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-27271-273/+273
|
* Use FIODTYPE to unbogosify much of the file type checking in dd.green1999-08-271-10/+15
|
* Don't suggest sysctl(8) as a means for discovering what filesystem typessheldonh1999-08-261-8/+5
| | | | | | are available; suggest lsvfs(1) instead. Reported by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
* Make the behaviour of `read -e', ie. treating backslashes as special,tg1999-08-262-17/+21
| | | | | | | the default. Add -r option for the read builtin to reverse this. PR: 13274 Reviewed by: cpiazza, hoek, sheldonh
* Add a verbose mode to show what files are being copied.mharo1999-08-264-9/+24
| | | | | | Idea taken from obrien. Reviewed by: obrien
* Remove obsolete BUGS section which describes something which stoppedjkh1999-08-251-16/+1
| | | | | | being relevant when we ripped out the BSD/VAX code. Submitted by: Guy Harris <gharris@flashcom.net>
* Sort cross-references. Move mount(8) down the list where it belongs, inchris1999-08-251-2/+2
| | | | particular.
* Make the comments nice, short-but-sweet XXX format.green1999-08-241-10/+3
| | | | Submitted by: sheldonh
* Backed out my -n change to imply -l by request of sheldonh.chris1999-08-231-2/+0
|
* Make -n flag compliant to the Single Unix Specification.chris1999-08-231-1/+3
| | | | | | | | | | To quote their ls(1) specification: -n The same as -l, except that the owner's UID and GID numbers are written, rather than the associated character strings. Reviewed by: green
* Make a comment I added a bit nicer.green1999-08-221-2/+3
|
* Finally: fix test -x as completely as possible.green1999-08-201-7/+17
| | | | | Reviewed by: bde Reworked by: bde
* Take integer rounding into account in the buffer size approximationsheldonh1999-08-191-2/+2
| | | | | | macro. So now it's (1 +) for the sign and (+ 1) for rounding. Reported by: bde
* Style issues in previous commit:sheldonh1999-08-191-4/+14
| | | | | | | | | | Use an upward approximation of the number of characters required for decimal representations of uid_t, gid_t and u_quad_t, intead of arbitrary values that may not be safe in the future. Fix disordering. Requested by: bde
* The new test(1) did not use access() correctly. I don't know why, sincegreen1999-08-181-2/+7
| | | | | | | | supposedly it's ksh-derived, and it's not broken in pdksh. I've added a test for test running as root: if testing for -x, the file must be mode & 0111 to get "success", rather than just existant. Reviewed by: chris
* Describe proper signals behavior rather than just removing it.ru1999-08-161-2/+8
| | | | | | Remove obsoleted reference to alarm(3). Submitted by: bde
* Replace our test(1) with NetBSD's pdksh-derived version. The code issheldonh1999-08-165-785/+465
| | | | | | | | | | | | significantly easier to read and extend and offers a few new tests. A few style changes taken from style(9) and OpenBSD, as well as whitespace cleanups. This change was discussed on freebsd-committers and freebsd-hackers and met with approval from at least des, eivind and brian. PR: 13091 Obtained from: NetBSD
* Bad reference of mount(1) changed to mount(8).chris1999-08-141-3/+3
|
* Minor style fix - change 'if(!*v)' to 'if (!*v)'chris1999-08-141-2/+2
|
* There is no special handling for SIGALRM asru1999-08-091-11/+3
| | | | sleep(3) is implemented using nanosleep(2).
* Document -f flag:chris1999-08-082-4/+10
| | | | | -f Do not display a diagnostic message if chmod could not modify the mode for file.
* Add -n option to print numeric user and group IDs instead of namessheldonh1999-08-023-9/+31
| | | | | | | | | | | | in a long (-l) listing. MFC-jockies should make sure that bde's concerns regarding the number of digits required to represent a uid_t and the use of snprintf on the associated PR have been addressed before going wild. PR: 12866 Reported by: Philip Kizer <pckizer@nostrum.com> Obtained from: NetBSD
OpenPOWER on IntegriCloud