summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge lots of test suite updates from libarchive.googlecode.com.kientzle2009-04-1742-349/+2236
|
* FreeBSD has a lot of crypto functions used by the recent mtree writer updates.kientzle2009-04-171-1/+7
|
* Ensure that the option setters return OK (option used) evenkientzle2009-04-171-3/+9
| | | | for options that don't change the list of keywords.
* Fix a memory leak: Release the current list of /set keywordskientzle2009-04-171-3/+9
| | | | even when we exit on an error.
* Document the new read options interface and the new read_header2() call.kientzle2009-04-171-0/+62
|
* Dynamically size the buffer we pass to getgrgid_r() and getpwuid_r().kientzle2009-04-171-16/+57
| | | | Keep the buffer in the cache object so we don't have to keep doing this.
* Don't match an empty file on a read error.kientzle2009-04-171-6/+5
|
* When pulling metadata from disk, lookup the user and group name at the same ↵kientzle2009-04-171-1/+12
| | | | time.
* LZW bugfix: when we hit end-of-file, return an invalid code.kientzle2009-04-171-2/+2
|
* Minor fix: some platforms require both inttypes.h and stdint.h.kientzle2009-04-171-1/+2
|
* Implement command-line fallbacks for gzip and bzip2 decompression as well.kientzle2009-04-173-14/+41
| | | | | | Not an issue for FreeBSD, since the base system has the necessary libraries. Since all decompressors are always available now, we can unconditionally enable them in archive_read_support_compression_all().
* Merge new xz/lzma support from libarchive.googlecode.com.kientzle2009-04-173-0/+1083
| | | | | | | | Since FreeBSD doesn't have liblzma in the base system, the read side will always fall back to the unxz/unlzma commands for now. (Which will in turn fail if those commands are not currently installed.) The write side does not yet have a fallback, so that will just fail.
* Don't use the open callback, which is deprecated (because it'skientzle2009-04-173-142/+84
| | | | | | never necessary). Also, simplify just a tad by delegating to read_open_fd() when we know the file descriptor, instead of duplicating that logic.
* Accept empty options, add a new read_next_header2() which is morekientzle2009-04-171-5/+22
| | | | efficient for some uses.
* Properly clone and free the recently-added "sourcepath" field.kientzle2009-04-171-0/+2
|
* Use thread-safe getgrnam_r() and getpwnam_r(); dynamically sizekientzle2009-04-171-6/+50
| | | | the buffer used by this.
* Fix a minor memory leak.kientzle2009-04-171-0/+2
|
* Merge from libarchive.googlecode.com: Numerous fixes to thekientzle2009-04-174-232/+360
| | | | write options handling, including documentation.
* Merge from libarchive.googlecode.com: If we'rekientzle2009-04-171-32/+15
| | | | | given an empty filename, just invoke write_open_fd() instead of re-implementing the code to use stdout.
* There is no way for strmode(3) to append '+' if the file has ACL,trasz2009-04-142-4/+2
| | | | | because there is no way to figure that out based on the file mode itself. Make the manual page match reality.
* Re-enable backing up extended attributes, as the ZFS bug thiskientzle2009-04-131-4/+0
| | | | | triggered seems to have been fixed by John Baldwin's commit r189967.
* Sort man page cross references by section, no need for a comma after therwatson2009-04-133-4/+4
| | | | | | last cross reference. MFC after: 3 days
* Merge from libarchive.googlecode.com r791, r879, r884, r948: Variouskientzle2009-04-122-36/+113
| | | | | | fixes to read_support_compression_program. In particular, failure of the external program is detected a lot earlier, which gives much more reasonable error handling.
* Thanks to Christoph Mallon for pointing out the dead variable here.kientzle2009-04-121-5/+6
| | | | Also, rework this a little to make the logic excruciatingly clear.
* Merge from libarchive.googlecode.com: Mostly a bunch ofkientzle2009-04-1221-220/+250
| | | | | | | | | | | | | corrections to the Windows support to reconcile differences between Visual Studio and Cygwin. Includes parts of revisions 757, 774, 787, 815, 817, 819, 820, 844, and 886. Of particular note, r886 overhauled the UTF-8/Unicode conversions to work correctly regardless of whether the local system uses 16-bit or 32-bit wchar_t. (I assume that systems with 16-bit wchar_t use UTF-16 and those with 32-bit wchar_t use UCS-4.) This revision also added a preference for wcrtomb() (which is thread-safe) on platforms that support it.
* Merge from libarchive.googlecode.com r756,r761:kientzle2009-04-122-0/+319
| | | | Document the new archive_read_disk API.
* Merge from libarchive.googlecode.com:kientzle2009-04-122-5/+11
| | | | | | | | r751: Change __archive_strncat() to use a void * source, which reduces the amount of casting needed to use this with "char", "signed char" and "unsigned char". r752: Use additions instead of multiplications when growing buffer; faster and less chance of overflow.
* Merge r881 from libarchive.googlecode.com: The "empty" formatkientzle2009-04-121-2/+3
| | | | should not be recognized if there is a read error.
* Include a space between "send" and "broadcast".emaste2009-04-091-1/+1
|
* Add wide character variants of string manipulations routines to 'SEE ALSO'.trasz2009-04-0716-16/+33
| | | | Approved by: rwatson (mentor)
* Add support for PowerPC kernel core files. This commit only addsmarcel2009-04-061-55/+170
| | | | | | | | | | | | | | support for virtual core files (aka minidumps). physical core files are not supported. The implementation is cross-tool ready and can be used in a non- powerpc hosted debugger to analyze PowerPC core files. It also accepts core files that still have the dump header, as can be the case within Juniper where TFTP-based kernel core files are supported and savecore is not used to "extract" the core file from some dump device. Obtained from: Juniper Networks, Inc.
* Return -1 instead of 0 upon reaching EOF. This is somewhat ill-adviseddas2009-04-062-4/+6
| | | | | | | | because it means getdelim() returns -1 for both error and EOF, and never returns 0. However, this is what the original GNU implementation does, and POSIX inherited the bug. Reported by: marcus@
* MFp4 //depot/projects/usb@159934thompsa2009-04-051-145/+301
| | | | | | Update libusb function descriptions. Submitted by: Chuck Robey
* Temporary hack to unbreak user/group lookups;kientzle2009-04-041-2/+2
| | | | | use a larger buffer for getpwuid_r/getgrgid_r. This needs to be dynamically sized.
* Allow the NULL, RTLD_SELF and RTLD_NEXT handles to work with dlfunc(3).kib2009-04-033-31/+9
| | | | | | | | | | | | | | | | dlfunc() called dlsym() to do the work, and dlsym() determines the dso that originating the call by the return address. Due to this, dlfunc() operated as if the caller is always the libc. To fix this, move the dlfunc() to rtld, where it can call the internal implementation of dlsym, and still correctly fetch return address. Provide usual weak stub for the symbol from libc for static binaries. dlfunc is put to FBSD_1.0 symver namespace in the ld.so export to override dlfunc@FBSD_1.0 weak symbol, exported by libc. Reported, analyzed and tested by: Tijl Coosemans <tijl ulyssis org> PR: standards/133339 Reviewed by: kan
* Properly handle malloc() failures.delphij2009-04-021-5/+7
| | | | PR: bin/83338
* Remove a warning which is supposed to have been removed on 20030301.delphij2009-04-021-12/+0
|
* Bail out when memory allocation is failed, rather than referencingdelphij2009-04-021-2/+6
| | | | | | | a NULL pointer. PR: kern/94480 Submitted by: Michiel Pelt <m.pelt xs4all nl>
* Properly update the shm_open/shm_unlink symbol versioning metadata afterjhb2009-04-022-2/+6
| | | | | | | these functions were moved into the kernel: - Move the version entries from gen/ to sys/. Since the ABI of the actual routines did not change, I'm still exporting them as FBSD 1.0 on purpose. - Add FBSD-private versions for the _ and __sys_ variants.
* Unconditionally build wrappers for i386_get_ioperm(), i386_set_ioperm(),kib2009-04-011-4/+3
| | | | | | | i386_get_ldt() and i386_set_ldt(). In collaboration with: pho Reviewed by: jhb
* Document RTLD_NODELETE, -z nodelete and -z origin support.kib2009-04-011-2/+9
|
* Fix an off-by-one buffer overflow in ngets().jhb2009-03-311-1/+1
| | | | | Submitted by: Bruce Can MFC after: 1 month
* Turn on nodelete linker flag because libthr can not be unloaded safely,davidxu2009-03-311-0/+1
| | | | it does hook on to libc.
* Query DNS only once per an address family.ume2009-03-291-86/+170
| | | | | Obtained from: KAME MFC after: 2 weeks
* Add some casts to silence compiler warning about signedness.delphij2009-03-282-3/+3
|
* Minor changes from Berkeley DB 1.86 and further improvements from OpenBSD.delphij2009-03-2810-115/+214
| | | | | | | | | | This does not include the new hash routines since they will cause problems when reading old hash files. Since mpool(3) has been changed, provide a compatibility shim for older binaries. Obtained from: OpenBSD
* Allow O_SYNC and O_NOFOLLOW flags in dbopen().delphij2009-03-281-2/+2
| | | | Obtained from: OpenBSD
* Plug memory leaks and a potential NULL dereference.delphij2009-03-281-4/+12
| | | | Obtained from: OpenBSD
* Simplify the logic when determining whether to zero out a db file to afterdelphij2009-03-281-15/+5
| | | | | | | | open(). The previous logic only initializes the database when O_CREAT is set, but as long as we can open and write the database, and the database is empty, we should initialize it anyway. Obtained from: OpenBSD
* - If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would causedelphij2009-03-281-6/+18
| | | | | | | | | | | | | | | an invariant (actually, an ugly hack) to fail, and all Hell would break loose. When deleting a big key, the offset of an empty page should be bsize, not bsize-1; otherwise an insertion into the empty page will cause the new key to be elongated by 1 byte. Make the packing more dense in a couple of cases. - fix NULL dereference exposed on big bsize values; Obtained from: NetBSD via OpenBSD
OpenPOWER on IntegriCloud