summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix typo in source-explaining comment.cracauer1999-04-121-2/+2
|
* Add a guarded abort() for the problem in PR bin/7059 (no fix so far,cracauer1999-04-121-17/+33
| | | | | | | | this is hairy). Reformat this file to comply to style(9). It had mixed styles before. PR: bin/7059
* When a variable expansion is enclosed in double quotes, the internaltegge1999-04-092-16/+56
| | | | | | | | | | | representation of the expression is quoted. Take care of this when doing pattern matching in conjunction with trimming. #!/bin/sh c=d:e; echo "${c%:e}" PR: NetBSD PR#7231 Noticed by: Havard Eidnes <Havard.Eidnes@runit.sintef.no>
* Update p_flags doc.peter1999-04-061-3/+1
|
* Look at p_lock instead of P_NOSWAP etc as an indicator of unswappability.peter1999-04-061-2/+4
| | | | | (While here, put a #ifndef pgtok around the macro that gets a redefinition warning)
* In interactive shells, break loops to the topmost level when a childcracauer1999-04-031-1/+6
| | | | | | | | | is killed by a signal. (In non-interactive shells - that means a shellscript - the shell just exits, this was already working) PR: bin/9173
* Implement -a flag. A test shell script can be found atcracauer1999-04-032-4/+5
| | | | | | | | | http://www.cons.org/cracauer/download/sh-interrupt/testsuite/test_export.sh The PR also had test cases the new version passes. Fix typo in comment. PR: bin/1030
* -T was missing in the synopsis line.cracauer1999-04-021-2/+2
| | | | Submitted by: BDE
* On FreeBSD/alpha, ps(1) does not correctly report process start timeswpaul1999-04-011-1/+40
| | | | | | | | | | | | | | | | | and CPU runtime because it can't access the user area via /proc/<pid>/mem. This is because the uarea is not mapped into the process address space at USRSTACK on the alpha like it is on the x86. Since I'm haven't been able to wrap my brain around the VM system enough to be able to figure out how to achieve this mapping, and since it's questionable that such an architectural change is correct, I implemented a workaround to allow ps(1) to read the uarea from /dev/kmem using kvm_read() instead of from the process address space via kvm_uread(). The kludge is hidden inside #ifdef __alpha__/#endif so as not to impact the x86. (Note that top(1) probably uses this same gimmick since it works on FreeBSD/alpha.) Reviewed by: dfr
* The immediate execution of traps I introduced in September 1998 (tocracauer1999-04-014-7/+23
| | | | | | | | | | make /etc/rc interruptible in cases when programs hang with blocked signals) isn't standard enough. It is now switched off by default and a new switch -T enables it. You should update /etc/rc to the version I'm about to commit in a few minutes to keep it interruptible.
* sh doesn't support <> redirections.brian1999-03-311-4/+2
| | | | PR: 7325
* Support seconds with -v.brian1999-03-093-13/+55
| | | | | PR: 6308 Submitted by: Max Euston <meuston@jmrodgers.com>
* Don't emit usage() message when no arguments given to -f. Thisjkh1999-02-251-2/+5
| | | | | | | appears to be consistent with other Unixen, like Solaris. PR: 10240 Submitted by: jun_sun@hlla.is.tsukuba.ac.jp
* Clean up some .Os macro uses: quotes are not needed, multiple argumentsfenner1999-02-151-2/+2
| | | | | don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental" isn't an OS name.
* Removed occurrences of consecutive repeated words (such as "the the").alex1999-02-121-2/+2
|
* Fix synopsis to match 1003.2. Add text describing the way in whichwollman1999-01-281-10/+19
| | | | | our implementation does not meet 1003.2 (rather than the now outdated ``is expected to comply' language).
* Enable Linux threads support by default.julian1999-01-261-8/+1
| | | | | | | | | This takes the conditionals out of the code that has been tested by various people for a while. ps and friends (libkvm) will need a recompile as some proc structure changes are made. Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Example "19%y" changed to "%Y" to discourage poor usage.danny1999-01-131-2/+2
|
* Re-enable the options in ps(1) that were disabled with the Linuxjulian1999-01-131-1/+6
| | | | | | threads support. Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Reviewed by: Luoqi Chen, Jordan Hubbardjulian1998-12-191-1/+3
| | | | | | | | | | | | Submitted by: "Richard Seaman, Jr." <lists@tar.com> Obtained from: linux :-) Code to allow Linux Threads to run under FreeBSD. By default not enabled This code is dependent on the conditional COMPAT_LINUX_THREADS (suggested by Garret) This is not yet a 'real' option but will be within some number of hours.
* Add references to test(1) and expr(1).jkoshy1998-12-181-1/+4
|
OpenPOWER on IntegriCloud