summaryrefslogtreecommitdiffstats
path: root/bin/pax/cpio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Carefully add casts to silence clang sign-compare warnings. ok millert@otto2017-09-161-5/+5
|
* there is no offical way to get the max value of time_t, but this one worksotto2017-09-121-2/+2
| | | | | on any sensible posix system (in which time_t must be an integer type) ok deraadt@ millert@
* intvar < sizeof(...) does not catch negative values since an int -> unsignedotto2017-09-061-5/+5
| | | | | conversion is involved. Cast the sizeof to int to get a signed compare; ok deraadt@ bluhm@
* Don't need <sys/time.h> or "options.h" hereguenther2016-08-261-2/+1
|
* Remove many unnecessary casts. Verified by comparing generated code onguenther2016-08-141-73/+52
| | | | | | both ILP32 and LP64. ok millert@
* Replace u_quad_t with unsigned long long and replace "uqd" with "ull" inguenther2016-08-141-8/+8
| | | | | | | function names to match. Pull some tangled assignments out of conditions and use >>= where possible. ok millert@
* Use struct timespec internally. This gives nanosecond precision to pax -rwguenther2015-03-191-4/+7
| | | | | | | and a basis for support of mtime and atime values in pax-format extended header records. ok millert@
* Add PAX_IS_{REG,HARDLINK,LINK} macros to simply many file type testsguenther2015-03-171-7/+4
| | | | ok millert@
* Map negative mtimes to zero instead of skipping the affected files.guenther2014-02-191-13/+18
| | | | | problem noted by miod@ ok krw@ millert@
* Replace strtoq(), QUAD_MAX, and %qu with their long long equivalentguenther2014-01-081-2/+2
|
* Eliminate poisonous LONG_OFF_T conditionalguenther2014-01-081-26/+1
| | | | adjective suggested by deraadt@
* cpio and ustar formats store times in octal fields that are 11 charactersguenther2013-07-031-4/+9
| | | | | | | | wide, so they support up to 33bits. Take advantage of the extra bits by no longer forcing them into 32bit ints before the time_t conversion. This gets us another 204 years of range once time_t changes type ok deraadt@ tedu@
* Fix typo. From Caspar Schutijser via tech@.lum2013-05-251-2/+2
|
* remove some unnecessary sys/param.h inclusionsderaadt2012-12-041-2/+1
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-9/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* Typo in comment about cpio_endwr() fixed.tobias2008-01-011-3/+3
| | | | OK otto@
* spacingderaadt2004-04-161-6/+6
|
* protos. this requires changing the api for the *trail() functions a bitderaadt2003-06-261-3/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* typos;jmc2003-02-031-3/+3
| | | | | from netbsd(svs+pr@grep.ru) suggested by deraadt@
* sprinkle const; mostly from NetBSDmillert2002-10-161-3/+3
|
* Fix comment typos; most from NetBSD and FreeBSDmillert2002-10-161-6/+6
|
* kill registermillert2002-10-161-26/+26
|
* strlcpy fix, PR 2727itojun2002-06-091-3/+3
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-134/+2
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-5/+5
|
* Get rid of NET2_FTS and NET2_REGEX #ifdefs since they are useless.millert2001-05-261-7/+7
| | | | | Change NET2_STAT into LONG_OFF_T for portability to systems with a 32bit off_t.
* use proper str*cpy functions instead of home grown one, spaces; millert@ okmickey2001-05-161-12/+12
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-24/+24
|
* tabifykstailey1997-07-231-3/+3
|
* update rcsidderaadt1996-06-231-1/+2
|
* Correct compile warningstholo1996-06-111-19/+18
| | | | | | Rename warn() to paxwarn() so <err.h> can be included Remove #include <ctype.h> when not needed; from FreeBSD
* initial import of NetBSD treederaadt1995-10-181-0/+1284