summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove the MSG_PEEK flag from the documentation of the send(2) syscall -roam2007-04-271-1/+0
| | | | | | | | it is only relevant to receiving data from sockets, not to sending. PR: 109667 Submitted by: Jari Kirma <kirma@cs.hut.fi> Approved by: wollman
* Get endianess right.phk2007-04-241-1/+11
| | | | | | Why would an XML library need to know about endianess anyway ?? Prodded by, long time ago: ahze
* Add au_to_zonename.3 alias for au_token.3.rwatson2007-04-231-0/+1
| | | | Obtained from: TrustedBSD Project
* Add a reference and lock the target thread when setting its name.deischen2007-04-232-10/+48
| | | | Submitted by: davidxu (via libthr)
* Add back the original behavior of changing the entire directory path atnjl2007-04-222-2/+34
| | | | | | | | | | once (CWD a/b/c vs. 3 CWDs). If an error occurs, we fall back to the default method of a single CWD per directory element. Since this is technically a violation of the basic FTP RFC, this behavior is under a compile-time option FTP_COMBINE_CWDS and is off by default. It should work with most Unix-based FTP daemons and can save latency. MFC after: 2 weeks
* Fix a memory leak in the uname/gname lookup cache.kientzle2007-04-201-11/+11
| | | | Thanks to: VMiklos
* Make inet6_rth_* family of functions more compliant with RFC3542:mtm2007-04-191-1/+9
| | | | | | | | | | | 1. CMSG_NXTHDR(mhdr, cmsg) is supposed to dereference cmsg and return the next header in the chain. If cmsg is NULL it should return the first header, behaving essentially like CMSG_FIRSTHDR(). 2. inet6_rth_(space|init|add) should do basic checking on their input to verify that the number of headers (segments) is between 0 and 127 inclusive. MFC-After: 1 month
* Grammer correction from: emastephk2007-04-191-1/+1
|
* Loosen return value spec for fputs to be standards compliant so peoplephk2007-04-191-5/+2
| | | | don't program against our more restrictive behaviour.
* Add a missing backslash and unbreak the build.ru2007-04-161-1/+1
|
* - Add missing man page linksrafan2007-04-161-3/+17
| | | | | | | - Remove link for define_key.3 which is a real man page - Some whitespace nits Approved by: delphij (mentor)
* In libarchive: Downgrade ARCHIVE_FATAL and ARCHIVE_FAILED errors whichcperciva2007-04-161-0/+6
| | | | | | | | | | | | | | | | occur on the write side of extracting a file to ARCHIVE_WARN errors when returning them from archive_read_extract. In bsdtar: Use the return code from archive_read_data_into_fd and archive_read_extract to determine whether we should continue trying to extract an archive after one of the entries fails. This commit makes extracting a truncated tarball complain once about the archive being truncated, instead of complaining twice (once when trying to extract an entry, and once when trying to seek to the next entry). Discussed with: kientzle
* Properly cleanup the UID/GID lookup data.kientzle2007-04-151-0/+4
|
* Don't free a NULL pointer.kientzle2007-04-151-1/+2
|
* Clean up a lot of memory leaks in the libarchive test harness.kientzle2007-04-1512-0/+29
|
* Thanks to Colin for catching my mixup. The original problem wasn'tkientzle2007-04-151-3/+8
| | | | suppressing the second error, it was failing to address the first.
* Consolidate numeric limit macros in one place; include themkientzle2007-04-156-49/+44
| | | | only on platforms that need them. FreeBSD doesn't.
* Pass through error message if any operation fails, not just the last one.kientzle2007-04-141-1/+1
|
* Overhaul of 'ar' support:kientzle2007-04-147-228/+235
| | | | | | | | | | | | | | | | | | | * use "AR_GNU" as the format name instead of AR_SVR4 (it's what everyone is going to call it anyway) * Simplify numeric parsing to unsigned (none of the numeric values should ever be negative); don't run off end of numeric fields. * Finish parsing the common header fields before the next I/O request (which might dump the contents) * Be smarter about format guessing and trimming filenames. * Most of the magic values are only used in one place, so just inline them. * Many more comments. * Be smarter about handling damaged entries; return something reasonable. * Call it a "filename table" instead of a "string table" * Update tests. Enable selection of 'ar', 'arbsd', and 'argnu' formats by name (this allows bsdtar to create ar format archives). The 'ar' writer still needs some work; it should reject entries that aren't regular files and should probably also strip leading paths from filenames.
* Invoke utime(2) properly. (It's only used on platformskientzle2007-04-141-2/+2
| | | | that lack utimes(2).)
* Fix the build by temporarily disabling 'ar' support untilkientzle2007-04-141-1/+0
| | | | I can clean it up.
* Cleanup sysconf(3) a bit. sysconf(3) assumes in some places it operatespjd2007-04-141-21/+18
| | | | | | | | | | on int, but in fact it should operate on long. - Introduce 'lvalue' variable, which is long. - Fix _SC_XOPEN_SHM for 64bit archs. - Fix _SC_PHYS_PAGES for 64bit archs. Reported by: simokawa - Use lvalue for pathconf(3), as it returns long. - Cast value explicitly to long on return.
* Fix the build.kientzle2007-04-142-2/+2
| | | | | | N.B. 'ar' format support is broken right now, it's not passing tests. If I can't find the problem soon, I'll back out the last commit.
* Fixes from Joerg Sonnenberger, reviewed by Kai Wang.kientzle2007-04-141-49/+81
|
* Conventionally, tar archives have always included a trailing '/'kientzle2007-04-145-74/+261
| | | | | | | | | | | | | for directories. bsdtar used to add this, but that recently got lost somehow. So now I'm adding it back in libarchive. The only odd part of doing this in libarchive: Adding a directory to a tar archive and then reading it back again can yield a different name. Add a test case to exercise some boundary conditions with tar filenames and ensure that trailing slashes are added to dir names only as necessary. Thanks to: Oliver Lehmann for bringing this regression to my attention.
* Portability: Don't use mkdtemp() when mkdir() will suffice.kientzle2007-04-141-2/+2
| | | | If we can't create the dir, just give up.
* More portability improvements from Martin Koeppe:kientzle2007-04-143-11/+75
| | | | | | conditionally use utime() when utimes() is not available; allow the most common wide-char functions to be replaced when local alternatives are lacking.
* Portability.kientzle2007-04-131-0/+2
|
* Fix a bug in the description of the "p6-div" event. [1]jkoshy2007-04-121-2/+4
| | | | | | | | Update the description of the "p6-div" and "p6-mul" events according to the "Intel(r) 64 and IA-32 Architectures Software Developers Manual Volume 3B: System Programming Guide, Part 2, November 2006". Reported by: Harald Servat <redcrash at gmail dot com> [1]
* Now that libarchive is being built in more environments,kientzle2007-04-122-8/+6
| | | | | | factor out the platform-specific configuration header a bit more cleanly. Suggested by: Joerg Sonnenberger
* Make Lint happier.kientzle2007-04-122-2/+3
|
* Belatedly bump Dd for my recent changes.emaste2007-04-111-1/+1
|
* Correct a typo in an event name alias.jkoshy2007-04-111-1/+1
| | | | Reported by: Harald Servat <redcrash at gmail dot com>
* Expand the description of the host's UUID.ru2007-04-101-3/+3
| | | | OK'ed by: pjd
* Swap "underflow"/"overflow" in the table header.ru2007-04-101-2/+2
| | | | | Submitted by: Ricardo Nabinger Sanchez MFC after: 3 days
* Clean-ip TLS symbol versions. [_]__tls_get_addr function is part ofkan2007-04-092-6/+2
| | | | | | | the platform ABI and as such does not belong in FBSDprivate. __libc_tls_* functions do not have to be visible to outside world at all.
* Document KERN_HOSTUUID.pjd2007-04-091-1/+4
| | | | Reminded by: ru
* Document PT_GETNUMLWPS.emaste2007-04-091-0/+3
|
* New files in sendmail 8.14.1gshapiro2007-04-092-3/+3
|
* Fix build on Solaris.kientzle2007-04-071-1/+1
|
* Enable 'ar' support; hook it up to the build andkientzle2007-04-073-2/+7
| | | | enable it with _read_support_format_all().
* Clarification: Point people to archive_read_data(), whichkientzle2007-04-071-1/+4
| | | | should be used instead of archive_read_data_into_buffer().
* When copying data from one archive to another, only set the errorcperciva2007-04-071-5/+4
| | | | | | message in the reader to the error message from the writer if the error which occurred was in the writer. This avoids error messages of "Empty error message" when extracting truncated archives.
* Describe PT_GETLWPLIST's arguments.emaste2007-04-071-0/+9
|
* __p_rcode_syms is declared as external in resolv.conf, so it cannot bekan2007-04-062-1/+2
| | | | | | | | | | redeclared as static in res_debug.c. Make __p_rcode_syms global and add it to Symbol map. The rest of __p_??_syms are already global. Choice of FBSD_1.0 version for these debug symbols seems strange and should be revisited before symbol versioning is enabled for libc.so.7.
* Bump date.pjd2007-04-053-3/+3
|
* Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found inpjd2007-04-052-1/+65
| | | | | | OpenSolaris. For more information please refer to: http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data
* Add security.jail.mount_allowed sysctl, which allows to mount andpjd2007-04-051-0/+7
| | | | | | | | | | | | | | | | | | unmount jail-friendly file systems from within a jail. Precisely it grants PRIV_VFS_MOUNT, PRIV_VFS_UNMOUNT and PRIV_VFS_MOUNT_NONUSER privileges for a jailed super-user. It is turned off by default. A jail-friendly file system is a file system which driver registers itself with VFCF_JAIL flag via VFS_SET(9) API. The lsvfs(1) command can be used to see which file systems are jail-friendly ones. There currently no jail-friendly file systems, ZFS will be the first one. In the future we may consider marking file systems like nullfs as jail-friendly. Reviewed by: rwatson
* Move archive_read_data_into_buffer into archive_read.c, simplify itscperciva2007-04-054-55/+23
| | | | | | | | implementation, and mark it as deprecated. It will be removed entirely in libarchive 3.0 (in FreeBSD 8.0?) but there's no reason for anyone to use it instead of archive_read_data. Approved by: kientzle
* If a thread who's name is being set is not the current thread, use macrosdavidxu2007-04-051-2/+2
| | | | | | | THR_THREAD_LOCK and THR_THREAD_UNLOCK instead, this should fix wrong lock level problem. Bug reported by: ed dot maste at gmail dot com
OpenPOWER on IntegriCloud