summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: use .Vt macro.Ruslan Ermilov2001-02-261-6/+2
| | | | Notes: svn path=/head/; revision=73080
* Prepare for mdocNG.Ruslan Ermilov2001-02-261-1/+1
| | | | Notes: svn path=/head/; revision=73077
* Document various changes to kq:Jonathan Lemon2001-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 Notes: svn path=/head/; revision=73060
* Really set the flags for a private mutex (used by libc/libc_r).Daniel Eischen2001-02-263-6/+15
| | | | Notes: svn path=/head/; revision=73057
* Limit threads clock resolution to no less than 1000usec (1000Hz).Daniel Eischen2001-02-266-3/+9
| | | | | | | | PR: 25300 Submitted by: Tom Pavel <pavel@alum.mit.edu> (in part) Notes: svn path=/head/; revision=73056
* Fix my ambiguous message about ECONNABORTED.Jimmy Olgeni2001-02-251-1/+2
| | | | | | | Submitted by: Ian Dowse <iedowse@maths.tcd.ie> Notes: svn path=/head/; revision=73054
* Add ECONNABORTED to the ERRORS section.Jimmy Olgeni2001-02-251-0/+2
| | | | Notes: svn path=/head/; revision=73046
* Update unused __dtoa prototypes to match reality.Tor Egge2001-02-252-3/+3
| | | | Notes: svn path=/head/; revision=73021
* Fix visibility of empty variable -- it should be static.Alexey Zelkin2001-02-241-1/+1
| | | | | | | | Submitted by: bde and Hartmut Brandt <brandt@fokus.gmd.de> (via PR) PR: bin/25308 Notes: svn path=/head/; revision=72976
* Adapt libkvm_getswapinfo() to make use of recently committed vm and swapRobert Watson2001-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 Notes: svn path=/head/; revision=72950
* Correctly handle the race itself, too (don't leave it locked).Brian Feldman2001-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. Notes: svn path=/head/; revision=72947
* Use the right names to call pthread_mutex_{,un}lock so that thingsBrian Feldman2001-02-231-2/+2
| | | | | | | work in both the libc only and libc/libc_r case. Notes: svn path=/head/; revision=72939
* Fix the problems I (and others, undoubtedly) have been having for aBrian Feldman2001-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. Notes: svn path=/head/; revision=72937
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-02-221-2/+2
| | | | Notes: svn path=/head/; revision=72889
* Correct the prototype for pager_output().Daniel C. Sobral2001-02-221-1/+1
| | | | Notes: svn path=/head/; revision=72873
* Correct comment typosKris Kennaway2001-02-201-4/+4
| | | | Notes: svn path=/head/; revision=72757
* Place some hooks (__stdin, __stdout, __stderr) into libc for a futurePeter Wemm2001-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 Notes: svn path=/head/; revision=72732
* cleanup commentariesAlexey Zelkin2001-02-191-10/+14
| | | | Notes: svn path=/head/; revision=72706
* Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). SomeHajimu UMEMOTO2001-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. Notes: svn path=/head/; revision=72693
* Deal properly with "0"Andrey A. Chernov2001-02-191-1/+5
| | | | Notes: svn path=/head/; revision=72686
* Preceed/preceeding are not english words. Use precede or preceding.Jeroen Ruigrok van der Werven2001-02-181-1/+1
| | | | Notes: svn path=/head/; revision=72640
* Silence -Wnon-const-formatKris Kennaway2001-02-181-1/+1
| | | | Notes: svn path=/head/; revision=72621
* Back out snprintf -> sprintf change until I have time to look at it.Kris Kennaway2001-02-181-1/+1
| | | | Notes: svn path=/head/; revision=72619
* CRNCYSTR: determine '.' tooAndrey A. Chernov2001-02-171-9/+15
| | | | Notes: svn path=/head/; revision=72568
* Implement CRNCYSTRAndrey A. Chernov2001-02-171-3/+20
| | | | Notes: svn path=/head/; revision=72561
* Extra needs to be initialized for our usual pool of FILEs. This wasWarner Losh2001-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> Notes: svn path=/head/; revision=72550
* Fix the current libc breakage in current:Warner Losh2001-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. Notes: svn path=/head/; revision=72529
* Don't depend on lcl_mutex being a recursive mutex.Tor Egge2001-02-151-5/+5
| | | | | | | Reviewed by: deischen Notes: svn path=/head/; revision=72524
* Remove freelists managed by Balloc/Bfree.Tor Egge2001-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 Notes: svn path=/head/; revision=72523
* Correct 2nd argument of getnameinfo(3) to socklen_t.Hajimu UMEMOTO2001-02-151-1/+1
| | | | | | | Reviewed by: itojun Notes: svn path=/head/; revision=72510
* List the SA_RESTART flag rather than burying it in another paragraph.Peter Wemm2001-02-141-0/+2
| | | | Notes: svn path=/head/; revision=72496
* Only build the compat libs appropiate for the target machine.David E. O'Brien2001-02-141-0/+8
| | | | Notes: svn path=/head/; revision=72495
* Add include <sys/time.h> because kevent uses struct timespecGuido van Rooij2001-02-141-0/+1
| | | | Notes: svn path=/head/; revision=72475
* Commit a libc fix going by the current state of the version numberingPeter Wemm2001-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!* Notes: svn path=/head/; revision=72472
* Return {YES,NO}STR from localeAndrey A. Chernov2001-02-131-2/+2
| | | | | | | Approved by: phantom Notes: svn path=/head/; revision=72469
* catch up to __part_load_locale() interface changeAlexey Zelkin2001-02-134-19/+14
| | | | Notes: svn path=/head/; revision=72443
* add additional function parameter: bufsize_min. it's possibleAlexey Zelkin2001-02-132-4/+7
| | | | | | | | | to check two sizes per one function invocation now. Suggested by: ache Notes: svn path=/head/; revision=72442
* mdoc(7) cleanup.Ruslan Ermilov2001-02-121-90/+86
| | | | Notes: svn path=/head/; revision=72414
* Sort PROT_* and MAP_* lists, logically and alphabetically respectively.Ruslan Ermilov2001-02-121-44/+68
| | | | | | | | | Suggested by: bde General mdoc(7) cleanup. Notes: svn path=/head/; revision=72409
* Make comparsions more clear (per style(9))Alexey Zelkin2001-02-123-4/+4
| | | | Notes: svn path=/head/; revision=72408
* Assume that "" passed as parameter also means "no grouping"Alexey Zelkin2001-02-121-3/+4
| | | | | | | Make comparsions more clear (per style(9)) Notes: svn path=/head/; revision=72407
* Rewrite __time_load_locale() using ldpart.c::__part_load_locale()Alexey Zelkin2001-02-122-153/+15
| | | | | | | Reviewed by: ache Notes: svn path=/head/; revision=72406
* Use .Rv macro instead of hardcoded messageAlexey Zelkin2001-02-121-6/+1
| | | | Notes: svn path=/head/; revision=72404
* "Cross references in the SEE ALSO section should be sorted by sectionRuslan Ermilov2001-02-121-2/+2
| | | | | | | | number, and then placed in alphabetical order and comma separated.", mdoc.samples(7) said. Notes: svn path=/head/; revision=72401
* mmap(3) -> mmap(2).Ruslan Ermilov2001-02-121-2/+2
| | | | Notes: svn path=/head/; revision=72400
* It sounded like a good idea at the time. The previous change breaksPeter Wemm2001-02-121-4/+0
| | | | | | | | FILE *buffer = stdout; so back it out for now. Notes: svn path=/head/; revision=72394
* Take advantage of the current libc sizeof(FILE) breakage (__sF[]) andPeter Wemm2001-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 Notes: svn path=/head/; revision=72391
* o Fix build of libc broken in revision 1.2. offsetof() requires theRobert Watson2001-02-121-0/+2
| | | | | | | | | inclusion of stddef.h. Reviewed by: peter Notes: svn path=/head/; revision=72390
* Catch up to new priority interface.Jake Burkholder2001-02-121-4/+1
| | | | Notes: svn path=/head/; revision=72377
* Remove (int) file descriptor locking. It should be up to theDaniel Eischen2001-02-1111-512/+59
| | | | | | | | | | | | | | | | application to provide locking for I/O operations. This doesn't break any of my tests, but the old behavior can be restored by compiling with _FDLOCKS_ENABLED. This will eventually be removed when it is obvious it does not cause any problems. Remove most of flockfile implementation, with the exception of flockfile_debug. Make error messages more informational (submitted by Mike Heffner <spock@techfour.net>, who's now known as mikeh@FreeBSD.org). Notes: svn path=/head/; revision=72374