wiz
4a4f03fea7
Quote word that has the same letter as a macro.
...
Fixes PR 46215 by Nicolas Joly.
2012-03-17 22:10:51 +00:00
njoly
d0e00679ff
Use Lk macro when dealing with URLs. While here update or remove some
...
dead URL links. Another part of PR/29238.
2012-03-15 22:35:02 +00:00
dholland
d4bd1c2d11
Tidy up: we no longer need FIRSTVALID for its original purpose, so change
...
the name of the symbol to something that applies to the remaining use.
2012-03-15 03:04:05 +00:00
dholland
6eb9e0a428
When the wtmp file is empty, for the "wtmp[x] begins..." output, use
...
the last mod time of the wtmp file (in practice, the time it was last
rotated, which is when it begins) instead of the current time, which
wasn't ever particularly useful. PR 39444.
2012-03-15 03:01:03 +00:00
dholland
ce683a0035
Keep track of the timestamp of the last (thus oldest) record seen and use
...
it to print "wtmp[x] begins" at the end, instead of knowing where to look
in the final utmp buffer to get a final timestamp out. This is both tidier
and fixes a problem with wtmpx files, which is that if the header record
is missing (which it seems to be on my machines) it would fetch the wrong
time out, and if you happened to have a one-record wtmp file it would use
the current time instead. This change restores the traditional behavior
of printing the time of the oldest record in the file, and if no records
are present to use the current time.
It might be a bug that wtmpx files don't seem to have the header
record they supposedly ought to.
2012-03-15 02:55:02 +00:00
joerg
66dd2755f5
Add __printflike attribution to use vprintf and friends with an argument
...
as format string.
2012-03-15 02:02:20 +00:00
dyoung
f0a4fe1c3c
Use 'sort -n -k 3' instead of 'sort -n +2' since the former is more
...
portable. The latter is not supported by Mac OS X Lion.
2012-03-12 22:02:07 +00:00
christos
daf2e27602
PR/41880: Ralph G. Previous fix for PR/5797 broke since space separator.
2012-03-12 18:06:24 +00:00
dholland
471d829aae
Remove the NV_OBSOLETE flag, which is no longer needed. While here,
...
update an outdated comment about condition expressions.
2012-03-12 03:04:56 +00:00
dholland
cb79ede2d1
Give option definitions their own data structure instead of using nvlists.
...
(and using messy hacks to make up for nvlists not holding quite the right
things)
2012-03-12 02:58:55 +00:00
dholland
a883398ef5
Introduce type-safe wrappers around the hash tables. Use them for a
...
selected set of tables affected by the next nvlist cleanup in the
works.
2012-03-12 00:20:30 +00:00
dholland
f5d4142b2d
Move locator lists to their own data structure. This can use more tidying;
...
it is not clear to me at the moment what the "string" and "num" values
pushed around in locator lists are supposed to actually mean.
2012-03-11 21:16:07 +00:00
dholland
25c56bd707
Add some organizational comments
2012-03-11 20:02:55 +00:00
dholland
237116305d
More naming improvements.
2012-03-11 19:27:26 +00:00
shattered
575f4d696a
PR/22405 -- extend du(1) to report inode usage. Patch provided by
...
Jonathan Perkin.
OK by wiz@
2012-03-11 11:23:20 +00:00
dholland
a551c5e8b7
Create a struct condexpr type to hold condition expressions, instead
...
of abusing struct nvlist to make trees.
(These are the a|b and a&b constructs.)
2012-03-11 08:21:53 +00:00
dholland
4fbb702df0
Rename a few more things; try to use the same terminology as config(5).
2012-03-11 07:46:47 +00:00
dholland
bbe96a5ad8
Create a new type struct attrlist to manage lists of attributes,
...
instead of using struct nvlist.
(struct nvlist holds lists (or trees!) of semi-arbitrary stuff with no
structure and almost no type safety; it should go away.)
2012-03-11 07:32:41 +00:00
dholland
720c7fbc2a
Strengthen the logic that wraps allocations going on the parser stack.
...
(This allows cleaning up when a syntax error occurs, because yacc just
dumps the parser stack on the floor.)
The new logic can handle arbitrary data types instead of being limited
to struct nvlist.
2012-03-11 07:27:02 +00:00
dholland
285c15fc92
Remove cf_swap, which hasn't been used in a long time.
2012-03-11 05:31:37 +00:00
dholland
cfffb8a2c1
Write out the expression grammar for dependency constraints instead of
...
using precedence rules. Precedence rules (besides being a hack) often
lead to unexpected/unwanted behavior in corner cases.
2012-03-11 02:56:25 +00:00
dholland
6df4c5ae47
Sort productions in grammar. No functional change.
2012-03-11 02:43:33 +00:00
dholland
70f2148fe7
Simplify some things. Rename some productions for clarity.
2012-03-11 02:21:04 +00:00
dholland
60c605bb74
A bit more of previous.
2012-03-11 01:09:42 +00:00
dholland
540fdf9f5e
Reformat according to (my) basic standards for yacc grammars.
...
No functional change.
2012-03-11 00:57:44 +00:00
dholland
f3063ae30c
Comments.
2012-03-11 00:14:20 +00:00
dholland
671dbef5d6
Use __printflike. Build products unchanged.
2012-03-10 21:53:38 +00:00
ginsbach
4b1228ffbe
Improve the handling of quoted messages.
...
- warn about messages with an unexpected quote character
- warn about extra characters after a quote character
- warn about an unterminated quoted message
2012-03-09 18:54:28 +00:00
mbalmer
5cd43bc624
Remove the advertising clause and appease the eye a bit (still not good, but
...
better). Almost no functional change.
2012-03-06 16:55:18 +00:00
mbalmer
40c86e8b4e
Remove the advertising clause with the explicit ok from Perry E. Metzger.
2012-03-06 16:26:01 +00:00
njoly
4d5ade5119
Remove dead xrefs to obsolete kvm_mkdb(8).
2012-03-05 10:57:18 +00:00
wiz
c368f5db0b
New sentence, new line. Wording.
2012-03-04 11:54:06 +00:00
dholland
62244ded10
Note in comment that Str_Match() does not detect or report invalid
...
patterns. This is not critical, since for the moment both possible
cases (unclosed [], and \ at the end of the string) are handled more
or less sanely.
2012-03-03 23:16:47 +00:00
matt
edf7bb773c
remove extra "
2012-03-02 18:57:27 +00:00
matt
aea125ab81
fix typos from previous commit.
2012-03-02 18:55:16 +00:00
christos
2b01a8ad07
PR/46111: Wolfgang Stukenbrock: Add yp_setbindtries(3) so that yp operations
...
don't hang forever if requested.
2012-03-02 17:27:48 +00:00
matt
83aeaf7ea6
Need to cast to intrptr_t before casting a register_t to void * (since
...
register_t might be wider than a void *).
2012-03-02 16:17:22 +00:00
wiz
d47aeb29ac
Use mdoc macros only.
2012-03-02 14:36:04 +00:00
mbalmer
d13b2dd8ad
Add msg_printf(fmt, ...), a function to display raw messages without
...
going through the message catalog.
2012-03-02 14:27:48 +00:00
mbalmer
a4373e9a91
Removing trailing whitespace.
2012-03-02 13:11:57 +00:00
joerg
560b3ec5de
Don't use non-literal format strings. Split it up depending on the
...
number of arguments used.
2012-02-29 23:37:07 +00:00
joerg
05959bffa3
Cast register_t to void * when printing with %p.
2012-02-29 23:35:49 +00:00
joerg
eb085c765d
Pointer differences are generally not integers, so use %td here.
2012-02-29 23:35:10 +00:00
wiz
8668cbeef5
Sync usage with man page. From Bug Hunting in PR 46102.
2012-02-29 08:55:25 +00:00
wiz
040902799c
Remove trailing whitespace. From Bug Hunting in PR 46102.
2012-02-29 08:54:55 +00:00
joerg
cdaeb35ee5
Mark sasprintf as using a printf-like format. Fix format string to use
...
all arguments by telling the user what file would be overwritten.
2012-02-28 22:30:44 +00:00
wiz
6e31cc7bbd
Sort options in man page. Add EXIT STATUS section. Bump date.
...
Sync usage with man page.
Mostly from Bug Hunting in PR 46102.
2012-02-26 21:04:10 +00:00
apb
daa17451fe
subtracting two pointers yields ptrdiff_t, so cast it to int.
2012-02-24 19:53:31 +00:00
apb
bb16246581
When given an URL that contains "://" but is not recognised,
...
print an error message. Now "ftp https://foo/bar " prints
ftp: Unsupported URL scheme `https'
instead of
ftp: Can't lookup `https:ftp': No address associated with hostname
ftp: Can't connect or login to host `https:?'
2012-02-24 19:40:49 +00:00
joerg
7a5b80bed9
Add explicit continue to empty loop body.
2012-02-24 16:03:39 +00:00