summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* If the Zip reader doesn't see a PK signature blockkientzle2010-11-073-3/+93
| | | | | | | | because there's inter-entry garbage, just scan forward to find the next one. This allows us to handle a lot of Zip archives that have been modified in-place. Thanks to: Gleb Kurtsou for sending me a sample archive
* Add minidump support for MIPSgonzo2010-11-074-11/+318
|
* Fix manpage markup.uqs2010-11-063-4/+2
|
* Clarify the naming: Methods that free an object shouldkientzle2010-11-0513-77/+114
| | | | | be called "free". Retain the old "finish" names to preserve source compatibility for now.
* Add a new libc function: cfmakesane(3).ed2010-11-024-6/+37
| | | | | | | | | | | I've noticed various terminal emulators that need to obtain a sane default termios structure use very complex `hacks'. Even though POSIX doesn't provide any functionality for this, extend our termios API with cfmakesane(3), which is similar to the commonly supported cfmakeraw(3), except that it fills the termios structure with sane defaults. Change all code in our base system to use this function, instead of depending on <sys/ttydefaults.h> to provide TTYDEF_*.
* Use sysctl kern.sched.cpusetsize to retrieve size of kernel cpuset.davidxu2010-11-021-8/+5
|
* Prep for the 9.6-ESV-R2 updatedougb2010-10-312-5/+22
|
* When the make target is 'install', don't descend into the clangrpaulo2010-10-301-3/+5
| | | | | libraries subdirectories since there's nothing to do there. This saves us quite a few seconds off installworld, esp. if the disk I/O is slow.
* Regenerate our lib/libpcap/config.h for libpcap 1.1.1.dim2010-10-291-26/+56
|
* add pcap-common.c.rpaulo2010-10-291-1/+1
| | | | Submitted by: dim
* Update for libpcap-1.1.1.rpaulo2010-10-291-1/+1
|
* - Note that non-superusers are not allowed to set the SF_ARCHIVEDjh2010-10-291-3/+7
| | | | | | | | | flag. [1] - Note that also fchflags(2) will return EPERM for attempts to set or unset the SF_SNAPSHOT flag. Submitted by: Garrett Cooper [1] MFC after: 1 week
* Add sysctl kern.sched.cpusetsize to export the size of kernel cpuset,davidxu2010-10-291-0/+9
| | | | | | also add sysconf() key _SC_CPUSET_SIZE to get sysctl value. Submitted by: gcooper
* Return previous sigaction correctly.davidxu2010-10-291-1/+4
| | | | Submitted by: avg
* Remove local variable 'first', instead check signal number in memory,davidxu2010-10-291-4/+1
| | | | | because the variable can be in register, second checking the variable may still return true, however this is unexpected.
* Find a jail's type as part of jailparam_init rather than waiting untiljamie2010-10-271-10/+4
| | | | | | it's absolutely necessary. MFC after: 1 week
* Check small set and reject it, this is how kernel did. Always use thedavidxu2010-10-271-37/+32
| | | | size kernel is using.
* - Revert r214409.davidxu2010-10-271-5/+6
| | | | - Use long word to figure out sizeof kernel cpuset, hope it works.
* Remove locking and unlock in pthread_mutex_destroy, becausedavidxu2010-10-271-25/+2
| | | | | it can not fix race condition in application code, as a result, the problem described in PR threads/151767 is avoided.
* Fix typo.davidxu2010-10-251-1/+1
|
* Get cpuset in pthread_attr_get_np() and free it in pthread_attr_destroy().davidxu2010-10-252-10/+31
| | | | MFC after: 7 days
* Fix PIC_RETURN when abicalls are not defined.jchandra2010-10-241-1/+1
| | | | Submitted by: Artem Belevich (artemb at gmail dot com)
* Move variable declarations into the conditional block where they areemaste2010-10-241-1/+1
| | | | | | | used, to fix warning if WITH_SSL is not set. Submitted by: Sean Bruno MFC after: 1 week
* Revert to r214147, errno is not clobbered as originallybcr2010-10-221-2/+0
| | | | thought.
* Document strtonum()s behavior of setting errno to 0 when no error is found.bcr2010-10-211-0/+2
| | | | | | | PR: docs/143330 Submitted by: Efstratios Karatzas (gpf dot kira at gmail dot com) Discussed with: ru@ MFC after: 7 days
* Sync with OpenBSD rev. 1.13:bcr2010-10-211-2/+1
| | | | | | | | strtonum does not require limits.h Obtained from: OpenBSD Discussed with: ru@ MFC after: 5 days
* Fix error handling logic of pututxline(3).ed2010-10-211-12/+21
| | | | | | Instead of only returning NULL when the entry is invalid and can't be matched against the current database, also return it when it cannot open the log files properly.
* mdoc: make pages render with mandocuqs2010-10-213-4/+3
| | | | | | It's a bit more pedantic regarding .Bl list elements. This has an added benefit of unbreaking the ipfw(8) manpage, where groff was silently skipping one list element.
* Remove code duplication by introducing static gctl_param_add() function whichpjd2010-10-211-22/+14
| | | | is now used by both gctl_ro_param() and gctl_rw_param().
* - Simplify gctl_get_handle() a bit.pjd2010-10-211-5/+3
| | | | - Prefer 'unsigned int' over 'u_int' in userland code.
* Revert revision 214007, I realized that MySQL wants to resolvedavidxu2010-10-206-56/+2
| | | | | | | a silly rwlock deadlock problem, the deadlock is caused by writer waiters, if a thread has already locked a reader lock, and wants to acquire another reader lock, it will be blocked by writer waiters, but we had already fixed it years ago.
* Set default type to PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, thisdavidxu2010-10-181-0/+1
| | | | is the type we are using.
* Add links for libradius(3) functions.pjd2010-10-181-0/+33
|
* Unbreak buildworld by including pthread_rwlockattr_setkind_np anddavidxu2010-10-182-0/+4
| | | | pthread_rwlockattr_getkind_np.
* sort function name.davidxu2010-10-181-2/+2
|
* s/||/&&davidxu2010-10-181-2/+2
|
* Add pthread_rwlockattr_setkind_np and pthread_rwlockattr_getkind_np, thedavidxu2010-10-184-2/+50
| | | | | | | | | functions set or get pthread_rwlock type, current supported types are: PTHREAD_RWLOCK_PREFER_READER_NP, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, PTHREAD_RWLOCK_PREFER_WRITER_NP, default is PTHREAD_RWLOCK_PREFER_WRITER_NONCECURSIVE_NP, this maintains binary compatible with old code.
* - Add support for libusbhid in 32-bit compatibility mode.hselasky2010-10-163-3/+25
| | | | | | - Add missing check for ugd_actlen being too small. - Add missing inclusion guard to usbvar.h header file. - This also fixes buildworld breakage since r213852.
* Remove two .endp's without matching .proc in lib/csu/ia64/crtn.S.dim2010-10-151-2/+0
| | | | | | This allows it to assemble with newer binutils. Reviewed by: marcel
* - Add missing LibUSB API functions:hselasky2010-10-144-22/+120
| | | | | | | | | | | | | * libusb_strerror() * libusb_get_driver[_np]() * libusb_detach_kernel_driver[_np]() - Factor out setting of non-blocking flag inside libusb. - Add missing NULL check after libusb_get_device() call. - Correct some wrong error codes due to copy and paste error. PR: usb/150546 Submitted by: Robert Jenssen, Alexander Leidinger Approved by: thompsa (mentor)
* - Add support for LibUSB in 32-bit compatibility mode.hselasky2010-10-144-16/+30
| | | | Approved by: thompsa (mentor)
* - Fix some compile warnings regarding comparing signed to unsigned.hselasky2010-10-141-2/+2
| | | | Approved by: thompsa (mentor)
* LibUSB (new API):hselasky2010-10-145-0/+39
| | | | | | | | - Add a new API function to check the connected status of the USB handle in the LibUSB v1.0 and LibUSB v0.1 interfaces. Approved by: thompsa (mentor)
* Clang related fixes:rpaulo2010-10-132-1/+2
| | | | | | | * When calling syslog(), pass a format string. * Define YY_NO_INPUT on nslexer.l Submitted by: Norberto Lopes <nlopes.ml at gmail.com>
* Revert 212517 to restore pristine state of this fileimp2010-10-131-2/+0
|
* camlib.c: update one overlooked commentavg2010-10-111-3/+3
|
* Upgrade xz to git snapshot as of 20101010mm2010-10-112-5/+3
| | | | | Approved by: delphij (mentor) MFC after: 1 month
* Fix reference to nonexistent manpage getuid(3).ed2010-10-111-2/+2
| | | | Submitted by: pluknet
* cam_get_device, cam_open_device: make behavior simpler and more deterministicavg2010-10-112-97/+21
| | | | | | | | | | | | | | | | Remove or re-work support for the several features from the past: - remove incomplete support for trimming slice/partition names - remove mapping from old device names "sd" and "st" - remove whitespace trimming - remove unconditional skipping of leading 'r' in a device name - skip leading 'n' or 'e' only if the following device name matches a list of known devices that support no-rewind and eject-on-close features; currently this is only sa(4) - reflect the above changes in comments in code and in cam(3) - remove a note cautioning against use of cam_get_device and cam_open_device in cam(3) Reviewed by: mjacob
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-0840-46/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
OpenPOWER on IntegriCloud