christos
1df62eba0c
needs <sys/stat.h>
2017-01-10 21:14:13 +00:00
joerg
6818646ac8
Use __dead
2011-09-16 15:39:25 +00:00
lukem
c1ceae17f0
Enable WARNS=4 by default for usr.bin, except for:
...
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
2009-04-14 22:15:16 +00:00
lukem
ec7aea6da3
Appease -Wsign-compare
2009-04-13 11:17:06 +00:00
lukem
98e5374ccb
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
jschauma
e1925bdef9
Add a new command-line option "-n chunk_count", that splits the input
...
file into chunk_count smaller files. Each file will be size/chunk_count
bytes large, with whatever spillover there is ending up in the chunk_counth
file.
2007-05-31 01:35:35 +00:00
wiz
6e478b060b
Mention that the argument file is not modified. From jmc@openbsd.
2006-12-24 08:35:21 +00:00
jmmv
b635f565e7
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
...
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
bjh21
7971e90f7e
Remove the NAME_MAX check. While well-intentioned (and required by POSIX),
...
the implementation was horribly broken when <name> contained slashes, and
a correct one will probably be quite different.
2003-07-10 21:30:16 +00:00
bjh21
b768f7ad6a
Remove the hack that varied the first character of the output filename if
...
a base name wasn't specified. It's not really necessary now that we've
got -a, it's ugly, and POSIX doesn't permit it.
Suggested on tech-userlevel a couple of weeks ago to a deafening silence.
2003-07-10 20:43:40 +00:00
bjh21
548e2c20bb
Clean up the mechanism used for opening output files. Rather than freopening
...
stdout onto each file in turn, then writing through fileno(stdout), use
open() and close() like any sensible program. This saves a lot of system
calls, removes a dependency on the particular behaviour of BSD freopen(),
and allows us to detect and report errors from close().
2003-06-29 22:57:23 +00:00
bjh21
4f65cbad31
Cleanup:
...
Correct synopsis to show that -l and -b are mutually exclusive.
Put [k|m] in the right typefaces.
Use .Ql for 'k' and 'm' in text.
Refer to the option-argument of -l as <line_length> consistently.
2003-06-27 17:19:54 +00:00
bjh21
4fca23a8b3
Simplify the handling of ifd by initialising it to the default
...
(STDIN_FILENO), and only overriding that if the user specifies a different
input file.
2003-06-26 23:19:15 +00:00
bjh21
946564c3f6
Remove support for treating "-" as an option rather than an operand. The
...
practical consequence of this is that "-" is treated the same as a file name,
and can't have options specified after it. This is consistent with other
utilities and with POSIX.
2003-06-26 23:06:52 +00:00
bjh21
c3c8be9c37
WARNS=3 seems to work here, so use it.
2003-06-26 23:00:07 +00:00
bjh21
5b24c0821c
Delint. This largely involves using size_t and off_t appropriately rather
...
that throwing around unsigned long long. There are a few LINTED comments
where I'm sure overflow can never occur, and with these lint gives this
a clean bill of health.
2003-06-26 22:49:53 +00:00
bjh21
0de24d10b1
Light KNF and comment tidying.
2003-06-24 18:45:08 +00:00
bjh21
c8e096241e
Use pathconf() to get the value of {NAME_MAX} for the current directory,
...
rather than relying on the #defined one (which is wrong on NetBSD).
Dynamically allocate the filename buffer to fit.
2003-06-24 00:09:26 +00:00
bjh21
0b52d9cd7b
From FreeBSD:
...
Allow "-" to be specified as an operand as well as an option.
SUSV3 requires something like "split -- -" to work. Document the "-" operand.
2003-06-10 16:57:05 +00:00
bjh21
2ef4680e17
Add support for the -a option, which should fix standards/11226.
...
Code from <hiramatu@boreas.dti.ne.jp>, with improvements from me.
Manual page updates from FreeBSD.
2003-06-10 16:32:54 +00:00
christos
2bdc2add9c
PR/20818: Martin Husemann: Split does not handle >= 2G files.
2003-03-20 14:12:49 +00:00
wiz
6740a50653
Sort sections.
2001-12-08 19:16:19 +00:00
wiz
aded0d2cce
Whitespace cleanup.
2001-12-01 16:43:07 +00:00
lukem
3f8c4dac86
revert previous
1999-11-02 10:55:47 +00:00
lukem
0895d2339e
remove superfluous '-' in getopt string
1999-11-02 10:52:49 +00:00
lukem
9ea1c85731
WARNSify, fix .Nm usage, getopt returns -1 not EOF
1997-10-19 23:26:56 +00:00
jtc
0c3e631d7d
Sync with 4.4lite2
1995-08-31 22:22:05 +00:00
jtc
5233fb4026
Merged with 4.4lite.
...
Changed to conform to NetBSD's new RCS Id convention.
1994-12-21 08:11:23 +00:00
cgd
e104a4a2bc
don't core if -b is given no argument. bug pointed out by nate williams,
...
fix by me.
1994-04-06 00:04:09 +00:00
cgd
c53a9c6660
man page fix from Mark Weaver
1994-04-01 04:01:48 +00:00
jtc
4f5c7cccc2
Fix spelling errors.
1994-01-11 18:36:16 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64
Add RCS indentifiers.
1993-08-01 07:22:47 +00:00
mycroft
75ff3a90bd
Add RCS identifiers.
1993-07-30 23:49:23 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00