summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove thr_getschedparam.c since it's contents have been moved intomtm2004-02-181-1/+0
| | | | thr_setschedparam.c
* There are consumers of rwlocks, inluding our own libc, that depend onmtm2004-02-181-96/+24
| | | | | | | | | | a PTHREAD_RWLOCK_INITIALIZER to do for rwlocks what a similarly named symbol does for statically initialized mutexes. This symbol was dropped in The Open Group Base Specifications Issue 6 and does not exist in IEEE Std 1003.1, 2003, but it should still be supported for backwards compatibility. Pointy hat: mtm
* o Catch up with the mutex priority protocol fixes.mtm2004-02-182-121/+65
| | | | | o Move pthread_getschedparam() into the same file with it's pthread_set* counterpart. Copyright on both files is identical.
* o Stylemtm2004-02-182-48/+39
| | | | | | o Instead of checking both the passed in pointer and its value for NULL, only check the latter. Any caller that passes in a NULL pointer is obviously wrong.
* o Refactor and, among other things, get rid of insane nesting levels.mtm2004-02-182-811/+305
| | | | | | | o Fix mutex priority protocols. Keep separate counts of priority inheritance and protection mutexes to make things easier. This will not have much affect since this is only the userland side, and the rest involves kernel scheduling.
* Move the initialization of thread priority to a common function.mtm2004-02-182-6/+3
|
* Move the weak references to the top of the file to conformmtm2004-02-181-43/+22
| | | | to the format of other similar files in libthr.
* Remove the code and an associated comment for gcc 1.x compatibilitydas2004-02-161-9/+1
| | | | and fix a typo in the !__GNUC__ case.
* Fix a typo in the !__GNUC__ case and remove an obsolete comment.das2004-02-161-3/+1
|
* Fix some aliasing problems.das2004-02-166-52/+94
|
* sys/types.h must be included before sys/acl.h,kientzle2004-02-121-1/+1
| | | | | | as clearly documented in the acl manpage. Thanks to bde for catching this blunder.
* Connect libarchive to the build.kientzle2004-02-121-1/+1
|
* Add forgotten IEEE functions. The Perl 5.8 port now compiles.grehan2004-02-129-2/+428
| | | | | Submitted by: Suleiman Souhlal <refugee@segfaulted.com> Obtained from: NetBSD
* libarchive itself is now completely clean at WARNS=10 on all architectures.kientzle2004-02-122-2/+6
| | | | | | | Unfortunately, the stock zlib.h is not: line 885: 'err' parameter shadows global 'err' definition from <err.h> Back the WARNS level down to 3 to accomodate borked zlib.h.
* Do not cast dval.emax2004-02-112-3/+2
| | | | | | Make global _usage_page unsigned. Reviewed by: imp (mentor)
* Slight tweak to previous commit: don't forget to call _http_seterr() ifdes2004-02-111-0/+1
| | | | we get a genuine 416 reply.
* When restarting a transfer that has already completed, the server willdes2004-02-111-9/+41
| | | | | | | reply with a 416 error code (requested range not satisfiable) because we ask it to start at the end of the file. Handle this gracefully by considering a 416 reply a success if the requested offset exactly matches the length of the file and the requested length is zero.
* Re-wrap some comments.des2004-02-111-6/+7
|
* Initial import of RFC 2385 (TCP-MD5) digest support.bms2004-02-114-1/+20
| | | | | | | | | | | | | | This is the second of two commits; bring in the userland support to finish. Teach libipsec and setkey about the tcp-md5 class of security associations, thus allowing administrators to add per-host keys to the SADB for use by the tcpsignature_compute() function. Document that a single SPI must be used until such time as the code which adds support to the SPD to specify flows for tcp-md5 treatment is suitable for production. Sponsored by: sentex.net
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-105-10/+0
| | | | | | | | These files had tags after teh copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor)
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-106-13/+1
| | | | | | | | These files had tags after the copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor)
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-103-4/+0
| | | | | | | | These files had tags at the start of the file (incorrect, removed), and after the copyright notices (correct). Approved by: rwatson (mentor)
* Fix numerous constness and aliasing issues.des2004-02-106-19/+18
|
* Add sem_timedwait to the symbol map, otherwise the libc version willdeischen2004-02-101-0/+2
| | | | get used.
* Initial import of libarchive.kientzle2004-02-0945-0/+11942
| | | | | | | | | | | | | | | | | | | | | | What it is: A library for reading and writing various streaming archive formats, especially tar and cpio. Being a library, it should be easy to incorporate into pkg_* tools, sysinstall, and any other place that needs to read or write such archives. Features: * Full automatic detection of both compression and archive format. * Extensible internal architecture to make it easy to add new formats. * Support for "pax interchange format," a new POSIX-standard tar format that eliminates essentially all of the restrictions of historic formats. * BSD license Thanks to: jkh for pushing me to start this work, gordon for encouraging me to commit it, bde for answering endless style questions, and many others for feedback and encouragement. Status: Pretty good overall, though there are still a few rough edges and the library could always use more testing. Feedback eagerly solicited.
* Rewrite fabs.S to use pure SSE2 operations. I got the clues how to dopeter2004-02-081-10/+35
| | | | this from looking at code generated by gcc.
* Update the documentation for setpgrp(2) to reflect the access controldas2004-02-081-7/+21
| | | | | | | checks that the code actually performs. Judging from the 4.2BSD release notes, the docs have only been out of date for 20 years. PR: 29844
* Document the SF_NODISKIO flag, and fix a small typo.silby2004-02-081-2/+10
|
* Unbreak world.ru2004-02-071-2/+2
|
* getnetbyname fixes:dds2004-02-071-22/+67
| | | | | | | Do not choke on malformed network addresses. Return n_name in static space, not on the function's stack. MFC after: 1 week
* Add cancellation point to sem_wait() and sem_timedwait() for pshareddeischen2004-02-062-20/+36
| | | | | | | | semaphores. Also add cancellation cleanup handlers to keep semaphores in a consistent state. Submitted in part by: davidxu Reviewed by: davidxu
* Prevent memory leak on sem_destroy() by destroying the semaphore'sdeischen2004-02-061-1/+4
| | | | internal mutex and CV.
* Only allow the semaphore to be taken when the value is positive.deischen2004-02-061-2/+1
| | | | | | Don't decrement it twice when it is taken. Reported by: kris
* Correct check for invalid semaphore on sem_destroy() (s/==/!=/).deischen2004-02-051-1/+1
| | | | Reported by: kris
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-056-12/+12
|
* Correct the weak reference for sem_unlink.deischen2004-02-051-1/+1
|
* libkse was renamed to libpthread.davidxu2004-02-052-2/+2
|
* Allow libc's version of sem_trywait() to work for non-pshared mutexes.deischen2004-02-041-2/+17
|
* Put libraries in the link order.ru2004-02-041-3/+2
| | | | Reported by: lorder(1) (modified to work with libraries)
* Nothing in libypclnt depends on librpcsvc.ru2004-02-041-3/+0
| | | | Reported by: lorder(1) (modified to work with libraries)
* This module doesn't use libgssapi (and it looks never did).ru2004-02-041-3/+2
|
* Add missing file.davidxu2004-02-041-0/+43
|
* Import initial work of libpthread debugging. This is a debugger independentdavidxu2004-02-046-0/+900
| | | | | friend library for libpthread, the library will be used by debugger to read/write libpthread's internal data structures.
* Remove the band-aid (#include <time.h>).deischen2004-02-031-1/+0
|
* Add <time.h> -- bandaid to unbreak world in <semaphore.h>.deischen2004-02-031-0/+1
|
* Provide a userland version of non-pshared semaphores and add cancellationdeischen2004-02-034-338/+306
| | | | points to sem_wait() and sem_timedwait(). Also make sem_post signal-safe.
* Modify the implementation of libc semaphores so that they can bedeischen2004-02-031-146/+132
| | | | | | | | | | | | overridden by the threads library to provide a userland version of non-pshared semaphores and cancellation points. Also add a sem_timedwait(). The libc version of semaphores always uses kernel semaphores regardless of whether pshared is set or not. When threads are not present, it is difficult to get sem_wait() or sem_timedwait() to do the right thing (since pthread_cond_timedwait() and pthread_cond_wait() are stubs in libc and just return immediately).
* Bump up the maximum number concurrent threads on x86.mtm2004-02-011-1/+1
|
* Merge vfscanf.c,v 1.35.das2004-01-311-4/+10
|
* Fix the handling of negative hexadecimal numbers in integer formats.das2004-01-311-3/+9
| | | | | | | Note that this bug is unrelated to recent work in this area; it seems to have been present since revision 1.1. Obtained from: NetBSD
OpenPOWER on IntegriCloud