aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Capitalize ASCII code names.Ruslan Ermilov2002-12-051-1/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107631
* mdoc(7) police:Ruslan Ermilov2002-11-262-2/+2
| | | | | | | | | | | Revert to using the .Tn POSIX and .Tn ANSI instead of \*[Px] and \*[Ai] strings; using these strings is unsafe in troff mode, as they include a change in a font size. Approved by: re Notes: svn path=/head/; revision=107282
* mdoc(7) police: In DESCRIPTION, list the options in pure alphabeticalRuslan Ermilov2002-11-251-14/+17
| | | | | | | | | | | order, as required by style(9). Document the effect of the -f option on exit status. Fixed some spacing. Submitted by: bde Approved by: re Notes: svn path=/head/; revision=107230
* mdoc(7) police: markup fixes.Ruslan Ermilov2002-11-251-6/+9
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107229
* mdoc(7) police: markup fixes.Ruslan Ermilov2002-11-251-3/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107226
* Minimal take on previous commit -- remove getopt and printf. Static sizeNate Lawson2002-11-141-15/+9
| | | | | | | | | | | | is reduced by 40k, dynamic by a few bytes. Functional changes: * "sleep -- arg" now returns usage() instead of ignoring the -- * "sleep -1" now returns immediately instead of returning usage() Reviewed by: jmallett Notes: svn path=/head/; revision=106883
* Back out previous commit since there is controversy about changing so muchNate Lawson2002-11-141-24/+30
| | | | | | | | in sleep including duping strtol(3). Code changes also increased dynamic size of sleep(1). Notes: svn path=/head/; revision=106882
* Remove getopt and strtol dependencies, reducing size of static exe.Nate Lawson2002-11-131-30/+24
| | | | | | | | | | | | | | | Preserve older desired behavior, accept [+-]*[0-9]*\.[0-9]* Remove a few unnecessary casts. %ls -l /bin/sleep -r-xr-xr-x 1 root wheel 61332 Oct 28 05:16 /bin/sleep %ls -l /usr/obj/usr/src/bin/sleep/sleep -rwxr-xr-x 1 root wheel 19124 Nov 13 12:12 /usr/obj/usr/src/bin/sleep/sleep Submitted by: Tim Kientzle <kientzle@acm.org> Notes: svn path=/head/; revision=106874
* Put echo on a diet, removing unnecessary use of stdio and getopt.Nate Lawson2002-11-131-9/+8
| | | | | | | | | | | | Before... -r-xr-xr-x 1 root wheel 58636 Oct 28 05:16 /bin/echo After... -rwxr-xr-x 1 root wheel 12824 Nov 12 17:39 /usr/obj/usr/src/bin/echo/echo Submitted by: Tim Kientzle <kientzle@acm.org> Notes: svn path=/head/; revision=106835
* Use warn() instead of perror() or fprintf() where appropriate.Tim J. Robbins2002-11-062-14/+8
| | | | Notes: svn path=/head/; revision=106479
* Cross-reference setfacl(1).Tim J. Robbins2002-11-041-0/+1
| | | | Notes: svn path=/head/; revision=106399
* - Consistent use of warn() vs. perror().Tim J. Robbins2002-11-032-9/+10
| | | | | | | | | | | | | - Gracefully handle the case where standard input is missing a newline at EOF. - Exit with status 1 instead of -1 (really 255) on error. - Add a Diagnostics section to the manual page documenting exit status. Approved by: rwatson Notes: svn path=/head/; revision=106388
* Print a `+' character after the standard UNIX permission fields in longTim J. Robbins2002-11-032-2/+73
| | | | | | | | | | | listings if the file has an extended ACL (more than the required 3 entries). This is what Solaris and IRIX do, and what the withdrawn POSIX.2c standard required. Reviewed by: rwatson (an earlier version of the patch) Notes: svn path=/head/; revision=106371
* The hw.availpages sysctl has an unsigned long value now, fix the retrievalThomas Moestl2002-11-012-2/+3
| | | | | | | to match that. Notes: svn path=/head/; revision=106318
* o Remove $Id$ from copyright; there's $FreeBSD$,Marcel Moolenaar2002-11-012-18/+8
| | | | | | | | | | o Remove static function uuid_print(); use uuid_to_string(3) in combination with printf(3) to achieve the same, o Remove unneeded includes, o Add a reference to uuid(3) to the manpage. Notes: svn path=/head/; revision=106283
* Do not print a header line if it would be empty; required by 1003.1-2001.Tim J. Robbins2002-10-311-0/+9
| | | | Notes: svn path=/head/; revision=106251
* Delete worthless comments.Tim J. Robbins2002-10-301-5/+1
| | | | Notes: svn path=/head/; revision=106192
* Create a small library function, check_utility_compat(3), to determineGarrett Wollman2002-10-282-32/+34
| | | | | | | | | | | whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink. Update expr(1) to use this new interface. Notes: svn path=/head/; revision=106065
* Do not include <sys/syslimits.h> directly; it is not intended for generalGarrett Wollman2002-10-271-1/+0
| | | | | | | consumption. Notes: svn path=/head/; revision=106053
* Attempt improved use of fts results: use the correct path to theRobert Watson2002-10-241-4/+14
| | | | | | | | | | | | | object to retrieve label information on, rather than directly consuming the fts-provided paths (none of which are quite right). This is based on the similar readlink() code, and may contain the same bugs. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105836
* Teach "ls -Z" to use the policy-agnostic MAC label interfaces ratherRobert Watson2002-10-247-238/+69
| | | | | | | | | | | | | | than the LOMAC-specific interfaces for listing MAC labels. This permits ls to view MAC labels in a manner similar to getfmac, when ls is used with the -l argument. Next generation LOMAC will use the MAC Framework so should "just" work with this and other policies. Not the prettiest code in the world, but then, neither is ls(1). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105832
* Use the MAC interface to list process MAC labels rather than usingRobert Watson2002-10-248-172/+58
| | | | | | | | | | | | | the LOMAC-specific interface (which is being deprecated). The revised LOMAC using the MAC framework will export levels listable using this mechanism. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105831
* Fix for changed getbsize arg type.Mark Murray2002-10-231-3/+4
| | | | Notes: svn path=/head/; revision=105824
* Be consistent about declaring a function "static", and consistentMark Murray2002-10-231-3/+3
| | | | | | | about the type of argv. Notes: svn path=/head/; revision=105781
* Constify, staticify, rationalise types and fix other related warnings.Mark Murray2002-10-231-8/+8
| | | | Notes: svn path=/head/; revision=105780
* Constify to squash some warnings.Mark Murray2002-10-232-2/+2
| | | | Notes: svn path=/head/; revision=105778
* Staticify for lint.Mark Murray2002-10-181-2/+2
| | | | Notes: svn path=/head/; revision=105396
* Constify and staticify for lint.Mark Murray2002-10-183-6/+6
| | | | Notes: svn path=/head/; revision=105395
* Print non-printing characters in directory names, as well as file names,Tim J. Robbins2002-10-183-5/+9
| | | | | | | | | | as `?' or `\ooo', depending on whether the -b or -B flags were used. PR: 43995 MFC after: 1 month Notes: svn path=/head/; revision=105390
* Avoid accidentally making "-h" a synonym for "fc".Tim J. Robbins2002-10-181-1/+1
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=105389
* Output "human-readable" values with a non-0 precision whereDima Dorfman2002-10-181-7/+9
| | | | | | | | | | | appropriate. Before this, a 2.9 GB file was misleadingly reported as "2G". This mostly brings unit_adjust() in line with what is in du(1). Reviewed by: jmallett Approved by: nik Notes: svn path=/head/; revision=105375
* Dekerberise. The corresponding userland stuff has been dekerberisedMark Murray2002-10-163-169/+6
| | | | | | | for ages, and no-one seems to have noticed. Viva PAM! Notes: svn path=/head/; revision=105269
* Do not strip CTL* escapes from redirection filenames in argstr(); theyTim J. Robbins2002-10-081-1/+1
| | | | | | | | | | | are later stripped with rmescapes() in expandarg(). If the filename has already been unescaped, doing it again in rmescapes() can walk off the end of the string, leading to memory corruption and eventually SIGSEGV. Noticed by: kris Notes: svn path=/head/; revision=104672
* Clean up use of <stdarg.h> macros: always call va_end after va_start,Tim J. Robbins2002-10-061-2/+6
| | | | | | | | | reset with a call to va_start before each use of the va_list. Obtained from: NetBSD Notes: svn path=/head/; revision=104563
* Ensure all va_starts have a matching va_end.Tim J. Robbins2002-10-061-1/+1
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=104560
* While removing a memory leak, rev 1.32 introduced aPhilippe Charnier2002-10-061-16/+11
| | | | | | | | free-memory-and-reuse-it-after. Correct both problems and make rcp -r work again under /etc/malloc.conf -> AJ. Notes: svn path=/head/; revision=104559
* /dev/sa0 is the default tape device, not /dev/rst0.Tim J. Robbins2002-10-062-6/+6
| | | | Notes: svn path=/head/; revision=104556
* Disallow empty condition parts of "if", "while" and "until" compoundTim J. Robbins2002-10-061-3/+6
| | | | | | | | | commands. Commands like "if then ... fi" and "while do ... done" are no longer accepted. Bodies of compound commands are still allowed to be empty, because even though POSIX does not allow them, most shells do. Notes: svn path=/head/; revision=104554
* Use %jd in format string and cast argument to intmax_t instead of usingTim J. Robbins2002-10-062-4/+3
| | | | | | | | | | %qd to print struct stat.st_size. Remove WARNS=0 and WFORMAT=0 from Makefile. Tested on: alpha, sparc64, i386 Notes: svn path=/head/; revision=104549
* Fix format string errors relating mainly to the use of %qu to print off_t's.Tim J. Robbins2002-10-064-9/+15
| | | | | | | | | | | | Instead use %ju and cast the argument. WFORMAT=0 is still required in the Makefile because gcc warns about some strftime() calls (I don't think this behaviour is useful.) Tested on: sparc64, alpha, i386 Notes: svn path=/head/; revision=104548
* Oops, the previous version was a last minute test version with off_tBruce Evans2002-10-031-1/+1
| | | | | | | | | replaced by int instead of size_t. Spotted by: fanf Notes: svn path=/head/; revision=104414
* Use a non-bogus type for representing the values of offsets in structs.Bruce Evans2002-10-031-1/+1
| | | | | | | | | | off_t is for offsets in files, and it is signed so it was no better than the original type of int for avoiding warnings from broken lints, except accidentally on machines like i386's where size_t is smaller than off_t. Notes: svn path=/head/; revision=104411
* Fix some twelve hour clock braindamage. The range for hours is 0-23 not 1-12.Tony Finch2002-10-031-1/+1
| | | | | | | MFC After: 1 week Notes: svn path=/head/; revision=104410
* Catch up to SMTX -> SLOCK changes.John Baldwin2002-10-024-25/+22
| | | | Notes: svn path=/head/; revision=104388
* Use %d in a printf() format string and cast the argument to int instead ofTim J. Robbins2002-10-021-1/+1
| | | | | | | | using %td when we know that the number is between 0 and 9; mksyntax is a build tool and needs to work on -stable. Notes: svn path=/head/; revision=104367
* Return the ``u''Tom Rhodes2002-10-011-1/+1
| | | | Notes: svn path=/head/; revision=104318
* Back out experimental changes to fmtstr() that I didn't mean to includeTim J. Robbins2002-10-011-1/+9
| | | | | | | in the previous commit. Notes: svn path=/head/; revision=104289
* Replace a home-grown printf() clone with a fwopen() wrapper aroundTim J. Robbins2002-10-011-188/+21
| | | | | | | | libc's vfprintf() that writes to a `struct output' instead of a file. Inspired by NetBSD's similar changes (they used asprintf() instead). Notes: svn path=/head/; revision=104286
* It is now safe to remove WARNS=0 and WFORMAT=0.Maxime Henrion2002-10-011-2/+0
| | | | | | | Tested on: alpha, i386, sparc64 Notes: svn path=/head/; revision=104284
* Restore "not found" error message when searching for (or executing)Tim J. Robbins2002-10-011-2/+8
| | | | | | | | | a program fails because the file or a path component does not exist. Suggested by: bde Notes: svn path=/head/; revision=104283