summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* $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
* Correct some style issues in my previous commit.kris1999-07-222-4/+4
| | | | Submitted by: bde
* Fix handling of the cd command inside evaluations. It was changing PWD,sheldonh1999-07-191-1/+2
| | | | | | | | which it should not do. PR: 12578 Reported by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> Submitted by: Niall Smart <niall@pobox.com>
* Implement seekability for disk devices (not just regular files).green1999-07-133-11/+13
| | | | | | Also, fix pos_out() to do the same checks pos_in() did. Done for: jdp, luigi, the good of the world
* Add -W and fix the warning due to missing struct initializerkris1999-07-102-4/+4
|
* Improved error handling in rev.1.18: don't ignore failure of execve().bde1999-07-041-5/+4
| | | | Fixed some style bugs in rev.1.18.
* Correct reference to the obsolete vadvise() to madvise() (with appropriatekris1999-06-301-5/+5
| | | | | | | | arguments) PR: 11586 Submitted by: David Gilbert <dgilbert@velocet.ca> Reviewed by: Doug Rabson
* Don't continue if parsing failed when -f is in use. Exit with nonzero value.cracauer1999-06-251-3/+2
|
* Undo some of the reversions from previous revisions, and attempt tokris1999-06-211-52/+83
| | | | | | minimize diffs with {Net,Open}BSD Hinted-More-Or-Less-By: bde
* This is the second round of dd(1) changes. Some changes made/reversed bygreen1999-06-207-83/+108
| | | | | | | | request of Bruce. More changes may follow later. 'g' multiplier has been added (i.e. dd seek=5g if=bigfile.) Some minor corrections were made as well. Noticed by: bde
* Miscellaneous dd(1) changes: mainly fixing variable types (size_t, ssize_t,green1999-06-197-105/+104
| | | | | off_t, int, u_int64_t, etc.). dd(1) should now work properly with REALLY big amounts of data.
* Changes from OpenBSD:kris1999-06-073-16/+27
| | | | | | | | | | * Better usage() - correct syntax, display available commands instead of examples * Accept command abbreviations * sprintf -> snprintf (for paranoia) * manpage capitalisation tweak Obtained from: OpenBSD
* Use .Dq instead of ``'' in manpagekris1999-05-282-8/+23
| | | | | | | Use optimal blocksize for rm -P, instead of always using 8192-byte blocks to overwrite the file. Obtained from: OpenBSD
* getopt(3) returns -1 not EOF.imp1999-05-231-2/+2
|
* Chflags was clearing all flags supplied on the command line after ajmz1999-05-211-2/+2
| | | | | | | clearing flag like dump or noschg, etc. PR: bin/10071 Submitted by: Andreas Klussmann <andreas@infosys.heitec.net>
* the month and three days are up for -hackers and the 24hrs for -committers.jmg1999-05-142-20/+34
| | | | | | | | | | | | add a -j flag that tells date not to try to set the date. This allows you to use date as a userland interface to strptime. example: TZ=GMT date -j -f "%a, %d %b %Y %T %Z" "Sun, 08 Nov 1998 02:22:20 GMT" +%s which is the standard format for Last-modified headers in HTTP requests. only one to respond: eivind
* Grammatical fixes.kris1999-05-121-5/+5
| | | | Obtained from: OpenBSD
* Various spelling/formatting changes.kris1999-05-0857-163/+169
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* This Implements the mumbled about "Jail" feature.phk1999-04-282-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a seriously beefed up chroot kind of thing. The process is jailed along the same lines as a chroot does it, but with additional tough restrictions imposed on what the superuser can do. For all I know, it is safe to hand over the root bit inside a prison to the customer living in that prison, this is what it was developed for in fact: "real virtual servers". Each prison has an ip number associated with it, which all IP communications will be coerced to use and each prison has its own hostname. Needless to say, you need more RAM this way, but the advantage is that each customer can run their own particular version of apache and not stomp on the toes of their neighbors. It generally does what one would expect, but setting up a jail still takes a little knowledge. A few notes: I have no scripts for setting up a jail, don't ask me for them. The IP number should be an alias on one of the interfaces. mount a /proc in each jail, it will make ps more useable. /proc/<pid>/status tells the hostname of the prison for jailed processes. Quotas are only sensible if you have a mountpoint per prison. There are no privisions for stopping resource-hogging. Some "#ifdef INET" and similar may be missing (send patches!) If somebody wants to take it from here and develop it into more of a "virtual machine" they should be most welcome! Tools, comments, patches & documentation most welcome. Have fun... Sponsored by: http://www.rndassociates.com/ Run for almost a year by: http://www.servetheweb.com/
* .Xr chflags 1 ,hoek1999-04-271-1/+2
|
* First set of fixes to keep egcs happy. These include {} around singleimp1999-04-2511-26/+34
| | | | | | | | | | statement if blocks[*] when the else could be ambiguous, not defaulting to int type and removal of some unused variables. [*] This is explicitly allowed by style(9) when the single statement spans more than one line. Reviewed by: obrien, chuckr
* Reverted some more of rev.1.9 (emphasize that -H != -h).bde1999-04-251-1/+6
|
* Quick fix to allow transfer files >2GB.dt1999-04-251-3/+3
|
* Revert part of the previous commit. Keep the example that shows how thenik1999-04-241-0/+18
| | | | | | "-h" flag is used, but use "chown" in the example instead of "file". Prompted by: bde
* Next approach to make loops in interactive interruptable.cracauer1999-04-214-13/+17
| | | | PR: bin/9173
* Typo fix.max1999-04-191-3/+3
|
* Change description of file(1) following symlinks to the truth (namely,nik1999-04-141-28/+16
| | | | | | | | | by default, file(1) does not follow symlinks, the -L flag must be specified. PR: docs/8602 Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp> Reviewed by: nik
* Remove my temporary detection for PR 7059, Tor Egge fixed this bug.cracauer1999-04-131-5/+1
| | | | PR: 7059
* During variable expansion, the internal representation of the expressiontegge1999-04-131-5/+5
| | | | | might be relocated. Handle this case. PR: 7059
OpenPOWER on IntegriCloud