Tim J. Robbins
6a4d3d68c7
Re-word warning about the rune interface, taking care to use the word
...
"obsolete" instead of "deprecated".
2004-08-21 08:00:31 +00:00
Tim J. Robbins
5a52f3c22c
Change "deprecated" in link-time warnings about various rune functions
...
to "obsolete".
2004-08-21 07:48:06 +00:00
Tim J. Robbins
b9b90a1312
Re-word compatibility section, taking care to use the word "obsolete" to
...
describe the 4.4BSD extension of accepting characters (runes) outside of
the range of unsigned char.
2004-08-21 07:37:08 +00:00
Alfred Perlstein
65da79c4be
Reword recent addition about memory moving.
...
Requested by: keramida
Bump .Dd
Requested by: ru
2004-08-19 16:34:31 +00:00
Alfred Perlstein
09a12d75cf
Clarify that realloc and reallocf may move the memory allocation.
2004-08-18 21:13:15 +00:00
Doug Rabson
0e7e4e5fd6
Always allocate a TLS area even if its empty - libpthread relies on
...
having a valid %gs when it initialises.
MFC after: 2 days
2004-08-18 10:18:58 +00:00
Tom Rhodes
1bdc6fddbf
/me kicks cvs update
...
Revert previous commit, tjr already fixed it and I was too stupid to
notice this fact.
Approved by: re (to avoid failing cvs ci)
2004-08-17 04:56:03 +00:00
Tom Rhodes
daa790840c
Fix incorrect code in an example. The previous example would produce
...
19 column positions wide in the first line and 20 in the rest of the lines.
This fixes the example to provide the correct output.
PR: 53454
Noticed by: Kuang-che Wu <kcwu@kcwu.homeip.net>
Submitted by: Marc Silver <marcs@draenor.org>
Approved by: re (scottl)
2004-08-17 04:45:52 +00:00
Doug Rabson
e9abf2d6e2
Fix alpha build and add __FBSDID.
...
PR: 70518
2004-08-16 08:12:29 +00:00
Doug Rabson
ccd13c49b5
Add support for TLS in statically linked programs.
2004-08-15 16:18:52 +00:00
Stefan Farfeleder
4eae39bfdf
Avoid using void pointers in additive expressions.
...
PR: 56653
2004-08-14 17:46:10 +00:00
Stefan Farfeleder
361de173a5
Avoid using void pointers in additive expressions.
...
PR: 56653 (libc/rpc bits)
Approved by: alfred
2004-08-13 23:22:38 +00:00
Peter Pentchev
9f4c0e5c8f
Document the MNT_SNAPSHOT mount flag with a cross-reference
...
to mksnap_ffs(8).
PR: 70402
Submitted by: James Raftery <james@now.ie>
2004-08-13 14:33:03 +00:00
Tim J. Robbins
5349fd7f49
Fix example.
2004-08-12 12:32:14 +00:00
Tim J. Robbins
de6c9c9d5b
Implement wcwidth() as an inline function.
2004-08-12 12:19:11 +00:00
Brian Feldman
ea84c8dc30
Update "documentation date" fields.
2004-08-10 16:38:19 +00:00
Brian Feldman
831bc6f574
Update mlock(2) manpage to cross-reference m{,un}lockall(2), remove
...
a case where ENOMEM could be returned by munlock(2), and add possible
system deadlock to the BUGS section.
2004-08-10 14:52:42 +00:00
Tim J. Robbins
91f18ef928
Fix an off-by-one bug that caused the first character of the buffer to
...
be uninitialized.
2004-08-06 17:00:09 +00:00
Peter Pentchev
16d9177176
Bump the document date, since the content changed today.
...
Discussed with: ru
2004-08-06 15:29:54 +00:00
Peter Pentchev
9a3daf494b
Fix a case of _SC_CLK_TCK being misspelled as _SC_CLOCK_TCK.
...
PR: 69428
Submitted by: Sascha Schneider <suntsu@suntsu.org>
MFC after: 2 weeks
2004-08-06 14:49:11 +00:00
Peter Pentchev
808712c91c
Cross-reference getnameinfo(3), getaddrinfo(3), getipnodebyname(3) and
...
getipnodebyaddr(3).
PR: 54229
Submitted by: Samuel Tardieu <sam@inf.enst.fr>
MFC after: 2 weeks
2004-08-06 12:02:07 +00:00
Doug Rabson
0e1c7d0f08
Add stubs for TLS functions. These will be replaced at runtime by the
...
functional versions in rtld.
2004-08-03 08:54:01 +00:00
Stefan Farfeleder
3103c94843
Remove an implicit int parameter by using prototypes.
2004-08-02 08:46:23 +00:00
Stefan Farfeleder
44a35598ff
Don't pass function pointers via a void * parameter.
2004-08-02 08:18:43 +00:00
David Xu
d3c6a920f1
1. Use correct alignment mask, -15 != ~15
...
2. Make end of frames
2004-07-31 01:41:41 +00:00
Warner Losh
d68c1e59a8
Use #include <unistd.h> rather than the explicit externs in the
...
example. The externs haven't been needed in about 10 years, so
there's no reason to have them other than for hysterical raisins. And
the California Rasins haven't been around for a long time...
2004-07-31 01:00:50 +00:00
Tim J. Robbins
0db74aa4a9
Re-word the COMPATIBILITY section, taking care to use the word "deprecated"
...
to describe the 4.4BSD extension of accepting arguments outside the range
of unsigned char. This gives us freedom to remove this extension when we
remove the <rune.h> interface in FreeBSD 6.
2004-07-29 23:32:41 +00:00
Alexander Kabaev
132cc0756e
Use newly added __used attribute to keep static function symbols from being
...
eliminated by compiler optimizer.
2004-07-29 18:07:08 +00:00
Tim J. Robbins
a351559479
Remove unnecessary #include directives.
2004-07-29 06:18:40 +00:00
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
David Schultz
1e03bff7f2
In fts_build(), if we try to chdir and fail (e.g. due to lack of search
...
permission), try to continue in FTS_DONTCHDIR mode. Of course this
won't work for long paths, but we can't descend more than one pathname
component beyond the directory anyway if we lack search permission.
Here is a transcript demonstrating the change, where oldls is ls(1)
linked with the old fts(3):
das@VARK:~> mkdir t && touch t/{a,b,c} && chmod u-x t
das@VARK:~> oldls t
a b c
das@VARK:~> oldls -l t
das@VARK:~> \ls t
a b c
das@VARK:~> \ls -l t
ls: a: Permission denied
ls: b: Permission denied
ls: c: Permission denied
I had forgotten about this patch until bde reminded me. He reports
using it without problems for over a year.
PR: 45723
2004-06-08 06:23:23 +00:00
David Schultz
92a5b2ee71
Rename cantwrite() to prepwrite(). The latter is less confusing,
...
since the macro isn't really a predicate, and it has side-effects.
Also, don't set errno if prepwrite() fails, since this is done in
prepwrite() now.
2004-06-08 05:45:48 +00:00
David Schultz
52183d4654
Rename cantwrite() to prepwrite(). The latter is less confusing,
...
since the macro isn't really a predicate, and it has side-effects.
2004-06-08 05:45:32 +00:00
David Schultz
325d97d0d1
Set errno to EBADF on attempts to write to a stream that is not
...
writable. Affected callers include fwrite(), put?(), and *printf().
The issue of whether this is the right errno for funopened streams is
unresolved, but that's an obscure case, and some errno is better than
no errno.
Discussed with: bde, jkh
2004-06-08 05:44:52 +00:00
Yaroslav Tykhiy
e7aa25d3fb
Use ".In" to mark up C include file names.
2004-06-07 21:52:20 +00:00
Yaroslav Tykhiy
cacc8e6c5d
Each sentence should begin on a new line.
2004-06-07 21:48:02 +00:00
Yaroslav Tykhiy
431c0866bb
Extend and improve the mdoc(7) markup of this page.
...
Reviewed by: ru
2004-06-07 21:43:14 +00:00
Yaroslav Tykhiy
35641ec00f
Finally document the option to avoid zombie creation
...
through ignoring SIGCHLD.
2004-06-07 11:01:39 +00:00
Peter Pentchev
c56864a7a7
Fix the ordering in the description of the dlsym() lookup procedure to
...
reflect src/libexec/rtld-elf/rtld.c rev. 1.68 - the globally-loaded
objects (RTLD_GLOBAL) are searched before the local object's DAG's.
PR: 62770
Submitted by: Kimura Fuyuki <fuyuki@nigredo.org>
2004-06-03 10:13:26 +00:00
Hajimu UMEMOTO
146cd1bc0a
use source address as a hint to determine destination address
...
by getipnodebyname().
2004-06-02 06:49:36 +00:00
Brooks Davis
cf7549084d
Add Aerospace Corporation copyrights to EUI64 support files.
...
Suggested by: marcel, imp
2004-06-01 19:30:13 +00:00
Tim J. Robbins
95a535af6d
Change the signature of ftok from (const char *, char) to (const char *, int)
...
Obtained from: NetBSD (christos)
2004-06-01 06:53:07 +00:00
Hajimu UMEMOTO
251b48a1bb
Treat IPv4 private address as global scope rather than site scope.
...
Though it breaks RFC 3484, without this change, dest addr selection
doesn't work well under NAT environment.
2004-05-31 21:09:14 +00:00
Hajimu UMEMOTO
4d489f472b
use source address as a hint to determine destination address.
...
Obtained from: KAME
2004-05-31 19:27:54 +00:00
Tim J. Robbins
c05bd9ae25
Buffer partial wide characters more efficiently: instead of storing the
...
multibyte representation in conversion state objects, store the
accumulated wide character, set number and number of bytes remaining
to avoid having to derive them every time mbrtowc() is called.
2004-05-27 10:54:34 +00:00
Brooks Davis
7387768ef4
Add support for an /etc/eui64 file modeled on /etc/ethers. The API is
...
modeled on ethers(3) except that all functions are thread-safe.
Reviewed by: simokawa
2004-05-26 22:58:06 +00:00
Tim J. Robbins
18b2031298
Scan the source string for invalid wide characters in wcsrtombs()
...
in the dst == NULL case.
2004-05-25 10:45:24 +00:00
Tim J. Robbins
e7e4715db2
Provide trivial macro implementations of getwc(), getwchar(), putwc() and
...
putwchar() to reduce function call overhead.
2004-05-25 10:42:52 +00:00
Tim J. Robbins
675e7ddbee
Grab all the information we need about a character with one call to
...
__maskrune() instead of one direct call and one through iswprint().
2004-05-23 13:20:09 +00:00
Tim J. Robbins
d6ed810a67
Perform conversions straight from the stream buffer instead of scanning
...
through byte by byte with mbrtowc(). In the usual case (buffer is big
enough to contain the multibyte character, character does not straddle
buffer boundary) this results in only one call to mbrtowc() for each
wide character read.
2004-05-22 15:41:03 +00:00
Tim J. Robbins
87275e436a
Associate a multibyte conversion state object with each stream. Reset it
...
to the initial state when a stream is opened or seeked upon. Use the
stream's conversion state object instead of a freshly-zeroed one in
fgetwc(), fputwc() and ungetwc().
This is only a performance improvement for now, but it would also be
required in order to support state-dependent encodings.
2004-05-22 15:19:41 +00:00