aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/csplit
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-152-2/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* usr.bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-165-5/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* DIRDEPS_BUILD: Connect new directories.Bryan Drewery2017-10-311-0/+11
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325187
* Add HAS_TESTS to all Makefiles that are currently using theEnji Cooper2017-08-021-0/+1
| | | | | | | | | `SUBDIR.${MK_TESTS}+= tests` idiom. This is a follow up to r321912. Notes: svn path=/projects/make-check-sandbox/; revision=321914
* Convert traditional ${MK_TESTS} conditional idiom for including testEnji Cooper2017-08-021-3/+1
| | | | | | | | | | | | | | directories to SUBDIR.${MK_TESTS} idiom This is being done to pave the way for future work (and homogenity) in ^/projects/make-check-sandbox . No functional change intended. MFC after: 1 weeks Notes: svn path=/head/; revision=321912
* csplit(1): Fix extraneous output in edge caseConrad Meyer2017-05-084-1/+76
| | | | | | | | | | | | | When the input to csplit contains fewer lines than the number of matches specified, extra output was mistakenly included in some output files. Fix the bug and add a simple ATF regression test. PR: 219024 Submitted by: J.R. Oldroyd <fbsd at opal.com> Notes: svn path=/head/; revision=317942
* csplit: Fix check of fputs() return value, making csplit work again.Jilles Tjoelker2017-05-021-3/+3
| | | | | | | | | | | | | | As of r295638, fputs() returns the number of bytes written (if not more than INT_MAX). This broke csplit completely, since csplit assumed only success only for the return value 0. PR: 213510 Submitted by: J.R. Oldroyd MFC after: 1 week Relnotes: yes Notes: svn path=/head/; revision=317709
* Rename getline with get_line to avoid collision with getline(3)Baptiste Daroussin2016-05-101-8/+8
| | | | | | | | | | When getline(3) in 2009 was added a _WITH_GETLINE guard has also been added. This rename is made in preparation for the removal of this guard Obtained from: NetBSD Notes: svn path=/head/; revision=299355
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-281-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=265044
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Correct example.Joel Dahl2014-02-081-2/+2
|/ | | | | | | | Submitted by: Jason McIntyre <jmc@kerhand.co.uk> Thomas Klausner <wiz@netbsd.org> Notes: svn path=/head/; revision=261633
* Add missing static keywords to csplit(1)Ed Schouten2011-11-061-30/+30
| | | | Notes: svn path=/head/; revision=227161
* A bit of rewording for clarity, taken from OpenBSD.Tom Rhodes2009-01-101-9/+26
| | | | | | | Submitted by: jmc@OpenBSD.org Notes: svn path=/head/; revision=187019
* Update the description of -k, output files appear toTom Rhodes2008-12-241-7/+2
| | | | | | | | | | | be left regardless of an error, signal, or complete run. PR: 69861 Submitted by: vlad902@gmail.com Notes: svn path=/head/; revision=186477
* Document input line length limit.Tim J. Robbins2005-01-251-1/+5
| | | | Notes: svn path=/head/; revision=140835
* Sort sections.Ruslan Ermilov2005-01-181-6/+6
| | | | Notes: svn path=/head/; revision=140420
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Remove BUGS section that talked about missing multibyte character support.Tim J. Robbins2004-07-121-5/+1
| | | | | | | We have support now that the regular expression routines do. Notes: svn path=/head/; revision=132028
* Document missing multibyte character support in utilities specifiedTim J. Robbins2004-07-031-1/+5
| | | | | | | by POSIX. Notes: svn path=/head/; revision=131511
* Use fseeko() to properly support large files.Tim J. Robbins2004-03-221-3/+3
| | | | Notes: svn path=/head/; revision=127300
* Use errc().Tim J. Robbins2004-03-221-4/+2
| | | | Notes: svn path=/head/; revision=127298
* mdoc(7) police: simplify.Ruslan Ermilov2002-08-141-3/+1
| | | | Notes: svn path=/head/; revision=101865
* The return value of snprintf should be always nonnegative, so it shouldDavid Malone2002-07-281-1/+1
| | | | | | | be safe to cast it to a size_t before comparing it to a sizeof(). Notes: svn path=/head/; revision=100821
* Use sigaction(2) instead of signal(3) to avoid the signal handler beingTim J. Robbins2002-07-261-3/+10
| | | | | | | re-entered. Notes: svn path=/head/; revision=100697
* Avoid truncating filenames with snprintf().Tim J. Robbins2002-06-291-2/+5
| | | | Notes: svn path=/head/; revision=99024
* Note that this appeared at least as early as PWB UNIX.Juli Mallett2002-06-101-0/+4
| | | | | | | Use the literal string 'PWB UNIX', as we still have no .At macro for it. Notes: svn path=/head/; revision=98107
* Respect LC_CTYPE and LC_COLLATE environment variables, mainly for theirTim J. Robbins2002-06-072-0/+14
| | | | | | | | effects on regular expressions. The libc regex code does not handle equivalence classes well (for example), but we do our best. Notes: svn path=/head/; revision=97977
* mdoc(7) police: markup polishing.Ruslan Ermilov2002-05-301-16/+22
| | | | Notes: svn path=/head/; revision=97599
* Handle the case where a negative offset in a regular expression matchTim J. Robbins2002-05-161-0/+2
| | | | | | | is larger than the number of lines in the overflow file. Notes: svn path=/head/; revision=96710
* Correct synopsis and usage(): pattern arguments are not optional.Tim J. Robbins2002-05-162-2/+2
| | | | Notes: svn path=/head/; revision=96708
* Add the csplit(1) utility, which splits files based on context, as specifiedTim J. Robbins2002-05-021-0/+5
| | | | | | | | | | | | by SUSv3. This Makefile got left out of the previous commit. PR: 36191 Reviewed by: mike Notes: svn path=/head/; revision=95927
* Add the csplit(1) utility, which splits files based on context, as specifiedTim J. Robbins2002-05-022-0/+588
by SUSv3. PR: 36191 Reviewed by: mike Notes: svn path=/head/; revision=95926