summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Removed duplicate $FreeBSD$.ru2001-03-021-2/+0
|
* Fix setlocale() to conform to the ISO C and POSIX standards.ru2001-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The below text is quoted from the latest POSIX draft: : The values of locale categories shall be determined by a precedence : order; the first condition met below determines the value: : : 1. If the LC_ALL environment variable is defined and is not null, : the value of LC_ALL shall be used. : 2. If the LC_* environment variable (LC_COLLATE, LC_CTYPE, LC_MESSAGES, : LC_MONETARY, LC_NUMERIC, LC_TIME) is defined and is not null, the : value of the environment variable shall be used to initialize the : category that corresponds to the environment variable. : 3. If the LANG environment variable is defined and is not null, the : value of the LANG environment variable shall be used. : 4. If the LANG environment variable is not set or is set to the empty : string, the implementation-defined default locale shall be used. The conditions 1 and 2 were interchanged, i.e., LC_* were looked first, then LC_ALL, then LANG (note that LC_ALL and LANG were essentially the same, providing the default, with LC_ALL taking precedence over LANG). Now, LC_ALL and LANG serve the different purposes. LC_ALL overrides any LC_*, and LANG provides the default fallback. Testcase: /usr/bin/env LC_ALL=C LC_TIME=de_DE.ISO_8859-1 /bin/date Should return date in the "C" locale format. Inspired by: date(1) reference page in the Draft
* mdoc(7) police: fix markup.ru2001-03-024-14/+18
|
* Hide the definition of struct __sFILEX and add the neededdeischen2001-03-012-81/+33
| | | | | | | lock definitions to it. flockfile state is now allocated along with the rest of FILE. This eliminates the need for a separate allocation of flockfile state as well as eliminating the mutex/lock used to serialize its allocation.
* s/fstat/_fstat/deischen2001-03-011-1/+1
| | | | Approved by: phantom
* Merge in strtoul.3 rev 1.11 mdoc(7) police changes:obrien2001-02-281-2/+3
| | | | | .Nd line broken in rev 1.10 use .Bx for ``BSD''
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.ru2001-02-281-1/+1
|
* Use the new EV_SET macro to insure that all fields in struct keventjlemon2001-02-281-5/+3
| | | | | | | are correctly initialized before use. This should fix the problem with DNS. Pointy hat to: me
* mdoc(7) police: prepare for mdocNG.ru2001-02-281-1/+1
|
* mdoc(7) police: fix the .Nd line broken in previous revision.ru2001-02-281-2/+3
| | | | | | Noticed by: bde Use .Bx for ``BSD''.
* Remove the `r' devices.obrien2001-02-271-5/+2
|
* 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-2670-210/+140
|
* /^\.St/ s/-iso9945-1/-p1003.1-96/ru2001-02-2615-17/+17
|
* ``.St -p1003.1b'' -> ``.St -p1003.1b-93''.ru2001-02-262-2/+2
|
* .St -ansiC -> .St -isoCru2001-02-26113-117/+117
|
* 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
* Really set the flags for a private mutex (used by libc/libc_r).deischen2001-02-263-6/+15
|
* Limit threads clock resolution to no less than 1000usec (1000Hz).deischen2001-02-266-3/+9
| | | | | PR: 25300 Submitted by: Tom Pavel <pavel@alum.mit.edu> (in part)
* 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
* Adapt libkvm_getswapinfo() to make use of recently committed vm and swaprwatson2001-02-231-60/+254
| | | | | | | | | | | | | | | | sysctls exporting swap information. When running on a live kernel, the sysctl's will now be used instead of kvm_read, allowing consumers of this interface to run without privilege (setgid kmem). Retain the ability to run on coredumps, or on a kernel using kmem if explicitly pointed at one. A side effect of this change is that kvm_getswapinfo() is faster now in the general case. If the SWIF_DUMP_TREE flag is given (pstat -ss does this), the radix tree walker, which still uses kvm_read in any case, is invoked, and therefore does require privilege. Submitted by: Thomas Moestl <tmoestl@gmx.net> Reviewed by: freebsd-audit
* 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.
* Prepare for mdoc(7)NG.ru2001-02-221-2/+2
|
* Correct the prototype for pager_output().dcs2001-02-221-1/+1
|
* Correct comment typoskris2001-02-201-4/+4
|
* 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
|
* Silence -Wnon-const-formatkris2001-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
OpenPOWER on IntegriCloud