summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Don't store newlines at the end of each line in the hold/pattern spaces,tjr2002-06-222-11/+12
| | | | | | | | instead add the newline when the pattern space is printed. Make the `G' and `H' commands add a newline to the space before the data, remove bogus addition of newline from `x' command. PR: 29790, 38195
* Better fix for style.markm2002-06-211-6/+6
| | | | Suggested by: ru (but modified a bit by markm)
* Fix warnings generated elsewhere.markm2002-06-211-1/+1
|
* Style tidy-up.markm2002-06-211-2/+4
|
* Modernise this code by rounding up the usual suspects: register keyword,markm2002-06-212-120/+87
| | | | | | consts, ANSIfication of functions, proper use of __FBSDID() and so on. This commit is non-functional from a code-execution perspective, but pr(1) now compiles WARNS=6 clean.
* #include <sys/time.h> before <sys/stat.h> to get timespec.phk2002-06-211-0/+1
|
* Skip fields in the manner required by POSIX, and the way V7 did it.tjr2002-06-211-10/+8
| | | | MFC after: 1 week
* Newline characters should not participate in line comparisons. Only apparenttjr2002-06-211-4/+22
| | | | | | | when -s is used or the last line of the file is missing a newline. Noticed by the textutils test suite. MFC after: 1 week
* Give a C rewriter the necessary credit.ru2002-06-211-3/+9
| | | | Requested by: Daniel Papasian <dpapasia@andrew.cmu.edu>
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* Fix a bug fixed by NetBSD in revision 1.42 of parse.c by christos which causedjmallett2002-06-201-0/+8
| | | | | | | an example Makefile I was showing someone just last night to report a variable as being recursive. Obtained from: NetBSD
* More unsigned char casts to isupper(3).jmallett2002-06-201-2/+2
| | | | Obtained from: NetBSD
* Provide a heuristic for RCS conflicts.jmallett2002-06-201-2/+9
| | | | Obtained from: NetBSD
* Look for wildcards, and balanced meta-characters such as { and } like NetBSDjmallett2002-06-201-2/+18
| | | | | | does. Obtained from: NetBSD
* Expand a buffer to reduce diffs to NetBSD.jmallett2002-06-201-2/+2
| | | | Obtained from: NetBSD
* Diff reduction for great justice against NetBSD, cast to unsigned char whenjmallett2002-06-204-18/+18
| | | | passing an argument to isspace(3).
* Whitespace fixes to line-up EOL escapes whose right-most extraints changed injmallett2002-06-201-15/+15
| | | | the previous revision due to the biggest line changing.
* Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.jmallett2002-06-202-5/+5
| | | | This messes up some indentation in mdef.h for some macros.
* Style: put static qualifier on definition of static functions.tjr2002-06-201-7/+7
|
* time(1) does not use the shell to execute the specified utility, removetjr2002-06-201-6/+2
| | | | sentence stating it did.
* Make it obvious that command line arguments may be specified for the utilitytjr2002-06-202-10/+11
| | | | | that is to be invoked on the command line. Use "utility" instead of "command" in manual page and usage message for consistency with POSIX.
* 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.
OpenPOWER on IntegriCloud