summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: fix the .Nd line broken in previous revision.ru2001-02-281-2/+3
| | | | | | Noticed by: bde Use .Bx for ``BSD''.
* Use formula with better random distribution for rand()ache2001-02-271-0/+26
| | | | | | Even better formula from random() could not be intetgrated because rand_r() supposed to store its state in the single variable (but table needed for random() algorithm integration).
* I accidently deleted an include when I added the $FreeBSD$ so I couldobrien2001-02-272-0/+4
| | | | check in my changes.
* In soshutdown(), use SHUT_{RD,WR,RDWR} instead of FREAD and FWRITE.ru2001-02-271-23/+30
| | | | Also, return EINVAL if `how' is invalid, as required by POSIX spec.
* Impliment the ISO-C99 strto[u]ll()obrien2001-02-277-175/+111
| | | | and rewrite strto[u]q() in terms of it.
* Use ``.St -p1003.[12]''.ru2001-02-262-6/+18
|
* Use ``.St -p1003.1g''.ru2001-02-262-2/+4
|
* Use ``.St -p1003.1-96''.ru2001-02-266-18/+12
|
* /^\.St/ s/-iso9945-1/-p1003.1-96/ru2001-02-263-5/+5
|
* ``.St -p1003.1b'' -> ``.St -p1003.1b-93''.ru2001-02-262-2/+2
|
* .St -ansiC -> .St -isoCru2001-02-2683-87/+87
|
* Document the EINTR error.jasone2001-02-261-0/+2
|
* mdoc(7) police: use .Vt macro.ru2001-02-261-6/+2
|
* Prepare for mdocNG.ru2001-02-261-1/+1
|
* Document various changes to kq:jlemon2001-02-261-10/+44
| | | | | | | - new EV_SET macro, - NOTE_LOWAT option for low water marks on read/write filters, - NOTE_REVOKE for filesystem unmounting (and revoke() calls) - improved API for EVFILT_AIO
* Fix my ambiguous message about ECONNABORTED.olgeni2001-02-251-1/+2
| | | | Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* Add ECONNABORTED to the ERRORS section.olgeni2001-02-251-0/+2
|
* Update unused __dtoa prototypes to match reality.tegge2001-02-252-3/+3
|
* Fix visibility of empty variable -- it should be static.phantom2001-02-241-1/+1
| | | | | Submitted by: bde and Hartmut Brandt <brandt@fokus.gmd.de> (via PR) PR: bin/25308
* Correctly handle the race itself, too (don't leave it locked).green2001-02-231-0/+1
| | | | | | This is about to be replaced anyway by initialization explicitly instead of lazily, and reducing the complexity of it. As it is now, this will work fine, however.
* Use the right names to call pthread_mutex_{,un}lock so that thingsgreen2001-02-231-2/+2
| | | | work in both the libc only and libc/libc_r case.
* Fix the problems I (and others, undoubtedly) have been having for agreen2001-02-231-3/+12
| | | | | | | | | | | | | | | | | | | | | | while with threaded software in -CURRENT acting very "weird". It has seemed, for example, in Mozilla that threads attempting to do host lookups have been locking up. That's exactly the case. There was a race condition in the implementation of the initialization of the mutex used to protect FILE operations, first of all: multiple instances of FLOCKFILE() in libc could occur on the same FILE at the same time and cause strange behavior by overwriting eachothers' creation of the mutex and the rest of the file lock. Secondly, it's not appropriate to test the "validity" of the file descriptor referenced by the FILE; if the code is calling FLOCKFILE() or FUNLOCKFILE(), it wants the FILE to be locked or unlocked, not to be locked or unlocked on the condition that _file is >= 0. This also could quite easily cause leaks by failing to perform the lock or unlock operation when it actually is needed. Mozilla now works again on -CURRENT when linked to libc_r.so.5 and libc.so.5.
* Place some hooks (__stdin, __stdout, __stderr) into libc for a futurepeter2001-02-201-0/+23
| | | | | | | | | | | ABI change. There is some serious evilness here to work around some gcc weaknesses. We need to know the sizeof(FILE) manually until __sF goes away in the next major bump. We have the size for Alpha and i386, missing is ia64, ppc and sparc* (and i386 with 64 bit longs). At some point down the track we can change the stdin etc #defines to stop hard coding the size of FILE into application binaries. Lots of head scratching and ideas and testing by: green, imp
* cleanup commentariesphantom2001-02-191-10/+14
|
* Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Someume2001-02-191-5/+0
| | | | | | applications specify AI_ADDRCONFIG and fail to run under FreeBSD. Latest mews is known. Now, getaddrinfo(3) behaves according to AI_ADDRCONFIG.
* Deal properly with "0"ache2001-02-191-1/+5
|
* Preceed/preceeding are not english words. Use precede or preceding.asmodai2001-02-181-1/+1
|
* Back out snprintf -> sprintf change until I have time to look at it.kris2001-02-181-1/+1
|
* CRNCYSTR: determine '.' tooache2001-02-171-9/+15
|
* Implement CRNCYSTRache2001-02-171-3/+20
|
* Extra needs to be initialized for our usual pool of FILEs. This wasimp2001-02-161-3/+14
| | | | | | | | causing some versions of as to dump core. This survived make buildworld/installworld and the building gettext port afterwards. Submitted by: <nnd@mail.nsk.ru> "N.Dudorov" Reviewed by: "Daniel M. Eischen" <eischen@vigrid.com>
* Fix the current libc breakage in current:imp2001-02-166-18/+39
| | | | | | | | | | | | | o Back out the __std* stuff. Can't figure out how to do this right now, so we'll save it for late. o use _up as a pointer for extra fields that we need to access. o back out the libc major version bump. Submitted by: green reviewed by: peter, imp, green, obrien (to varying degrees). We'll fix the "how do we stop encoding sizeof(FILE) in binaries" part later.
* Don't depend on lcl_mutex being a recursive mutex.tegge2001-02-151-5/+5
| | | | Reviewed by: deischen
* Remove freelists managed by Balloc/Bfree.tegge2001-02-153-69/+41
| | | | | | | | Change __dtoa to not free the string it allocated the previous time it was called. The caller now frees the string after usage if appropiate. PR: 15070 Reviewed by: deischen
* Correct 2nd argument of getnameinfo(3) to socklen_t.ume2001-02-151-1/+1
| | | | Reviewed by: itojun
* List the SA_RESTART flag rather than burying it in another paragraph.peter2001-02-141-0/+2
|
* Add include <sys/time.h> because kevent uses struct timespecguido2001-02-141-0/+1
|
* Commit a libc fix going by the current state of the version numberingpeter2001-02-142-10/+11
| | | | | | | | | | | | | | | | bikeshed in -arch. It isn't quite over, but it has been well established that this can be adjusted or refined. But we do seem to have consensis on a major bump of some sort. After this, it should reasonably safe to build world again. This change is to get rid of __sF[] and use seperate __stdin/out/err handles. This means we can pad on extra bits onto the end of FILE at will without going through this all over again. __sF[] was evil because it compiled the sizeof(FILE) into every stdio using program. Asbestos suit on: check! Peril sensitive sunglasses on: check! *gulp!*
* Return {YES,NO}STR from localeache2001-02-131-2/+2
| | | | Approved by: phantom
* catch up to __part_load_locale() interface changephantom2001-02-134-19/+14
|
* add additional function parameter: bufsize_min. it's possiblephantom2001-02-132-4/+7
| | | | | | to check two sizes per one function invocation now. Suggested by: ache
* mdoc(7) cleanup.ru2001-02-121-90/+86
|
* Sort PROT_* and MAP_* lists, logically and alphabetically respectively.ru2001-02-121-44/+68
| | | | | | Suggested by: bde General mdoc(7) cleanup.
* Make comparsions more clear (per style(9))phantom2001-02-123-4/+4
|
* Assume that "" passed as parameter also means "no grouping"phantom2001-02-121-3/+4
| | | | Make comparsions more clear (per style(9))
* Rewrite __time_load_locale() using ldpart.c::__part_load_locale()phantom2001-02-122-153/+15
| | | | Reviewed by: ache
* Use .Rv macro instead of hardcoded messagephantom2001-02-121-6/+1
|
* "Cross references in the SEE ALSO section should be sorted by sectionru2001-02-121-2/+2
| | | | | number, and then placed in alphabetical order and comma separated.", mdoc.samples(7) said.
* mmap(3) -> mmap(2).ru2001-02-121-2/+2
|
* It sounded like a good idea at the time. The previous change breakspeter2001-02-121-4/+0
| | | | | FILE *buffer = stdout; so back it out for now.
OpenPOWER on IntegriCloud