summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add mention of the fact that timeouts are silently limited to 24 hours.Colin Percival2004-04-201-0/+5
| | | | | | | Observed by: jmg Notes: svn path=/head/; revision=128499
* Document POSIX stupidity: Attempts to mmap zero bytes will succeed (andColin Percival2004-04-181-0/+7
| | | | | | | have no effect), while attempts to munmap zero bytes will fail. Notes: svn path=/head/; revision=128411
* Bring describtion of a sysctl in line with the source:Christian Brueffer2004-04-161-1/+1
| | | | | | | | | kern.acct_chkfreq is specified in seconds, not minutes. Cluebat provided by: kensmith Notes: svn path=/head/; revision=128336
* Remove unnecessary .Pp macro and bump document dateChristian Brueffer2004-04-161-2/+1
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=128335
* List some sysctl variables that influence accountingChristian Brueffer2004-04-161-0/+16
| | | | | | | | | PR: 65070 Submitted by: Marc Silver <marcs@draenor.org> X-MFC after: re approval Notes: svn path=/head/; revision=128332
* Perform some basic validation of multibyte conversion state objects.Tim J. Robbins2004-04-128-16/+116
| | | | Notes: svn path=/head/; revision=128155
* Remove a nonsensical remark about byte order markers in UTF-8 streams.Tim J. Robbins2004-04-121-6/+1
| | | | Notes: svn path=/head/; revision=128153
* Belatedly remove the getvfsent(3) API. All the consumers have beenMaxime Henrion2004-04-113-342/+2
| | | | | | | | updated to use getvfsbyname(3) or the vfs.conflist sysctl since a long time, except mount_smbfs(8) which has just been fixed. Notes: svn path=/head/; revision=128143
* Document the meaning of the zero return value.Tim J. Robbins2004-04-112-6/+11
| | | | Notes: svn path=/head/; revision=128102
* Fix a typo. I was locked out for two days from my machine.David Xu2004-04-101-1/+1
| | | | Notes: svn path=/head/; revision=128089
* Don't cast away const qualifiers.Tim J. Robbins2004-04-108-8/+8
| | | | | | | Spotted by: bde Notes: svn path=/head/; revision=128081
* Terminate execl()'s argument list with a null pointer instead of aTim J. Robbins2004-04-091-1/+1
| | | | | | | | | | null pointer constant. (The latter may be an integer constant, which is not correct here.) Submitted by: Stefan Farfeleder Notes: svn path=/head/; revision=128050
* Update manual pages for change to C99 mbrtowc() semantics.Tim J. Robbins2004-04-0812-134/+143
| | | | Notes: svn path=/head/; revision=128032
* Allow partial multibyte characters to accumulate in conversion stateTim J. Robbins2004-04-0712-89/+350
| | | | | | | | objects passed to mbrtowc(), mbsrtowcs(), and mbrlen(), as required by C99. Notes: svn path=/head/; revision=128004
* Prepare to handle trivial state-dependent encodings. Full support forTim J. Robbins2004-04-079-21/+61
| | | | | | | | state-dependent encodings with locking shifts will come later if there is demand for it. Notes: svn path=/head/; revision=128002
* Begin conversions for sgetrune() and sputrune() in the initialTim J. Robbins2004-04-071-3/+12
| | | | | | | conversion state. Notes: svn path=/head/; revision=127999
* Prepare to handle state-dependent encodings. This mainly involves notTim J. Robbins2004-04-076-21/+38
| | | | | | | | taking shortcuts when it comes to storing and passing around conversion states. Notes: svn path=/head/; revision=127998
* Begin in the initial shift state in mbstowcs() and wcstombs().Tim J. Robbins2004-04-072-2/+6
| | | | | | | (This change is non-functional since nothing uses states yet.) Notes: svn path=/head/; revision=127986
* Prepare to handle state-dependent encodings. This mainly involves notTim J. Robbins2004-04-0612-71/+87
| | | | | | | | taking shortcuts when it comes to storing and passing around conversion states. Notes: svn path=/head/; revision=127944
* Add a missing "*errp = h_errno" forgotten in rev 1.36.Pierre Beyssac2004-04-061-1/+2
| | | | Notes: svn path=/head/; revision=127933
* Update .Dd value.Doug Rabson2004-04-061-1/+1
| | | | | | | Reminded by: ru Notes: svn path=/head/; revision=127931
* Fix _dns_ghbyname() to return NS_TRYAGAIN instead of NS_NOTFOUNDPierre Beyssac2004-04-051-4/+12
| | | | | | | | | | | | on temporary nameserver failure. This is necessary to get getipnodebyname(3) to correctly return h_errno=TRY_AGAIN instead of HOST_NOT_FOUND. Reviewed by: green, thomas MFC after: 1 week Notes: svn path=/head/; revision=127909
* Document lgetfh(2).Doug Rabson2004-04-052-5/+22
| | | | Notes: svn path=/head/; revision=127892
* Remove support for emulating mbrtowc() and wcrtomb() in terms of theTim J. Robbins2004-04-044-89/+4
| | | | | | | old rune interface now that it is no longer needed. Notes: svn path=/head/; revision=127835
* Reimplement the GB18030 encoding method using the new-style (mbrtowc()/Tim J. Robbins2004-04-041-123/+137
| | | | | | | wcrtomb()) interface. Notes: svn path=/head/; revision=127834
* Reimplement the deprecated UTF2 encoding method using the UTF-8 codeTim J. Robbins2004-04-041-104/+97
| | | | | | | | as a base. mbrtowc() and wcrtomb() are now implemented directly instead of being emulatedi with sgetrune() and sputrune(). Notes: svn path=/head/; revision=127833
* Simplify one condition in prev. commit:Andrey A. Chernov2004-04-011-2/+1
| | | | | | | short_too already assumes FLAG_LONGONLY Notes: svn path=/head/; revision=127734
* Fix parsing of ambiguous options, whole loop must be processedAndrey A. Chernov2004-04-011-17/+27
| | | | Notes: svn path=/head/; revision=127733
* The previous commit changed the behavior of nsdispatch() in theJacques Vidrine2004-04-011-3/+1
| | | | | | | | | | | | | | | | | case where an /etc/nsswitch.conf file was present, but could not be opened (e.g. due to permissions). Previously, the open failure condition was suppressed, and the built-in defaults were used. In revision 1.11, however, propagated the open failure causing all nsdispatch() invocations to return NS_UNAVAIL, and thus many APIs including getpwnam and gethostbyname unconditionally failed. This commit restores the previous behavior. Pointy hat: nectar (+1 for obstinance; ache had to use clue bat) Reported by: ache Notes: svn path=/head/; revision=127727
* Fix Yet Another 16 byte stack alignment bug. Thankfully, this one isPeter Wemm2004-03-312-10/+10
| | | | | | | | | | | | | | solved by a simple 'make world'. The signalcontext function was going to the trouble of generating an even 16 byte alignment, but in fact it needed to be odd aligned to simulate the 8-byte return address having been pushed by the caller. This fixes yet another group of crashes in applications using libpthread. And yet again, it was my fault all along. While here, rename the duplicate internal ctx_wrapper() functions to makectx_wrapper() and sigctx_wrapper() so that traces aren't ambiguous. Notes: svn path=/head/; revision=127658
* When a dynamic NSS module is built and linked against a threadJacques Vidrine2004-03-303-23/+43
| | | | | | | | | | | | | | | | library, it may pull in that thread library at run time. If the process started out single-threaded, this could cause attempts to release locks that do not exist. Guard against this possibility by checking __isthreaded before invoking thread primitives. A similar problem remains if the process is linked against one thread library, but the NSS module is linked against another. This can only be avoided by careful design of the NSS module. Submitted by: Sean McNeil <sean@mcneil.com> (mostly; bugs are mine) Notes: svn path=/head/; revision=127625
* Add cross-references to isideogram(3), isphonogram(3), isrune(3),Tim J. Robbins2004-03-301-1/+6
| | | | | | | isspecial(3) and wctype(3). Notes: svn path=/head/; revision=127613
* Add basic manual pages for isideogram(), isphonogram(), isrune()Tim J. Robbins2004-03-305-1/+235
| | | | | | | and isspecial(). Notes: svn path=/head/; revision=127608
* Trim cross-references.Tim J. Robbins2004-03-301-15/+2
| | | | Notes: svn path=/head/; revision=127607
* Document the isnumber() and ishexnumber() functions, and explain how theyTim J. Robbins2004-03-302-13/+34
| | | | | | | differ (at least in theory) from isdigit() and isxdigit(). Notes: svn path=/head/; revision=127606
* Remove duplicate MLINK.Tim J. Robbins2004-03-291-1/+1
| | | | Notes: svn path=/head/; revision=127590
* Recognize the "rune" character class in wctype().Tim J. Robbins2004-03-272-6/+8
| | | | Notes: svn path=/head/; revision=127477
* Document the existence of NET_RT_IFMALIST.Bruce M Simpson2004-03-251-0/+7
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=127401
* [troff] removed the unnecessary use of \_ escapes.Ruslan Ermilov2004-03-251-96/+96
| | | | Notes: svn path=/head/; revision=127400
* Add locking so that arc4random(3) functions are all reentrant forBrian Feldman2004-03-241-10/+54
| | | | | | | | | pthreads. Submitted by: Christian S.J. Peron <maneo@bsdpro.com> Notes: svn path=/head/; revision=127373
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-03-211-1/+7
| | | | Notes: svn path=/head/; revision=127271
* Mention that funopen() uses fpos_t incorrectly in the BUGS section.Tim J. Robbins2004-03-201-1/+9
| | | | Notes: svn path=/head/; revision=127227
* Improve documentation for fgetpos() and fsetpos(), and discourageTim J. Robbins2004-03-201-13/+21
| | | | | | | users from assuming that fpos_t is an integral type. Notes: svn path=/head/; revision=127225
* Shave-off troff cycles by invoking .Fa only once.Diomidis Spinellis2004-03-191-3/+1
| | | | | | | | Submitted by: ru MFC after: 1 week Notes: svn path=/head/; revision=127203
* Do not redundantly set the stream orientation in getc(), putc(), andTim J. Robbins2004-03-196-6/+12
| | | | | | | related functions - __sgetc() and __sputc() will set it when necessary. Notes: svn path=/head/; revision=127198
* Update list of macros defined in <stdio.h>.Tim J. Robbins2004-03-171-1/+17
| | | | Notes: svn path=/head/; revision=127121
* Re-add description of putc() macro (back out rev. 1.13.)Tim J. Robbins2004-03-171-2/+8
| | | | Notes: svn path=/head/; revision=127120
* Re-add text that says getc() is a macro (back out rev. 1.16.)Tim J. Robbins2004-03-171-1/+2
| | | | Notes: svn path=/head/; revision=127119
* Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(),Tim J. Robbins2004-03-176-34/+12
| | | | | | | | | | ferror(), fileno() and clearerr(), using the value of __isthreaded to decide between the fast inline single-threaded code and the more general function equivalent. This gives most of the performance benefits of the old unsafe macros while preserving thread safety. Notes: svn path=/head/; revision=127100
* Use unions to avoid violating C99 strict aliasing rules.Dag-Erling Smørgrav2004-03-166-43/+50
| | | | Notes: svn path=/head/; revision=127091