Robert Drehmel
73fbee5795
Correct a spelling mistake.
2002-10-10 14:14:44 +00:00
Tim J. Robbins
ecab372b7e
Add cross-references to wide character versions of these functions.
2002-10-10 04:31:57 +00:00
Tim J. Robbins
ce04c11001
Cross-reference between byte and wide-character stdio functions. Remove
...
references to fputwc() and fgetwc() being macros while I'm at it.
2002-10-10 04:12:40 +00:00
Alfred Perlstein
534ba86baa
de-__P()
2002-10-09 23:22:11 +00:00
Robert Watson
cc7a6f19d0
Add brief mention of the extattr_*_link() system call variants.
...
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2002-10-09 22:26:48 +00:00
Tim J. Robbins
f4da1a754d
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 Wemm
cf9f968444
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 Cobbs
30e25a918b
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 Cobbs
5f384e6a34
Add MLINKS to kse.2.
2002-10-08 17:43:40 +00:00
Tim J. Robbins
d9e5246b17
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
Hajimu UMEMOTO
71918af633
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
Tim J. Robbins
82f520853b
Remove rants/whines about the rune interface being superior to the
...
ISO C interface.
2002-10-06 06:03:23 +00:00
Tim J. Robbins
bc98899df0
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 Barcroft
ddb4fb5b44
Add restrict type-qualifier to sem_getvalue().
2002-10-04 21:32:00 +00:00
Robert Drehmel
45408a8564
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
Tim J. Robbins
fd4f1dd9fa
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
David E. O'Brien
8269e8c887
Add stpcpy(3).
2002-10-03 19:39:20 +00:00
Hajimu UMEMOTO
a52b6b83a2
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
Tim J. Robbins
17f6e5b0e7
Improve three instances of questionable or confusing grammar.
2002-10-03 14:09:06 +00:00
Tim J. Robbins
28ddc4138c
Add an example.
2002-10-03 14:07:26 +00:00
Tim J. Robbins
b06b097805
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
Tim J. Robbins
9981ef2702
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
Tim J. Robbins
73d6e4a5a2
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
Tim J. Robbins
f2a67ef1bd
Add an Examples section with an example of how to use the functions.
2002-10-03 08:49:29 +00:00
Mike Barcroft
553c116dad
Add missing const qualifier in tfind().
2002-10-03 06:33:33 +00:00
Archie Cobbs
ac785a7f5b
Add a man page for the KSE system calls.
...
Reviewed by: julian, ru
2002-10-02 18:01:51 +00:00
Tim J. Robbins
61d7477610
Add an example showing how to use wcstok(). Fix ordering of See Also section.
2002-10-02 14:28:26 +00:00
Robert Drehmel
e31d11c36a
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 Barcroft
4047df8d24
Add restrict type-qualifier.
2002-10-02 07:49:35 +00:00
Maxim Konovalov
9b7c7ff8ce
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
Dima Dorfman
e9e3b98562
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
Dima Dorfman
cb292be1ad
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 Melville
a35a7e761a
Add getopt_long(3).
...
Obtained from: NetBSD
Sponsored by: Apple
2002-09-29 04:14:37 +00:00
Tim J. Robbins
3619568a64
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 Wemm
224af215a6
Zap now-unused SHLIB_MINOR
2002-09-28 00:25:32 +00:00
Tim J. Robbins
27a29543f3
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
Tim J. Robbins
344141d1fd
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
Tim J. Robbins
ce2a18008c
Simplify by removing unneeded local variables and explicit null termination.
2002-09-26 09:28:55 +00:00
Tim J. Robbins
e2361b6f16
Simplify by removing useless local variables and explicit null termination.
2002-09-26 09:23:07 +00:00
Tim J. Robbins
23b6f7902d
Correctly handle the case where __vfwprintf() fails because it runs out
...
of memory.
2002-09-26 08:26:16 +00:00
Tim J. Robbins
3383deca89
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 Barcroft
a6fa9438ba
<sys/types.h> is no longer needed.
2002-09-25 16:49:09 +00:00
Maxim Konovalov
05a7daf5ca
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 Barcroft
89fdc4e117
Use the standardized CHAR_BIT constant instead of NBBY in userland.
2002-09-25 04:06:37 +00:00
Tim J. Robbins
03ab141313
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
Tim J. Robbins
38b5abad06
Add cross-references between wide character and single-byte character
...
versions of printf() and scanf().
2002-09-24 09:22:47 +00:00
Tim J. Robbins
89265cb899
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
Tim J. Robbins
d07090a880
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
Tim J. Robbins
1f4ff8506a
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
Tim J. Robbins
4712aa3b59
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