Tim J. Robbins
ca2dae426e
Allow partial multibyte characters to accumulate in conversion state
...
objects passed to mbrtowc(), mbsrtowcs(), and mbrlen(), as required
by C99.
2004-04-07 10:48:19 +00:00
Tim J. Robbins
93996f6d58
Prepare to handle trivial state-dependent encodings. Full support for
...
state-dependent encodings with locking shifts will come later if there
is demand for it.
2004-04-07 09:55:05 +00:00
Tim J. Robbins
e97e856274
Begin conversions for sgetrune() and sputrune() in the initial
...
conversion state.
2004-04-07 09:49:10 +00:00
Tim J. Robbins
dc763237da
Prepare to handle state-dependent encodings. This mainly involves not
...
taking shortcuts when it comes to storing and passing around conversion
states.
2004-04-07 09:47:56 +00:00
Tim J. Robbins
ed870c6a8e
Begin in the initial shift state in mbstowcs() and wcstombs().
...
(This change is non-functional since nothing uses states yet.)
2004-04-07 08:33:23 +00:00
Tim J. Robbins
74f90def09
Prepare to handle state-dependent encodings. This mainly involves not
...
taking shortcuts when it comes to storing and passing around conversion
states.
2004-04-06 13:14:03 +00:00
Pierre Beyssac
54846c9ff0
Add a missing "*errp = h_errno" forgotten in rev 1.36.
2004-04-06 09:31:22 +00:00
Doug Rabson
0128d11082
Update .Dd value.
...
Reminded by: ru
2004-04-06 09:06:45 +00:00
Pierre Beyssac
e651d83aa3
Fix _dns_ghbyname() to return NS_TRYAGAIN instead of NS_NOTFOUND
...
on temporary nameserver failure. This is necessary to get
getipnodebyname(3) to correctly return h_errno=TRY_AGAIN instead
of HOST_NOT_FOUND.
Reviewed by: green, thomas
MFC after: 1 week
2004-04-05 20:18:48 +00:00
Doug Rabson
8aca967c58
Document lgetfh(2).
2004-04-05 10:17:56 +00:00
Tim J. Robbins
4fb9e805dc
Remove support for emulating mbrtowc() and wcrtomb() in terms of the
...
old rune interface now that it is no longer needed.
2004-04-04 11:31:29 +00:00
Tim J. Robbins
4f6d4aa30d
Reimplement the GB18030 encoding method using the new-style (mbrtowc()/
...
wcrtomb()) interface.
2004-04-04 11:00:42 +00:00
Tim J. Robbins
54c61797df
Reimplement the deprecated UTF2 encoding method using the UTF-8 code
...
as a base. mbrtowc() and wcrtomb() are now implemented directly
instead of being emulatedi with sgetrune() and sputrune().
2004-04-04 10:49:45 +00:00
Andrey A. Chernov
f853699a55
Simplify one condition in prev. commit:
...
short_too already assumes FLAG_LONGONLY
2004-04-01 22:32:28 +00:00
Andrey A. Chernov
ed4fbbd5e3
Fix parsing of ambiguous options, whole loop must be processed
2004-04-01 22:09:07 +00:00
Jacques Vidrine
8074e24dce
The previous commit changed the behavior of nsdispatch() in the
...
case where an /etc/nsswitch.conf file was present, but could not
be opened (e.g. due to permissions). Previously, the open failure
condition was suppressed, and the built-in defaults were used. In
revision 1.11, however, propagated the open failure causing all
nsdispatch() invocations to return NS_UNAVAIL, and thus many APIs
including getpwnam and gethostbyname unconditionally failed.
This commit restores the previous behavior.
Pointy hat: nectar (+1 for obstinance; ache had to use clue bat)
Reported by: ache
2004-04-01 19:12:45 +00:00
Peter Wemm
3726033348
Fix Yet Another 16 byte stack alignment bug. Thankfully, this one is
...
solved by a simple 'make world'. The signalcontext function was going
to the trouble of generating an even 16 byte alignment, but in fact it
needed to be odd aligned to simulate the 8-byte return address having
been pushed by the caller. This fixes yet another group of crashes in
applications using libpthread. And yet again, it was my fault all along.
While here, rename the duplicate internal ctx_wrapper() functions to
makectx_wrapper() and sigctx_wrapper() so that traces aren't ambiguous.
2004-03-31 07:27:31 +00:00
Jacques Vidrine
a03fd3b656
When a dynamic NSS module is built and linked against a thread
...
library, it may pull in that thread library at run time. If the
process started out single-threaded, this could cause attempts to
release locks that do not exist. Guard against this possibility by
checking __isthreaded before invoking thread primitives.
A similar problem remains if the process is linked against one thread
library, but the NSS module is linked against another. This can only
be avoided by careful design of the NSS module.
Submitted by: Sean McNeil <sean@mcneil.com> (mostly; bugs are mine)
2004-03-30 15:56:15 +00:00
Tim J. Robbins
6de4bcc717
Add cross-references to isideogram(3), isphonogram(3), isrune(3),
...
isspecial(3) and wctype(3).
2004-03-30 08:11:57 +00:00
Tim J. Robbins
32d9553d83
Add basic manual pages for isideogram(), isphonogram(), isrune()
...
and isspecial().
2004-03-30 07:23:54 +00:00
Tim J. Robbins
bee1de57ca
Trim cross-references.
2004-03-30 07:19:35 +00:00
Tim J. Robbins
ba6699086d
Document the isnumber() and ishexnumber() functions, and explain how they
...
differ (at least in theory) from isdigit() and isxdigit().
2004-03-30 07:02:04 +00:00
Tim J. Robbins
ab02b93f75
Remove duplicate MLINK.
2004-03-29 21:46:52 +00:00
Tim J. Robbins
97062607cd
Recognize the "rune" character class in wctype().
2004-03-27 08:59:21 +00:00
Bruce M Simpson
3b367e998f
Document the existence of NET_RT_IFMALIST.
...
Reviewed by: ru
2004-03-25 10:08:46 +00:00
Ruslan Ermilov
f8a89f622e
[troff] removed the unnecessary use of \_ escapes.
2004-03-25 09:25:24 +00:00
Brian Feldman
5295209eff
Add locking so that arc4random(3) functions are all reentrant for
...
pthreads.
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
2004-03-24 14:44:57 +00:00
Tim J. Robbins
8e6b7161d3
Document incorrect handling of multibyte characters.
2004-03-21 11:31:37 +00:00
Tim J. Robbins
6eb5892c2b
Mention that funopen() uses fpos_t incorrectly in the BUGS section.
2004-03-20 08:41:12 +00:00
Tim J. Robbins
1e709c9cb5
Improve documentation for fgetpos() and fsetpos(), and discourage
...
users from assuming that fpos_t is an integral type.
2004-03-20 08:38:27 +00:00
Diomidis Spinellis
78a5f747c9
Shave-off troff cycles by invoking .Fa only once.
...
Submitted by: ru
MFC after: 1 week
2004-03-19 16:04:11 +00:00
Tim J. Robbins
f639538c20
Do not redundantly set the stream orientation in getc(), putc(), and
...
related functions - __sgetc() and __sputc() will set it when necessary.
2004-03-19 09:04:56 +00:00
Tim J. Robbins
3236e08bf8
Update list of macros defined in <stdio.h>.
2004-03-17 12:54:06 +00:00
Tim J. Robbins
7a0fae27c9
Re-add description of putc() macro (back out rev. 1.13.)
2004-03-17 12:46:17 +00:00
Tim J. Robbins
0ac162b7cc
Re-add text that says getc() is a macro (back out rev. 1.16.)
2004-03-17 12:37:28 +00:00
Tim J. Robbins
567d74a5ec
Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(),
...
ferror(), fileno() and clearerr(), using the value of __isthreaded to
decide between the fast inline single-threaded code and the more
general function equivalent. This gives most of the performance
benefits of the old unsafe macros while preserving thread safety.
2004-03-17 01:43:08 +00:00
Dag-Erling Smørgrav
261e614637
Use unions to avoid violating C99 strict aliasing rules.
2004-03-16 20:42:02 +00:00
Tim J. Robbins
34d72a66ad
Refer to "wide characters" instead of "wide-characters".
2004-03-16 13:30:11 +00:00
Tim J. Robbins
36fa8d519c
Sort MLINKS.
...
Noticed by: ru
2004-03-16 11:06:31 +00:00
Tim J. Robbins
be0f84026d
Add fairly minimal documentation for the nmount() syscall.
2004-03-16 09:45:38 +00:00
Dag-Erling Smørgrav
5b3ce02186
Don't try to pass off a struct sockaddr as a struct sockaddr_in when it
...
may in fact very well be a struct sockaddr_in6. Just use plain struct
sockaddr.
This brings us yet another step closer to a clean -O2 build.
2004-03-15 17:08:28 +00:00
Don Lewis
c947dc059b
Document additional reasons that sysctl(3) can return ENOMEM (due to
...
vslock() failure).
2004-03-15 10:32:37 +00:00
Dag-Erling Smørgrav
4705e3da6a
Make this compile with -O2. A proper fix would use a struct to represent
...
vectors, instead of requiring the caller to keep track of element size
and count and pass them in by reference.
2004-03-15 08:14:35 +00:00
Dag-Erling Smørgrav
2fb05f85d5
Whitespace nits.
2004-03-15 08:03:10 +00:00
Tim J. Robbins
85fa6736d8
Set stream orientation in ungetc() instead of __ungetc(). This avoids
...
setting it redundantly when called from ungetwc(), vfscanf() etc.,
which already set the orientation.
2004-03-10 12:41:11 +00:00
Tim J. Robbins
4124f7c013
Remove duplicate check for EOF from ungetc(); __ungetc() already checks.
2004-03-10 11:13:23 +00:00
Tim J. Robbins
a6a9f0cde3
Call __sputc() directly in fputc() instead of taking an expensive
...
detour through putc().
2004-03-10 10:49:45 +00:00
Tim J. Robbins
2df1baf643
Call __sgetc() directly in getchar() instead of taking an expensive
...
detour through getc().
2004-03-10 10:24:15 +00:00
Tim J. Robbins
87a6c90a99
Set the stream orientation explicitly in fgetln() instead of relying on
...
__srefill() to do it.
2004-03-10 09:28:38 +00:00
Tim J. Robbins
d17235e59f
Set stream orientation in puts().
2004-03-10 09:15:38 +00:00