Commit Graph

10889 Commits

Author SHA1 Message Date
tnozaki
2a7af30c36 1. split runetype_local.h -> runetype_file.h
and remove renameing _Rune* -> _NBRune* namespace protection.

   FreeBSD traditionaly exposes struct _Rune* in runetype.h
   which included by ctype.h. it may cause conflicting type error
   in our cross build process, former we use renaming namespace
   to avoid this problem, now i reworked more resonable way.

2. merge rune_local.h to runetype_local.h, and remove it.
3. split bsdctype.h -> bsdctype_{file,local}.h
2010-06-13 04:14:56 +00:00
tnozaki
2a589509a4 use _FileRune* instead of _Rune*. 2010-06-12 02:51:34 +00:00
wiz
e2a56e055d Whitespace. 2010-06-10 18:35:22 +00:00
christos
801f2ebf67 Explain variable expansion better. Requested by Aleksey Cheusov 2010-06-09 16:58:22 +00:00
riz
3f1d9ecd93 Fix spelling of "whether", from Ryo HAYASAKA in PR 43432. 2010-06-08 03:08:47 +00:00
wiz
76aa4cd57b Bump date for previous. 2010-06-06 17:28:48 +00:00
sjg
fbb620d711 Add .export-env which tells make to export a variable to the environment
but not to track it - as is done for .export
This allows the variable to be updated without affecting what was put
into the environment.
Older versions of make will simply treat this as .export
2010-06-06 01:13:12 +00:00
wiz
90abead58e Fix typo in comment. 2010-06-06 00:00:33 +00:00
jnemeth
c8bd5cbe3b The US formally left the Gold Standard in 1971, not 1933. See:
http://en.wikipedia.org/wiki/Nixon_Shock
2010-06-05 20:53:44 +00:00
dholland
fcf4d3f750 Rework previous change to fixit() to not trip on option arguments. (Noticed
by wiz.) Clarify the loop logic involved.
2010-06-05 17:46:08 +00:00
dholland
8696c1b71e fixit() needs to know the getopt options list to do its thing correctly. 2010-06-05 17:44:51 +00:00
lukem
f8daa4a728 In ftpvis(), prevent incomplete escape sequences at end of dst,
and ensure NUL-termination of dst.  Also tweak for readibility.
Fix from Uwe Stuehler and Stefan Sperling, via Marc Balmer.
2010-06-05 13:59:39 +00:00
dholland
2480682bb2 Avoid SIGSEGV on out-of-range time_t. 2010-06-05 03:24:01 +00:00
sjg
945e78bffe We have required sigaction() for quite a while.
Use bmake_signal() - a wrapper around sigaction()
rather than signal() to ensure that signals are handled
consistently.
2010-06-03 15:40:15 +00:00
dholland
1811323fc9 no braaaains for you! 2010-05-30 00:45:03 +00:00
dholland
0235e12103 more undead files 2010-05-30 00:39:49 +00:00
dholland
d6986f611b Rerun valid_format() both before and after unescaping the format
string, in case the format string contains printf conversions
assembled from escape sequences.

A better approach might be to adjust the unescape logic to avoid
generating printf conversions (e.g. convert \x25 to %% instead of %)
but that's somewhat problematic and it's not really worth taking the
trouble.

Running valid_format() only after unescaping would also be somewhat
tidier but makes printing the invalid format string problematic,
because the unescape logic runs in place.

None of these cases are really worth worrying about in detail, but now
at least they don't result in SIGSEGV.

Related to PR 43355.
2010-05-27 08:40:19 +00:00
dholland
76c7c8ecbf Fix valid_format() to be more careful about allowing only valid printf
formats.

Also, accept %a and %A, which are new since this logic was last updated,
and also allow %F even though it's not functionally different from %f.
Document these additions and bump date of man page.

Fixes PR 43355.
2010-05-27 08:30:35 +00:00
dholland
b6360c7f71 Don't recognize "+3" after -- or after the first non-option argument.
This prevents converting "+3" into "-k4.1" in places where getopt
won't recognize it, which in turn prevents silly error messages and
lossage trying to sort files whose names begin with +. PR 43358.
2010-05-27 05:52:29 +00:00
christos
478b26f3ff fix empty suffix case. 2010-05-26 18:07:34 +00:00
christos
07072da337 PR/43364: Nicolas Joly: mkdep(1) wrong target names when suffix list miss .o 2010-05-26 15:04:40 +00:00
sjg
3e3df25ba3 Don't missinterpret targets that start with .info 2010-05-24 21:04:49 +00:00
christos
cbc22ad229 - centralize the snprintf code.
- use err where appropriate.
- add machclass which should be x86 when i386 and amd64 and can be specified
  in man.conf as:
	_i386	x86
	_amd64	x86
  so that we can support merged pages. Nothing uses this yet.
