summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Historically file flags (schg, uschg, etc) have been converted fromJosef Karthauser2000-01-276-13/+3
| | | | | | | | | | | | | | | | | | | | string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;) Notes: svn path=/head/; revision=56692
* fix cp -vi bugMichael Haro2000-01-231-2/+3
| | | | | | | Submitted by: Dan Papasian (bugg_ on irc) Notes: svn path=/head/; revision=56420
* Fix various mandoc bugsBrian Somers2000-01-121-23/+48
| | | | Notes: svn path=/head/; revision=55829
* Add `.Nm red' to NAME section.Alexey Zelkin2000-01-101-1/+2
| | | | Notes: svn path=/head/; revision=55762
* . mdoc(7)'fyAlexey Zelkin2000-01-071-4/+9
| | | | | | | | | | | . add Xrs to hosts.equiv(5), auth.conf(5), services(5) to some pages . sort Xrs in SEE ALSO sections Patches based on PR: docs/15680 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de> Notes: svn path=/head/; revision=55562
* Print negative minor numbers in hex. Negative minor numbers areBruce Evans2000-01-061-2/+3
| | | | | | | | essentially large unsigned ones, and we already print minor numbers > 255 in hex. Notes: svn path=/head/; revision=55514
* Actually remove unrequired SRCS.Bruce Evans2000-01-051-1/+0
| | | | Notes: svn path=/head/; revision=55476
* Added missing DPADD's. Removed unrequired SRCS's.Josef Karthauser2000-01-013-1/+3
| | | | | | | Obtained from: bde Notes: svn path=/head/; revision=55302
* Removed bogus dependancy on libutil.Josef Karthauser2000-01-011-3/+0
| | | | | | | Noticed by: bde Notes: svn path=/head/; revision=55301
* Retire stat_flags.c; it's now in libutil.Josef Karthauser1999-12-301-149/+0
| | | | Notes: svn path=/head/; revision=55271
* Moved flags_to_string and string_to_flags into libutil. It's used inJosef Karthauser1999-12-303-6/+8
| | | | | | | many places nowadays. Notes: svn path=/head/; revision=55270
* Back out previous commit and replace with a cleaner solution adaptedSheldon Hearn1999-12-291-11/+21
| | | | | | | | | | | | | | | from the source attributed below. In particular, this removes a goto inside a switch and replaces those horrendous ATOI macros with something acceptable. More clean-ups to come. PR: bin/14151 Reported by: Christian Weisgerber <naddy@mips.rhein-neckar.de> Obtained from: NetBSD Notes: svn path=/head/; revision=55225
* Take into account the fact that "[" may be called with a path,Sheldon Hearn1999-12-281-1/+6
| | | | | | | | | | | for example "/bin/[". Reported by: Vlad Skvortsov <vss@ulstu.ru> Reported by: Peter Jeremy <peter.jeremy@alcatel.com.au> Message-Id: 99Dec27.111307est.40321@border.alcanet.com.au Notes: svn path=/head/; revision=55179
* Mention the hostname variable in /etc/rc.conf since that is the mostJohn Baldwin1999-12-221-1/+6
| | | | | | | | | | | | | common way of setting the hostname. The man page already mentioned that the hostname is set by /etc/rc.network, so this just explains where /etc/rc.network gets the hostname from. PR: docs/14319 Submitted by: rwatson Reviewed by: cmc Notes: svn path=/head/; revision=54982
* Fix a bug where a pointer would be one character too far after puttingOllivier Robert1999-12-211-1/+1
| | | | | | | | | a '\0' at the end of a string. Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at> Notes: svn path=/head/; revision=54948
* Fix cut'n'paste niggles in previous commit.Sheldon Hearn1999-12-212-7/+8
| | | | Notes: svn path=/head/; revision=54943
* Add link(1) and unlink(1) as special cases of ln(1) and rm(1)Sheldon Hearn1999-12-206-6/+83
| | | | | | | | | | | | | | | respectively, in accordance with SUSv2. This differs from the approach taken in NetBSD, but provides less obscure error messages in at least the EISDIR case and does not take up additional disk space for new binaries. PR: 13071 PR: 13074 Requested by: James Howard <howardjp@wam.umd.edu> Notes: svn path=/head/; revision=54895
* Fix command hash handling onMartin Cracauer1999-12-203-3/+29
| | | | | | | | | PATH=... command Noted by and fix works for Marcel Moolenaar <marcel@scc.nl> Notes: svn path=/head/; revision=54884
* Rewriting of flags_to_string() and string_to_flags() to use an array.Ollivier Robert1999-12-191-86/+61
| | | | | | | | PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com> Notes: svn path=/head/; revision=54827
* Second part of 8-bit fixes.Martin Cracauer1999-12-161-1/+9
| | | | Notes: svn path=/head/; revision=54679
* Document ulimit -b for RLIMIT_SBSIZE.Martin Cracauer1999-12-151-1/+3
| | | | Notes: svn path=/head/; revision=54643
* First round of 8-bit fixes.Martin Cracauer1999-12-153-9/+10
| | | | Notes: svn path=/head/; revision=54631
* add human readable output (-h and -H)Michael Haro1999-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> Notes: svn path=/head/; revision=54621
* I've been Brucified! I did evil things with typedefs, but I'll do itBrian Feldman1999-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 Notes: svn path=/head/; revision=54278
* Do proper constification in args.c. This shuts up -Wcast-qual (thanks,Brian Feldman1999-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. Notes: svn path=/head/; revision=54245
* make '|' character visible.Martin Cracauer1999-12-051-1/+1
| | | | | | | | PR: docs/15265 Submitted by: takamune@avrl.mei.co.jp Notes: svn path=/head/; revision=54145
* Fix "subscript has type `char'" warnings by casting to int, asMartin Cracauer1999-12-042-5/+6
| | | | | | | discussed on -arch. Notes: svn path=/head/; revision=54132
* Include strerror(errno) in error messages after failed system calls.Martin Cracauer1999-11-2910-15/+21
| | | | | | | Fix a warning. Notes: svn path=/head/; revision=53891
* Default to not -v.David E. O'Brien1999-11-281-2/+2
| | | | | | | Fix usage() style bug spotted by BDE. Notes: svn path=/head/; revision=53824
* brucifyMichael Haro1999-11-283-29/+33
| | | | | | | Reviewed by: obrien Notes: svn path=/head/; revision=53819
* Add "-v".David E. O'Brien1999-11-272-2/+18
| | | | Notes: svn path=/head/; revision=53780
* Correct use of .Nm. Add DIAGNOSTICS section. Add rcsidPhilippe Charnier1999-11-212-8/+12
| | | | Notes: svn path=/head/; revision=53507
* Follow-up on mdoc fixes in rev 1.35; this includes things that I missedSheldon Hearn1999-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. Notes: svn path=/head/; revision=53349
* The pipleline problem introduced in version 1.22 wasn't fully fixed inMartin Cracauer1999-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. Notes: svn path=/head/; revision=53282
* I'm probably jumping the gun, but what the heck, this is -current.Peter Wemm1999-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. Notes: svn path=/head/; revision=53278
* Use eproc.e_stats, not a series of crude hacks to fetch it from the u-area.Peter Wemm1999-11-171-60/+19
| | | | | | | Also, fix some indentation that got messed up somehow.. Notes: svn path=/head/; revision=53276
* Introduce commandline caching in the kernel.Poul-Henning Kamp1999-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. Notes: svn path=/head/; revision=53239
* Typo (appropiate -> appropriate)Kris Kennaway1999-11-151-1/+1
| | | | | | | Obtained from: OpenBSD (inspired by) Notes: svn path=/head/; revision=53170
* Allow the year to be specified with an optional century.Sheldon Hearn1999-11-102-4/+14
| | | | | | | | PR: 14472 Reported by: j_guojun@lbl.gov (Jin Guojun) Notes: svn path=/head/; revision=53082
* Don't call bash(1) a Korn shell clone. Instead, use pdksh(1) as anSheldon Hearn1999-11-101-2/+2
| | | | | | | | | | example of such a clone. PR: 14601 Submitted by: Matthias Buelow <mkb@altair.mayn.de> Notes: svn path=/head/; revision=53081
* Correct logic from previous commit - middle processes in long pipesSteve Price1999-11-071-1/+1
| | | | | | | | | don't have their stdin closed indisciminantly. Reviewed by: markm Notes: svn path=/head/; revision=52972
* When a backquote command inside a here-document had a pipe with moreMartin Cracauer1999-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 Notes: svn path=/head/; revision=52900
* Most modern OSs have the ability to flag certain mounts as ones toJulian Elischer1999-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> Notes: svn path=/head/; revision=52735
* Restore reference to sleep(3).Ruslan Ermilov1999-10-281-1/+2
| | | | Notes: svn path=/head/; revision=52604
* Fix ';' command when used with -e flag.Martin Cracauer1999-10-261-1/+8
| | | | | | | PR: bin/14509 Notes: svn path=/head/; revision=52526
* Add `n' to the synopsis.David E. O'Brien1999-10-161-1/+1
| | | | | | | Forgotten by: sheldonh Notes: svn path=/head/; revision=52319
* Implement ulimit -b for RLIMIT_SBSIZE.Brian Feldman1999-10-091-1/+4
| | | | Notes: svn path=/head/; revision=52072
* This implements the RLIMIT_SBSIZE ("sbsize") administrative limits forBrian Feldman1999-10-091-0/+1
| | | | | | | | userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome. Notes: svn path=/head/; revision=52071
* Mdoc cleanup, with a few grammar cleanups on the side.Sheldon Hearn1999-10-071-498/+922
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=51985
* Nuke the FIODTYPE compatibility bits. It's time.Brian Feldman1999-10-031-3/+1
| | | | Notes: svn path=/head/; revision=51913