summaryrefslogtreecommitdiffstats
path: root/usr.bin/csplit/csplit.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Delete some useless setlocale(3) calls in /usr/bin, no functional change.schwarze2016-10-281-7/+3
| | | | | | | | 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@
* with the RPATH enforcement, csplit(1) don't work anymore on stdin...semarie2015-10-111-3/+1
| | | | | | | | 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@
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-5/+5
|
* tame "stdio rpath wpath cpath" to cover all the file opening cases.deraadt2015-10-071-1/+6
| | | | ok doug
* Use errc/warnc to simplify code.guenther2014-05-201-2/+2
| | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
* In preparation for getline and getdelim additions to libc, rename getline()fgsch2012-03-041-9/+9
| | | | | occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
* please lintderaadt2006-07-171-1/+2
|
* Fix comment wrt snprintfmillert2006-07-171-6/+3
|
* Add csplit(1) from FreeBSD; with man page tweaks from jmc@.millert2006-07-171-0/+469
OK deraadt@