2010-05-23 22:04:36 +00:00
tnozaki
04cc7786fc rework bulid breakage problem on linux.
ldef.h: s/1<<8/_CTYPE_CACHE_SIZE/
ctype_local.h: use limits.h instead of machine/limits.h
runetype_local.h: don't use HAVE_NBTOOL_CONFIG as evil way.
2010-05-22 18:15:21 +00:00
tnozaki
81573c1976 yacc.y: s/_CTYPE_NUM_CHARS/_CTYPE_CACHED_SIZE/
ldef.h: remove redundant include, ctype_local.h is already included by
        runetype_local.h.
2010-05-22 17:43:29 +00:00
tnozaki
a6a1331586 include ctype_local.h 2010-05-22 07:18:44 +00:00
tnozaki
64a7d4fa9a 1. hide _CTYPE_PRIVATE section in ctype.h, move them to private header ctype_local.h.
2. do not use _CTYPE_NUM_CHARS macro to read data from LC_CTYPE(old BSDCTYPE style) database.
   because 1<<CHAR_BIT is MD, so i added MI macro _CTYPE_CACHE_SIZE(1<<8).
3. remove _NB_CACHED_RUNE macro, use _CTYPE_CACHE_SIZE instead.
2010-05-22 06:38:15 +00:00
christos
b724c2d39e put back canonicalization, but avoid doing it for files that don't contain /
From dholland
2010-05-17 17:01:16 +00:00
dholland
b500f55a59 and, erm, bump date too. 2010-05-16 07:40:53 +00:00
dholland
50d151d5f4 Grammar, clarification, and note that the rusage information is total
as opposed to strict subprocess only.
2010-05-16 07:40:13 +00:00
joerg
757c7f4987 Reorder sections to canonical order. 2010-05-15 00:08:31 +00:00
joerg
3995b4b94e Explicitly close quote. 2010-05-14 17:31:26 +00:00
joerg
0fcea3311f Resort sections to canonical order. 2010-05-14 17:28:23 +00:00
joerg
88e16b2390 Simplify markup. 2010-05-14 17:24:38 +00:00
joerg
ff7d7a232d Escape punctuation. Use logical markup for indentation. 2010-05-14 17:23:13 +00:00
joerg
a4a2a21512 Resort sections to canonical order 2010-05-14 17:20:06 +00:00
joerg
25206905a3 Improve/fix/deuglify markup. 2010-05-14 17:14:28 +00:00
joerg
762152502e Reorder sections to canonical order. 2010-05-14 17:06:40 +00:00
joerg
3d90cef610 Reorder sections to canonical order. Use .Ex -std. 2010-05-14 17:03:19 +00:00
joerg
75251fe0d1 Reorder sections to canonical order. 2010-05-14 17:02:01 +00:00
jruoho
3ae25c77b6 RETURN VALUES -> EXIT STATUS. 2010-05-14 16:58:32 +00:00
joerg
15a1cc61c0 Fix section order. Use .Ex -std 2010-05-14 16:54:48 +00:00
joerg
1334e3ed24 Reorder to canonical order. 2010-05-14 16:48:36 +00:00
joerg
5faa2893a3 Missing -width for .Bl -tag 2010-05-14 16:48:02 +00:00
joerg
80ab18e84a Reorder sections to canonical order. 2010-05-14 16:45:41 +00:00
joerg
06ff5ce94c Explicitly quote |. Don't use .%T outside the scope of .Rs/.Re. 2010-05-14 16:23:42 +00:00
jruoho
280a4e3442 Clarify the wording in the table. 2010-05-14 08:31:38 +00:00
jruoho
9fc37247e3 Use a table instead of a literal .Bd "list". 2010-05-14 05:07:22 +00:00
joerg
94a2c2884b Fix trailing whitespace 2010-05-14 01:58:07 +00:00
joerg
b6d28c7f9d Use plain \* not \\*. Fix trailing whitespace 2010-05-14 01:57:21 +00:00