summaryrefslogtreecommitdiffstats
path: root/usr.bin/split (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove use of sysexits.h.millert2015-12-311-25/+21
|
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* tame "stdio rpath wpath cpath" to support use of freopen() with "w"deraadt2015-10-071-1/+4
|
* Reduce usage of predefined strings in manpages.bentley2015-02-281-6/+6
| | | | | | | | | | | Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+3
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* combine the extensions notes;jmc2014-05-271-12/+7
|
* add an EXIT STATUS section for /usr/bin;jmc2010-09-031-3/+3
|
* document exit returns; from daniel dickmanjmc2010-07-221-2/+4
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc2009-02-081-3/+3
| | | | updates to follow;
* saying that -b and -l create smaller files can be misleading - the authorjmc2008-01-051-4/+4
| | | | | | | | | | was probably thinking of the fact that files created would be smaller than the original file split; instead, just say that they create files. this comes from freebsd pr#119329, submitted by Julian Stacey. his fix was to introduce the notion of "split files", but the idea of "create split files" can be just as confusing, so i've gone with removing the original, ambiguous, adjective.
* an usage message should fit on a 80-column displaysobrado2007-10-201-5/+5
| | | | ok jmc@
* handle empty strings returned by fgetschl2007-09-251-2/+5
| | | | ok ray@
* The rewritten newfile() algorithm introduced in rev 1.12 wasmillert2007-09-051-31/+19
| | | | | incorrect. This simpler version from Pete Honeyman passes all the tests I thow at it. OK deraadt@ some time ago.
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* - use a consistent text for STANDARDSjmc2007-05-301-1/+5
| | | | - note which options are extensions to POSIX
* +.Xr csplit 1 ,jmc2007-01-241-1/+2
| | | | from Matthias Kilian;
* Check for int oflow w/ -b option and unit suffixes, make usage() __dead,millert2006-08-101-12/+17
| | | | use ssize_t not long for read/write length. OK beck@
* use .Sq for single letters;jmc2006-08-101-7/+7
|
* Add -a option as per single unix. Rewrote the code to generatemillert2006-08-092-37/+87
| | | | | file names to be less blecherous, though it is still not pretty. OK beck@, with man page help from jmc@
* - indicate that -b, -l, and -p are mutually exclusivejmc2006-08-092-19/+16
| | | | | | | | - tidy up the text somewhat - make it clear that the original file is not changed mostly this is based on a freebsd pr (33852), submitted by gary w. swearingen
* split.1:jmc2005-09-072-8/+19
| | | | | | | | | add the relevant arguments to the options synopsis for -b and -l; tidy up the formatting of [-b byte_count[k|m]]; make SYNOPSIS arg for -l match its description; split.c: sync usage();
* mostly ansi cleanup; pval okderaadt2003-06-101-9/+7
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-032-13/+5
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* GNU semantics say that if optstring begins with '-' thenmillert2002-12-081-3/+3
| | | | | | | | | | | | each non-option shall be treated as arguments to option '\1'. BSD getopt match '-' in optstring with a '-' on the command line. This is used to support deprecated options like "su -" that would otherwise prevent the use of getopt(). Resolving this simply requires that the leading '-' be moved somewhere else (I moved it to the end of optstring) since position within optstring is not meaningful.
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-6/+6
|
* fix the history refsmickey2002-01-241-2/+2
|
* Initial idea from aaron@: Last char of .Xr group in SEE ALSO section shouldmpech2001-09-061-2/+2
| | | | | | be a single digit. Powered by mantoya@. millert@ ok.
* - Section shuffling: comply to the section ordering outlined in mdoc(7).aaron2000-11-101-8/+8
| | | | | | - Some .Nm trimming. - .Sh AUTHOR -> .Sh AUTHORS - Other miscellaneous fixes here and there.
* Various cleanups and standardizations.aaron2000-03-111-8/+8
|
* oflowderaadt1999-12-041-3/+3
|
* - remove trailing white spaceaaron1999-06-051-2/+2
| | | | | | | - remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
* From FreeBSD:millert1999-02-042-56/+100
| | | | | | | Add new option '-p pattern' for splitting files based on matching lines in the file with a regular expression. Useful for e.g. 'cvs diff' output. Also compile cleanly with -Wall and use defines from <sysexits.h>.
* $OpenBSD$deraadt1997-09-211-2/+1
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* rcsidderaadt1996-06-263-2/+4
|
* initial import of NetBSD treederaadt1995-10-183-0/+400