Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | A function which takes no arguments has an argument list spelled (void) in the | jmallett | 2002-06-20 | 2 | -2/+2 |
| | | | | world of ANSI C. | ||||
* | Make locate.updatedb tell about the security risk when it is run as root. | eivind | 2002-06-19 | 1 | -0/+5 |
| | |||||
* | Fix a memory leak from previous commit by freeing the possibly expanded | jmallett | 2002-06-19 | 1 | -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, as | jmallett | 2002-06-19 | 1 | -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. | tjr | 2002-06-19 | 1 | -5/+6 |
| | |||||
* | Let printf(1) tell the difference between zero width/precision and | tjr | 2002-06-19 | 1 | -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. | tjr | 2002-06-19 | 1 | -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). | tjr | 2002-06-19 | 1 | -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 it | tjr | 2002-06-19 | 2 | -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 the | tjr | 2002-06-19 | 1 | -2/+2 |
| | | | | -i option is used. | ||||
* | make(I) appeared in PWB UNIX. | jmallett | 2002-06-17 | 1 | -2/+1 |
| | |||||
* | Add Standards section. | tjr | 2002-06-17 | 1 | -0/+5 |
| | |||||
* | Sort sections, use Dl for the example so it stands out more. | tjr | 2002-06-17 | 1 | -6/+5 |
| | |||||
* | Only advance the column position for printable characters, update manual | tjr | 2002-06-17 | 2 | -4/+6 |
| | | | | page to emphasise that we count column positions, not characters. | ||||
* | Kill superfluous blank line. | sobomax | 2002-06-17 | 1 | -1/+0 |
| | |||||
* | Remove 17 June as German national holiday. | grog | 2002-06-16 | 1 | -1/+0 |
| | |||||
* | Correct the handling of (for example) the N command by only zeroing the | tjr | 2002-06-16 | 1 | -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's | tjr | 2002-06-16 | 1 | -2/+2 |
| | | | | | | a space or not. Noticed by: bde | ||||
* | Remove local prototype for main(). | jmallett | 2002-06-15 | 1 | -1/+0 |
| | |||||
* | Protoize. Remove un-needed cast to char in switch of getopt(3)'s return value. | jmallett | 2002-06-15 | 1 | -14/+10 |
| | | | | FBSDID. | ||||
* | Remove <sys/types> where we use <sys/param> already. | jmallett | 2002-06-15 | 1 | -8/+5 |
| | | | | protoize. | ||||
* | Remove obsolescent -tabstop option from Synopsis (it was already removed | tjr | 2002-06-15 | 1 | -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 -t | tjr | 2002-06-15 | 3 | -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. | mikeh | 2002-06-15 | 1 | -1/+16 |
| | |||||
* | Sort sections. | tjr | 2002-06-15 | 1 | -10/+10 |
| | |||||
* | fstat() returns information about the target of any symbolic link that | tjr | 2002-06-15 | 1 | -2/+2 |
| | | | | was opened, not the link itself. Remove dead code. | ||||
* | Improve parsing of character and equivalence classes: | tjr | 2002-06-15 | 1 | -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. | tjr | 2002-06-14 | 1 | -4/+4 |
| | |||||
* | Bump the size of the equivalence set to NCHARS; this file was left out | tjr | 2002-06-14 | 1 | -1/+1 |
| | | | | of a previous commit implementing equivalence classes. | ||||
* | Use the Cm macro for the clear, init, reset and longname operands. | tjr | 2002-06-14 | 1 | -4/+4 |
| | |||||
* | Adjust the exit status to conform to SUSv3 and document the fact it takes | tjr | 2002-06-14 | 2 | -19/+29 |
| | | | | multiple `argument' operands. | ||||
* | Sort sections. Avoid using "The -? option" at the start of option descriptions. | tjr | 2002-06-14 | 1 | -11/+7 |
| | |||||
* | Don't treat the trailing ']' of an equivalence class expression as a | tjr | 2002-06-14 | 1 | -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 characters | tjr | 2002-06-14 | 2 | -29/+58 |
| | | | | (not byte values) specified by the first string argument. | ||||
* | Implement support for equivalence classes ([=e=]) when the mapping is | tjr | 2002-06-14 | 3 | -14/+45 |
| | | | | one-to-one (SUSv3) | ||||
* | Exit with non-zero status if an input file can not be opened. This was | tjr | 2002-06-14 | 1 | -0/+1 |
| | | | | broken by rev. 1.22. | ||||
* | Fix one serious bug and one potential problem with in-place editing code: | sobomax | 2002-06-14 | 1 | -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: | grog | 2002-06-13 | 1 | -1/+2 |
| | | | | | - Remove superfluous ; - create destination directories if they don't exist. | ||||
* | Add two new options: | grog | 2002-06-13 | 4 | -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. | tjr | 2002-06-13 | 1 | -1/+1 |
| | |||||
* | Bump document date for previous commit. | tjr | 2002-06-13 | 1 | -1/+1 |
| | |||||
* | Add the -m option, which counts characters (as opposed to -c, which | tjr | 2002-06-13 | 2 | -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. | jmallett | 2002-06-13 | 1 | -2/+1 |
| | |||||
* | Use %p to print a pointer, not %lx and a cast to (unsigned long). Yuck. | jmallett | 2002-06-13 | 1 | -1/+1 |
| | |||||
* | Don't do stupid things to avoid unused parameters, mark them __unused. | jmallett | 2002-06-13 | 1 | -2/+2 |
| | |||||
* | Reorder LDADD to fix static linking. | des | 2002-06-12 | 1 | -2/+2 |
| | |||||
* | String lengths and sizeof()s are size_t not int. Mark an unused parameter | jmallett | 2002-06-12 | 3 | -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. | jmallett | 2002-06-12 | 5 | -10/+10 |
| | |||||
* | Use the constants from <limits.h> for the sizes of integral C types | robert | 2002-06-11 | 5 | -12/+10 |
| | | | | rather than defining them ourselves. | ||||
* | paste(1) appeared at least as early as 32v. | tjr | 2002-06-11 | 1 | -0/+5 |
| |