summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* de-__P()alfred2002-10-091-2/+1
|
* Add brief mention of the extattr_*_link() system call variants.rwatson2002-10-091-0/+16
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add support for the 6 new C99 struct lconv members dealing with formattingtjr2002-10-094-4/+76
| | | | | | | | | international monetary values: int_p_cs_precedes, int_n_cs_precedes, int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn, int_n_sign_posn. This should not break existing binaries or LC_MONETARY data files. Reviewed by: ache MFC after: 1 month
* Drop almost 3k from /bin/sync by moving errno to a seperate filepeter2002-10-093-2/+31
| | | | | | to avoid all syscalls pulling in sys_errlst[]. Noted by: bde
* Add note that there is a kernel-imposed limit on the number of threadsarchie2002-10-081-0/+7
| | | | in a KSE group that may be simultaneously blocked in the kernel.
* Add MLINKS to kse.2.archie2002-10-081-0/+2
|
* Add a note to the Compatiblity section suggesting that these functionstjr2002-10-0613-13/+162
| | | | | only be used for byte values. Add cross-references to the wide-char counterparts.
* Put giant locks due to make getaddrinfo(), getnameinfo()ume2002-10-062-1/+41
| | | | | | | | | | and getipnodeby*() thread-safe. Our res_*() is not thread-safe. So, we share lock between getaddrinfo() and getipnodeby*(). Still, we cannot use getaddrinfo() and getipnodeby*() in conjunction with other functions which call res_*(). Requested by: many people
* Remove rants/whines about the rune interface being superior to thetjr2002-10-061-16/+2
| | | | ISO C interface.
* Remove a completely incorrect statement from the Return Values section.tjr2002-10-061-5/+6
| | | | Add cross-references to the restartable mulitybte functions (mbrlen(3) etc.)
* Add restrict type-qualifier to sem_getvalue().mike2002-10-043-3/+3
|
* Correct the regressive part of my last commit to these files:robert2002-10-042-7/+4
| | | | | | | use the .Fn macro instead of the .Fo ... .Fc combination to format function prototypes. Reminded by: bde
* Add a placeholder implementation of wcscoll() and wcsxfrm() which givestjr2002-10-045-4/+454
| | | | | locale-sensitive collation only in single-byte locales, and just does binary comparison for the others with extended character sets.
* Add stpcpy(3).obrien2002-10-034-2/+73
|
* Allocate 64K recieve buffer for DNS responses.ume2002-10-032-26/+50
| | | | | Though res_query.c also defines and refers MAXPACKET, it is not related to ansbuf. So, I didn't touch res_query.c.
* Improve three instances of questionable or confusing grammar.tjr2002-10-031-5/+8
|
* Add an example.tjr2002-10-031-1/+22
|
* Document towlower() and towupper() in separate manual pages instead oftjr2002-10-033-24/+89
| | | | | trying to confusingly document both on the same page. The new manual pages are based on tolower(3) and toupper(3) instead of the old towlower(3).
* Point out that although toupper() and tolower() really accept rune_t'stjr2002-10-032-4/+28
| | | | | and not just unsigned char's, callers should use towupper() and towlower() instead when working with wide characters if portability is a concern.
* towlower() appeared twice in the synopsis; one of the occurrences shouldtjr2002-10-031-3/+3
| | | | | | have been towupper(). Add towupper() to the Name section while I'm at it. Obtained from: NetBSD (junyoung)
* Add an Examples section with an example of how to use the functions.tjr2002-10-033-3/+54
|
* Add missing const qualifier in tfind().mike2002-10-032-2/+2
|
* Add a man page for the KSE system calls.archie2002-10-022-1/+586
| | | | Reviewed by: julian, ru
* Add an example showing how to use wcstok(). Fix ordering of See Also section.tjr2002-10-021-2/+15
|
* Add the 'restrict' type qualifier to the prototypes of `sigaction',robert2002-10-024-4/+9
| | | | | | `sigprocmask', `sigaltstack', and `sigwait' as well as to the prototypes of the apparantly unimplemented functions `sigtimedwait' and `sigwaitinfo'. This complies with IEEE Std 1003.1-2001.
* Add restrict type-qualifier.mike2002-10-024-14/+15
|
* Too strict error checking in rev. 1.22 broke pwd_mkdb(8) in NISmaxim2002-10-021-2/+2
| | | | | | environment. An empty UID and GID are valid there. Spotted by: rwatson
* Remove the "special processes" section. It has rotted, and the ideadd2002-10-021-7/+0
| | | | | | | | ceased to be useful when the number of "special processes" went from 3 to one per device. I considered replacing it with a "kernel threads" section, but this seemed like the wrong place for that. PR: 40969
* Don't claim to return the fileid which we unloaded. The kerneldd2002-10-011-9/+1
| | | | | | | | doesn't do this, and it wouldn't be very useful if it did, since the caller supplies us with that number. PR: 41329 Submitted by: Michael Galassi <nerd@xyz.com>
* Add getopt_long(3).eric2002-09-293-2/+771
| | | | | Obtained from: NetBSD Sponsored by: Apple
* Remove masking macros for getwc(), putwc(), putwchar() and getwchar().tjr2002-09-284-12/+4
| | | | | | Although there was nothing wrong with getwc() and putwc(), getwchar() and putwchar() assumed that <stdio.h> had been included before <wchar.h>, which is not allowed by the standard.
* Zap now-unused SHLIB_MINORpeter2002-09-281-1/+0
|
* Back out previous, free the buffer when __vfprintf() fails and don't bothertjr2002-09-261-19/+13
| | | | trying to shrink the buffer with realloc() before returning it.
* Back out previous and solve the problems a different way: move va_start/tjr2002-09-261-20/+13
| | | | | | | | va_end closer to the __vfprintf() call, free the buffer when __vfprintf() fails and don't bother trying to shrink the buffer with realloc() before returning it. Submitted by: bde
* Simplify by removing unneeded local variables and explicit null termination.tjr2002-09-261-12/+8
|
* Simplify by removing useless local variables and explicit null termination.tjr2002-09-261-9/+5
|
* Correctly handle the case where __vfwprintf() fails because it runs outtjr2002-09-261-1/+7
| | | | of memory.
* Sync with OpenBSD: avoid memory leak when __vfprintf() fails because ittjr2002-09-262-24/+39
| | | | runs out of memory, always call va_end.
* <sys/types.h> is no longer needed.mike2002-09-251-1/+0
|
* Disqualify UID/GID with non-numeric character.maxim2002-09-251-3/+13
| | | | | | PR: bin/41721 Reviewed by: tjr, silence on -audit MFC after: 2 weeks
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-2/+3
|
* Warn when setinvalidrune() is referenced for consistency with the resttjr2002-09-241-0/+1
| | | | | of the rune functions (except sgetrune() and sputrune(), which are really macros).
* Add cross-references between wide character and single-byte charactertjr2002-09-243-2/+6
| | | | versions of printf() and scanf().
* Remove an unneeded call to _sfrefill() that was missed in the conversiontjr2002-09-241-6/+0
| | | | | from vfscanf() to vfwscanf(). It doesn't hurt to have it there, but it's redundant since __fgetwc() will refill the buffer if it needs to.
* Use the new va_copy macro to copy variable argument lists instead oftjr2002-09-242-2/+2
| | | | | | | | assignment. This is needed on powerpc but is also more correct for the other ports. Submitted by: grehan Tested on: alpha, i386, sparc64
* Add implementations of wscanf() and related functions: fwscanf(), swscanf(),tjr2002-09-239-6/+1530
| | | | | vfwscanf(), vswscanf(), vwscanf(). As the name suggests, these are wide- character versions of the scanf() family of functions.
* Implement the %lc, %ls and %[ conversions, which read sequences of widetjr2002-09-232-16/+137
| | | | | characters, non-whitespace wide character strings and wide character strings in a scanset.
* The character argument for __ungetwc() should be wint_t instead of wchar_t.tjr2002-09-231-1/+1
|
* Add the remaining C99 wide character string to integer conversion functions.tjr2002-09-226-16/+550
| | | | | Restrict qualifiers were added to the existing prototypes in <inttypes.h> and the typedef for wchar_t was removed.
* Add an unlocked version of ungetwc(), __ungetwc(), that __vfwscanf()tjr2002-09-222-9/+22
| | | | will need to use.
OpenPOWER on IntegriCloud