Colin Percival
b6f7c57ecf
Document POSIX stupidity: Attempts to mmap zero bytes will succeed (and
...
have no effect), while attempts to munmap zero bytes will fail.
2004-04-18 23:36:45 +00:00
Christian Brueffer
e2738131b1
Bring describtion of a sysctl in line with the source:
...
kern.acct_chkfreq is specified in seconds, not minutes.
Cluebat provided by: kensmith
2004-04-16 22:53:51 +00:00
Christian Brueffer
0d5d3ffdb7
Remove unnecessary .Pp macro and bump document date
...
Submitted by: ru
2004-04-16 22:38:54 +00:00
Christian Brueffer
e8490b5cb4
List some sysctl variables that influence accounting
...
PR: 65070
Submitted by: Marc Silver <marcs@draenor.org>
X-MFC after: re approval
2004-04-16 20:32:56 +00:00
Tim J. Robbins
fc813796d2
Perform some basic validation of multibyte conversion state objects.
2004-04-12 13:09:18 +00:00
Tim J. Robbins
c282a0a1ed
Remove a nonsensical remark about byte order markers in UTF-8 streams.
2004-04-12 12:58:41 +00:00
Maxime Henrion
4af6b50978
Belatedly remove the getvfsent(3) API. All the consumers have been
...
updated to use getvfsbyname(3) or the vfs.conflist sysctl since a
long time, except mount_smbfs(8) which has just been fixed.
2004-04-11 21:36:31 +00:00
Tim J. Robbins
78c4a3f225
Document the meaning of the zero return value.
2004-04-11 05:19:19 +00:00
David Xu
6464650388
Fix a typo. I was locked out for two days from my machine.
2004-04-10 14:36:57 +00:00
Tim J. Robbins
fa02ee78c8
Don't cast away const qualifiers.
...
Spotted by: bde
2004-04-10 00:27:52 +00:00
Tim J. Robbins
7937c23d49
Terminate execl()'s argument list with a null pointer instead of a
...
null pointer constant. (The latter may be an integer constant, which
is not correct here.)
Submitted by: Stefan Farfeleder
2004-04-09 11:32:32 +00:00
Tim J. Robbins
8b8109275c
Update manual pages for change to C99 mbrtowc() semantics.
2004-04-08 09:59:02 +00:00
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