summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add bsde_add_rule(), which is similar to bsde_set_rule() except thatRobert Watson2004-02-255-4/+79
| | | | | | | | | | | the caller does not specify the rule number -- instead, the kernel module is probed for the next available rule, which is then used. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research Notes: svn path=/head/; revision=126217
* No reason to disable this test on powerpc.Peter Grehan2004-02-251-2/+0
| | | | Notes: svn path=/head/; revision=126207
* Use signed char cast to avoid out-of-range error on PowerPC (which hasPeter Grehan2004-02-251-4/+5
| | | | | | | | | unsigned char by default). This is a no-op on all other current arches. Tested by: md5 sum before/after same on i386 Notes: svn path=/head/; revision=126206
* Add getopt_long_only() from OpenBSD and other OpenBSD cleanupsAndrey A. Chernov2004-02-243-299/+459
| | | | | | | | PR: 63173 Submitted by: Marius Strobl <marius@alchemy.franken.de> Notes: svn path=/head/; revision=126189
* Apply style(9).Brian Feldman2004-02-231-2/+6
| | | | | | | | Submitted by: "Christian S.J. Peron" <maneo@bsdpro.com> PR: bin/63283 Notes: svn path=/head/; revision=126180
* style.Makefile:Johan Karlsson2004-02-232-2/+2
| | | | | | | Use WARNS?= instead of WARNS=. Notes: svn path=/head/; revision=126176
* Add signal numbers to signal(3).Josef El-Rayes2004-02-231-33/+36
| | | | | | | | | | Approved by: simon(mentor) Reviewed by: ru Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> PR: docs/60044 Notes: svn path=/head/; revision=126164
* Add optarg, optind, opterr, optopt, optreset to SYNOPSYSAndrey A. Chernov2004-02-231-0/+5
| | | | Notes: svn path=/head/; revision=126143
* POSIX clearly states that getsubopt() should be declared in <stdlib.h>Andrey A. Chernov2004-02-231-1/+1
| | | | | | | not in <unistd.h> Notes: svn path=/head/; revision=126139
* Remove unneccessary <unistd.h>Andrey A. Chernov2004-02-231-1/+0
| | | | Notes: svn path=/head/; revision=126138
* Update man page to reflect additional flag to allow selection of threads.Daniel Eischen2004-02-221-0/+3
| | | | Notes: svn path=/head/; revision=126128
* Teach kvm_getprocs() to recognize a sysctl flag for including threads.Daniel Eischen2004-02-221-5/+8
| | | | Notes: svn path=/head/; revision=126126
* Change the syscall stub branch orders so that the static branch predictionPeter Wemm2004-02-224-12/+51
| | | | | | | will assume that syscalls will succeed rather than fail. Notes: svn path=/head/; revision=126107
* Fix a couple of potential buffer overflows.Hartmut Brandt2004-02-212-12/+10
| | | | | | | Submitted by: christer.oberg@texonet.com Notes: svn path=/head/; revision=126069
* Remove the triplicity in the public functions by vectoring them allPoul-Henning Kamp2004-02-211-70/+49
| | | | | | | | | | | | | through a realloc like function. Make the malloc_active variable a local static to this new function. Don't warn about recursion more than once per base call. constify malloc_func. Notes: svn path=/head/; revision=126061
* Move the check for sensitive processes to the point where the exceptionPoul-Henning Kamp2004-02-211-14/+7
| | | | | | | | | | | | has been hit, this makes it cover more cases. Call the message function directly rather than fiddle with flag-saving when we find an unknown character in our options. The 'A' flag should not trigger on legal out of memory conditions. Notes: svn path=/head/; revision=126060
* add destination address selection support for getipnodebyname(3).Hajimu UMEMOTO2004-02-201-1/+225
| | | | | | | | though getipnodebyname(3) is obsoleted api, some major applications such as Mozilla are still using it. so, it will help ipv4 users. Notes: svn path=/head/; revision=126052
* Unbreak the upgrade path from 4.9 after removal of GNU getopt andRuslan Ermilov2004-02-201-2/+0
| | | | | | | <gnuregex.h>. Notes: svn path=/head/; revision=126039
* Document dependence of mktemp(3) on the non-reentrant arc4random(3).Brian Feldman2004-02-201-0/+7
| | | | Notes: svn path=/head/; revision=126034
* Moving forward, there's no reason to exclude libpthread on sparc64.Marcel Moolenaar2004-02-201-1/+1
| | | | Notes: svn path=/head/; revision=126032
* Implement PThreads barriers and barrier attributes.Mike Makonnen2004-02-196-1/+236
| | | | Notes: svn path=/head/; revision=126000
* Don't wake up the thread after the signal handlerMike Makonnen2004-02-191-1/+1
| | | | | | | | | | | has been executed. On return from the signal handler the call will either be restarted or EINTR will be returned, but it will not go back to its previous state. So, it is sufficient to simply change the state to 'running' without actually trying to wake up the thread. Notes: svn path=/head/; revision=125999
* Remove thr_getschedparam.c since it's contents have been moved intoMike Makonnen2004-02-181-1/+0
| | | | | | | thr_setschedparam.c Notes: svn path=/head/; revision=125971
* There are consumers of rwlocks, inluding our own libc, that depend onMike Makonnen2004-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 Notes: svn path=/head/; revision=125969
* o Catch up with the mutex priority protocol fixes.Mike Makonnen2004-02-182-121/+65
| | | | | | | | o Move pthread_getschedparam() into the same file with it's pthread_set* counterpart. Copyright on both files is identical. Notes: svn path=/head/; revision=125968
* o StyleMike Makonnen2004-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. Notes: svn path=/head/; revision=125967
* o Refactor and, among other things, get rid of insane nesting levels.Mike Makonnen2004-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. Notes: svn path=/head/; revision=125966
* Move the initialization of thread priority to a common function.Mike Makonnen2004-02-182-6/+3
| | | | Notes: svn path=/head/; revision=125964
* Move the weak references to the top of the file to conformMike Makonnen2004-02-181-43/+22
| | | | | | | to the format of other similar files in libthr. Notes: svn path=/head/; revision=125963
* Remove the code and an associated comment for gcc 1.x compatibilityDavid Schultz2004-02-161-9/+1
| | | | | | | and fix a typo in the !__GNUC__ case. Notes: svn path=/head/; revision=125867
* Fix a typo in the !__GNUC__ case and remove an obsolete comment.David Schultz2004-02-161-3/+1
| | | | Notes: svn path=/head/; revision=125866
* Fix some aliasing problems.David Schultz2004-02-166-52/+94
| | | | Notes: svn path=/head/; revision=125865
* sys/types.h must be included before sys/acl.h,Tim Kientzle2004-02-121-1/+1
| | | | | | | | | as clearly documented in the acl manpage. Thanks to bde for catching this blunder. Notes: svn path=/head/; revision=125744
* Connect libarchive to the build.Tim Kientzle2004-02-121-1/+1
| | | | Notes: svn path=/head/; revision=125737
* Add forgotten IEEE functions. The Perl 5.8 port now compiles.Peter Grehan2004-02-129-2/+428
| | | | | | | | Submitted by: Suleiman Souhlal <refugee@segfaulted.com> Obtained from: NetBSD Notes: svn path=/head/; revision=125733
* libarchive itself is now completely clean at WARNS=10 on all architectures.Tim 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. Notes: svn path=/head/; revision=125726
* Do not cast dval.Maksim Yevmenkin2004-02-112-3/+2
| | | | | | | | | Make global _usage_page unsigned. Reviewed by: imp (mentor) Notes: svn path=/head/; revision=125716
* Slight tweak to previous commit: don't forget to call _http_seterr() ifDag-Erling Smørgrav2004-02-111-0/+1
| | | | | | | we get a genuine 416 reply. Notes: svn path=/head/; revision=125697
* When restarting a transfer that has already completed, the server willDag-Erling Smørgrav2004-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. Notes: svn path=/head/; revision=125696
* Re-wrap some comments.Dag-Erling Smørgrav2004-02-111-6/+7
| | | | Notes: svn path=/head/; revision=125695
* Initial import of RFC 2385 (TCP-MD5) digest support.Bruce M Simpson2004-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 Notes: svn path=/head/; revision=125681
* style cleanup: Remove duplicate $FreeBSD$ tags.Colin Percival2004-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) Notes: svn path=/head/; revision=125669
* style cleanup: Remove duplicate $FreeBSD$ tags.Colin Percival2004-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) Notes: svn path=/head/; revision=125668
* style cleanup: Remove duplicate $FreeBSD$ tags.Colin Percival2004-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) Notes: svn path=/head/; revision=125667
* Fix numerous constness and aliasing issues.Dag-Erling Smørgrav2004-02-106-19/+18
| | | | Notes: svn path=/head/; revision=125650
* Add sem_timedwait to the symbol map, otherwise the libc version willDaniel Eischen2004-02-101-0/+2
| | | | | | | get used. Notes: svn path=/head/; revision=125636
* Initial import of libarchive.Tim 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. Notes: svn path=/head/; revision=125635
* Rewrite fabs.S to use pure SSE2 operations. I got the clues how to doPeter Wemm2004-02-081-10/+35
| | | | | | | this from looking at code generated by gcc. Notes: svn path=/head/; revision=125600
* Update the documentation for setpgrp(2) to reflect the access controlDavid Schultz2004-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 Notes: svn path=/head/; revision=125592
* Document the SF_NODISKIO flag, and fix a small typo.Mike Silbersack2004-02-081-2/+10
| | | | Notes: svn path=/head/; revision=125587