summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Added ability to do ">/dev/stdout". The apsfilter people are anxiousbabkin2001-12-221-3/+1
| | | | | | to get it MFCed in time for release 4.5. MFC after: 2 weeks
* Make ``df -l'' work when no network filesystems are loaded.ru2001-12-191-2/+4
| | | | PR: bin/32397
* 1) Localize (LC_CTYPE)ache2001-12-171-0/+11
| | | | | 2) Catch "" to 0 conversion for OSes that not catch it in strto*() (f.e. -stable). It is needed because POSIX agrees with both variants.
* POSIX strto*() functions MAY return EINVAL, so don't assume that only oneache2001-12-141-2/+4
| | | | errno from them allowed and it is always ERANGE
* Add prototypes for main() so that these programs compile with -Werrorluigi2001-12-141-0/+1
| | | | | | | | | | | | (which somehow now seems to be the default for compiling -current). This error popped up while doing a PicoBSD cross-compile on a 4.3-ish system, it may well be that there are other apps which have similar problems, but I did not spot them as they are not included in my picobsd config. Whether adding prototypes for main() is the correct solution or not I have no idea, a request to -current on the matter went basically unanswered. Those who have better ideas are welcome to back this out and replace it with the correct fix.
* Do not dot terminate errx() stringscharnier2001-12-111-1/+1
|
* Preserve directory timestamps with -p. Allow non-empty read-onlymckay2001-12-111-11/+39
| | | | | | | | | | directories to be copied. Apply umask to newly created directories when -p is not specified. PR: 27970 PR: 31633 MFC after: 4 days
* Typo in warning message (chown should be chmod).mckay2001-12-111-1/+1
|
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-101-5/+6
| | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
* -lcipher is an installable library.ru2001-12-062-12/+2
|
* Make a bit more clear the types of characters that -B option willkeramida2001-12-061-1/+3
| | | | | | print in octal. Reviewed by: roam, silence on -doc
* Spelling.ru2001-12-041-1/+1
|
* mdoc(7) police: s/LKM/KLD/, sort xrefs.ru2001-12-042-5/+9
|
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-0433-37/+12
| | | | | | set WARNS=0. Reviewed by: mike
* Move the code merging ACL_USER and ACL_GROUP objects from underjedgar2001-12-031-22/+33
| | | | | | two nested while loops into a separate function. Obtained from: TrustedBSD Project
* Add defines for access and default ACLs (ACCESS_ACL/DEFAULT_ACL)jedgar2001-12-034-27/+31
| | | | | | to enhance readability. Obtained from: TrustedBSD Project
* style(9) cleanups mostly consisting of:jedgar2001-12-036-87/+85
| | | | | | | | | o explicitly check return values and variables against a value o return x; -> return (x); o fix inconsistent sysexits usage by nuking it (partially suggested by bde) Obtained from: TrustedBSD Project
* Correct example to remove *all* extended ACL entries andjedgar2001-12-031-3/+4
| | | | clarify description.
* Slight makefile style.markm2001-12-022-7/+7
| | | | Use __FBSDID().
* o Expand the explaination of the -b option WRT the resultingjedgar2001-12-021-3/+13
| | | | | | | | | group ACL entry in relation to the existing group and mask ACL entries. o Move the explanation of multiple ACL entries on the command line to the ACL ENTRIES section. Obtained from: TrustedBSD Project
* o Correct error message forgotten in the last commit (malloc() -> calloc())jedgar2001-12-021-3/+2
| | | | | | o Fix style nits Submitted by: bde
* Use calloc(3) instead of rolling our own.jedgar2001-12-021-2/+1
|
* Note that stty is a utility and not... err... a program....green2001-11-291-1/+1
| | | | Submitted by: ru
* Stty is a program, not a function.green2001-11-291-1/+1
|
* Add LOMAC options (the "Z" flag in both cases) to display extra informationgreen2001-11-2616-17/+429
| | | | | | in ls(1) and ps(1). Sponsored by: DARPA, NAI Labs
* Remove the printf builtin command from sh(1), which command is notknu2001-11-203-10/+5
| | | | | | | | | | | | used so often that it's worth keeping it as a builtin. Now that all the printf invocations from within the system startup scripts, we can safely remove it. Urged by: sheldonh :) No MFC is planned so far because it may break compatibility and violate POLA.
* Fix style bugs I found, and add a comment.knu2001-11-191-10/+11
|
* Oops sorry, forgot to add a #include.knu2001-11-191-0/+1
|
* - Do not reference argv[1] if no argument is given.knu2001-11-191-7/+34
| | | | | | Reported by: brian - Call error() instead of errx() if compiled as sh(1) builtin.
* Make test(1) a builtin command of our sh(1) for efficiency. Theknu2001-11-175-5/+24
| | | | | | | | | | | binary size increase is 3,784 bytes (about 0.6%). I don't drop the printf builtin while I'm here because some /etc/rc.* scripts seem to use it before mounting /usr where printf(1) resides. Reviewed by: arch (sheldonh) Inspired by: NetBSD, ksh Clued by: ume (on how the printf builtin is used)
* o Update licenses, comments.rwatson2001-11-162-1/+8
| | | | Obtained from: TrustedBSD Project
* Deuglify the usage message by putting the program name after thedd2001-11-151-1/+2
| | | | | | | | "usage:" string. This is how most (all?) other programs in the system do it. PR: 31596 Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
* Don't call setvar() with the VTEXTFIXED flag. A copy is created bytegge2001-11-071-4/+4
| | | | | | | | setvar() and passed to setvareq(). When the VTEXTFIXED flag is set, that copy is never freed, causing a memory leak. PR: 31533 Submitted by: maxim@macomnet.ru
* Use a quad int conversion routine for time_t instead of ulong, capable ofdillon2001-10-281-2/+4
| | | | decoding tar's full time buffer (12 digits).
* Various string fields for certain cpio types are 11 rather then 8dillon2001-10-281-6/+15
| | | | | | | | | characters. Use quad conversion functions rather then long conversion where appropriate to handle the available range. Mainly fixes time_t but there was also a st_size ulong conversion in there that has to be quad or cpio cannot be used to copy files > 2G. MFC after: 1 day
* Remove unnecessary casts in timeval.tv_sec load from st_*timedillon2001-10-281-4/+4
|
* Remove assumption that time_t is an intdillon2001-10-281-1/+3
| | | | MFC after: 1 day
* mdoc(7) police: join OS version with the corresponding macro.ru2001-10-191-2/+2
|
* Repair normally unused is_digit() macro.tegge2001-10-141-1/+1
|
* *** empty log message ***obrien2001-10-012-29/+34
|
* WARNSify.ru2001-09-262-4/+4
|
* The "cat - -" feature was broken by the last commit.ru2001-09-261-5/+15
| | | | | | | Restore the code that avoided closing and reopening stdin. This is also required by POSIX. As a bonus, enable multiple stdin reads with the -benstv flags, by resetting the EOF condition on stdin.
* mdoc(7) police: fixed markup.ru2001-09-251-5/+12
|
* mdoc(7) police: markup nits.ru2001-09-211-6/+10
|
* Don't check uninitialized memory for having the shell control charactertegge2001-09-191-4/+4
| | | | | | | | | | | value CTLARI since this might break expansion of arithmetic expressions. Don't access memory below start of stackblock. Problem analyzed by hunt@iprg.nokia.com, slightly different patch applied. PR: 24443 Submitted by: hunt@iprg.nokia.com
* BASESYNTAX, DQSYNTAX, SQSYNTAX and ARISYNTAX handles negative indexes.tegge2001-09-192-6/+6
| | | | | Allow those to be used to properly quote characters in the shell control character range.
* Adjust some type checks to include CTLQUOTEMARK in the range oftegge2001-09-191-3/+3
| | | | shell control characters.
* Give /bin/cat the ability to connect to and read unix-domain socketsdillon2001-09-152-56/+108
| | | | MFC after: 1 week
* KSE Milestone 2julian2001-09-121-2/+3
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* UPAGES as a constant is gone in KSE. We are going to have to trustpeter2001-09-101-3/+1
| | | | and/or fix ki_rssize.
OpenPOWER on IntegriCloud