summaryrefslogtreecommitdiff
path: root/src/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Document behavior when no conversion could be performed. Adaptedmillert2007-06-292-5/+17
| | | | from FreeBSD. With help from jmc@.
* ``dot'' notationjmc2007-06-121-19/+9
| | | | | | | is more readable than `.' notation zap some silly .Tn whilst here;
* _FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, sokurt2007-06-051-21/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | isolate its usage to libpthread only and replace with generic non-static mutex support in the one place it is needed: - remove _FD_LOCK/UNLOCK from lseek and ftruncate in libc and make the functions weak so that libpthread can override with its own new versions that do the locking. - remove _thread_fd_lock/unlock() weak functions from libc and adjust libpthread for the change. - add generic _thread_mutex_lock/unlock/destroy() weak functions in libc to support non-static mutexes in libc and add libpthread and librthread implementations for them. libc can utilize non-static mutexes via the new _MUTEX_LOCK/UNLOCK/DESTROY() macros. Actually these new macros can support both static and non-static mutexes but currently only using them for non-static. - make opendir/closedir/readdir/readdir_r/seekdir/telldir() thread-safe for both thread libraries by using a non-static mutex in the struct _dirdesc (typedef DIR), utilizing it in the *dir functions and remove remaining and incorrect _FD_LOCK/UNLOCK() use in libc. - add comments to both thread libraries to indicate libc depends on the current implementation of static mutex initialization. suggested by marc@ - major bump libc and libpthread due to function removal, structure change and weak symbol conversions. okay marc@, tedu@
* remove ipx-related stuff. objections nobody. major bump by kurt in a fewhenning2007-06-054-385/+3
|
* convert to new .Dd format;jmc2007-05-31103-206/+206
|
* Typos.ray2007-05-201-3/+3
| | | | OK jmc@.
* Remove no-op code. From tbert.ray2007-05-181-3/+1
| | | | OK moritz@ and jaredy@
* Improve reentrancy by not using global variable. Removes tworay2007-05-171-31/+11
| | | | | | wrappers around fopen/fclose. From tbert. OK millert@, tedu@, and itojun@.
* Wrap some functions, labels, and variables in #ifdefs correspondingray2007-05-162-2/+8
| | | | | | | to #ifdefs where they are used. Found by lint by bret dot lambert at gmail. OK deraadt@.
* Use size_t for strlen results.ray2007-05-121-4/+6
| | | | OK moritz@.
* Clean up macros according to style. From tbert <bret dot lambert at gmail>.ray2007-05-121-27/+27
| | | | OK moritz@ and jaredy@.
* Use syslog_r instead of syslog in getaddrinfo. Slowly makingray2007-05-101-4/+9
| | | | | | getaddrinfo reentrant. OK millert@ and deraadt@.
* macros at start of line require a `.';jmc2007-05-021-2/+2
|
* Document the lack of error return value in arc4random.pyr2007-05-021-1/+4
| | | | Sync the documentation in getpid with arc4random's format.
* Support for optional args separated with whitespace was removedmillert2007-04-101-17/+1
| | | | some time ago--it caused too many problems.
* Get rid of useless #if 0 block, especially since the code is includedray2007-03-191-5/+1
| | | | | | immediately after. OK millert@.
* If NLS is disabled, strerror does not print the correct error string.bluhm2007-03-011-2/+2
| | | | | | No binary change with NLS enabled. ok otto millert espie
* Change hard coded numbers to sizeof(buf). Also change someray2007-02-201-3/+3
| | | | | | | | sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@.
* wording fix from wiz@netbsd, -r1.11;jmc2007-02-191-2/+2
|
* 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 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@
* 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
|
* 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
|
* 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
* 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@
* __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...
* Teach'em about cpus in spandexmiod2006-10-101-4/+4
|