summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* mdoc: fix manlint warnings by unbreaking mdoc syntaxuqs2010-10-081-1/+1
|
* Oops, don't remove -fexceptions flag.davidxu2010-10-081-0/+1
|
* unwind.h was imported, gcc directory is no longer needed.davidxu2010-10-081-1/+0
|
* Upgrade Clang and LLVM to the 2.8 release. See here for release notes:dim2010-10-071-2/+2
| | | | | | http://llvm.org/releases/2.8/docs/ReleaseNotes.html Approved by: rpaulo (mentor)
* Missed space.kib2010-10-061-1/+1
| | | | | Submitted by: brueffer MFC after: 1 week
* Add cross-references to lrand48(3) and arc4random(3) from rand(3)kib2010-10-062-1/+11
| | | | | | | and random(3). Submitted by: Valentin Nechayev <netch netch kiev ua> MFC after: 1 week
* When no protocol entry is found, getproto*_r(3) shouldume2010-10-053-3/+3
| | | | | | | return zero. Spotted by: Kostik Belousov <kostikbel__at__gmail.com> MFC after: 2 weeks
* Handle null return from XML_ParserCreate and fix a few memory leaks onemaste2010-10-051-4/+10
| | | | | | | error conditions. Submitted by: Mark Johnston <mjohnston at sandvine dot com> MFC after: 2 weeks
* Change libvgl's set4pixels() and set2lines() functions from plaindim2010-10-041-4/+4
| | | | | | | | | | | | 'inline' to 'static inline'. Otherwise, a C99 compiler (such as clang) will output an undefined symbol for those functions in the resulting object file. (Even gcc will do this, when you use "-std=c99".) This should fix the "undefined reference to `set4pixels'" errors that some people were seeing during ports building, when their world was compiled with clang. Approved by: rpaulo (mentor)
* Clear errno for each method dispatch.ume2010-10-041-0/+2
| | | | | Spotted by: Kostik Belousov <kostikbel__at__gmail.com> MFC after: 2 weeks
* Fix punctuation and grammar, mostly by ending sentences with a period.gnn2010-10-042-33/+33
| | | | MFC after: 1 day
* Use __FBSDID() instead of RCSID() in most .S files under lib/msun/i386,dim2010-10-0121-42/+21
| | | | | | | | and one under lib/msun/amd64. This avoids adding the identifiers to the .text section, and moves them to the .comment section instead. Suggested by: bde Approved by: rpaulo (mentor)
* libc: Remove the i386 assembler version of strlen(3).jilles2010-10-012-55/+1
| | | | | | | | | | | | | On anything modern, the C version, which processes a word at a time, is much faster. The Intel optimization manual explicitly warns against using REP prefixes with SCAS or CMPS, which is exactly what the assembler version does. A simple test on a Phenom II showed the C version, compiled with -O2, to be about twice as fast determining the length of 100000 strings between 0 and 255 bytes long. MFC after: 2 weeks
* Retire the amd64 and i386 specific inline assembly versions of ldexp.c,dim2010-09-302-136/+0
| | | | | | | | as they are slower than the generic version in C, at least on modern hardware. This leaves us with just five implementations. Suggested by: bde Approved by: rpaulo (mentor)
* change code to use unwind.h.davidxu2010-09-302-5/+6
|
OpenPOWER on IntegriCloud