Commit Graph

7056 Commits

Author SHA1 Message Date
christos
f594ba0d61 protect the *syslog_ss 2006-11-03 20:16:04 +00:00
christos
1083e07a50 - verify that the log file is usable, otherwise re-open it.
- if the file is re-opened, clear the connected flag.
- don't check that the file is opened before connecting, because the
  file will be opened then.
2006-11-02 20:36:29 +00:00
cbiere
4b14bb6309 Changed error message of ENOPROTOOPT to "Protocol option not available". 2006-10-31 00:38:06 +00:00
mjf
b8fbc57a69 Add references to other filehandle man pages.
OK'd martin@
2006-10-30 18:53:42 +00:00
christos
f45c81bb89 set n properly so that we can terminate. 2006-10-30 05:10:40 +00:00
christos
9984f7540a fix name in weak alias. 2006-10-29 16:22:17 +00:00
christos
29741647a2 add {v,}snprintf_ss 2006-10-28 23:20:57 +00:00
wiz
bb93eb1630 Remove trailing whitespace. Use .Bl -enum for an enumeration. 2006-10-28 22:50:16 +00:00
christos
78921a0243 Initialize decimal_point. 2006-10-28 15:02:02 +00:00
christos
f71e448c3b initialize floating_point as needed. 2006-10-28 14:38:55 +00:00
agc
08c311c029 More cleanup after sha2.h and rmd160.h moved house 2006-10-28 13:05:42 +00:00
christos
5c60f22be5 need to negate before masking; from abp. 2006-10-27 21:36:50 +00:00
christos
a3fadcee99 this moved to common/lib/libc/hash 2006-10-27 21:24:35 +00:00
christos
d15d9f8a71 add async-signal-safe versions: syslog_ss and vsyslog_ss
multithread-safe syslog_r and vsyslog_r are not async-signal-safe.
2006-10-27 20:00:55 +00:00
christos
abca035cf3 Add signal-safe versions of snprintf and vsnprintf 2006-10-27 19:59:58 +00:00
drochner
50ea67a5eb As discussed back in June, remove hmac_sha1 and hmac_md5 from libc, to
reduce bloat and namespace trouble. (both were never public; hmac_sha1
is moved to libcrypt now because it is used locally there)
2006-10-27 18:29:21 +00:00
tnozaki
1a00f7afa4 don't pass through surrogate character(0xD800 - 0xDFFF). 2006-10-27 14:13:55 +00:00
uwe
b0f3335e9a Add syslog_r.3 link (hi christos). 2006-10-27 01:24:26 +00:00
wiz
d8f71c6e09 Various fixes. 2006-10-26 13:08:17 +00:00
wiz
89d6e88da7 Bump date for previous. 2006-10-26 12:56:11 +00:00
christos
64c9721228 don't use strerror_r in the re-entrant case. 2006-10-26 10:00:38 +00:00
christos
77f9f63fa2 add _r functions for syslog from OpenBSD 2006-10-25 23:49:31 +00:00
uwe
87cd2874b2 G/c check() macro, b/c it's used only twice and the off < 0 test is
useless in the first case (off is 0), and causes error with new gcc
(comparison of unsigned expression < 0 is always false) in the
second.

While here fix a typo in a comment and use less indent to make BAD and
BADUNMAP definitions fit 80 columns.

XXX: The second check should probably be more elaborate to protect
against bogus/malicious COFF files.
2006-10-25 20:43:49 +00:00
he
b98baf7a62 Avoid "unsigned < 0" comparison by open-coding the remaining part
of the check() macro.
2006-10-23 15:27:41 +00:00
rillig
5968766094 open(2) can fail with EPERM. 2006-10-23 14:04:05 +00:00
rillig
ced22230a0 Added a cross reference to stat(2), since that's the way how the current
flags can be determined.
2006-10-21 18:26:08 +00:00
yamt
355bbc5cdf document tcp.abc. 2006-10-19 11:48:02 +00:00
tnozaki
2e2fc44e22 add new iconv module libJOHAB,
this supports S.Korean character encoding scheme ``JOHAB''.
2006-10-18 17:54:54 +00:00
christos
51739e272e Only retry if we were able to clean up some descriptors, otherwise we get
into an infinite loop.
2006-10-17 17:44:34 +00:00
wiz
fef6221a07 Hyphenate nul-terminate. 2006-10-16 09:10:40 +00:00
wiz
d65511ddb3 Mark up NULL. 2006-10-16 09:10:29 +00:00
wiz
1a64d82da5 nul/null/NULL cleanup:
when talking about characters/bytes, use "nul" and "nul-terminate"
when talking about pointers, use "null pointer" or ".Dv NULL"
2006-10-16 08:48:45 +00:00
wiz
aba3ac5c73 kleink reminded me in a friendly way that "NULL" is the C API
synonyme for a "null pointer" and that there is no "NULL pointer".
2006-10-16 08:42:16 +00:00
christos
ce2c90c7c1 fix incomplete initializers 2006-10-15 16:14:46 +00:00
christos
a8756e84f2 prevent empty else. 2006-10-15 16:14:08 +00:00
christos
6b9a17545b comment out dead code. 2006-10-15 16:13:12 +00:00
christos
3b77d4bc25 instead of using the (void)&foo kludge to avoid longjmp clobbering of variables
make the variables volatile as needed.
2006-10-15 16:12:02 +00:00
christos
b24124a73d static before const. 2006-10-15 16:11:04 +00:00
perry
35a6eb4807 Make the declarations of wday_name and mon_name less eccentric. I
suppose they were legal before, but lint was unhappy about them. It
was probably unhappy for the wrong reasons, but I think it certainly
wasn't something one would want anyway. Declaring a string of length
three to have storage of length three without room for the nul is
asking for trouble even if it does work in context, and there was no
reason not to state how many days there are in a week or months in a
year -- they aren't onerous and aren't going to change.

NOTE: If this code isn't being synced with the central TZCODE stuff,
it probably should be KNFed etc. It is full of K&R declarations,
register, lots of eccentricities, etc.
2006-10-15 15:32:42 +00:00
martin
a5cb9c8ff7 PR lib/34801 from David A. Holland: "static" comes first in declaration. 2006-10-15 10:55:01 +00:00
christos
48314d6d96 memset the whole struct addrinfo, instead of trying to figure out if we
have a pad member or not.
2006-10-14 21:45:29 +00:00
wiz
353e917272 New sentence, new line. 2006-10-14 07:52:15 +00:00
wiz
f80b348714 Consistency: NULL pointer, but nul character. 2006-10-14 07:51:01 +00:00
wiz
641d5b8a5c nul, not null (for the character). 2006-10-14 07:44:58 +00:00
wiz
22b0689a70 Bump date for previous. 2006-10-13 21:12:51 +00:00
wiz
1339a7549f Make HTML-output safe. 2006-10-13 20:58:50 +00:00
wiz
af34f948f1 Fix date string. 2006-10-13 20:57:32 +00:00
wiz
a199de4e6f Sort SEE ALSO. 2006-10-13 20:56:54 +00:00
wiz
f90c2de688 Sort SEE ALSO. 2006-10-13 20:53:21 +00:00
wiz
255a629420 No Xr to ourselves. English improvement. 2006-10-13 20:52:57 +00:00