drochner
0fa7059102
define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160
2009-04-20 16:05:29 +00:00
mschuett
0d53a16d76
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
...
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.
Remove seperate definitions outside of queue.h.
2009-04-20 09:56:07 +00:00
ad
4d8f47ae2f
cpuctl:
...
- Add interrupt shielding (direct hardware interrupts away from the
specified CPUs). Not documented just yet but will be soon.
- Redo /dev/cpu time_t compat so no kernel changes are needed.
x86:
- Make intr_establish, intr_disestablish safe to use when !cold.
- Distribute hardware interrupts among the CPUs, instead of directing
everything to the boot CPU.
- Add MD code for interrupt sheilding. This works in most cases but there is
a bug where delivery is not accepted by an LAPIC after redistribution. It
also needs re-balancing to make things fair after interrupts are turned
back on for a CPU.
2009-04-19 14:11:36 +00:00
lukem
193dbe5711
fix -Wshadow
2009-04-19 08:53:37 +00:00
lukem
9a5b6d41c6
fix -Wshadow
2009-04-19 08:40:48 +00:00
lukem
0350114585
Fix WARNS=4 issues (-Wshadow -Wsign-compare)
2009-04-19 07:54:08 +00:00
lukem
96bb91fe3c
Fix WARNS=4 issues (-Wextra -Wshadow)
2009-04-19 07:49:07 +00:00
lukem
6bc6e73b91
Fix -Wsign-compare issues
2009-04-19 06:09:42 +00:00
lukem
d3d3aa621a
Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
2009-04-19 06:06:39 +00:00
lukem
9797780352
Fix -Wsign-compare issue
2009-04-19 04:01:06 +00:00
lukem
c7dd380491
Fix -Wsign-compare issues
2009-04-19 02:25:48 +00:00
lukem
228475234f
Fix WARNS=4 issues (-Wextra -Wsign-compare)
2009-04-19 01:53:17 +00:00
lukem
6363aba79d
Fix WARNS=4 (-Wcast-qual -Wextra)
2009-04-19 01:52:09 +00:00
lukem
975b87b4f5
Fix -Wcast-qual and -Wshadow issues
2009-04-19 00:56:32 +00:00
lukem
802fa86c68
Fix -Wcast-qual issue
2009-04-19 00:44:49 +00:00
lukem
dfb301f79f
Fix WARNS=4 issues (-Wshadow -Wcast-qual)
2009-04-19 00:26:18 +00:00
lukem
1638ad2757
Fix WARNS=4 issues (-Wextra -Wsign-compare)
2009-04-18 14:06:58 +00:00
lukem
e4e2f3f32e
Fix -Wextra issue
2009-04-18 14:02:42 +00:00
lukem
899b971d2c
Fix -Wsign-compare issue
2009-04-18 14:01:37 +00:00
lukem
6c07b7244e
Fix -Wshadow
2009-04-18 13:57:44 +00:00
lukem
ca5cba9384
remove unnecessary comments
2009-04-18 13:55:11 +00:00
lukem
c2fdfea89a
Fix -Wcast-qual and -Wsign-compare issues
2009-04-18 13:53:59 +00:00
lukem
46a41907e1
Fix WARNS=4 issues (-Wcast-qual -Wsign-compare).
...
XXX: could improve parsing of -v option and store "cutoff" as a uint64_t.
2009-04-18 13:37:04 +00:00
lukem
e3823f584e
Fix -Wsign-compare issue
2009-04-18 13:05:54 +00:00
lukem
0466bbb6dd
Fix -Wshadow and -Wcast-qual issues
2009-04-18 13:02:36 +00:00
christos
2eded15942
delete old bind
2009-04-18 13:01:19 +00:00
lukem
46c55ef395
Fix -Wshadow and -Wcast-qual issues
2009-04-18 12:57:10 +00:00
lukem
54f1cbbf7a
Fix -Wshadow issue
2009-04-18 09:25:50 +00:00
lukem
aad74fbea3
Fix -Wcast-qual issues
2009-04-18 09:20:40 +00:00
lukem
178a598d18
Fix WARNS=4 issues (-Wsign-compare -Wcast-qual)
2009-04-18 09:18:17 +00:00
lukem
09ae632551
Fix WARNS=4 issues (-Wshadow -Wsign-compare -Wextra)
2009-04-18 08:50:23 +00:00
lukem
88c712c252
Fix -Wcast-qual issues
2009-04-18 08:20:41 +00:00
lukem
4d2da769ca
Fix -Wcast-qual issue
2009-04-18 08:17:23 +00:00
lukem
4780f87772
Fix WARNS=4 issues (-Wsign-compare -Wcast-qual)
2009-04-18 08:08:36 +00:00
lukem
aecc7237da
Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
2009-04-18 08:05:18 +00:00
lukem
9559646817
Fix WARNS=4 issues (-Wsign-compare -Wextra)
2009-04-18 07:17:16 +00:00
lukem
35a4cbea60
Compare size_t vs off_t by casting both to uintmax_t
2009-04-18 06:28:19 +00:00
lukem
d5d23344d7
Fix -Wcast-qual issues
2009-04-18 05:09:15 +00:00
lukem
c83cfc0c59
Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
2009-04-17 16:12:46 +00:00
lukem
58cb611abb
Fix WARNS=4 (-Wshadow -Wsign-compare -Wcast-qual)
2009-04-17 16:05:43 +00:00
lukem
a23ae1c696
Fix WARNS=4 issues (-Wsign-compare -Wcast-qual)
2009-04-17 14:07:45 +00:00
lukem
95087e98e0
Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wextra -Wsign-compare)
2009-04-17 14:02:21 +00:00
lukem
0076abc054
Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
2009-04-17 13:56:33 +00:00
lukem
f7271183be
Fix WARNS=4 issues (many -Wshadow, -Wcast-qual)
2009-04-17 04:16:57 +00:00
lukem
b1b382ae67
Fix WARNS=4 issues (-Wshadow -Wextra -Wcast-qual -Wsign-compare)
2009-04-17 04:03:39 +00:00
dyoung
7af558eba1
Distinguish read(2) failure due to a short read from other causes, and
...
suggest in the error message a possible cause: the size= attribute in
the metalog (if one is given) may be different from the source file's
actual size.
2009-04-16 18:54:16 +00:00
lukem
43e54b3a2f
Fix -Wcast-qual issues
2009-04-16 07:13:16 +00:00
lukem
2269fc7ff3
Fix -Wsign-compare issues
2009-04-16 06:52:08 +00:00
lukem
24d76f1bcc
Fix -Wsign-compare issues
2009-04-16 06:27:43 +00:00
lukem
3365bf7170
Fix -Wsign-compare issues
2009-04-16 06:14:13 +00:00
lukem
5b43984129
Fix WARNS=4 issues (-Wcast-qual -Wshadow)
2009-04-16 06:07:53 +00:00
lukem
ed9b940f4a
Fix WARNS=4 (-Wshadow -Wcast-qual)
2009-04-16 05:59:56 +00:00
lukem
18f69179c9
Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
2009-04-16 05:56:32 +00:00
lukem
6651d58dfb
Fix -Wcast-qual issue
2009-04-16 02:11:44 +00:00
lukem
107925002e
Fix -Wsign-compare issues
2009-04-15 10:05:41 +00:00
lukem
778b72dfdb
Fix -Wsign-compare issues
2009-04-15 08:40:59 +00:00
lukem
8d37bc2951
Fix -Wsign-compare issue
2009-04-15 08:38:37 +00:00
pooka
73871be1ed
fix WARNS=4, recipe from lukem
2009-04-15 08:36:21 +00:00
lukem
a35a433358
Fix -Wshadow and 'setjmp clobber' warnings.
2009-04-15 08:33:04 +00:00
lukem
f6c4f0aee4
Fix WARNS=4 (-Wshadow -Wcast-qual -Wsign-compare)
2009-04-15 08:26:34 +00:00
lukem
98e270d73f
Fix -Wsign-compare issue
2009-04-15 06:01:01 +00:00
lukem
04532254ee
Fix -Wsign-compare issue
2009-04-15 05:50:20 +00:00
lukem
984afef138
Fix WARNS=4 issues (-Wsign-compare -Wextra)
2009-04-15 05:43:22 +00:00
lukem
3d305af9f2
Fix -Wsign-compare issue
2009-04-15 05:41:09 +00:00
lukem
19a92f1b8c
Fix -Wsign-compare issue
2009-04-15 01:01:06 +00:00
lukem
d8a2ebd20f
Fix -Wsign-compare issues
2009-04-15 00:40:01 +00:00
lukem
2132a832ac
Fix -Wsign-compare issue
2009-04-15 00:37:05 +00:00
lukem
020f7791cb
Fix -Wsign-compare issues
2009-04-15 00:35:04 +00:00
lukem
4d8dfd66df
Fix -Wsign-compare issues.
...
(Use %u not %d for unsigned ints.)
2009-04-15 00:32:23 +00:00
lukem
7affd6558f
Fix -Wsign-compare issues
2009-04-15 00:13:50 +00:00
wiz
fe9ffd31fe
New sentence, new line. Use .An.
2009-04-12 19:39:52 +00:00
joerg
bd9cbe41e8
Remove conditional, groff now knows how to deal with ASCII output.
2009-04-12 18:51:33 +00:00
christos
b9beabb76c
unhook bind
2009-04-12 17:13:06 +00:00
apb
6e9108295a
When an mtree spec file omits a parent directory, "missing directory in
...
specification", instead of "no such file or directory".
2009-04-11 14:32:51 +00:00
wiz
5f950b1010
New sentence, new line.
2009-04-11 13:24:37 +00:00
wiz
159965be32
Sort option descriptions.
2009-04-11 13:24:17 +00:00
wiz
3bafbbb30d
New sentence, new line. Remove empty section. Add comma in enumeration.
2009-04-11 13:24:00 +00:00
lukem
f93f13ab6f
fix -Wsign-compare issue on amd64
2009-04-11 12:55:29 +00:00
lukem
7f26f737dc
fix -Wcast-qual issues
2009-04-11 12:44:29 +00:00
lukem
ad5ee40a86
fix WARNS=4 issues
2009-04-11 07:51:59 +00:00
reed
85ecea6539
Make sure named-compilezone manual page is available too.
...
(Upstream provides as a symlink to named-checkzone, but using MLINKS
here.)
2009-04-10 03:50:38 +00:00
apb
02a79f3336
* Rewrite intro to mention all three things mtree can do (check directory
...
tree against spec; create spec; modify spec).
* Consistently use "options" to refer to command line options. "flags"
is used to refer to file flags.
* Some other clarifications and changes for consistency.
2009-04-09 09:53:37 +00:00
joerg
a5e9c389e6
Quote potential macro used as literal. Don't use .Xo/.Xc to work around
...
ancient groff macro argument limit.
2009-04-09 04:10:40 +00:00
joerg
d87cddc68e
.br -> .Pp, capitalize subsection titles
2009-04-09 02:41:44 +00:00
joerg
d942d2f2cd
Don't depend on magic default value for -offset. Don't use .br, use a
...
paragraph. Use more sane indentation and avoid compact style for huge
list to make it more readable.
2009-04-09 02:30:51 +00:00
wiz
d1b96e557a
Sync usage with man page.
2009-04-08 19:43:05 +00:00
wiz
7b2130ba39
Sort options and option descriptions.
...
Remove an incomplete sentence ("It will") -- probably pasto.
Give the tagged lists more space for the first column.
Remove unnecessary Bk/Ek pairs.
2009-04-08 19:39:23 +00:00
apb
ef658dd50e
The recent addition of sorting to "mtree -C" broke some third party
...
scripts. Now make sorting optional, controled by the "-S" flag.
2009-04-08 19:03:13 +00:00
joerg
bd027b10ec
Fix markup.
2009-04-08 14:36:41 +00:00
joerg
b20b8e52a6
Add missing quotes.
2009-04-08 14:33:12 +00:00
joerg
cdea36b6f8
Fix markup.
2009-04-08 14:20:38 +00:00
joerg
2cfdc9a96c
Convert to more semantic markup.
2009-04-08 13:47:07 +00:00
joerg
d2c5af5c91
Use semantic markup.
2009-04-08 13:41:54 +00:00
joerg
f4bfcdb4ae
Improve markup.
2009-04-08 13:36:32 +00:00
joerg
663328acb0
Remove non-sensical .ad macro. Don't use .Xo/.Xc.
2009-04-08 13:31:38 +00:00
joerg
32a51b5de6
Fix markup.
2009-04-08 13:13:42 +00:00
apb
62b6b42c6f
fix another missing "prev" link
2009-04-07 18:06:41 +00:00
martin
ecad31aebd
Now that we use ?= to optionally assing to ddb.onpanic, match that when
...
testint existing configurations too.
2009-04-06 00:30:33 +00:00
apb
dc1b0e5339
Fix broken "prev" pointer in one case.
2009-04-05 15:47:03 +00:00
dogcow
f0f15c8b0d
Watch one's "p"s and "q"s and fix cast aspersions on alpha ("warning: field
...
precision should have type 'int', but argument 2 has type 'long int'")
2009-04-05 12:15:07 +00:00
lukem
aa4393e8f7
WARNS=4
2009-04-05 12:04:04 +00:00
lukem
cf65938aa6
fix sign-compare issues
2009-04-05 12:03:48 +00:00
lukem
2b2f4703f2
fix sign-compare issues
2009-04-05 11:48:02 +00:00
apb
c5c8c1dcb2
Tags are internally stored with leading and trailing commas, for ease
...
of using strstr(3) to check them against inclusion or exclusion lists.
Don't output the leading or trailing commas.
2009-04-04 21:49:49 +00:00
christos
9587268219
fix pasto: don't print the critcap when the warncap was asked. Also off by
...
one in length. From Anon-Ymous.
XXX: Should pull up to 5.0
2009-04-04 18:43:01 +00:00
wiz
88ada6d2b7
Convert to mdoc. Bump date for previous.
2009-04-04 17:29:59 +00:00
perry
4cfab35c9c
New feature: "?" for time specifications, means a single time selected at
...
random from within the range at file read time. Very useful if you
want to avoid having a fleet of machines melt a server by all trying to
contact it at a precise time every morning. See docs for details.
Reviewed by: christos, apb, vixie, others.
XXX apb suggests, quite reasonably, that ?10-16/2 should mean
something like 10,12,14,16 or 11,13,15. I'm too lazy to do it right
now, but it should be done.
XXX vixie suggests, quite reasonably, that if you're using "?" one
should delay randomly by 0-59 seconds. In the modern NTP world, you
could imagine that with a million well synchronized machines the
second just at the minute would be hit quite hard. I'm too lazy to do
it right now, but it should be done.
XXX cron needs to be updated to Vixie's cron 4.1 code.
2009-04-04 16:05:10 +00:00
apb
5e464841ab
Make "mtree -C" sort its output.
...
As the input is read from a specfile into a tree of linked lists,
keep each linked list sorted. The sort order is the same as that
already used by "mtree -c": directories sort after non-directories, but
otherwise names are sorted in the order used by strcmp().
2009-04-03 21:18:59 +00:00
christos
af069eb3c7
Centralize the ROUNDUP and ADVANCE macro in a header file, give them an
...
RT_ prefix and use them appropriately, instead of making copies. Make
pppd use the RT_ROUNDUP macro; fixes proxyarp setting on 64 bit hosts.
XXX: All this should be pulled up to 5.0
2009-04-02 21:02:06 +00:00
martin
4e59766728
Make the ddb.onpanic line acceptable even if commented out
2009-04-01 16:38:46 +00:00
pooka
d3739e6172
Save errno before descending to cleanup gehennom.
2009-03-29 16:06:53 +00:00
dholland
a1d97be176
Minor fix, from Alan R. S. Bueno in PR 41046, adjusted by me to not use
...
the default operand of .Ar on grounds of source clarity.
2009-03-29 06:04:50 +00:00
ad
5d2a6ba964
Add -x: summarize events, and do not report on lock types.
2009-03-21 13:02:19 +00:00
mike
c7f073e0ff
Fix check for duplicate gid when '-g =uid' is specified to usermod.
...
Closes PR bin/40391
2009-03-20 02:53:47 +00:00
pooka
61260da885
In case the portal provider fails, do not try to pass an
...
uninitialized fd value. Also, propagate errno to the caller.
2009-03-18 09:10:16 +00:00
mike
0779b10efc
Do not allow duplicate group id in groupmod unless -o is specified.
...
Closes PR bin/40393
2009-03-18 04:59:45 +00:00
tsutsui
38357705f9
Increase size of buffer for humanize_number(3) to print cache sizes
...
so that it can return 128KB, 256KB and 512KB properly instead of
truncated 0MB or rounded 1MB.
Problem reported by nisimura@ on port-amd64 and port-i386.
2009-03-16 12:25:40 +00:00
wiz
2f43aa5f3a
Fix Xref, prepare for HTML output.
2009-03-15 21:43:28 +00:00
joerg
7ec31b06bd
Fix markup, making it symmetrical between filter6_values and
...
filter_values.
2009-03-15 12:30:09 +00:00
joerg
70f96e3d54
Fix markup.
2009-03-15 10:09:29 +00:00
joerg
6c62880d49
Remove .Pp as it breaks visible context.
2009-03-15 10:04:27 +00:00
yamt
538489ba39
print some SVM info if available.
2009-03-12 09:10:15 +00:00
martin
7d53797861
Switch the default value (if no options DDB_ONPANIC is defined) for
...
ddb.onpanic to 1, change it back to 0 in sysctl.conf and make sure
postinstall installs this setting.
This avoids us trying to dump while booting from install CD, but keeps
the default the same once we are far enough through /etc/rc.d. Failing
earlier is unlikely to be recovered by an automatic reboot.
OK: core.
2009-03-11 23:22:57 +00:00
joerg
4945fc29a8
Simplify markup by not using .Xo/.Xc.
2009-03-11 18:52:54 +00:00
joerg
d6f49c1ea9
Improve and fix markup.
2009-03-11 18:47:52 +00:00
joerg
9ae0c77a07
Don't use .Xo/.Xc to avoid ancient macro argument limit.
...
Replace .Sm off / .Sm on with .Ns.
2009-03-11 18:23:38 +00:00
joerg
284c3410b6
Don't use .Xo/.Xc. Replace use of .Sm off / .Sm on with .Ns.
2009-03-11 18:10:05 +00:00
joerg
e4e7c43459
Don't workaround ancient macro argument limit with .Xo/.Xc.
2009-03-11 18:02:00 +00:00
dyoung
8bd55ddc61
Delete misplaced period and line ending.
2009-03-11 17:54:03 +00:00
christos
7022cb2a8d
bin/40994: Michael van Elst: usermod -l change password so user is unable to
...
login. User getpwnam_r to avoid trashing result of previous call to getpwnam().
2009-03-11 14:18:03 +00:00
joerg
0bdacf5008
Fix markup
2009-03-11 14:00:29 +00:00
joerg
afe5a26320
Fix preamble
2009-03-11 13:59:33 +00:00
mrg
01a13dba2c
convert getfiles() to use KERN_FILE2 sysctl.
...
now it can survive "struct file" changing, as is upcoming.
2009-03-11 06:00:11 +00:00
plunky
7a71a8c7db
use the generic SIOCALIFADDR to add an active link layer address
...
instead of the (soon to be) deprecated SIOCSIFPHYADDR
2009-03-10 22:12:17 +00:00
joerg
c33b9a443e
Remove redundant .Xo / .Xc scope.
2009-03-10 13:34:45 +00:00
jakllsch
46fa0abcaf
sizeof(time_t) is no longer the same as the sizeof(uint32_t)
...
that RFC 868 specifies.
no functional change intended.
2009-03-10 00:26:20 +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
ad
69f9e17075
Don't bother with file_t::f_iflags any more, as it's not used.
...
Noted by mrg@.
2009-03-08 12:52:08 +00:00
ad
101a9782a2
Add crash(8), a utility to diagnose kernel crashes. This is basically
...
ddb running on crash dumps, but with two notable changes:
- Breakpoints, watches, etc are obviously never going to work so they
are not handled.
- You can pipe output to the shell, e.g. ps | grep foo
Items remaining to be done:
- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.
- Make more of the "show" commands work, e.g "show uvmexp".
2009-03-07 22:08:07 +00:00
apb
09ba0a6ca8
Replace local swap16, swap32, and swap64 inline functions with the
...
NetBSD conventional bswap16, bswap32, and bswap64 functions or macros.
In a non-tools build, include <sys/types.h> and <machine/bswap.h> to
get definitions of these functions. In a tools build, rely on the
functions or macros being provided by nbtool_config.h, but don't incluce
<machine/bswap.h> (which might not exist in a cross build).
This should address a problem building on OpenBSD, which has swap16,
swap32, and swap64 macros that conflicted with the local definitions.
The problem was reported by Alexander Bluhm, but this patch is quite
different from the one he suggested.
2009-03-06 19:05:11 +00:00
christos
41802a0069
fix horrible memory trashing.
2009-03-04 18:22:14 +00:00
nonaka
674f8b31d6
do WSMOUSEIO_SETVERSION when WSMOUSEIO_SETVERSION is defined.
2009-03-03 18:43:15 +00:00
apb
c163e7100a
As long as we don't yet have a working TOOL_GREP,
...
fgrep is more portable than grep -F.
2009-02-26 10:32:43 +00:00
apb
b56c1a749f
In file_exists_exact(), fix an incorrect test of "1" instead of "$1",
...
and improve the comment explaining what this function does.
2009-02-26 08:25:50 +00:00
apb
6eefb4e5ea
"grep -q" is not portable; use "grep >/dev/null" instead. Also add a
...
comment saying that postinstal is invoked during a cross build.
2009-02-26 08:05:09 +00:00
wiz
2dba01f8d6
Make "sftp" a link.
2009-02-26 07:14:36 +00:00
sketch
bb0a3b607e
Use awk and grep host tools where required. 'build.sh release' now works
...
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).
2009-02-25 20:38:30 +00:00
pooka
928c35bfce
add caveat about info displayed by df(1)
2009-02-25 18:05:32 +00:00
dyoung
ac7c88b5d2
Look for MAKEDEV.local in both ${SRC_DIR}/dev/ and ${SRC_DIR}/etc/,
...
so that 'postinstall check makedev' works whether the sources told
by the -s argument are a NetBSD source tree, etc.tgz, or a DESTDIR.
2009-02-25 01:11:50 +00:00
sketch
7ce9d1c8ea
Make 'build.sh tools' work with the Sun Studio compiler, although bugs in
...
some of the generated tools still prevent building a full release using them.
2009-02-24 22:25:24 +00:00