1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
Commit Graph

23 Commits

Author SHA1 Message Date
guenther
5b133f3f27 Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
2023-03-08 04:43:04 +00:00
kn
881f6c5ff0 Denote multiple arguments with 'arg ...' not 'args'
A few programs used the plural in their synopsis which doesn't read as
clear as the obvious triple-dot notation.

mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent
use of 'arg ...' matches that behaviour.

Cleanup a few markups of the same argument so the text keeps reading
naturally;  omit unhelpful parts like 'if optional arguments are given,
they are passed along' for tools like time(1) and timeout(1) that obviously
execute commands with whatever arguments where given -- just like doas(1)
which doesn't mention arguments in its DESCRIPTION in the first place.

For expr(1) the difference between 'expressions' and 'expression ...' is
crucial, as arguments must be passed as individual words.

Feedback millert jmc schwarze deraadt
OK jmc
2022-12-22 19:53:22 +00:00
millert
82c893686e csplit(1): Fix extraneous output in edge case
When the input to csplit contains fewer lines than the number of matches
specified, extra output was mistakenly included in some output files.
From FreeBSD via Tim Chase.
2021-07-08 00:38:42 +00:00
schwarze
84d7e2a2af Delete some useless setlocale(3) calls in /usr/bin, no functional change.
Patches from Jan Stary <hans at stare dot cz>, tweaked by me and tb@.
While here, apply some simple style improvements:
Sort headers, static void __dead usage(), return from main(),
zap case '?', drop /* NOTREACHED */, drop break after usage(), ...
OK tb@ millert@
2016-10-28 07:22:59 +00:00
zhuk
9d92b85872 Make it more obvious what exact csplit commands will do.
With much help & okay from jmc@
2015-10-24 15:32:50 +00:00
semarie
af1a137a48 with the RPATH enforcement, csplit(1) don't work anymore on stdin...
the newfile() function used for create files open files in "w+"
(O_RDWR), and may occasionally do reading on the file (function
toomuch()).

ok deraadt@
2015-10-11 17:43:03 +00:00
deraadt
0bd1216cbf Change all tame callers to namechange to pledge(2). 2015-10-09 01:37:06 +00:00
deraadt
00548c4632 tame "stdio rpath wpath cpath" to cover all the file opening cases.
ok doug
2015-10-07 03:50:10 +00:00
guenther
5ad04d3516 Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr.

ok jsing@ krw@ millert@
2014-05-20 01:25:23 +00:00
jmc
f0018d5b5b the first example produces 21 sections, not 20; ok sobrado 2014-02-04 13:26:36 +00:00
fgsch
f9bbbf4534 In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
2012-03-04 04:05:15 +00:00
jmc
f1c64ac4de add an EXIT STATUS section for /usr/bin; 2010-09-03 11:09:28 +00:00
jmc
20197bc166 missing argument to Ex; from daniel dickman 2010-07-21 19:47:02 +00:00
jmc
1567758303 remove obsolete ENVIRONMENT section; from Daniel Dickman
ok millert
2010-06-13 11:39:41 +00:00
sobrado
d9f1e4116e use the UNIX-related macros (.At and .Ux) where appropriate.
ok jmc@
2009-10-22 12:35:53 +00:00
jmc
99332e389a bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;
2009-02-08 17:15:08 +00:00
jmc
d9b44e5847 be clear about what csplit does by default when no options to the
contrary are specified;

feedback/ok otto millert
2008-12-30 16:22:24 +00:00
jmc
9490d37cb6 convert to new .Dd format; 2007-05-31 19:19:00 +00:00
jmc
7c5a075bb3 - use a consistent text for STANDARDS
- note which options are extensions to POSIX
2007-05-30 04:41:33 +00:00
deraadt
9c705db19f please lint 2006-07-17 22:28:11 +00:00
jmc
03e2546c02 include prompts in examples; 2006-07-17 20:09:34 +00:00
millert
1f1ff0ae86 Fix comment wrt snprintf 2006-07-17 17:11:32 +00:00
millert
78784257c6 Add csplit(1) from FreeBSD; with man page tweaks from jmc@.
OK deraadt@
2006-07-17 16:38:02 +00:00