summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Markup nit.ru2004-04-271-1/+1
|
* Rewrite split_lines() to operate safelyache2004-04-251-3/+7
| | | | | PR: 62694 Submitted by: moulin p <moulin.p@calyopea.com>
* Use the correct size to allocate, copy and clear argument type tablestjr2004-04-222-12/+18
| | | | | | | | | | after their change from an array of char to an array of enum. This fixes problems that occurred when using positional arguments in format strings, particularly with more than STATIC_ARG_TBL_SIZE (8) of them. PR: 65841 Submitted by: Steven Smith (mostly)
* Fix a bug that could result in getpw*() incorrectly returning NULL when NISjon2004-04-211-0/+1
| | | | | | | adjunct maps are used. One symtom of this bug is sshd saying: login_get_lastlog: Cannot find account for uid X when logging in. The problem here is caused by an incorrect reuse of the rv variable when previous values are needed later.
* Unbreak world.ru2004-04-211-3/+2
|
* MFdragonfly: resolver fix for timeouts on unqualified hostnamesnjl2004-04-211-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | res_search only incremented got_servfail for h_errno == TRY_AGAIN *AND* hp->rcode == SERVFAIL. However, there are cases such as timeouts where rcode is not always set to SERVFAIL. This leads to inconsistent nameserver operation during multi-domain and truncated dot searches, especially during booting when portions of the network are being brought up simultanious with dns lookups. This patch attempts to correct the problem by unconditionally terminating the search if TRY_AGAIN is returned (after res_query has gone through all retries and name servers) instead of trying other domain elements in the domain seach path. This patch should fix reported problems (which I can reproduce) with some NFS mounts failing during boot. This occured because mount_nfs thought the host name lookup returned a definitive failure using a non-dotted host name when, in fact, it timed out on the first part (host.search.domain.name) and got a definitive host-not-found response on the second part (host.). Generally speaking, search path name server timeouts can exceed 60 seconds per element and most machines which consistently timeout on earlier portions of a search path are effectively non-operational due to the imposed delays. It is more important for DNS lookups to return the proper error code then to be able to recover a valid lookup in later portions of the search path in these situations. Obtained from: DragonFly MFC after: 3 weeks
* Add mention of the fact that timeouts are silently limited to 24 hours.cperciva2004-04-201-0/+5
| | | | Observed by: jmg
* Document POSIX stupidity: Attempts to mmap zero bytes will succeed (andcperciva2004-04-181-0/+7
| | | | have no effect), while attempts to munmap zero bytes will fail.
* Bring describtion of a sysctl in line with the source:brueffer2004-04-161-1/+1
| | | | | | kern.acct_chkfreq is specified in seconds, not minutes. Cluebat provided by: kensmith
* Remove unnecessary .Pp macro and bump document datebrueffer2004-04-161-2/+1
| | | | Submitted by: ru
* List some sysctl variables that influence accountingbrueffer2004-04-161-0/+16
| | | | | | PR: 65070 Submitted by: Marc Silver <marcs@draenor.org> X-MFC after: re approval
* Perform some basic validation of multibyte conversion state objects.tjr2004-04-128-16/+116
|
* Remove a nonsensical remark about byte order markers in UTF-8 streams.tjr2004-04-121-6/+1
|
* Belatedly remove the getvfsent(3) API. All the consumers have beenmux2004-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.
* Document the meaning of the zero return value.tjr2004-04-112-6/+11
|
* Fix a typo. I was locked out for two days from my machine.davidxu2004-04-101-1/+1
|
* Don't cast away const qualifiers.tjr2004-04-108-8/+8
| | | | Spotted by: bde
* Terminate execl()'s argument list with a null pointer instead of atjr2004-04-091-1/+1
| | | | | | | null pointer constant. (The latter may be an integer constant, which is not correct here.) Submitted by: Stefan Farfeleder
* Update manual pages for change to C99 mbrtowc() semantics.tjr2004-04-0812-134/+143
|
* Allow partial multibyte characters to accumulate in conversion statetjr2004-04-0712-89/+350
| | | | | objects passed to mbrtowc(), mbsrtowcs(), and mbrlen(), as required by C99.
* Prepare to handle trivial state-dependent encodings. Full support fortjr2004-04-079-21/+61
| | | | | state-dependent encodings with locking shifts will come later if there is demand for it.
* Begin conversions for sgetrune() and sputrune() in the initialtjr2004-04-071-3/+12
| | | | conversion state.
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-076-21/+38
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Begin in the initial shift state in mbstowcs() and wcstombs().tjr2004-04-072-2/+6
| | | | (This change is non-functional since nothing uses states yet.)
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-0612-71/+87
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Add a missing "*errp = h_errno" forgotten in rev 1.36.pb2004-04-061-1/+2
|
* Update .Dd value.dfr2004-04-061-1/+1
| | | | Reminded by: ru
* Fix _dns_ghbyname() to return NS_TRYAGAIN instead of NS_NOTFOUNDpb2004-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
* Document lgetfh(2).dfr2004-04-052-5/+22
|
* Remove support for emulating mbrtowc() and wcrtomb() in terms of thetjr2004-04-044-89/+4
| | | | old rune interface now that it is no longer needed.
* Reimplement the GB18030 encoding method using the new-style (mbrtowc()/tjr2004-04-041-123/+137
| | | | wcrtomb()) interface.
* Reimplement the deprecated UTF2 encoding method using the UTF-8 codetjr2004-04-041-104/+97
| | | | | as a base. mbrtowc() and wcrtomb() are now implemented directly instead of being emulatedi with sgetrune() and sputrune().
* Simplify one condition in prev. commit:ache2004-04-011-2/+1
| | | | short_too already assumes FLAG_LONGONLY
* Fix parsing of ambiguous options, whole loop must be processedache2004-04-011-17/+27
|
* The previous commit changed the behavior of nsdispatch() in thenectar2004-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
* Fix Yet Another 16 byte stack alignment bug. Thankfully, this one ispeter2004-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.
* When a dynamic NSS module is built and linked against a threadnectar2004-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)
* Add cross-references to isideogram(3), isphonogram(3), isrune(3),tjr2004-03-301-1/+6
| | | | isspecial(3) and wctype(3).
* Add basic manual pages for isideogram(), isphonogram(), isrune()tjr2004-03-305-1/+235
| | | | and isspecial().
* Trim cross-references.tjr2004-03-301-15/+2
|
* Document the isnumber() and ishexnumber() functions, and explain how theytjr2004-03-302-13/+34
| | | | differ (at least in theory) from isdigit() and isxdigit().
* Remove duplicate MLINK.tjr2004-03-291-1/+1
|
* Recognize the "rune" character class in wctype().tjr2004-03-272-6/+8
|
* Document the existence of NET_RT_IFMALIST.bms2004-03-251-0/+7
| | | | Reviewed by: ru
* [troff] removed the unnecessary use of \_ escapes.ru2004-03-251-96/+96
|
* Add locking so that arc4random(3) functions are all reentrant forgreen2004-03-241-10/+54
| | | | | | pthreads. Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
* Document incorrect handling of multibyte characters.tjr2004-03-211-1/+7
|
* Mention that funopen() uses fpos_t incorrectly in the BUGS section.tjr2004-03-201-1/+9
|
* Improve documentation for fgetpos() and fsetpos(), and discouragetjr2004-03-201-13/+21
| | | | users from assuming that fpos_t is an integral type.
* Shave-off troff cycles by invoking .Fa only once.dds2004-03-191-3/+1
| | | | | Submitted by: ru MFC after: 1 week
OpenPOWER on IntegriCloud