summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* from hubertf@netbsd:jmc2007-02-191-6/+18
| | | | | | | | | | Try to tell what this really does. Including a BUGS section on why it doesn't. *roff code by wiz@, with some input from Slava Semushin <slava.semushin@gmail.com> ok millert
* strlen(3) returns size_t, not int.ray2007-02-181-14/+16
| | | | | | Suggested by itojun@ in response to my getaddrinfo fixes. OK millert@.
* strlen(3) returns size_t.ray2007-02-181-4/+6
| | | | OK itojun@.
* Remove duplicate code. No functional change.ray2007-02-171-39/+22
| | | | OK itojun@, moritz@, and millert@.
* remove two expired certificates, diff from <Christian_Rusch@genua.de>grunk2007-02-171-97/+0
| | | | ok jakob@
* Remove two mutexes by replacing getservbyname() and getservbyport()ray2007-02-152-32/+29
| | | | | | calls with their reentrant versions. OK millert@.
* correct a mistake concerning ifa_data;jmc2007-02-141-6/+5
| | | | found by Srebrenko Sehic, corrected by millert and claudio;
* remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31.itojun2007-02-141-5/+2
|
* Remove int pretending to be a size_t.ray2007-02-141-5/+2
| | | | OK millert@.
* get cheaper random bytes, less waste and no getpid() calls, which areotto2007-02-121-2/+3
| | | | done by arc4random(); ok millert@ deraadt@
* provide an libc internal interface to get random bytes, to be used by mallocotto2007-02-121-3/+12
| | | | to get random data without calling getpid(), ok millert@ deraadt@
* consistency tweak;jmc2007-02-071-2/+2
|
* fix some dodgy displays;jmc2007-02-061-2/+2
|
* sync with the code: int -> intmax_tsteven2007-01-161-3/+3
| | | | ok jmc@
* advertising clauses that can be droppedderaadt2007-01-081-6/+2
|
* Fix format string misuse in kssl_err_set(), which is notmoritz2007-01-031-1/+1
| | | | | | called with user-supplied strings at the moment. ok markus@
* RFC4291 declares that IPv6 numeric representation must have no more thanitojun2006-12-301-3/+8
| | | | 4 hex digits between colons. deraadt ok
* a failed mmap returns MAP_FAILED, not NULL. found while exercising paxotto2006-12-191-3/+3
| | | | in low-mem conditions; ok dim@
* tweak the text on deprecated functions, after some help from tom;jmc2006-12-092-12/+14
|
* various tweaks;jmc2006-12-091-18/+17
|
* various tweaks; my apologies to itojun for forgetting tojmc2006-12-091-26/+28
| | | | send him feedback for these
* switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).itojun2006-12-097-5/+971
| | | | | | | | | | the kernel still handles RFC2292 set/getsockopts, so that compiled binary has no trouble running. userland sees RFC3542 symbols only on header file so new code has to use RFC3542 API. bump libc shlib minor for function additions. tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.
* return is not a function. (cosmetic)itojun2006-12-081-28/+28
|
* tweaks; from claus assmann (pr #5317);jmc2006-12-021-3/+3
|
* change semantics of ff01::/16 to interface local multicastitojun2006-11-172-5/+6
| | | | | | (to sync up with more recent IPv6 spec) ok from: deraadt mcbride
* add openssl PEM_* manpages; ok deraadt, hshoexer, djmmarkus2006-11-091-6/+73
|
* columns for underflow and overflow were swapped, noticed by Mathieu Oliviergrunk2006-11-021-2/+2
| | | | | | <molivier at users dot sourceforge dot net> ok jmc@ mickey@
* must pull in sys/types.h unconditionaly, because it is needed my pthreadsderaadt2006-10-301-2/+2
| | | | includes used a bit later (for instance on the vax)
* make __dtoa & strtod() thread-safe useing the same method as newer gdtoaderaadt2006-10-293-36/+89
| | | | | codebase. tested mostly by ckuethe and myself. __dtoa() use now requires a call to __freedtoa()
* respond to ben hawkes's ruxcon presentation.tedu2006-10-241-61/+125
| | | | | | | | | | | | | create special allocators for pginfo and pgfree structs instead of imalloc. this keeps them separated from application memory. for chunks, to prevent deterministic reuse, keep a small array and swizzle the to be freed chunk with a random previously freed chunk. this last bit only for chunks because keeping arbitrarily large regions of pages around may cause out of memory issues (and pages are, to some extent, returned in random order). all changes enabled by default. thanks to ben for pointing out these issues. ok tech@
* remove calls to abort(3) that can't happen anyway; fromotto2006-10-211-11/+1
| | | | <bret dot lambert at gmail.com>; ok millert@ deraadt@
* architecture sh (landisk) is little endian.drahn2006-10-141-2/+2
|
* __mips64__ handling too.. sighderaadt2006-10-131-4/+5
|
* sparc64 should be in the #ifdefderaadt2006-10-121-2/+2
|
* use __amd64__ instead, until lint is fixedderaadt2006-10-121-2/+2
|
* reorder #if tests because apparently on amd64 cpp proceeds to blow it'sderaadt2006-10-121-3/+4
| | | | own brains out, and then takes lint down with it. To be investigated...
* Initial config for sh, copied from arm.jsg2006-10-111-0/+180
| | | | ok miod@ drahn@
* Teach'em about cpus in spandexmiod2006-10-101-4/+4
|
* from wiz@netbsd:jmc2006-10-041-8/+1
| | | | | | Log Message: Switch from 4-clause to 2-clause BSD license. Ok dillo@, board@.
* openssl security fixes, diff from markus@, ok & "commit it" djm@pvalchev2006-10-0423-3/+166
| | | | http://www.openssl.org/news/secadv_20060928.txt for more
* Make a var volatile, which forces a mem write at the right spot, andotto2006-10-011-2/+7
| | | | | | detctecion of underflow where it would otherwise not happen for FPUs that have a larger register size than sizeof double (i386, m68k). ok deraadt@ weingart@ kettenis@
* add strtod() underflow testotto2006-09-293-2/+29
|
* Part 2 of file descriptor race and deadlock corrections.kurt2006-09-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust design of file descriptor table to eliminate races with both opening and closing of file descriptor entries and eliminates one class of deadlocks. One nice side effect of this change in design should be better performance for applications that open and close many file descriptors due to reduced fd_table_lock contention and fd entry reuse. - Add entry states to manage use of entry and eliminate some closing races. fd entries are not deallocated upon close() now. - Call _thread_fd_table_init with one of five discreet modes to properly initialize an entry and manage the state transition to open. - When closing an entry hold the entry spinlock locked across the state transition and the _thread_sys_close call to close another race. - Introduce a new lock type FD_RDWR_CLOSE that transitions either a closed entry or an open entry into closing state and then waits for a RDWR lock so that the lock queue can unwind normally. All subsequent fd lock attempts for that entry are rejected with EBADF until the fd is fully closed, or reopened by dup2(). Once a thread holds the FD_RDWR_LOCK it is safe to close() it or dup2() on it. - When a thread creates a new fd there is a window of time when another thread could attempt to use the fd before the creating thread has initialized the entry for it. This can result in improper status_flags for the entry, so record the entries init mode, detect when this has happened and correct the status_flags when needed. reviewed by marc@ & brad@, tested by several, okay brad@
* Remove unnecessary /* NOTREACHED */ comments because our lint isray2006-09-252-20/+8
| | | | | | cool and recognizes __dead, and because shorter examples are clearer. OK otto@.
* Use S_IS* macros insted of masking with S_IF* flags. The latter mayotto2006-09-251-2/+2
| | | | | have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber. ok djm@
* Also accept "HTTP/1.1 200" as a success response.ray2006-09-251-2/+3
| | | | OK djm@.
* If fgetln() != NULL, len == 0 is impossible, so remove check.ray2006-09-231-3/+3
| | | | OK otto@ and jaredy@.
* Back out change in rev 1.15 of to allow whitespace to separate amillert2006-09-221-10/+1
| | | | | | | | | flag from its optional argument if permutation is disabled. The idea was that since "r:" would match "-r foo" then "r::" should match "-r foo" too as long as we know that things have not been reshuffled. Unfortunately, this causes incompatibilities with GNU getopt_long when the POSIXLY_CORRECT environment variable is set. OK deraadt@
* fix RSA signature padding vulnerability in OpenSSL libcrypto CVE-2006-4339;djm2006-09-092-0/+34
| | | | ok beck@ miod@
* no point mentioning functions if we have nothing useful to sayjmc2006-08-051-13/+1
| | | | | | about them; ok djm