summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Minor refactoring; move the FreeBSD-specific config info intokientzle2006-12-082-78/+106
| | | | | | config_freebsd.h. archive_platform.h decides which config file to bring in and uses some of those selectors to define wrapper macros and other compatibility glue.
* remove already commented out codejulian2006-12-061-33/+0
|
* test cancel_pending to save a thr_wake call in some specical cases.davidxu2006-12-061-1/+1
|
* _thr_ucond_wait drops lock, we should pick it up again.davidxu2006-12-051-0/+1
|
* the c_has_waiters is lazily updated, temporarily disable the falsedavidxu2006-12-051-0/+2
| | | | alarm code.
* Use ucond to implement barrier.davidxu2006-12-052-8/+10
|
* Add _thr_ucond_init().davidxu2006-12-052-3/+10
|
* Tweak _thr_cancel_leave_defer a bit to fix a possible race.davidxu2006-12-051-3/+7
|
* Grammar.ru2006-12-041-1/+1
| | | | OK'ed by: sam
* document recent change to return ECONNRESET for tcp socketssam2006-12-041-1/+4
| | | | MFC after: 1 month
* Use _kevent() instead of kevent().ume2006-12-041-7/+7
| | | | Requested by: nork
* Fix typo, I was using a wrong header file, and the typo is not detecteddavidxu2006-12-041-1/+1
| | | | by compiler.
* Use kernel provided userspace condition variable to implement pthreaddavidxu2006-12-046-96/+105
| | | | condition variable.
* Argh. Restore a stat() call that was erroneously removed.kientzle2006-12-041-0/+6
| | | | | Thanks to: WATANABE, Kazuo Pointy hat: me, from the handy dispenser I keep nearby.
* Minor clarification.dds2006-12-031-1/+1
|
* o As POSIX requires confstr(3) returns zero on errors, not -1.maxim2006-12-031-2/+2
| | | | | | PR: misc/106234 Submitted by: Guy Harris MFC after: 1 week
* If a thread was detached, return EINVAL instead, the error codedavidxu2006-11-283-3/+3
| | | | | | | | is also returned by pthread_detach() if a thread was already detached, the error code was already documented: > [EINVAL] The implementation has detected that the value speci- > fied by thread does not refer to a joinable thread.
* Improve support for large ISOs:kientzle2006-11-271-4/+25
| | | | | | | * Correct a signed/unsigned problem that broke handling of files >2G. * Implement "skip" support for much faster "tar -t". Thanks to: Robert Sciuk for sending me a DVD that illustrated the first problem
* Bump the libarchive version number, correct the shell hackery to breakkientzle2006-11-261-5/+6
| | | | the full version down into major/minor values.
* Write-blocking cleanup, largely thanks to Colin Percival (cperciva@).kientzle2006-11-2610-34/+91
| | | | | | | | | | | | | | | | | | * If write block size is zero, don't block at all. This supports the unusual requirement of applications that need "no-delay" writes. * Expose _write_finish_entry() to give such applications more control over write boundaries. (Normal applications do not need this, as entries are completed automatically.) * Correct the type of write callbacks; this is a minor API change that does not affect the ABI. * Correct the error handling in _write_next_header() around completing the previous entry. * Correct the documentation for block-size markers: Remove docs for the long-defunct _read_set_block_size(); document all of the write block size manipulators. MFC after: 14 days
* - When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.ru2006-11-261-5/+5
| | | | | - Don't build ngctl(8) and cached(8) if threading libs aren't built. - Fix various issues in a cached(8) makefile.
* Unbreak libarchive on arm. Two parts of libarchive relied on akientzle2006-11-263-197/+284
| | | | | | | | | | | | | | | traditional shortcut of defining on-disk layouts using structures of character arrays. Unfortunately, as recently discussed on cvs-all@, this usage is not actually sanctioned by the standards and specifically fails on GCC/arm (unless your data structures happen to be "naturally aligned"). The new code defines offsets/sizes for data fields and accesses them using explicit pointer arithmetic, instead of casting to a structure and accessing structure fields. In particular, the new code is now clean with WARNS=6 on arm. MFC after: 14 days
* Connect four new files to the build.kientzle2006-11-241-1/+9
| | | | PR: bin/86742
* Note that, thanks to the work by Alan Cox et al, some arch'esyar2006-11-241-2/+19
| | | | | | | | | don't need sendfile() buffers any more. The report on the work referenced can be found at http://usenix.org/events/usenix05/tech/general/elmeleegy.html MFC after: 1 week
* Eliminate atomic operations in thread cancellation functions, it shoulddavidxu2006-11-2412-213/+176
| | | | reduce overheads of cancellation points.
* - style: use `=' instead of `+=' for initial assignments.ru2006-11-241-4/+2
| | | | | - don't add generated sources' objects to OBJS explicitly; GENSRCS is part of SRCS so they were already in OBJS.
* Fill in a couple of missing casts: clarify one narrowing conversionkientzle2006-11-242-4/+4
| | | | | | and correct the use of unary minus with an unsigned value. (The unary minus here is actually being used as a bitwise operation, which is unusual enough to deserve a clarifying cast.)
* A few minor clarifications and corrections.kientzle2006-11-241-4/+20
|
* A few minor corrections to the libarchive.3 overview page.kientzle2006-11-241-7/+10
|
* Document the new _open_FILE() and _open_memory() interfaces.kientzle2006-11-243-11/+75
| | | | PR: bin/86742
* New hooks for reading/writing archives to/from a FILE * orkientzle2006-11-245-211/+354
| | | | | | an in-memory buffer. PR: bin/86742
* Document that the data field for NOTE_EXIT holds the process exit status.jhb2006-11-201-0/+2
| | | | | Submitted by: Jared Yanovich -phirerunner at comcast.net- MFC after: 2 weeks
* Officially rename archive_{read,write}_open_file() tokientzle2006-11-203-9/+17
| | | | | | | | | archive_{read,write}_open_filename(): * Update Makefile to build the files using the new name. * Update docs to document the new names, mentioning the old ones as "deprecated synonyms." * The old filenames will be reconnected to the build soon; I'll soon recyce those files for a slightly different purpose.
* Add archive_write_open_filename()/archive_read_open_filename() askientzle2006-11-155-7/+40
| | | | | synonyms for archive_write_open_file()/archive_read_open_file(). The new names are much clearer.
* Style: Use the correct type for a sizeof() variable.kientzle2006-11-151-1/+1
|
* Change the internal API for writing data to an entry; make thekientzle2006-11-156-19/+28
| | | | | | | | | | | | internal format-specific functions return the same as the public function, so that the public API layer doesn't have to guess the correct return value. This addresses an obscure problem that occurs when someone tries to write more data than the size of the entry (as indicated in the entry header). In this case, the return value from archive_write_data() was incorrect, reflecting the requested write rather than the amount actually written. MFC after: 15 days
* No change in functionality, but fill in a missing errorkientzle2006-11-131-1/+6
| | | | message when reading a truncated tar archive.
* Fix minor formatting issues:ru2006-11-1342-78/+79
| | | | | | | - make document title match filename; - remove hard sentence breaks, whitespace at EOL, and double whitespace; - sort SEE ALSO xrefs, adding missing section numbers; - fix a misspelled macro name.
* These files no longer use internal APIs, so no longer need to includekientzle2006-11-136-6/+0
| | | | archive_private.h.
* Minor cleanup of the standard read/write I/O modules:kientzle2006-11-136-116/+83
| | | | | | | | * Use public API, don't access struct archive directly. (People should be able to copy these into their applications as a template for custom I/O callbacks.) * Set "skip" only for regular files. ("skip" allows the low-level library to catch attempts to add an archive to itself or extract over itself.) * Simplify the write_open functions by just calling stat() at the beginning. Somehow, these functions had acquired some complex logic that tried to avoid the stat() call but never succeeded. MFC after: 10 days
* Correctly handle writing very large blocks (>1M) through to a diskkientzle2006-11-121-1/+3
| | | | | | file. This doesn't happen in normal use, because the file I/O and decompression layers only pass through smaller blocks. It can happen with custom read functions that block I/O in larger blocks.
* - Replace the use of DPSRCS with something more appropriate. DPSRCSjkoshy2006-11-121-5/+6
| | | | | | | | is for when you need something in ".depend", but not compiled in. - Style fixes: Spell ${.OBJDIR} as ".". - Neaten a comment. Submitted by: ru
* MFP4: Add an implementation of the ELF(3) and GELF(3) API set.jkoshy2006-11-11102-1/+14195
| | | | | | Bump __FreeBSD_version. Reviewed by: jb
* Move code calculating new inherited priority into single function.davidxu2006-11-111-30/+21
|
* childerr needs to be volatile so gcc won't optimize it away.des2006-11-101-1/+2
| | | | | PR: bin/85830 MFC after: 1 week
* Portability and style fixes:kientzle2006-11-1034-214/+514
| | | | | | | | | | | | | | * Actually use the HAVE_<header>_H macros to conditionally include system headers. They've been defined for a long time, but only used in a few places. Now they're used pretty consistently throughout. * Fill in a lot of missing casts for conversions from void*. Although Standard C doesn't require this, some people have been trying to use C++ compilers with this code, and they do require it. Bit-for-bit, the compiled object files are identical, except for one assert() whose line number changed, so I'm pretty confident I didn't break anything. ;-)
* Add an entry for PT_GETLWPLIST.trhodes2006-11-091-1/+3
| | | | | Nudged by: jhb Reviewed by: davidxu
* Cleanup: we always have to use __error() now, and we shouldn't provide acognet2006-11-092-58/+1
| | | | | | errno symbol, so completely remove the !_REENTRANT case. Spotted out by: ru
* Remove a forgotten file.ru2006-11-081-4/+0
|
* Fix infinite loop in corrupt archives handling in libarchive(3).simon2006-11-081-4/+16
| | | | | | Reported by: rink Submitted by: kientzle Security: FreeBSD-SA-06:24.libarchive
OpenPOWER on IntegriCloud