aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Do not dot terminate errx() stringsPhilippe Charnier2001-12-111-1/+1
| | | | Notes: svn path=/head/; revision=87666
* Preserve directory timestamps with -p. Allow non-empty read-onlyStephen McKay2001-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 Notes: svn path=/head/; revision=87655
* Typo in warning message (chown should be chmod).Stephen McKay2001-12-111-1/+1
| | | | Notes: svn path=/head/; revision=87652
* Style improvements recommended by Bruce as a follow up to someDavid Malone2001-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. Notes: svn path=/head/; revision=87628
* -lcipher is an installable library.Ruslan Ermilov2001-12-062-12/+2
| | | | Notes: svn path=/head/; revision=87444
* Make a bit more clear the types of characters that -B option willGiorgos Keramidas2001-12-061-1/+3
| | | | | | | | | print in octal. Reviewed by: roam, silence on -doc Notes: svn path=/head/; revision=87432
* Spelling.Ruslan Ermilov2001-12-041-1/+1
| | | | Notes: svn path=/head/; revision=87354
* mdoc(7) police: s/LKM/KLD/, sort xrefs.Ruslan Ermilov2001-12-042-5/+9
| | | | Notes: svn path=/head/; revision=87353
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-0433-37/+12
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* Move the code merging ACL_USER and ACL_GROUP objects from underChris D. Faulhaber2001-12-031-22/+33
| | | | | | | | | two nested while loops into a separate function. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=87260
* Add defines for access and default ACLs (ACCESS_ACL/DEFAULT_ACL)Chris D. Faulhaber2001-12-034-27/+31
| | | | | | | | | to enhance readability. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=87259
* style(9) cleanups mostly consisting of:Chris D. Faulhaber2001-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 Notes: svn path=/head/; revision=87254
* Correct example to remove *all* extended ACL entries andChris D. Faulhaber2001-12-031-3/+4
| | | | | | | clarify description. Notes: svn path=/head/; revision=87253
* Slight makefile style.Mark Murray2001-12-022-7/+7
| | | | | | | Use __FBSDID(). Notes: svn path=/head/; revision=87237
* o Expand the explaination of the -b option WRT the resultingChris D. Faulhaber2001-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 Notes: svn path=/head/; revision=87226
* o Correct error message forgotten in the last commit (malloc() -> calloc())Chris D. Faulhaber2001-12-021-3/+2
| | | | | | | | | o Fix style nits Submitted by: bde Notes: svn path=/head/; revision=87224
* Use calloc(3) instead of rolling our own.Chris D. Faulhaber2001-12-021-2/+1
| | | | Notes: svn path=/head/; revision=87181
* Note that stty is a utility and not... err... a program....Brian Feldman2001-11-291-1/+1
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=87094
* Stty is a program, not a function.Brian Feldman2001-11-291-1/+1
| | | | Notes: svn path=/head/; revision=87083
* Add LOMAC options (the "Z" flag in both cases) to display extra informationBrian Feldman2001-11-2616-17/+429
| | | | | | | | | in ls(1) and ps(1). Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=86922
* Remove the printf builtin command from sh(1), which command is notAkinori MUSHA2001-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. Notes: svn path=/head/; revision=86692
* Fix style bugs I found, and add a comment.Akinori MUSHA2001-11-191-10/+11
| | | | Notes: svn path=/head/; revision=86622
* Oops sorry, forgot to add a #include.Akinori MUSHA2001-11-191-0/+1
| | | | Notes: svn path=/head/; revision=86619
* - Do not reference argv[1] if no argument is given.Akinori MUSHA2001-11-191-7/+34
| | | | | | | | | Reported by: brian - Call error() instead of errx() if compiled as sh(1) builtin. Notes: svn path=/head/; revision=86618
* Make test(1) a builtin command of our sh(1) for efficiency. TheAkinori MUSHA2001-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) Notes: svn path=/head/; revision=86505
* o Update licenses, comments.Robert Watson2001-11-162-1/+8
| | | | | | | Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=86458
* Deuglify the usage message by putting the program name after theDima Dorfman2001-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> Notes: svn path=/head/; revision=86404
* Don't call setvar() with the VTEXTFIXED flag. A copy is created byTor Egge2001-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 Notes: svn path=/head/; revision=86176
* Use a quad int conversion routine for time_t instead of ulong, capable ofMatthew Dillon2001-10-281-2/+4
| | | | | | | decoding tar's full time buffer (12 digits). Notes: svn path=/head/; revision=85618
* Various string fields for certain cpio types are 11 rather then 8Matthew Dillon2001-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 Notes: svn path=/head/; revision=85617
* Remove unnecessary casts in timeval.tv_sec load from st_*timeMatthew Dillon2001-10-281-4/+4
| | | | Notes: svn path=/head/; revision=85616
* Remove assumption that time_t is an intMatthew Dillon2001-10-281-1/+3
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=85615
* mdoc(7) police: join OS version with the corresponding macro.Ruslan Ermilov2001-10-191-2/+2
| | | | Notes: svn path=/head/; revision=85162
* Repair normally unused is_digit() macro.Tor Egge2001-10-141-1/+1
| | | | Notes: svn path=/head/; revision=84936
* *** empty log message ***David E. O'Brien2001-10-012-29/+34
| | | | Notes: svn path=/head/; revision=84261
* WARNSify.Ruslan Ermilov2001-09-262-4/+4
| | | | Notes: svn path=/head/; revision=83962
* The "cat - -" feature was broken by the last commit.Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=83961
* mdoc(7) police: fixed markup.Ruslan Ermilov2001-09-251-5/+12
| | | | Notes: svn path=/head/; revision=83933
* mdoc(7) police: markup nits.Ruslan Ermilov2001-09-211-6/+10
| | | | Notes: svn path=/head/; revision=83760
* Don't check uninitialized memory for having the shell control characterTor Egge2001-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 Notes: svn path=/head/; revision=83676
* BASESYNTAX, DQSYNTAX, SQSYNTAX and ARISYNTAX handles negative indexes.Tor Egge2001-09-192-6/+6
| | | | | | | | Allow those to be used to properly quote characters in the shell control character range. Notes: svn path=/head/; revision=83675
* Adjust some type checks to include CTLQUOTEMARK in the range ofTor Egge2001-09-191-3/+3
| | | | | | | shell control characters. Notes: svn path=/head/; revision=83674
* Give /bin/cat the ability to connect to and read unix-domain socketsMatthew Dillon2001-09-152-56/+108
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=83482
* KSE Milestone 2Julian Elischer2001-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 Notes: svn path=/head/; revision=83366
* UPAGES as a constant is gone in KSE. We are going to have to trustPeter Wemm2001-09-101-3/+1
| | | | | | | and/or fix ki_rssize. Notes: svn path=/head/; revision=83280
* Enable BSD style color ls support.Mark Peek2001-09-052-0/+2
| | | | | | | | PR: 23161 Submitted by: Anand Ranganathan <anand@blandings.com> Notes: svn path=/head/; revision=83121
* Update to the tcsh-6.11 version.Mark Peek2001-09-051-4/+12
| | | | | | | | | This file could be removed as the alpha changes have been incorporated into the base release. However, it is probably best to leave this here since there are additional FreeBSD architectures in the pipeline that should be added. Notes: svn path=/head/; revision=83116
* Add new tcsh-6.11 NLS sets for Estonian and Russian.Mark Peek2001-09-053-1/+33
| | | | | | | (Polish was also included in tcsh-6.11 but the set1 and set3 files are broken) Notes: svn path=/head/; revision=83101
* File positions are off_t nowdays, not long, so:Andrey A. Chernov2001-09-011-3/+3
| | | | | | | | | | | | | | | | fseek -> fseeko ftell -> ftello NOTE: that fseek/ftell not works for >long offsets per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long. [EOVERFLOW] For ftell ( ), the current file offset cannot be represented correctly in an object of type long. Notes: svn path=/head/; revision=82771
* The file_descriptor argument to -t isn't optional, so don't mark it up so.Dima Dorfman2001-08-311-1/+1
| | | | Notes: svn path=/head/; revision=82661