summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary inclusion of <rune.h> to make it obvious that this filetjr2002-10-291-1/+0
| | | | does not use the deprecated rune system.
* Scoop out examples illustrating the label text format and refer tochris2002-10-281-51/+5
| | | | | | | maclabel(7) instead. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs
* Cross-reference putc(3).tjr2002-10-281-0/+1
|
* Handle boundary cases more correctly; mblen(s, 0) and mbtowc(NULL, s, 0)tjr2002-10-282-8/+6
| | | | | | | return -1 regardless of what s points to, mbtowc(&w, s, 1) sets w to a null wide character when s points to a null byte. This seems to be closer to what most other implementations do, but the C99 standard contradicts itself for these cases.
* Create a small library function, check_utility_compat(3), to determinewollman2002-10-283-2/+166
| | | | | | | | whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink. Update expr(1) to use this new interface.
* Update limits and configuration parameters for 1003.1/TC1/D6.wollman2002-10-271-1/+23
| | | | | | | | | | | Implement new sysconf keys. Change the implenentation of _SC_ASYNCHRONOUS_IO in preparation for the next set of changes. Move some limits which had been in <sys/syslimits.h> to <limits.h> where they belong. They had only ever been in syslimits.h to provide for the kernel implementation of the CTL_USER MIB branch, which went away with newsysctl years ago. (There is a #error in <sys/syslimits.h> which I will downgrade in the next commit.)
* Do not include <sys/syslimits.h> directly; it is not intended for generalwollman2002-10-273-3/+5
| | | | consumption.
* Style sweep.tjr2002-10-275-40/+32
|
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.ume2002-10-261-1/+7
| | | | MFC after: 5 days
* - scopeid is u_int32_tume2002-10-251-14/+21
| | | | | | | - strtoul pedant. pointed out by deraadt Obtained from: KAME MFC after: 1 week
* - kill strcpyume2002-10-251-67/+56
| | | | | | | | | | | | | | - port range check need to be done before htons. from deraadt - %d/%u audit - correct bad practice in the code - it uses two changing variables to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. - use snprintf, not sprintf - pass correct name into q.name. from lukem@netbsd - sync comment Obtained from: KAME MFC after: 1 week
* Use an internal buffer for the result when the first argument is NULL.tjr2002-10-251-0/+4
|
* The ORIENTLOCK macro is no longer needed since all functions usetjr2002-10-251-7/+0
| | | | FLOCKFILE/FUNLOCKFILE explicitly.
* Restored sigaction's name in its prototype.bde2002-10-241-1/+1
|
* * Modernize aio(4), providing instructions for static and dynamic kernelsheldonh2002-10-247-147/+8
| | | | | | | | | | | | | | linking. * Fix disorder in the SEE ALSO sections of aio_*(2). * Remove unnecessary cross-references from the SEE ALSO sections of aio_*(2); config(8), kldload(8) and kldunload(8) are cross-referenced from aio(4). * Remove the KERNEL OPTIONS sections from aio_*(2), now that these pages cross-reference aio(4), which contains suitable kernel linking reference material.
* Add cross-references to the aio(4) manual page.des2002-10-246-0/+6
| | | | Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Replace wcsstr() with an implementation based on strstr(), which is fartjr2002-10-241-38/+32
| | | | | | more efficient. The problem with the previous implementation was that it calculated the length of the first argument ("big") with wcslen() when it was not necessary.
* Restore Berkeley SCCS id.tjr2002-10-241-1/+5
|
* Remove the Standards section again until we get these functions sortedtjr2002-10-241-8/+0
| | | | out. This will probably have to wait until after 5.0-R.
* Place mac_prepare() with the other mac_prepare*() functions.chris2002-10-241-10/+10
|
* mac_free() no longer accepts a void * parameter; only mac_t's are supposedchris2002-10-241-9/+20
| | | | | | | | to be passed. Point this out in a warning notice, which will eventually go away, sometime between now and -RELEASE. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Remove superfluous empty "FILES" section.chris2002-10-231-1/+0
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Remove hard sentence breaks.chris2002-10-231-11/+19
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Make the first argument of getbsize a size_t* instead of an int*, as this is ↵markm2002-10-232-3/+4
| | | | what the quantity actually is. Fix an easy const while I'm here.
* 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.
OpenPOWER on IntegriCloud