summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix the NetBSD RCS id's on these files; somehow they were initiallytjr2002-10-232-2/+2
| | | | committed with the tags unexpanded.
* Reimplement more efficiently, using a single forward scan (like strrchr(3))tjr2002-10-231-22/+12
| | | | | instead of scanning forwards to find the end of the string then scanning backwards to find the character.
* Reimplement, handling the case where c == L'\0' correctly and fixingtjr2002-10-231-21/+7
| | | | some style(9) bugs.
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.ume2002-10-231-51/+77
| | | | | Obtained from: KAME MFC after: 1 week
* Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001.tjr2002-10-231-1/+17
| | | | | Also add a note to the Bugs section pointing out that strerror() and perror() share the same static buffer.
* Translate to English.des2002-10-231-13/+18
|
* Replace this wcsncpy() implementation with one based on strncpy.c to fixtjr2002-10-231-26/+32
| | | | | | | two major bugs: - off-by-one overflow when the length of the source string exceeds or equals the destination buffer size. - old version was not padding the destination buffer with null wide chars
* Explain to users that they may want to kldload aio.alfred2002-10-227-22/+175
| | | | | | Move Xref sections. Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Rename the libc signal trampoline to __sigtramp to match netbsd. Thisjake2002-10-222-4/+4
| | | | should allow gdb to detect when we're executing in a signal trampoline.
* Reflect MAC kernel/user API changes into the libc MAC implementation.rwatson2002-10-227-247/+398
| | | | | | | | | | | | This removes a lot of complexity, since we basically just reserve space on a retrieval of a label, and pass around strings. Two new elements: (1) consumers of the API must now declare what label elements they are interested in retrieving, or (2) rely on the default provided in a new configuration file, mac.conf. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* .Xr mac.3 and posix1e.3 to mac.9. Point at sys/mac.h in posix1e.3.rwatson2002-10-222-3/+5
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Unhook the per-policy parsing/printing MAC modules in libc to preparerwatson2002-10-217-815/+5
| | | | | | | | | to bring in the new MAC label management API. With the new API revision, we have only policy-agnostic code in libc and the base kernel. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* track gratuitous change to sys/i386/include/reg.hsam2002-10-212-4/+4
|
* Cross-reference fmtcheck(3).tjr2002-10-201-0/+1
|
* Give in on the __sF stuff. I have a better fix in mind that is futurepeter2002-10-191-1/+1
| | | | proof, but this should buy me some time for now.
* Indent code example with one tab, not two, for consistency with the rest.tjr2002-10-191-8/+8
|
* C89 does not specifiy strsep(), so our strsep() implementation cannottjr2002-10-191-1/+0
| | | | | | conform to it. Obtained from: OpenBSD
* The ftok() function has not been in libcompat for quite a while.tjr2002-10-191-3/+0
|
* Oops. Also provide a lint-compatible unused argument warning killer.markm2002-10-181-0/+4
|
* ISOfy functions, sort headers and mark unused arguments.markm2002-10-181-13/+6
|
* Correct the headers needed to use dbopen(3) and friends.markm2002-10-181-1/+2
|
* Fix off-by-one error when pushing back a multibyte sequence intjr2002-10-171-2/+6
| | | | wide character class (%l[) and wide string (%ls) conversions.
* Make part of the previous change clearer; check flags for SUPPRESS directlytjr2002-10-171-7/+7
| | | | instead of checking whether we're using a temporary buffer.
* The field width for single-byte string conversions (%c, %s, %[) is thetjr2002-10-171-33/+88
| | | | | | maximum number of bytes that may be stored in the array, not the maximum number of wide characters to read. The wording of the standard unfortunately does not make this clear.
* de-__P()alfred2002-10-161-3/+3
|
* - Remove the lsearch() and lfind() functions and their manpage fromrobert2002-10-163-2/+165
| | | | | | | | | the compatibility library libcompat. - Add new implementations of lsearch() and lfind() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and add them to the makefile. - Add function prototypes for lsearch() and lfind() to the search.h header.
* Count field width correctly for suppressed multibyte fields (%*lc,tjr2002-10-161-60/+84
| | | | %*ls, %*l[).
* Remove unneeded $FreeBSD$ tags.robert2002-10-162-4/+0
|
* - Remove the old insque() and remque() functions and their manualrobert2002-10-164-5/+144
| | | | | | | | | page from the compatibility library. - Add new implementations of insque() and remque() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and connect them to the build. - Add the prototypes of insque() and remque() to the search.h header.
* Set the error bit on the stream if an encoding error occurs. Improvetjr2002-10-166-15/+52
| | | | handling of multibyte sequences representing null wide characters.
* Avoid truncating invalid wide characters that are outside the range oftjr2002-10-161-1/+8
| | | | 'unsigned char'; signal an error instead.
* Add a Bugs section and note that fmtcheck() is out of sync with printf();tjr2002-10-161-1/+7
| | | | it does not recognise any of the conversions or modifiers added in C99.
* Add support for the XSI %C and %S formats, which are the same as %lctjr2002-10-162-0/+24
| | | | and %ls.
* Use kqueue(2) instead of poll(2) to wait for replies and timeoutsiedowse2002-10-151-158/+90
| | | | | | | in the UDP RPC client code. As a side-effect, this fixes some bugs that might prevent the RPC call from ever timing out for example if the server keeps responding with the wrong xid. This could probably be simplified further by using the EVFILT_TIMER filter.
* Add cross-references to the wide character counterparts of these functions.tjr2002-10-154-4/+8
|
* Eliminate superfluous memory access in memcpy(3)/memmove(3).sobomax2002-10-151-13/+8
| | | | | Obtained from: NetBSD MFC after: 1 week
* Remove stray comma at the end of the See Also list.tjr2002-10-151-1/+1
|
* Use a weak reference instead of a macro to make vfscanf an aliastjr2002-10-142-0/+4
| | | | for __vfscanf.
* FA, FB and FC are lead bytes according to recent Microsoft documentation.tjr2002-10-141-1/+1
|
* Style changes. Mainly removing excessive whitespace and parens.tjr2002-10-141-24/+29
|
* Ignore TMPDIR if the application is setugid.kris2002-10-131-1/+2
| | | | MFC after: 2 weeks
* Add restrict type-qualifier.mike2002-10-1218-31/+33
|
* Cosmetic: use LCMONETARY_SIZE_{FULL,MIN} defines like in other placesache2002-10-121-4/+5
|
* Describe the restrictions on seeking on wide character streams, and alsotjr2002-10-121-3/+15
| | | | point out that fseek() clears the ungetwc() buffer.
* Fix a typo causing incorrect formatting for negative values in some localestjr2002-10-121-3/+5
| | | | | | (at least the French ones), a memory leak upon successful termination, a pointer arithmetic error causing heap corruption, and an off-by-one bug causing incorrect amounts of padding at the right of the value.
* Save errno around calls to free(); at least some code paths clobber ittjr2002-10-111-0/+3
| | | | and we are not interested in any errors it may report.
* Document the kind of format string strfmon() expects. Sync the Errorstjr2002-10-111-5/+74
| | | | section with reality.
* Use the new struct lconv members to determine how to format internationaltjr2002-10-111-1/+12
| | | | monetary values.
* Non-negative amounts should not have an extra space in front of themtjr2002-10-111-6/+2
| | | | when the `(' flag is used.
* "Left precision" and "right precision" are not flags, but separate partstjr2002-10-111-13/+15
| | | | of the format string that appear after the field width.
OpenPOWER on IntegriCloud