Commit Graph

1786 Commits

Author SHA1 Message Date
drochner
a75975a121 minor fix in description of an error condition 2009-03-24 22:34:54 +00:00
joerg
c2d267f257 Remove redundant markup as .Bl does vertical spacing already. 2009-03-15 09:31:07 +00:00
joerg
ec28f83cbc Give the full prototype for all ctype functions/macros.
Remove redundant .br.
2009-03-11 12:57:03 +00:00
joerg
bfe775a869 Remove redundant .Pp 2009-03-10 23:14:40 +00:00
joerg
ed0b365527 Use .An for the author instead of more physical .Bl. 2009-03-10 20:59:49 +00:00
joerg
997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
christos
c9216fc526 no more weak here. 2009-03-01 19:59:55 +00:00
pgoyette
e3eb5958e0 Avoid possible integer overflow and subsequent collateral damage.
Received from OpenBSD via US-CERT as VU #590371.

Original OpenBSD commit log:

> revision 1.42
> date: 2009/02/11 13:24:05;  author: otto;  state: Exp; lines: +9 -1
> Avoid level going negative on deep (i mean really deep) dirs. Reported
> by Maksymilian Arciemowicz. ok kettenis@ millert@
2009-02-28 14:34:18 +00:00
lukem
be48221f4f A variation on the sign-compare fix for these. 2009-02-16 10:40:45 +00:00
tron
ae34e73bcb Fix -Wsign-compare issue (on NetBSD/sparc64). 2009-02-16 10:34:15 +00:00
lukem
e95441b0ce fix -Wsign-compare issue (on alpha) 2009-02-16 05:22:00 +00:00
lukem
deeb06e363 sign-compare fixes 2009-02-12 04:13:08 +00:00
lukem
8483a30314 sign-compare fix 2009-02-12 04:10:52 +00:00
christos
028f3ea750 fix typo * -> & from enami. 2009-02-11 13:52:28 +00:00
christos
ed71b85e85 remove debugging. pointed by enami 2009-02-11 13:51:59 +00:00
christos
bb0dd61478 Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
lukem
f0772e2d1f sign-compare fix 2009-02-06 23:47:44 +00:00
lukem
6f550c4d36 sign-compare fix 2009-02-05 23:52:55 +00:00
lukem
14fddbd703 fix sign-compare issue 2009-02-03 05:21:24 +00:00
wiz
b85179b9a1 Remove empty trailing line. 2009-01-30 23:52:28 +00:00
ad
397f5192b2 Update for SUSv2 compliance. 2009-01-30 23:26:54 +00:00
rmind
97267cc4e2 Change raise(3) to be thread-aware - send the signal to current LWP.
From <ad> via PR/40341.
2009-01-29 23:52:21 +00:00
enami
4e5aed7e08 Put back rev. 1.20 so that nbpwd_mkdb built on 32bit time_t host generates
correct pwd.db.
2009-01-29 10:41:39 +00:00
drochner
ad965be01b cleanup after devmajor_t:
-since getdevmajor(3) is now binary compatible again with <=5.0
 there is no need to rename, I've just left a __getdevmajor50 symbol
 temporarily for those who track -current
-update manpage
2009-01-20 20:08:12 +00:00
drochner
d767912be3 Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
2009-01-20 18:20:47 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
lukem
4a94e73441 Change the second argument of getlogin_r() from int to size_t, per POSIX. 2009-01-06 11:16:46 +00:00
wiz
a711e8e9e4 Fix HTML output. 2009-01-04 09:42:43 +00:00
dholland
6557571403 Rework the text to make it clearer; it was really pretty confusing before.
Add an example; note some bugs/shortcomings. Bump date.
2009-01-04 07:54:15 +00:00
lukem
a2c38ed82e Ensure fts_close() doesn't spuriously close fd 0,
by testing FTS_SYMFOLLOW in fts_flags instead of fts_options.
Fix provided by Ben Harris in PR 40319
2009-01-03 06:12:14 +00:00
tnozaki
52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
christos
c900253da8 Martin says:
I had added a getaddrinfo()/getnameinfo() lookup to obtain an FQDN even
if gethostname() would return only the local part of the hostname.
I did not really consider that many systems do not have FQDNs and more
importantly that the calls introduce a high latency (timeout) when DNS
is not available.

On the other hand I do not (or no longer) think that using a non-FQDN is
such a big problem here. Those users/admins that do collect logs from
different hosts and want an FQDN should notice the problem quickly
enough and can easily fix it by correctly setting their hostname.
2008-12-10 15:20:04 +00:00
wiz
edd8540874 New sentence, new line. Bump date for fdopendir. 2008-12-05 13:26:41 +00:00
ad
117c67b2f2 Add fdopendir(), from Solaris/Linux. 2008-12-05 13:08:53 +00:00
matt
0ad7281825 Add new ptree (Patricia / RADIX tree) implementation to NetBSD. 2008-11-20 23:50:08 +00:00
reed
a4bfac4a14 Reference secmodel_securelevel(9) manual page. 2008-11-11 00:09:36 +00:00
cube
26d23ca1c6 Invert the test for the return value of getaddrinfo(), because that's what
is actually meant there, to do nothing when the name doesn't resolve to an
address.
2008-11-03 23:21:19 +00:00
wiz
9a02e1d47d New sentence, new line. Mark up NULL with Dv. 2008-11-01 13:54:01 +00:00
christos
8cda436bf2 fix compile error. 2008-10-31 17:49:48 +00:00
christos
1c6aec2060 Import syslogd SoC project by Martin Schuette:
- new syslog protocol api syslogp(3) that supports structured data
	  and draft-rfc timestamps
	- reliable tcp connections with queueing
	- encrypted connections
2008-10-31 16:12:18 +00:00
dogcow
990e83b99d appease lint: warning: assignment in conditional context [159] 2008-10-22 02:17:29 +00:00
christos
b602f406f7 - vsyslog_r only closes if it opened
- maintain opened properly
- preserve the tag (from OpenBSD)
2008-10-21 21:00:31 +00:00
lukem
2060495782 fix unused variable if !defined(FTS_ALLOC_ALIGNED) 2008-09-27 15:12:00 +00:00
lukem
7fb0a8b2f3 Add fts_free() to complement fts_alloc(), and use instead of free().
Should avoid a memory leak on systems without ALIGNBYTES.
2008-09-20 00:14:12 +00:00
christos
6f1e299202 From Ilya Dogolazky: Fix return value doc. 2008-09-17 22:08:52 +00:00
rmind
0f80b1578d Arguments were swapped for cpuset_set(), cpuset_clr(), cpuset_isset()
functions, but man pages were not updated (hi Christos!).
2008-09-12 13:39:04 +00:00
apb
a1dad6e718 Fix some errors in examples, noticed by Robert Elz:
* use \e in the source to get a backslash in the output.
* test whether the result from shquote[v]() is -1 before, not after,
  adding 1 to it.
2008-09-07 08:55:46 +00:00
lukem
490ac90f8e Add strunvisx(3) as a link to unvis(3) 2008-09-05 04:52:34 +00:00
lukem
6fb06e2c97 In strsvisx(), don't attempt to read the "next" character past the end
of the provided length.
2008-09-04 09:41:44 +00:00
christos
80a5932343 setup _POSIX2_C_BIND per SUSv3, from Andy Shevchenko 2008-08-27 08:56:49 +00:00