summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* A function which takes no arguments has an argument list spelled (void) in thejmallett2002-06-202-2/+2
| | | | world of ANSI C.
* Make locate.updatedb tell about the security risk when it is run as root.eivind2002-06-191-0/+5
|
* Fix a memory leak from previous commit by freeing the possibly expandedjmallett2002-06-191-2/+8
| | | | | string at the first opportunity, being sure to now always allocate the new string from VarPossiblyExpand. Oops.
* Possibly expand the variable name's embedded variables before using it, asjmallett2002-06-191-0/+26
| | | | | | | | | seen (somewhat) in NetBSD. This catches a few extra recursion cases that could be hidden by expanding a NIL variable causing an existing variable to be returned (which caused infinite looping and climbing memory usage in at least one case). Obtained from: NetBSD (in principle)
* Fix duplicate % in %b format introduced in rev 1.22.tjr2002-06-191-5/+6
|
* Let printf(1) tell the difference between zero width/precision andtjr2002-06-191-7/+9
| | | | | | | | unspecified width/precision. PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
* Allow format strings containing "%%" to be reused.tjr2002-06-191-2/+2
| | | | | | PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
* Allow `%' to be written out with an octal escape (\45 or \045).tjr2002-06-191-1/+5
| | | | | | PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
* Indicate that env(1) allows you to supply arguments to the utility ittjr2002-06-192-8/+8
| | | | | | | | | | executes in the usage() message and manual page. Use "utility" instead of "command" in both places to emphasise that shell builtins etc. will not work, and to be consistent with the terminology used by POSIX. PR: 39210 Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com> MFC after: 1 week
* Don't convert a single space before a tab stop into a tab when thetjr2002-06-191-2/+2
| | | | -i option is used.
* make(I) appeared in PWB UNIX.jmallett2002-06-171-2/+1
|
* Add Standards section.tjr2002-06-171-0/+5
|
* Sort sections, use Dl for the example so it stands out more.tjr2002-06-171-6/+5
|
* Only advance the column position for printable characters, update manualtjr2002-06-172-4/+6
| | | | page to emphasise that we count column positions, not characters.
* Kill superfluous blank line.sobomax2002-06-171-1/+0
|
* Remove 17 June as German national holiday.grog2002-06-161-1/+0
|
* Correct the handling of (for example) the N command by only zeroing thetjr2002-06-161-1/+2
| | | | input space in mf_fgets() if we reach the end of all input files.
* When counting words, check the correct character variable to see whether it'stjr2002-06-161-2/+2
| | | | | | a space or not. Noticed by: bde
* Remove local prototype for main().jmallett2002-06-151-1/+0
|
* Protoize. Remove un-needed cast to char in switch of getopt(3)'s return value.jmallett2002-06-151-14/+10
| | | | FBSDID.
* Remove <sys/types> where we use <sys/param> already.jmallett2002-06-151-8/+5
| | | | protoize.
* Remove obsolescent -tabstop option from Synopsis (it was already removedtjr2002-06-151-12/+17
| | | | | from the usage() message). Document what the -t option does in a more standard place. Add a standard Diagnostics section.
* Allow <blank>s to be used to separate tab stop positions with the -ttjr2002-06-153-5/+27
| | | | | argument, not just ASCII space characters and commas. Don't count non-printing characters when determining column position.
* Update for lukemftp-1.6-beta2.mikeh2002-06-151-1/+16
|
* Sort sections.tjr2002-06-151-10/+10
|
* fstat() returns information about the target of any symbolic link thattjr2002-06-151-2/+2
| | | | was opened, not the link itself. Remove dead code.
* Improve parsing of character and equivalence classes:tjr2002-06-151-4/+9
| | | | | [:*] and [=*] are parsed as `infinitely many repetitions of :' (or *) instead of literal characters (SUSv3)
* Move the #include and #define's to the top of the file.tjr2002-06-141-4/+4
|
* Bump the size of the equivalence set to NCHARS; this file was left outtjr2002-06-141-1/+1
| | | | of a previous commit implementing equivalence classes.
* Use the Cm macro for the clear, init, reset and longname operands.tjr2002-06-141-4/+4
|
* Adjust the exit status to conform to SUSv3 and document the fact it takestjr2002-06-142-19/+29
| | | | multiple `argument' operands.
* Sort sections. Avoid using "The -? option" at the start of option descriptions.tjr2002-06-141-11/+7
|
* Don't treat the trailing ']' of an equivalence class expression as atjr2002-06-141-1/+2
| | | | | character in the set. tr -d '[=a=]' was deleting ]'s as well as a's. Noticed by the textutils test suite.
* Add the P1003.1-2001 -C option which complements the set of characterstjr2002-06-142-29/+58
| | | | (not byte values) specified by the first string argument.
* Implement support for equivalence classes ([=e=]) when the mapping istjr2002-06-143-14/+45
| | | | one-to-one (SUSv3)
* Exit with non-zero status if an input file can not be opened. This wastjr2002-06-141-0/+1
| | | | broken by rev. 1.22.
* Fix one serious bug and one potential problem with in-place editing code:sobomax2002-06-141-70/+60
| | | | | | | | | | | | | - original version of code worked incorrectly when more than one input files were specified - it was moving the last line from the 1st file to be the first line of the 2nd, last line of the 2nd to be the first line of the 3rd and so on; - use mmap()->write() to create temporary file instead of malloc()->read()->write(), which was not only slower, but also did not bother to free allocated memory once backup file was created, potentially leading to memory exhausting when regex is applied to a big file or a large number of small ones.
* beforeinstall target:grog2002-06-131-1/+2
| | | | | - Remove superfluous ; - create destination directories if they don't exist.
* Add two new options:grog2002-06-134-4/+24
| | | | | | | | | -W is like -A (number of days in the future to consider, but also specifies that we don't want special treatment at weekends. -F changes our notion of "Friday" (the day before the weekend). Arguably, calendar(1) is broken to have special treatment of weekends by default, but this method maintains POLA.
* Correct the Standards section: wc is a utility, not a function.tjr2002-06-131-1/+1
|
* Bump document date for previous commit.tjr2002-06-131-1/+1
|
* Add the -m option, which counts characters (as opposed to -c, whichtjr2002-06-132-24/+83
| | | | | | | counts bytes). In locales that don't have multibyte characters, -m is effectively an alias for -c. This brings wc(1) up to P1003.1-2001 conformance.
* Avoid classy use of a variable one time with a constant value.jmallett2002-06-131-2/+1
|
* Use %p to print a pointer, not %lx and a cast to (unsigned long). Yuck.jmallett2002-06-131-1/+1
|
* Don't do stupid things to avoid unused parameters, mark them __unused.jmallett2002-06-131-2/+2
|
* Reorder LDADD to fix static linking.des2002-06-121-2/+2
|
* String lengths and sizeof()s are size_t not int. Mark an unused parameterjmallett2002-06-123-3/+4
| | | | | | of ReadMakefile as __unused, it's there because this function is used by the abstracted list interface which normally deals with item handlers which take two arguments. Add a missing static prototype.
* The error functions take constant pointers to strings for their format.jmallett2002-06-125-10/+10
|
* Use the constants from <limits.h> for the sizes of integral C typesrobert2002-06-115-12/+10
| | | | rather than defining them ourselves.
* paste(1) appeared at least as early as 32v.tjr2002-06-111-0/+5
|
OpenPOWER on IntegriCloud