summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Style cleanup:mini2002-09-211-14/+11
| | | | | | | | | | | - Sort local variable declarations. - Protect a hand-formatted comment from indent(1). - Use portable casts, even though this is machine-dependant code. - Remove extraneous blank lines. - Remove trailing newline. - Use sigdelset(3), not SIGDELSET(9). Requested by: bde
* Delete stray reference to vsnprintf().tjr2002-09-211-3/+2
|
* Add implementations of the wprintf() family of functions, which performtjr2002-09-2110-4/+2434
| | | | formatted wide-character output.
* Initiate deorbit burn sequence for sysctl CTL_USER MIB branch.wollman2002-09-211-105/+351
| | | | | | | | | | | | | Use the correct constants directly from sysconf() rather than calling sysctl() to tell us the (still compiled-in) value. Leave the CTL_POSIX1B stuff alone for now (but I'd like to see this replaced with a single structure returning all of the relevant information). Implement all of the keys from 1003.1-2001 that we can. Ensure that the build will break if someone redefines an option constant to zero without implementing the necessary presence-detection logic here. (4 of 5)
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structwollman2002-09-214-34/+184
| | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch
* Remove unnecessary #include <assert.h>; it was used to bring in thetjr2002-09-2120-20/+0
| | | | _DIAGASSERT macro on NetBSD, but we don't need it.
* Revert previous commit to unbreak world until we figure out thearchie2002-09-205-5/+5
| | | | right way to do it.
* Lock the file once per call and use the unlocked fgetwc()/fputwc() variants.tjr2002-09-202-9/+20
|
* Lock and unlock the file once per call and use the unlocked version oftjr2002-09-201-7/+11
| | | | ungetc() instead of having ungetc() recurse on the lock.
* Introduce unlocked versions of fputwc() and fgetwc() called __fputwc()tjr2002-09-203-18/+44
| | | | and __fgetwc() which can be used when we know the file is locked.
* Add restrict type-qualifier.mike2002-09-202-2/+3
|
* Don't peek into MD structures from MI code. The getcontext(3) andmini2002-09-201-9/+1
| | | | setcontext(3) functions check the validify of the mcontext_t structs.
* Fix a problem with the definition of HUGE_VAL causing the gcc warningarchie2002-09-195-5/+5
| | | | | | "cast increases required alignment of target type" on some platforms. Reviewed by: bde
* Implement the %ls and %lc conversions for printing wide character stringstjr2002-09-192-14/+110
| | | | | | and wide characters. These were already documented in the manual page, with an entry mentioning that they were not implemented yet. The XSI %S and %C synoyms have not been added.
* Add forgotten newlines in debug messages.nectar2002-09-191-2/+2
|
* Return the correct environment name for 64-bit platforms in thewollman2002-09-191-1/+2
| | | | _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS case.
* Welcome the sem_ API to libc!alfred2002-09-193-1/+709
|
* add a stub for pthread_cond_destroy.alfred2002-09-191-0/+7
|
* Optimise the common case where no special encoding is in use (LC_CTYPE is "C"tjr2002-09-182-8/+48
| | | | | | or "POSIX", other European locales). Use __sgetc() and __sputc() where possible to avoid a wasteful lock and unlock for each byte and to avoid function call overhead.
* Logic error in previous: don't exit the loop when an incomplete multibytetjr2002-09-181-1/+1
| | | | sequence is detected.
* Deprecate the rest of the rune interface.tjr2002-09-182-0/+22
|
* Mark mbmb(), mbrune(), and mbrrune() as deprecated functions. We want totjr2002-09-182-0/+19
| | | | | | get applications to move to the ISO C interfaces as well as have the freedom to replace the rune interfaces with ones that support stateful conversions some time in the future.
OpenPOWER on IntegriCloud