summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* MFV of tzcode2009e:edwin2009-05-238-376/+922
| | | | | | | | | | | | | | | | | | | | | | | | | Upgrade of the tzcode from 2004a to 2009e. Changes are numerous, but include... - New format of the output of zic, which supports both 32 and 64 bit time_t formats. - zdump on 64 bit platforms will actually produce some output instead of doing nothing for a looooooooong time. - linux_base-fX, with X >= at least 8, will work without problems related to the local time again. The original patch, based on the 2008e, has been running for a long time on both my laptop and desktop machine and have been tested by other people. After the installation of this code and the running of zic(8), you need to run tzsetup(8) again to install the new datafile. Approved by: wollman@ for usr.sbin/zic MFC after: 1 month
* Include the 2 byte length field for the optional "extra data"kientzle2009-05-231-0/+1
| | | | | | | field when computing the length of the gzip header. Thanks to Dag-Erling for pointing me to the OpenSSH tarballs, which are the first files I've seen that actually used this field.
* Make 'struct acl' larger, as required to support NFSv4 ACLs. Providetrasz2009-05-2211-6/+111
| | | | | | compatibility interfaces in both kernel and libc. Reviewed by: rwatson
* Fix libusb20_dev_get_device_desc and defunt xref.thompsa2009-05-211-4/+4
| | | | Submitted by: Hans Petter Selasky
* Simplify now that we have gpart.marcel2009-05-201-84/+33
|
* Since audit(4) isn't based on posix1e, remove the commented out audit.h header,brueffer2009-05-191-2/+2
| | | | | | | xref libbsm(3). Submitted by: rwatson MFC after: 3 days
* Add links to libgeom(3) where appropriate.trasz2009-05-191-0/+2
|
* Update the KVM backend for malloc stats to catch up to the internal structurejhb2009-05-151-6/+5
| | | | | | BI change from the addition of DTrace malloc(9) probes. Submitted by: Ben Kelly ben of wanderview dot com
* As the comment says, close() frees the variable, record. So we obtaindelphij2009-05-141-1/+1
| | | | | | | | the length by evaluating the value from the copy, cbuf instead. This fixes a crash caused by previous commit (use-after-free) Submitted by: Dimitry Andric <dimitry andric com> Pointy hat to: delphij
* Avoid floating point arithmetic while calculating iquiry length.emax2009-05-141-11/+14
| | | | | Submitted by: Iain Hibbert < plunky -at- rya-online -dot- net > MFC after: 1 week
* Eliminate duplicate error messages from "tar c".kientzle2009-05-131-0/+1
| | | | Reported by: pav@
* These are some cosmetic changes to improve the clarity of libthr's fork ↵green2009-05-111-9/+9
| | | | implementation.
* TTYs don't necessarily use /dev/ttyxx.ed2009-05-091-3/+2
| | | | Submitted by: csjp
* Partially revert r191171, which went too far in tryingkientzle2009-05-071-20/+49
| | | | | | | | | | | | | | to eliminate some duplicated code. In particular, archive_read_open_filename() has different close handling than archive_read_open_fd(), so delegating the former to the latter in the degenerate case (a NULL filename is treated as stdin) broke reading from pipelines. In particular, this fixes occasional port failures that were seen when using "gunzip | tar" pipelines under /bin/csh. Thanks to Alexey Shuvaev for reporting this failure and patiently helping me to track down the cause.
* Add tcsetsid(3).ed2009-05-076-6/+116
| | | | | | | | | | | The entire world seems to use the non-standard TIOCSCTTY ioctl to make a TTY a controlling terminal of a session. Even though tcsetsid(3) is also non-standard, I think it's a lot better to use in our own source code, mainly because it's similar to tcsetpgrp(), tcgetpgrp() and tcgetsid(). I stole the idea from QNX. They do it the other way around; their TIOCSCTTY is just a wrapper around tcsetsid(). tcsetsid() then calls into an IPC framework.
* revert r191633; this breaks at91 & xscale (likely all arm)sam2009-05-061-4/+4
|
* Our grantpt(3) and unlockpt(3) don't comply with POSIX.ed2009-05-041-3/+7
|
* Fix whitespace and sorting in Symbol.map.ed2009-05-041-25/+25
|
* Merge vendor/file/dist@191739, bringing FILE 5.00 to 8-CURRENT.obrien2009-05-042-35/+50
|
* Introduce the extensible jail framework, using the same "name=value"jamie2009-04-293-11/+262
| | | | | | | | | | | | | | interface as nmount(2). Three new system calls are added: * jail_set, to create jails and change the parameters of existing jails. This replaces jail(2). * jail_get, to read the parameters of existing jails. This replaces the security.jail.list sysctl. * jail_remove to kill off a jail's processes and remove the jail. Most jail parameters may now be changed after creation, and jails may be set to exist without any attached processes. The current jail(2) system call still exists, though it is now a stub to jail_set(2). Approved by: bz (mentor)
* With the permission of phk@ change the license on remaining jail codejamie2009-04-291-6/+22
| | | | | | | to a 2 clause BSD license. Approved by: phk Approved by: bz (mentor)
* Fix an obvious bug in getsourcefilter()'s use of struct __msfilterreq;bms2009-04-291-2/+3
| | | | | | | | | | | | | the kernel will return in msfr_nsrcs the number of source filters in-mode for a given multicast group. However, the filters themselves were never copied out, as the libc function clobbers this field with zero, causing the kernel to assume the provided vector of struct sockaddr_storage has zero length. This bug would only affect users of SSM multicast, which is shimmed in 7.x. Picked up during mtest(8) refactoring. MFC after: 1 day
* Change the test at the beginning of strncmp(), from being if (len - 1) < 0cognet2009-04-281-4/+4
| | | | | | | | | to if (len == 0). The length is supposed to be unsigned, so len - 1 < 0 won't happen except if len == 0 anyway, and it would return 0 when it shouldn't, if len was > INT_MAX. Spotted out by: Channa <channa kad gmail com>
* Document the liblzma support.kientzle2009-04-271-0/+3
| | | | | | | | Unfortunately, liblzma itself is GPLed, so unlikely to become part of the FreeBSD base system. However, the core lzma compression/decompression code is public domain, so it should be feasible for someone to create a compatible library without the GPL strings.
* Symlink some additional man page entries.kientzle2009-04-271-0/+7
|
* Merge r991 from libarchive.googlecode.com: Various updateskientzle2009-04-271-8/+55
| | | | | to archive_read.3 manpage, including documentation for the new "raw" handler.
* Merge r990,r1044 from libarchive.googlecode.com:kientzle2009-04-277-2/+292
| | | | | | | | | read_support_format_raw() allows people to exploit libarchive's automatic decompression support by simply stubbing out the archive format handler. The raw handler is not enabled by support_format_all(), of course. It bids 1 on any non-empty input and always returns a single entry named "data" with no properties set.
* Merge r1061,r1062,r1063 from libarchive.googlecode.com:kientzle2009-04-274-1/+70
| | | | | | | | | | Fix reading big-endian binary cpio archives, and add a test. While I'm here, add a note about Solaris ACL extension for cpio, which should be relatively straightforward to support. Thanks to: Edward Napierala, who sent me a big-endian cpio archive from a Solaris system he's been playing with. Pointy hat: me
* Merge r1034 from libarchive.googlecode.com:kientzle2009-04-272-25/+25
| | | | Put a much larger file on the reference ISO for this test.
* Merge r1058 from libarchive.googlecode.com: Require that eachkientzle2009-04-272-7/+13
| | | | test source file has exactly one DEFINE_TEST().
* ino_t varies across platforms; casting (int) here avoidskientzle2009-04-271-2/+3
| | | | various pointless complaints.
* Merge r1032 from libarchive.googlecode.com:kientzle2009-04-272-12/+16
| | | | | | | Make test_fuzz a bit more sensitive by actually reading the body of each entry instead of skipping it. While I'm here, move the "UnsupportedCompress" macro into the only file that still uses it.
* Merge r1054,r1060 from libarchive.googlecode.com:kientzle2009-04-272-6/+19
| | | | | * assertEqualMem() now takes void * arguments * Be a little smarter about what we hexdump when assertEqualMem() fails
* Merge r1021 from libarchive.googlecode.com:kientzle2009-04-272-2/+14
| | | | If we know it's a socket, say so.
* Merge r1052,r1055 from libarchive.googlecode.com:kientzle2009-04-274-0/+5
| | | | Clear the error flag on entry to a few more API functions.
* Merge r1053,r1055,r1056,r1057,r1065 from libarchive.googlecode.com:kientzle2009-04-276-48/+314
| | | | | | | | | | | | * Fix parsing of POSIX.1e ACLs from Solaris tar archives * Test the above * Preserve the order of POSIX.1e ACL entries * Update tests whose results depended on the order of ACL entries * Identify NFSv4 ACLs in Solaris tar archives and warn that they're not yet supported. (In particular, don't try to parse them as POSIX.1e ACLs.) Thanks to: Edward Napierala sent me some Solaris 10 tar archives to test
* Merge r988,r1064 from libarchive.googlecode.com:kientzle2009-04-272-12/+24
| | | | | | | | | * Split whiny skip function to create a new best-effort skip_lenient() * Correctly increment the top-level file position only for the top filter * Simulate skip by reading against the current filter, not the top filter The latter two bugs aren't currently visible because no existing filter delegates skip operations.
* Reading an mtree file is supposed to providekientzle2009-04-262-2/+15
| | | | | | | | | | | | | access to the file data (if the file exists on disk). This was broken for the first regular file; fix it and add a test so it won't break again. In particular, this fixes the following idiom for creating a tar archive in which every file is owned by root: tar cf - --format=mtree . \ | sed -e 's/uname=[a-z]*/uname=root/' -e 's/uid=[0-9]*/uid=0/' \ | tar cf - @-
* Various improvements to the tar.5 manpage, includingkientzle2009-04-261-18/+105
| | | | | | descriptions of the GNU tar "posix-style" sparse format, clarification of the Solaris tar ACL storage, and a few comments about Mac OS X tar's resource storage.
* Exit with ARCHIVE_FATAL if the ISO image is truncated.kientzle2009-04-261-1/+1
|
* Remove an unused variable.kientzle2009-04-261-2/+1
| | | | Thanks to: Christoph Mallon
* Fix typo.trasz2009-04-261-1/+1
|
* Correct the information about when the respective functionality firstbrueffer2009-04-232-2/+2
| | | | | | | | appeared in FreeBSD. PR: 133785 Submitted by: Ulrich Spoerlein <uqs@spoerlein.net> MFC after: 3 days
* Implement low-level Bluetooth HCI API.emax2009-04-224-19/+836
| | | | | | | | | This should make it easier to make Linux BlueZ libhci port. Reviewed by: Iain Hibbert < plunky -at- rya-online -dot- net > of NetBSD MFC after: 1 week Inspired by: Linux BlueZ Inspired by: NetBSD
* Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, userwatson2009-04-191-2/+0
| | | | | | | | that definition in the custom locking code for the run-time linker rather than local definitions. Pointed out by: tinderbox MFC after: 2 weeks
* Merge OpenBSM 1.1 from OpenBSM vendor branch to head.rwatson2009-04-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | OpenBSM history for imported revision below for reference. MFC after: 2 weeks Sponsored by: Apple, Inc. Obtained from: TrustedBSD Project OpenBSM 1.1 - Change auditon(2) parameters and data structures to be 32/64-bit architecture independent. Add more information to man page about auditon(2) parameters. - Add wrapper functions for auditon(2) to use legacy commands when the new commands are not supported. - Add default for 'expire-after' in audit_control to expire trail files when the audit directory is more than 10 megabytes ('10M'). - Interface to convert between local and BSM fcntl(2) command values has been added: au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with definitions of constants in audit_fcntl.h. - A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens generated by audit_submit(3) were improperly encoded has been fixed. - Fix example in audit_submit(3) man page. Also, make it clear that we want the audit ID as the argument. - A new audit event class 'aa', for post-login authentication and authorization events, has been added.
* Rely on OpenSSL bits only if we're building a system with OpenSSL.kientzle2009-04-183-20/+22
| | | | | Also, adjust the MD5 calls to rely on libmd instead of libcrypto, so we keep MD5 support even in the !OpenSSL case.
* Correct and update the manpage to includekientzle2009-04-181-13/+47
| | | | | more details about some of the formats and to briefly describe the mtree writing capability.
* Disabling the crypto bits should quiet tinderbox while Ikientzle2009-04-171-0/+8
| | | | track down the library dependencies that are screwing up the /rescue build.
* Publicize a handful of new functions and bump the version numberkientzle2009-04-171-5/+17
| | | | | to indicate that this is synchronized with the recent libarchive 2.7.0 release.
OpenPOWER on IntegriCloud