summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the abuses of .Ql visible on stderr in troff mode.ru2002-12-231-1/+1
| | | | PR: docs/37176
* mdoc(7) police: markup nit.ru2002-12-231-1/+1
|
* Use '\033' rather than '\e' as the latter is a gccism.dwmalone2002-12-221-1/+1
| | | | | | PR: 46015 Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl> MFC after: 1 week
* pathconf() and acl_get_file() follow links so they cannot be used totjr2002-12-191-0/+8
| | | | | | | | | determine whether a symlink has an ACL. Instead, assume that symbolic links don't have ACLs and don't bother checking. Avoids spurious ENOENT warnings when listing directories containing broken symlinks on filesystems with ACLs enabled. Pointed out by: rwatson, bde
* Improve handling of symlink targets when listing MAC labels: don'trwatson2002-12-181-6/+13
| | | | | | | | do the wrong thing when the symlink doesn't have a target, by considering !f_label in the construction of ch_options. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Remove undocumented behavior (return current work dir if no pathjohan2002-12-181-5/+2
| | | | | | | | is given as argument) that is not present in 4-Stable. It was introduced when realpath(1) was split out of pwd(1). The removed behavior is provided by pwd(1). Reviewed by: mike
* - use MAXPATHLEN per realpath(3)johan2002-12-181-2/+2
| | | | | | | - use the problematic part of the path, instead of the argument, when reporting an error. Reviewed by: mike
* The code uses trapsasync, however the manual page uses asynctraps. Fix thetrhodes2002-12-171-1/+1
| | | | | | | | manual page to reflect the code. PR: 45820 Submitted by: Marco Molteni <molter@tin.it> Discussed with: tjr
* Document `trap EXIT` and `trap SIGNAME`.fanf2002-12-171-1/+4
|
* When job control is disabled, never show the job id when reporting thetjr2002-12-141-1/+2
| | | | status of a background process that has terminated because of a signal.
* Capitalize ASCII code names.ru2002-12-051-1/+3
| | | | Approved by: re
* mdoc(7) police:ru2002-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
* mdoc(7) police: In DESCRIPTION, list the options in pure alphabeticalru2002-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
* mdoc(7) police: markup fixes.ru2002-11-251-6/+9
| | | | Approved by: re
* mdoc(7) police: markup fixes.ru2002-11-251-3/+3
| | | | Approved by: re
* Minimal take on previous commit -- remove getopt and printf. Static sizenjl2002-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
* Back out previous commit since there is controversy about changing so muchnjl2002-11-141-24/+30
| | | | | in sleep including duping strtol(3). Code changes also increased dynamic size of sleep(1).
* Remove getopt and strtol dependencies, reducing size of static exe.njl2002-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>
* Put echo on a diet, removing unnecessary use of stdio and getopt.njl2002-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>
* Use warn() instead of perror() or fprintf() where appropriate.tjr2002-11-062-14/+8
|
* Cross-reference setfacl(1).tjr2002-11-041-0/+1
|
* - Consistent use of warn() vs. perror().tjr2002-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
* Print a `+' character after the standard UNIX permission fields in longtjr2002-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)
* The hw.availpages sysctl has an unsigned long value now, fix the retrievaltmm2002-11-012-2/+3
| | | | to match that.
* o Remove $Id$ from copyright; there's $FreeBSD$,marcel2002-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.
* Do not print a header line if it would be empty; required by 1003.1-2001.tjr2002-10-311-0/+9
|
* Delete worthless comments.tjr2002-10-301-5/+1
|
* Create a small library function, check_utility_compat(3), to determinewollman2002-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.
* Do not include <sys/syslimits.h> directly; it is not intended for generalwollman2002-10-271-1/+0
| | | | consumption.
* Attempt improved use of fts results: use the correct path to therwatson2002-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
* Teach "ls -Z" to use the policy-agnostic MAC label interfaces ratherrwatson2002-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
* Use the MAC interface to list process MAC labels rather than usingrwatson2002-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
* Fix for changed getbsize arg type.markm2002-10-231-3/+4
|
* Be consistent about declaring a function "static", and consistentmarkm2002-10-231-3/+3
| | | | about the type of argv.
* Constify, staticify, rationalise types and fix other related warnings.markm2002-10-231-8/+8
|
* Constify to squash some warnings.markm2002-10-232-2/+2
|
* Staticify for lint.markm2002-10-181-2/+2
|
* Constify and staticify for lint.markm2002-10-183-6/+6
|
* Print non-printing characters in directory names, as well as file names,tjr2002-10-183-5/+9
| | | | | | | as `?' or `\ooo', depending on whether the -b or -B flags were used. PR: 43995 MFC after: 1 month
* Avoid accidentally making "-h" a synonym for "fc".tjr2002-10-181-1/+1
| | | | Obtained from: NetBSD
* Output "human-readable" values with a non-0 precision wheredd2002-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
* Dekerberise. The corresponding userland stuff has been dekerberisedmarkm2002-10-163-169/+6
| | | | for ages, and no-one seems to have noticed. Viva PAM!
* Do not strip CTL* escapes from redirection filenames in argstr(); theytjr2002-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
* Clean up use of <stdarg.h> macros: always call va_end after va_start,tjr2002-10-061-2/+6
| | | | | | reset with a call to va_start before each use of the va_list. Obtained from: NetBSD
* Ensure all va_starts have a matching va_end.tjr2002-10-061-1/+1
| | | | Obtained from: NetBSD
* While removing a memory leak, rev 1.32 introduced acharnier2002-10-061-16/+11
| | | | | free-memory-and-reuse-it-after. Correct both problems and make rcp -r work again under /etc/malloc.conf -> AJ.
* /dev/sa0 is the default tape device, not /dev/rst0.tjr2002-10-062-6/+6
|
* Disallow empty condition parts of "if", "while" and "until" compoundtjr2002-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.
* Use %jd in format string and cast argument to intmax_t instead of usingtjr2002-10-062-4/+3
| | | | | | | %qd to print struct stat.st_size. Remove WARNS=0 and WFORMAT=0 from Makefile. Tested on: alpha, sparc64, i386
* Fix format string errors relating mainly to the use of %qu to print off_t's.tjr2002-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
OpenPOWER on IntegriCloud