tjr
c112e4d2cb
Add support for the 6 new C99 struct lconv members dealing with formatting
...
international monetary values: int_p_cs_precedes, int_n_cs_precedes,
int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn, int_n_sign_posn.
This should not break existing binaries or LC_MONETARY data files.
Reviewed by: ache
MFC after: 1 month
2002-10-09 09:19:28 +00:00
peter
08cbf20fd9
Drop almost 3k from /bin/sync by moving errno to a seperate file
...
to avoid all syscalls pulling in sys_errlst[].
Noted by: bde
2002-10-09 08:04:24 +00:00
archie
bdbdd1a6d4
Add note that there is a kernel-imposed limit on the number of threads
...
in a KSE group that may be simultaneously blocked in the kernel.
2002-10-08 22:42:42 +00:00
archie
503c2bfc5f
Add MLINKS to kse.2.
2002-10-08 17:43:40 +00:00
tjr
b5f0d0d8f2
Add a note to the Compatiblity section suggesting that these functions
...
only be used for byte values. Add cross-references to the wide-char
counterparts.
2002-10-06 10:15:38 +00:00
ume
7e81d9c889
Put giant locks due to make getaddrinfo(), getnameinfo()
...
and getipnodeby*() thread-safe.
Our res_*() is not thread-safe. So, we share lock between
getaddrinfo() and getipnodeby*(). Still, we cannot use
getaddrinfo() and getipnodeby*() in conjunction with other
functions which call res_*().
Requested by: many people
2002-10-06 08:43:35 +00:00
tjr
9e7f867aa7
Remove rants/whines about the rune interface being superior to the
...
ISO C interface.
2002-10-06 06:03:23 +00:00
tjr
b3e1209c7a
Remove a completely incorrect statement from the Return Values section.
...
Add cross-references to the restartable mulitybte functions (mbrlen(3) etc.)
2002-10-06 05:58:24 +00:00
mike
cf479e3516
Add restrict type-qualifier to sem_getvalue().
2002-10-04 21:32:00 +00:00
robert
947e91552f
Correct the regressive part of my last commit to these files:
...
use the .Fn macro instead of the .Fo ... .Fc combination to
format function prototypes.
Reminded by: bde
2002-10-04 11:31:00 +00:00
tjr
f213f77cc2
Add a placeholder implementation of wcscoll() and wcsxfrm() which gives
...
locale-sensitive collation only in single-byte locales, and just does
binary comparison for the others with extended character sets.
2002-10-04 03:18:26 +00:00
obrien
ae09b5969d
Add stpcpy(3).
2002-10-03 19:39:20 +00:00
ume
6448ec6d62
Allocate 64K recieve buffer for DNS responses.
...
Though res_query.c also defines and refers MAXPACKET, it is not
related to ansbuf. So, I didn't touch res_query.c.
2002-10-03 17:25:33 +00:00
tjr
064f96637b
Improve three instances of questionable or confusing grammar.
2002-10-03 14:09:06 +00:00
tjr
89d813cf15
Add an example.
2002-10-03 14:07:26 +00:00
tjr
e3f15214bf
Document towlower() and towupper() in separate manual pages instead of
...
trying to confusingly document both on the same page. The new manual pages
are based on tolower(3) and toupper(3) instead of the old towlower(3).
2002-10-03 11:23:06 +00:00
tjr
b9c5c09473
Point out that although toupper() and tolower() really accept rune_t's
...
and not just unsigned char's, callers should use towupper() and towlower()
instead when working with wide characters if portability is a concern.
2002-10-03 11:14:00 +00:00
tjr
915a8cf342
towlower() appeared twice in the synopsis; one of the occurrences should
...
have been towupper(). Add towupper() to the Name section while I'm at it.
Obtained from: NetBSD (junyoung)
2002-10-03 10:40:01 +00:00
tjr
f18ee8bb40
Add an Examples section with an example of how to use the functions.
2002-10-03 08:49:29 +00:00
mike
00edc47a87
Add missing const qualifier in tfind().
2002-10-03 06:33:33 +00:00
archie
f43114e2a8
Add a man page for the KSE system calls.
...
Reviewed by: julian, ru
2002-10-02 18:01:51 +00:00
tjr
b4a2b3a815
Add an example showing how to use wcstok(). Fix ordering of See Also section.
2002-10-02 14:28:26 +00:00
robert
4ab3b5c0e7
Add the 'restrict' type qualifier to the prototypes of `sigaction',
...
`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.
2002-10-02 10:53:44 +00:00
mike
384c8f8fcd
Add restrict type-qualifier.
2002-10-02 07:49:35 +00:00
maxim
28c70d648d
Too strict error checking in rev. 1.22 broke pwd_mkdb(8) in NIS
...
environment. An empty UID and GID are valid there.
Spotted by: rwatson
2002-10-02 07:02:46 +00:00
dd
187a6964e6
Remove the "special processes" section. It has rotted, and the idea
...
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
2002-10-02 00:09:24 +00:00
dd
552aeba29f
Don't claim to return the fileid which we unloaded. The kernel
...
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>
2002-10-01 23:53:51 +00:00
eric
21a7c522c7
Add getopt_long(3).
...
Obtained from: NetBSD
Sponsored by: Apple
2002-09-29 04:14:37 +00:00
tjr
79f7c6df9a
Remove masking macros for getwc(), putwc(), putwchar() and getwchar().
...
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.
2002-09-28 07:43:44 +00:00
peter
0a7f0ba37e
Zap now-unused SHLIB_MINOR
2002-09-28 00:25:32 +00:00
tjr
18a73315b6
Back out previous, free the buffer when __vfprintf() fails and don't bother
...
trying to shrink the buffer with realloc() before returning it.
2002-09-26 13:11:24 +00:00
tjr
7733fef36f
Back out previous and solve the problems a different way: move va_start/
...
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
2002-09-26 13:09:48 +00:00
tjr
9228738b8c
Simplify by removing unneeded local variables and explicit null termination.
2002-09-26 09:28:55 +00:00
tjr
e0a783a538
Simplify by removing useless local variables and explicit null termination.
2002-09-26 09:23:07 +00:00
tjr
e9dc192372
Correctly handle the case where __vfwprintf() fails because it runs out
...
of memory.
2002-09-26 08:26:16 +00:00
tjr
aecdb4ddca
Sync with OpenBSD: avoid memory leak when __vfprintf() fails because it
...
runs out of memory, always call va_end.
2002-09-26 07:55:18 +00:00
mike
3df40ef438
<sys/types.h> is no longer needed.
2002-09-25 16:49:09 +00:00
maxim
f58719dbdb
Disqualify UID/GID with non-numeric character.
...
PR: bin/41721
Reviewed by: tjr, silence on -audit
MFC after: 2 weeks
2002-09-25 08:49:19 +00:00
mike
86a758e51b
Use the standardized CHAR_BIT constant instead of NBBY in userland.
2002-09-25 04:06:37 +00:00
tjr
2f81b61678
Warn when setinvalidrune() is referenced for consistency with the rest
...
of the rune functions (except sgetrune() and sputrune(), which are really
macros).
2002-09-24 09:25:37 +00:00
tjr
6e674f682e
Add cross-references between wide character and single-byte character
...
versions of printf() and scanf().
2002-09-24 09:22:47 +00:00
tjr
92cc4a5bcb
Remove an unneeded call to _sfrefill() that was missed in the conversion
...
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.
2002-09-24 09:18:32 +00:00
tjr
530831782a
Use the new va_copy macro to copy variable argument lists instead of
...
assignment. This is needed on powerpc but is also more correct for the
other ports.
Submitted by: grehan
Tested on: alpha, i386, sparc64
2002-09-24 00:47:27 +00:00
tjr
516923dd04
Add implementations of wscanf() and related functions: fwscanf(), swscanf(),
...
vfwscanf(), vswscanf(), vwscanf(). As the name suggests, these are wide-
character versions of the scanf() family of functions.
2002-09-23 12:40:06 +00:00
tjr
456a491da7
Implement the %lc, %ls and %[ conversions, which read sequences of wide
...
characters, non-whitespace wide character strings and wide character
strings in a scanset.
2002-09-23 11:35:50 +00:00
tjr
043dfd402f
The character argument for __ungetwc() should be wint_t instead of wchar_t.
2002-09-23 11:31:18 +00:00
tjr
491569a0a7
Add the remaining C99 wide character string to integer conversion functions.
...
Restrict qualifiers were added to the existing prototypes in <inttypes.h>
and the typedef for wchar_t was removed.
2002-09-22 08:06:45 +00:00
tjr
66942d1619
Add an unlocked version of ungetwc(), __ungetwc(), that __vfwscanf()
...
will need to use.
2002-09-22 05:59:00 +00:00
mini
482de2f109
Style cleanup:
...
- 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
2002-09-21 23:54:32 +00:00
tjr
492a050fa2
Delete stray reference to vsnprintf().
2002-09-21 14:25:58 +00:00