Commit Graph

8996 Commits

Author SHA1 Message Date
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
pooka
72d8b8b617 Support statvfs@openssh.com extension where available. Makes df(1)
return something other than just 0.
caveat: statvfs is done for the mountpoint path, so might not give
the truth about a directory inside the mountpoint.
2009-02-23 18:43:46 +00:00
yamt
9287e91c00 do_makedev: look at a correct directory for MAKEDEV.local 2009-02-22 15:27:44 +00:00
ad
33774d3216 Report LB_MISC events, for one-off instrumentation. 2009-02-22 15:08:58 +00:00