aboutsummaryrefslogtreecommitdiff
path: root/bin/pax/options.c
Commit message (Collapse)AuthorAgeFilesLines
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. 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. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Rename getline with get_line to avoid collision with getline(3)Baptiste Daroussin2016-05-101-14/+14
| | | | | | | | | | 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
* Implement pax -O option to permit limiting a PAX archive to a single volume.Eitan Adler2015-03-181-9/+15
| | | | | | | | | | | | -O Force the archive to be one volume. If a volume ends prematurely, pax will not prompt for a new volume. PR: 198481 Submitted by: Sevan Janiyan Reviewed by: allanjude (doc) Notes: svn path=/head/; revision=280206
* Stop the options string leak if it is not attached into the optionsKevin Lo2014-01-261-0/+2
| | | | | | | | | linked list. Obtained from: OpenBSD Notes: svn path=/head/; revision=261181
* Fix warnings found by -Wmising-variable-declarations.Ed Schouten2012-10-191-0/+1
| | | | | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible. Notes: svn path=/head/; revision=241720
* Fix a bunch of typos and a couple of whitespace nits.Ulrich Spörlein2011-05-221-1/+1
| | | | | | | Helped by: codespell and vim's spellchecker Notes: svn path=/head/; revision=222177
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
| | | | | | | OK'ed by: imp, core Notes: svn path=/head/; revision=127958
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)Mark Murray2004-03-051-1/+1
| | | | | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64 Notes: svn path=/head/; revision=126643
* Fix a bazillion warnings. This makes almost the whole of src/bin/*Mark Murray2003-05-031-15/+15
| | | | | | | | | WARNS=6, std=c99 clean. Tested on: i386, alpha Notes: svn path=/head/; revision=114583
* Fix signed/unsigned mix comparisons involving sizeof.David E. O'Brien2003-05-021-2/+3
| | | | Notes: svn path=/head/; revision=114469
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* Removed extra $FreeBSD$. Moved #if 0 for the vendor id to the correctBruce Evans2002-08-221-5/+3
| | | | | | | place. Restored indent protection of copyright comment. Notes: svn path=/head/; revision=102245
* s/filesystem/file system/ as discussed on -developersTom Rhodes2002-08-211-3/+3
| | | | Notes: svn path=/head/; revision=102230
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-0/+2
| | | | Notes: svn path=/head/; revision=99110
* Consistancy check s/file system/filesystem/Tom Rhodes2002-05-161-2/+2
| | | | | | | Reviewed by: brian Notes: svn path=/head/; revision=96702
* Do not return(f_returning_void());. Spell FALLTHROUGH to make it lint()able.Philippe Charnier2002-04-121-9/+15
| | | | Notes: svn path=/head/; revision=94553
* Ooops, forgot to remove the registers here.Warner Losh2002-02-021-19/+19
| | | | Notes: svn path=/head/; revision=90113
* o __P has been reovedWarner Losh2002-02-021-100/+11
| | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Notes: svn path=/head/; revision=90110
* Sync up with OpenBSD. Too many changes to note, but the major featuresKris Kennaway2001-05-081-62/+569
| | | | | | | | | | | | | | | | | are: * Implement cpio compatibility mode when pax is invoked as cpio * Extend tar compatibility mode to cover many of the GNU tar single-letter options (bzip2 mode, aka -y/-j is not present in OpenBSD). When invoked as tar, pax is now full-featured enough for use by the ports collection to extract distfiles and create packages. * Many bug fixes to the operation of pax and the tar compatibility modes * Code fixes for things like correct string buffer termination. I tried to preserve existing FreeBSD fixes to this utility; please let me know if I have inadvertently spammed something. Notes: svn path=/head/; revision=76351
* Add -z flag to pax to allow gzipping of archive output. Add -z and -Z (gzipKris Kennaway2001-05-051-5/+26
| | | | | | | | | | | | | | | | | and compress) to pax when used in tar mode (invoked as 'tar') for compatibility with GNU tar. bzip2 functionality for further GNU tar compatibility will be added at a later date. Note in the manpage that -z is non-standard. Obtained from: OpenBSD Reviewed by: -hackers MFC after: 2 weeks Notes: svn path=/head/; revision=76286
* Whitespace cleanup pass; reduce diffs with OpenBSD. No functional changes.Kris Kennaway2001-04-261-11/+11
| | | | Notes: svn path=/head/; revision=76019
* Reduce diffs with OpenBSD:Kris Kennaway2001-04-261-34/+34
| | | | | | | | | | | | | | | | | | | #if __STDC__ -> #ifdef __STDC__ pax_warn() -> paxwarn() sys_warn() -> syswarn() (foo *)NULL -> NULL bcopy -> memmove()/memcpy() bzero -> memset() Typo fixes sprintf() -> snprintf() rindex() -> strrchr() index() -> strchr() sys_errlist[] -> strerror() Obtained from: OpenBSD Notes: svn path=/head/; revision=76017
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | | | Seperate does not exist in the english language. Submitted to look at by: kris Notes: svn path=/head/; revision=72089
* Don't explicitly declare optarg and optind. These are declared inWarner Losh2000-08-161-2/+0
| | | | | | | unistd.h, which is already included. Notes: svn path=/head/; revision=64692
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Various spelling/formatting changes.Kris Kennaway1999-05-081-2/+2
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=46684
* Correct use of .Nm. Add rcsid.Philippe Charnier1998-05-151-3/+5
| | | | Notes: svn path=/head/; revision=36049
* Remove simultaneous include of <sys/param.h> and <sys/types.h>.Eivind Eklund1997-12-101-3/+1
| | | | | | | | Reorder includes to be alphabetical some places since I already was in here. Notes: svn path=/head/; revision=31666
* Dont have an internal function named "warn" it clashes with libc..Søren Schmidt1997-08-291-15/+15
| | | | | | | Needed for ELF. Notes: svn path=/head/; revision=28904
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-281-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24348
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* -Wall cleaning.Steve Price1996-12-141-2/+2
| | | | Notes: svn path=/head/; revision=20420
* Remove unneded ctype.h everywhereAndrey A. Chernov1995-10-231-2/+1
| | | | | | | Add setlocale LC_TIME Notes: svn path=/head/; revision=11746
* You will find enclosed some changes to make gcc -Wall more happy inJoerg Wunsch1995-03-191-16/+16
| | | | | | | | | | | | /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier) Notes: svn path=/head/; revision=7165
* Added $Id$David Greenman1994-09-241-0/+2
| | | | Notes: svn path=/head/; revision=3044
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-261-0/+1140
Notes: svn path=/head/; revision=1556