summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Take advantage of the current libc sizeof(FILE) breakage (__sF[]) andpeter2001-02-121-0/+4
| | | | | | | | | | try a hopefully more robust stdin/stdout/stderr. This costs an indirect pointer fetch, but saves us from changes in 'FILE'. The __stdin stuff is there to not pollute application name space if the application does not use <stdio.h> and also in case something depended on the current behavior where stdin etc was a #define. Reviewed by: eischen, dillon
* o Fix build of libc broken in revision 1.2. offsetof() requires therwatson2001-02-121-0/+2
| | | | | | inclusion of stddef.h. Reviewed by: peter
* libc MT-safety, part 2.deischen2001-02-1122-104/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a lock to FILE. flockfile and friends are now implemented (for the most part) in libc. flockfile_debug is implemented in libc_r; I suppose it's about time to kill it but will do it in a future commit. Fix a potential deadlock in _fwalk in a threaded environment. A file flag (__SIGN) was added to stdio.h that, when set, tells _fwalk to ignore it in its walk. This seemed to be needed in refill.c because each file needs to be locked when flushing. Add a stub for pthread_self in libc. This is needed by flockfile which is allowed by POSIX to be recursive. Make fgetpos() error return value (-1) match man page. Remove recursive calls to locked functions (stdio); I think I've got them all, but I may have missed a couple. A few K&R -> ANSI conversions along with removal of a few instances of "register". $Id$ -> $FreeBSD$ in libc/stdio/rget.c Not objected to: -arch, a few months ago
* Mention PROT_NONE in the list of possible protections.nik2001-02-111-0/+2
| | | | Pointed out by: kris
* Include mmap(2) in the list of memory allocation functions.nik2001-02-111-2/+10
| | | | Reviewed by: hackers
* .Xr to mmap.nik2001-02-111-1/+2
|
* Note that mmap(2) can allocate memory, as well as mapping existing files,nik2001-02-111-1/+1
| | | | | | in the .Nd. Reviewed by: hackers
* Add a man page for the dbm_* functions, and update the Makefile to linknik2001-02-112-1/+211
| | | | | | | | | | it in. Some review from -hackers (some time ago), and I think the best way to get this improved (if it needs improving) or updating, is to bring it in. PR: docs/12557 Submitted by: Tim Singletary <tsingle@triana.gsfc.nasa.gov>
* Don't use hardcoded struct size, use offsetof() instead (make size calculationsphantom2001-02-111-5/+7
| | | | dynamic)
* Don't try to convert grouping strings in case if C or POSIX localephantom2001-02-112-2/+2
| | | | | | was explicitly specified. Submitted by: ache
* make it possible to specify grouping number from range 0..CHAR_MAX,phantom2001-02-101-3/+9
| | | | not only one-digit number
* Use "namespace.h" and "un-namespace.h"phantom2001-02-101-0/+2
| | | | Requested by: deischen
* . Fix semantics of grouping (LC_MONETARY::mon_grouping,phantom2001-02-105-15/+84
| | | | | | LC_NUMERIC::grouping) values. . Always set __XXX_changed flags then loading numeric & monetary locale categories to allow localeconv() to use C locale also.
* mdoc(7) police: polishing.ru2001-02-101-32/+43
|
OpenPOWER on IntegriCloud