summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Set _POSIX2_VERSION=199209 before calling MKkey_defs.sh as workaround ofache2002-09-242-2/+2
| | | | obsolete +POS sort syntax.
* 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.
* Remove a prototype for a function that is no longer called.markm2002-09-201-1/+0
|
* Fix an infinite loop when _fetch_read() can return 0 (if thealfred2002-09-201-1/+5
| | | | | connection is broken), take this into account and return at this point.
* Revert previous commit to unbreak world until we figure out thearchie2002-09-206-10/+7
| | | | 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.
* Expose the new kernel data structures to libdevinfo:imp2002-09-204-6/+41
| | | | | | o Added dd_pnpinfo, dd_location, dd_devflags, dd_flags and dd_state o Copy/initialize these as necessary. o Document the changes to the interface in devinfo.3.
* Fix a problem with the definition of HUGE_VAL causing the gcc warningarchie2002-09-196-7/+10
| | | | | | "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
|
* reconnect libc_rjulian2002-09-191-1/+1
| | | | Hint from: deischen@freebsd.org
* Part of a bandaid to get libc_r on air again.julian2002-09-191-0/+4
| | | | | Submitted by: Dan Eischen (deischen@freebsd.org) Pointy hat for breakage just before going offline: Mini@freebsd.org
* 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
|
* Add a missing file into the CLEANFILES variable.mux2002-09-182-2/+2
| | | | Approved by: peter
* 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.
* Reimplement the functionality of fgetrune(), fputrune(), and fungetrune()tjr2002-09-185-25/+61
| | | | | | here in terms of mbrtowc(), wcrtomb(), and the single-byte I/O functions. The rune I/O functions are about to become deprecated in favour of the ones provided by ISO C90 Amd. 1 and C99.
* Fixed editing error in previous commit (*blush*).bde2002-09-172-2/+2
|
* Fixed unsorting of SRCS.bde2002-09-172-4/+4
|
* Fix vsnprintf(3) memory leak for size == 0.maxim2002-09-171-0/+6
| | | | | | | PR: bin/36175 Obtained from: OpenBSD Reviewed by: silence on -audit MFC after: 5 days
* Add i386 to the list of architectures that libc_r is broken on. Thispeter2002-09-171-1/+1
| | | | | effectively removes pppctl from the build for now. It only compiles on alpha now (now ironic).
* Bandaid to stop failing on non-i386 platforms.peter2002-09-171-0/+5
| | | | Add a big ugly #warning as a reminder.
* Make _fetch_connect() always set the error code.fenner2002-09-172-4/+5
| | | | Tell ftp that _fetch_connect() always sets the error code (http already knew)
* Use a weak symbol for signalcontext().mini2002-09-171-1/+3
|
* Add signalcontext(), which adds a signal frame to a ucontext_t.mini2002-09-171-0/+80
|
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-1711-228/+10
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Fix documentation of clnt_control()'s CL{GET|SET}_{VERS|XID} tofenner2002-09-161-4/+4
| | | | | reflect that they actually require a u_int32_t *, which is not necessarily the same as an unsigned long *.
* Make libpthread KSE aware.mini2002-09-1652-4790/+270
| | | | | Reviewed by: deischen, julian Approved by: -arch
OpenPOWER on IntegriCloud