markm
372be1a3e1
Make the first argument of getbsize a size_t* instead of an int*, as this is what the quantity actually is. Fix an easy const while I'm here.
2002-10-23 14:18:07 +00:00
tjr
f8847ee680
Fix the NetBSD RCS id's on these files; somehow they were initially
...
committed with the tags unexpanded.
2002-10-23 11:08:40 +00:00
tjr
416f05a258
Reimplement more efficiently, using a single forward scan (like strrchr(3))
...
instead of scanning forwards to find the end of the string then scanning
backwards to find the character.
2002-10-23 10:52:04 +00:00
tjr
f0735aa8f5
Reimplement, handling the case where c == L'\0' correctly and fixing
...
some style(9) bugs.
2002-10-23 10:47:47 +00:00
ume
ba20c3c6e3
query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.
...
Obtained from: KAME
MFC after: 1 week
2002-10-23 10:45:09 +00:00
tjr
77d4d24de8
Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001.
...
Also add a note to the Bugs section pointing out that strerror() and
perror() share the same static buffer.
2002-10-23 10:16:21 +00:00
des
98590d4f32
Translate to English.
2002-10-23 08:55:14 +00:00
tjr
648d24ba62
Replace this wcsncpy() implementation with one based on strncpy.c to fix
...
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
2002-10-23 04:35:25 +00:00
alfred
4a01787436
Explain to users that they may want to kldload aio.
...
Move Xref sections.
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2002-10-22 16:12:27 +00:00
jake
675ba849a8
Rename the libc signal trampoline to __sigtramp to match netbsd. This
...
should allow gdb to detect when we're executing in a signal trampoline.
2002-10-22 15:15:39 +00:00
rwatson
9337dcd3d7
Reflect MAC kernel/user API changes into the libc MAC implementation.
...
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
2002-10-22 14:36:11 +00:00
rwatson
f34f8701fa
.Xr mac.3 and posix1e.3 to mac.9. Point at sys/mac.h in posix1e.3.
...
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2002-10-22 01:52:53 +00:00
rwatson
bc3681d122
Unhook the per-policy parsing/printing MAC modules in libc to prepare
...
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
2002-10-21 03:54:24 +00:00
sam
26547b3a00
track gratuitous change to sys/i386/include/reg.h
2002-10-21 03:47:22 +00:00
tjr
a80071534e
Cross-reference fmtcheck(3).
2002-10-20 03:56:37 +00:00
peter
90a2f4ba9a
Give in on the __sF stuff. I have a better fix in mind that is future
...
proof, but this should buy me some time for now.
2002-10-19 22:28:07 +00:00
tjr
6507d2b5f5
Indent code example with one tab, not two, for consistency with the rest.
2002-10-19 13:48:45 +00:00
tjr
058eca1b43
C89 does not specifiy strsep(), so our strsep() implementation cannot
...
conform to it.
Obtained from: OpenBSD
2002-10-19 13:41:22 +00:00
tjr
a8ace8f312
The ftok() function has not been in libcompat for quite a while.
2002-10-19 13:33:12 +00:00
markm
bf5cd60a89
Oops. Also provide a lint-compatible unused argument warning killer.
2002-10-18 16:24:20 +00:00
markm
e01300b36e
ISOfy functions, sort headers and mark unused arguments.
2002-10-18 16:22:13 +00:00
markm
60f5ae88d2
Correct the headers needed to use dbopen(3) and friends.
2002-10-18 16:20:08 +00:00
tjr
4e85c855b3
Fix off-by-one error when pushing back a multibyte sequence in
...
wide character class (%l[) and wide string (%ls) conversions.
2002-10-17 13:04:00 +00:00
tjr
fa470876dd
Make part of the previous change clearer; check flags for SUPPRESS directly
...
instead of checking whether we're using a temporary buffer.
2002-10-17 12:06:29 +00:00
tjr
235c4480d3
The field width for single-byte string conversions (%c, %s, %[) is the
...
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.
2002-10-17 12:02:36 +00:00
alfred
5962200c28
de-__P()
2002-10-16 22:18:42 +00:00
robert
98e716a4fe
- Remove the lsearch() and lfind() functions and their manpage from
...
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.
2002-10-16 14:29:23 +00:00
tjr
0d7bae1697
Count field width correctly for suppressed multibyte fields (%*lc,
...
%*ls, %*l[).
2002-10-16 14:07:08 +00:00
robert
9bd570eece
Remove unneeded $FreeBSD$ tags.
2002-10-16 14:05:29 +00:00
robert
ea03112dbf
- Remove the old insque() and remque() functions and their manual
...
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.
2002-10-16 14:00:46 +00:00
tjr
3a88c84c05
Set the error bit on the stream if an encoding error occurs. Improve
...
handling of multibyte sequences representing null wide characters.
2002-10-16 12:09:43 +00:00
tjr
ccd9275d4e
Avoid truncating invalid wide characters that are outside the range of
...
'unsigned char'; signal an error instead.
2002-10-16 11:37:38 +00:00
tjr
1d227bb4c8
Add a Bugs section and note that fmtcheck() is out of sync with printf();
...
it does not recognise any of the conversions or modifiers added in C99.
2002-10-16 04:03:02 +00:00
tjr
232c5478a8
Add support for the XSI %C and %S formats, which are the same as %lc
...
and %ls.
2002-10-16 03:55:53 +00:00
iedowse
ff07b93884
Use kqueue(2) instead of poll(2) to wait for replies and timeouts
...
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.
2002-10-15 22:28:59 +00:00
tjr
0c4686731a
Add cross-references to the wide character counterparts of these functions.
2002-10-15 10:11:53 +00:00
sobomax
30e3020a42
Eliminate superfluous memory access in memcpy(3)/memmove(3).
...
Obtained from: NetBSD
MFC after: 1 week
2002-10-15 09:50:07 +00:00
tjr
fbb20002c7
Remove stray comma at the end of the See Also list.
2002-10-15 09:49:54 +00:00
tjr
83b297f2f0
Use a weak reference instead of a macro to make vfscanf an alias
...
for __vfscanf.
2002-10-14 11:18:21 +00:00
tjr
bfd4cfc4dc
FA, FB and FC are lead bytes according to recent Microsoft documentation.
2002-10-14 01:50:45 +00:00
tjr
061d1d394f
Style changes. Mainly removing excessive whitespace and parens.
2002-10-14 01:46:18 +00:00
kris
71c7a4a40e
Ignore TMPDIR if the application is setugid.
...
MFC after: 2 weeks
2002-10-13 11:22:16 +00:00
mike
4d6bf1c3fb
Add restrict type-qualifier.
2002-10-12 16:13:41 +00:00
ache
6ee6cab0af
Cosmetic: use LCMONETARY_SIZE_{FULL,MIN} defines like in other places
2002-10-12 11:31:07 +00:00
tjr
aaa87a36c4
Describe the restrictions on seeking on wide character streams, and also
...
point out that fseek() clears the ungetwc() buffer.
2002-10-12 09:22:25 +00:00
tjr
cf318b70e5
Fix a typo causing incorrect formatting for negative values in some locales
...
(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.
2002-10-12 04:38:35 +00:00
tjr
ce2f2cf1be
Save errno around calls to free(); at least some code paths clobber it
...
and we are not interested in any errors it may report.
2002-10-11 23:31:50 +00:00
tjr
0e791b1f7b
Document the kind of format string strfmon() expects. Sync the Errors
...
section with reality.
2002-10-11 23:17:17 +00:00
tjr
91e28cff5e
Use the new struct lconv members to determine how to format international
...
monetary values.
2002-10-11 23:08:03 +00:00
tjr
27cfe623e7
Non-negative amounts should not have an extra space in front of them
...
when the `(' flag is used.
2002-10-11 23:04:59 +00:00