Tim J. Robbins
a0998ce663
Prefer <runetype.h> to <rune.h>, since the latter is going away soon.
2004-07-29 06:16:19 +00:00
Tim J. Robbins
e214931fbf
Remove useless checks for characters longer than INT_MAX bytes.
2004-07-29 06:08:31 +00:00
Tim J. Robbins
e9346e012d
Add support for multibyte characters.
2004-07-29 03:48:52 +00:00
Tim J. Robbins
9a9aa3ffa1
Add a paragraph break in the STANDARDS section to improve readability.
2004-07-29 03:41:24 +00:00
Tim J. Robbins
9d88e27007
Add support for multibyte characters.
2004-07-29 03:13:10 +00:00
Tim J. Robbins
f825dd29c2
Document incorrect handling of multibyte characters due to limitations
...
of sh(1).
2004-07-28 15:43:33 +00:00
David Xu
0187c8ff4e
Set fpu context flags to known values, zero is illegal.
2004-07-28 13:08:24 +00:00
Dag-Erling Smørgrav
7688459683
ANSIfy and constify; this now builds with GCC 3.4.
2004-07-28 11:56:03 +00:00
Alexander Kabaev
698784bef7
s/round/fpround/ to avoid naming clash with GCC builtin function.
2004-07-28 05:41:05 +00:00
Tim J. Robbins
ea9a9a377b
Add UTF-8-specific implementations of mbsnrtowcs() and wcsnrtombs().
...
These convert plain ASCII characters in-line, making them only slightly
slower than the single-byte ("NONE" encoding) version when processing
ASCII strings.
2004-07-27 06:29:48 +00:00
Tim J. Robbins
16018100a7
Add an nftw(3) link.
2004-07-25 11:17:54 +00:00
David Schultz
9b5f005228
Remove unused variable.
...
Noticed by: Todd Miller <Todd.Miller@courtesan.com>
2004-07-23 06:01:00 +00:00
Tim J. Robbins
6740cd8374
Return the correct value when dst == NULL and conversion has stopped after
...
nwc dropping to zero.
2004-07-22 02:57:29 +00:00
Hajimu UMEMOTO
0def575fd7
now e.f.f.3.ip6.arpa is delegated, we no longer need to query ip6.int
...
Obtained from: KAME
2004-07-21 17:26:40 +00:00
Tim J. Robbins
7d7287dc7d
Read directly from the stdio buffer using the new __mbsnrtowcs() interface
...
instead of making repeated calls to __fgetwc().
2004-07-21 12:12:48 +00:00
Tim J. Robbins
1949a3470f
Implement the GNU extensions of mbsnrtowcs() and wcsnrtombs(). These are
...
convenient when the source string isn't null-terminated.
Implement the other conversion functions (mbstowcs(), mbsrtowcs(), wcstombs(),
wcsrtombs()) in terms of these new functions.
2004-07-21 10:54:57 +00:00
Tim J. Robbins
2f2c1839f8
Use __wcsrtombs() and __sfvwrite() to convert and write the wide character
...
string instead of multiple calls to __fputwc().
2004-07-21 08:35:18 +00:00
Christian S.J. Peron
ef6dea1404
Back out previous commit. Even though statfs(2) can take a regular
...
file as an argument, it may still fail for the same reasons that
open(2) can.
Pointed out by: Jilles Tjoelker
Apporived by: bmilekic (mentor)
2004-07-20 19:30:57 +00:00
Christian S.J. Peron
5b154abc54
Remove reference to ENOTDIR in the documented errors
...
for statfs(2). This is false, if the pathname specified
is a regular file, then the information for the file
system that the file lives on will be returned.
Approved by: bmilekic (mentor)
2004-07-20 18:35:33 +00:00
Tim J. Robbins
f9ceea9bf1
Call __mbrtowc() and __wcrtomb() directly instead of taking detours
...
through mbrtowc() and wcrtomb().
2004-07-20 08:27:27 +00:00
Andrew Gallatin
df11547f5d
Fix printing of long doubles to match the size that
...
gcc is using. This fixes devstat consumers (like vmstat, iostat,
systat) so they don't print crazy zillion digit numbers for
disk transfers and bandwidth.
According to gcc, long doubles are 64-bits, rather than 128 bits
like the SVR4 ABI spec wants them to be.. Note that MacOSX also treats
long doubles as 64-bits, and not 128 bits, so we are in good company.
Reviewed by: das
Approved by: grehan
2004-07-19 23:56:07 +00:00
Peter Grehan
cc73b0f03d
Add signalcontext, required by KSE.
2004-07-19 12:08:03 +00:00
Peter Grehan
44d1098779
The new program counter should go into the trapframe's srr0 and
...
not the link register, which was lucky enough to work.
2004-07-19 12:05:07 +00:00
Tim J. Robbins
2ff3ba336e
Update paths to reg*.c and regex2.h. Add a target to build regex.h.
2004-07-19 08:48:17 +00:00
Tim J. Robbins
405033831e
Update for removal of cclass.h. Trim some useless targets. Invoke mkh
...
with "sh mkh" so it works if the script is not executable.
2004-07-19 08:41:11 +00:00
Tim J. Robbins
ec8b0411f1
Update for recent changes to struct re_guts. Disable printing the contents
...
of OANYOF sets for the moment.
2004-07-19 08:28:53 +00:00
Tim J. Robbins
f420a25887
Remove unused files.
2004-07-19 08:24:21 +00:00
David Schultz
479f8d2214
Make FLT_ROUNDS correctly reflect the dynamic rounding mode.
2004-07-19 08:17:25 +00:00
David Schultz
ec79bc0da9
Fix two bugs in the signbit() macro, which was implemented last year:
...
- It was added to libc instead of libm. Hopefully no programs rely
on this mistake.
- It didn't work properly on large long doubles because its argument
was converted to type double, resulting in undefined behavior.
2004-07-19 08:16:10 +00:00
David Schultz
39bcea8689
Replace seven nominally MD implementations of frexp() that are broken
...
for subnormals with one implementation that works.
2004-07-18 21:23:39 +00:00
Tim J. Robbins
ad3d799334
Remove claim of conformance to IEEE Std. 1003.2. Replace it with a list
...
of features required by the standard that the current implementation
does not support.
PR: 57911 (related)
2004-07-18 10:11:27 +00:00
Tim J. Robbins
613e383e81
Remove claim of conformance to IEEE Std. 1003.2. Replace it with a list
...
of features required by the standard that the current implementation
does not support.
PR: 57911
2004-07-18 06:56:40 +00:00
Tim J. Robbins
ad19b09bec
Fix typo: carat -> caret.
2004-07-17 12:27:25 +00:00
Hartmut Brandt
b711f5ddea
Document the MSG_DONTWAIT flag.
2004-07-16 17:15:37 +00:00
Tim J. Robbins
2508f480c2
Add a cross reference to fgetwln(3).
2004-07-16 06:07:12 +00:00
Tim J. Robbins
9531ef0fc1
Add fgetwln(), a wide character version of fgetln().
2004-07-16 06:06:09 +00:00
Tim J. Robbins
66d56cb7b8
Rename slbexpand() to __slbexpand() and make it available outside
...
of fgetln.c (non-static).
2004-07-16 05:52:51 +00:00
Alfred Perlstein
85e8765b7e
Clarify getfsstat(2) usage.
...
The getfsstat(2) function expects a buffer and a count, and returns a count.
The confusing part is that the count it takes is a byte count, while the
return value is a count of the number of structures it has filled out.
Spell this out.
2004-07-16 01:18:13 +00:00
Tim J. Robbins
ee5d8a1b0a
Remove an entry from the BUGS section: we have multibyte character
...
support now.
2004-07-12 11:03:42 +00:00
Tim J. Robbins
e5996857ad
Make regular expression matching aware of multibyte characters. The general
...
idea is that we perform multibyte->wide character conversion while parsing
and compiling, then convert byte sequences to wide characters when they're
needed for comparison and stepping through the string during execution.
As with tr(1), the main complication is to efficiently represent sets of
characters in bracket expressions. The old bitmap representation is replaced
by a bitmap for the first 256 characters combined with a vector of individual
wide characters, a vector of character ranges (for [A-Z] etc.), and a vector
of character classes (for [[:alpha:]] etc.).
One other point of interest is that although the Boyer-Moore algorithm had
to be disabled in the general multibyte case, it is still enabled for UTF-8
because of its self-synchronizing nature. This greatly speeds up matching
by reducing the number of multibyte conversions that need to be done.
2004-07-12 07:35:59 +00:00
Tim J. Robbins
67aff1896c
Add a new error code, REG_ILLSEQ, to indicate that a regular expression
...
contains an illegal multibyte character sequence.
2004-07-12 06:07:26 +00:00
Marcel Moolenaar
b41e0f0f56
Document the new PT_LWPINFO request. In fact, the request is so new
...
it hasn't even been implemented yet. I just wanted to be the first
to try a new approach to development ;-)
2004-07-12 04:43:58 +00:00
Tim J. Robbins
80f363668e
Remove incomplete support for multi-character collating elements. Remove
...
unused character category calculations.
2004-07-11 05:58:31 +00:00
Marcel Moolenaar
f5eda2f1cb
Unbreak alpha: On alpha a long double is the same as a double and
...
consequently the exponent is only 11 bits. Testing whether the
exponent equals 32767 in that case only effects to compiler warnings
and thus build breakage.
2004-07-10 15:52:26 +00:00
Tim J. Robbins
550473de5b
Add fast paths for conversion of plain ASCII characters.
2004-07-09 15:46:06 +00:00
Tim J. Robbins
fcc5191787
Slightly reorganize and simplify.
2004-07-09 15:12:10 +00:00
David Schultz
ad93428d7a
Bump document date for recent changes.
...
Prodded by: ru
2004-07-09 06:37:44 +00:00
David Schultz
3bdf026534
Document these functions as being in libm, not libc. Some of them
...
*are* in libc for historical reasons, but programmers should not rely
on that fact.
Also remove a BUGS section that is not relevant here.
2004-07-09 03:33:00 +00:00
David Schultz
240dbabfa8
Implement the classification macros isfinite(), isinf(), isnan(), and
...
isnormal() the hard way, rather than relying on fpclassify(). This is
a lose in the sense that we need a total of 12 functions, but it is
necessary for binary compatibility because we have never bumped libm's
major version number. In particular, isinf(), isnan(), and isnanf()
were BSD libc functions before they were C99 macros, so we can't
reimplement them in terms of fpclassify() without adding a dependency
on libc.so.5. I have tried to arrange things so that programs that
could be compiled in FreeBSD 4.X will generate the same external
references when compiled in 5.X. At the same time, the new macros
should remain C99-compliant.
The isinf() and isnan() functions remain in libc for historical
reasons; however, I have moved the functions that implement the macros
isfinite() and isnormal() to libm where they belong. Moreover,
half a dozen MD versions of isinf() and isnan() have been replaced
with MI versions that work equally well.
Prodded by: kris
2004-07-09 03:32:40 +00:00
Garrett Wollman
5b1eaa7bb6
Eliminate some magic numbers and correct description of _PC_NO_TRUNC.
...
Slight emendation to _PC_CHOWN_RESTRICTED, which is in a very similar
boat.
2004-07-08 20:27:38 +00:00
Tim J. Robbins
ee446de0b1
Add a function to iterate over all characters in a particular character
...
class. This is necessary in order to implement tr(1) efficiently in
multibyte locales, since the brute force method of finding all characters
in a class is infeasible with a 32-bit (or wider) wchar_t.
2004-07-08 06:43:37 +00:00
Alfred Perlstein
83f46f9e33
there's no such define as KERN_NAME_MAX, change to _POSIX_NAME_MAX.
2004-07-07 20:47:42 +00:00
Ruslan Ermilov
5792ef0983
Markup nits.
2004-07-07 20:15:31 +00:00
Ruslan Ermilov
1c5f1e7afd
Fixed markup.
2004-07-07 20:11:35 +00:00
Ruslan Ermilov
2410103c1d
mdoc(7) fixes.
2004-07-07 19:57:16 +00:00
Hiten Pandya
af73aa7cce
Move the return value information about the getenv(3) library function
...
under the RETURN VALUES section so it is consistent with others.
Cleanup the return value text for getenv(3) a little while I am here.
PR: docs/58033
MFC after: 3 days
2004-07-06 23:21:36 +00:00
Andrey A. Chernov
42aeacc4d4
Keep it sync with OpenBSD:
...
An optional argument cannot start with '-', even if permutation is
disabled.
Obtained from: OpenBSD getopt_long.c v1.17
2004-07-06 13:58:45 +00:00
Tim J. Robbins
65b2e19ef7
Document incorrect handling of multibyte characters.
2004-07-06 09:20:51 +00:00
David Schultz
b03b864ac9
Add implementations of ftw(3) and nftw(3) and the corresponding header
...
ftw.h. This is the implementation written by Joel Baker
<fenton@debian.org> for inclusion in NetBSD, but with several
bugfixes.
Obtained from: Debian
2004-07-05 23:13:16 +00:00
David Schultz
c8f7bbe36b
Documentation for ftw(3) and nftw(3).
...
Obtained from: OpenBSD
2004-07-05 23:12:11 +00:00
Ruslan Ermilov
51f98e585b
Fix the NAME section making whatis(1) happy in particular.
2004-07-05 17:12:53 +00:00
Ruslan Ermilov
1af1ea79a8
Markup fixes.
2004-07-05 07:21:55 +00:00
Ruslan Ermilov
b9384efc1c
Markup nits.
2004-07-05 06:39:03 +00:00
Ruslan Ermilov
1c85060a13
Sort SEE ALSO references (in dictionary order, ignoring case).
2004-07-04 20:55:50 +00:00
Colin Percival
0a31135d11
Add commentary explaining why we return EBADF upon attempts to fflush() a
...
read-only file.
Discussed on: -current
2004-07-04 20:17:00 +00:00
Stefan Farfeleder
5908d366fb
Consistently use __inline instead of __inline__ as the former is an empty macro
...
in <sys/cdefs.h> for compilers without support for inline.
2004-07-04 16:11:03 +00:00
Ruslan Ermilov
a817e9e674
Fixed markup.
2004-07-03 23:14:34 +00:00
Ruslan Ermilov
30950a21e1
Eliminate double whitespace.
2004-07-03 22:30:10 +00:00
Ruslan Ermilov
1a0a934547
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
David Xu
39ba326d65
Follow previous change in makecontext. Use %esi to store next ucp
...
pointer, here we keep orignal %ebp, so we can see where signal handler
comes in and interrupt normal code.
2004-07-02 23:20:05 +00:00
Ruslan Ermilov
d37ea99837
Removed trailing whitespace.
2004-07-02 19:07:33 +00:00
Ruslan Ermilov
26b6c45a92
Markup tidying.
2004-07-02 16:45:56 +00:00
David Xu
a5a5d84784
Use %esi to store next ucp pointer. Mark end of stack by
...
setting %ebp to zero, this avoids new gdb to dump a weird
backtrace.
2004-07-02 14:19:44 +00:00
Ruslan Ermilov
33992dc0ed
Markup, grammar, and spelling fixes.
2004-06-30 20:09:10 +00:00
Ruslan Ermilov
bd486f888e
Fixed a typo.
2004-06-30 19:32:41 +00:00
Tim J. Robbins
b7114d4a9c
Fix typo: WRDE_DOOFS -> WRDE_DOOFFS.
...
Noticed by: Stoned Elipot
2004-06-30 13:55:08 +00:00
Roman Kurakin
f01a74582c
s/SS_CANTSENDMORE/SBS_CANTSENDMORE/
2004-06-24 10:53:44 +00:00
Tim J. Robbins
ddc1eded85
Prefix the names of members of _RuneLocale and its sub-structures
...
with ``__'' to avoid polluting the namespace. This doesn't change the
documented rune interface at all, but breaks applications that accessed
_RuneLocale directly.
2004-06-23 07:01:44 +00:00
Bruce M Simpson
cb450d2233
Be specific about which socket properties are inherited from the original
...
socket upon accept(2).
PR: docs/54995, kern/45733
2004-06-23 00:20:46 +00:00
Mike Pritchard
6b4a832600
Spelling fixes.
2004-06-21 20:10:35 +00:00
Mike Pritchard
c20133b039
Spelling fixes.
2004-06-21 19:54:56 +00:00
Mike Pritchard
14243126c5
Spelling fixes.
2004-06-21 19:38:25 +00:00
Mike Pritchard
811815574d
Spelling fixes.
2004-06-21 19:30:45 +00:00
Mike Pritchard
3c6dd63b2c
Spelling fixes.
2004-06-21 18:57:32 +00:00
Mike Pritchard
12270048ca
PR: docs/67884
...
Submitted by: Chirstopger Nehren <apeiron@comcast.net>
2004-06-21 18:24:48 +00:00
Kelly Yancey
0a0163040b
CLOCK_PROF and CLOCK_VIRTUAL are implemented now.
2004-06-17 23:13:38 +00:00
Robert Watson
804613dc06
Add reference to mac_get_link() in man page, which was omitted when
...
mac_get_link() and mac_set_link() were added.
2004-06-17 16:08:36 +00:00
Hajimu UMEMOTO
a214cd1abd
Rename variable name from name' to
hostname'.
...
This is a corresponding change to bin/67994. I'll soon commit
bin/67994 into 4-STABLE. Actually, 5-CURRENT's getaddrinfo()
doesn't have the problem mentiond in bin/67994. However, it is
good to be in sync variable name with 4-STABLE and KAME.
PR: bin/67994
Submitted by: JINMEI Tatuya <jinmei@ocean.jinmei.org>
2004-06-16 16:41:23 +00:00
David Xu
2ff285bf2e
Avoid to touch red zone, in libpthread, ucontext may be saved by kernel's
...
get_mcontext, and libpthread will use signalcontext to deliver signal in
userland, it looks same as kernel's send_sig does.
Reviewed by: deischen, tjr
2004-06-15 21:46:36 +00:00
Kelly Yancey
2aab594f92
The maximum value of iovcnt is IOV_MAX, not 16.
2004-06-15 01:24:41 +00:00
Bruce M Simpson
92b5c26f34
Document the location of the header file which declares the function
...
prototypes documented in this manual page.
PR: bin/4459
2004-06-14 18:41:24 +00:00
Bruce M Simpson
445d6be61e
Date bump.
...
Requested by: krion
2004-06-14 14:24:18 +00:00
Bruce M Simpson
3c6ba09bdf
Document some return values.
...
PR: bin/22198
Submitted by: Nick Johnson (with cleanups)
2004-06-14 14:18:41 +00:00
Stefan Farfeleder
cdff05fa7f
Merge changes from the tzcode2004a import. Wherever possible I tried to bring
...
us closer to the vendor branch.
Requested by: wollman
2004-06-14 10:31:52 +00:00
David Schultz
d2b8f61223
Use .Dv instead of .Li for all the RLIMIT_* constants.
...
Requested by: ru
2004-06-14 01:32:40 +00:00
David Schultz
c294e3b58c
Document RLIMIT_AS. While here, correct an insertion sort error.
2004-06-13 22:19:29 +00:00
Stefan Farfeleder
d06ecced73
Remove a stale reference to %Ef and %EF from a comment.
2004-06-13 16:20:23 +00:00
Ken Smith
f64520dfb8
Change defualt time zone from GMT to UTC. This will not be MFC-ed, and
...
was done before 5-STABLE on purpose...
2004-06-11 03:34:02 +00:00
Stefan Farfeleder
14e4372584
Remove a couple of casts added for an ancient Sun compiler.
...
Approved by: das (mentor)
2004-06-08 12:20:40 +00:00
Stefan Farfeleder
cf6fc3417a
The third operand of the conditional operator should have type void too.
...
Approved by: das (mentor)
2004-06-08 12:03:48 +00:00