Commit Graph

9328 Commits

Author SHA1 Message Date
lukem 7c56c3165d refer to FFSv1 instead of UFSv1 2009-05-07 07:03:39 +00:00
lukem 18f0896759 Display the superblock format as the second line ("FFSv1" or "FFSv2").
No need to display the magic format further down.
2009-05-07 06:40:38 +00:00
wiz cc8e7a968a Add missing apostrophe. 2009-05-04 22:31:36 +00:00
wiz 36ad9ca39e Remove superfluous comma. 2009-05-04 20:54:50 +00:00
wiz d85266f985 Fix formatting. New sentence, new line. 2009-05-04 20:47:48 +00:00
wiz 274aaf51a5 New sentence, new line. 2009-05-04 19:11:49 +00:00
kefren 975948c441 Fix formatting for printing size_t 2009-05-03 07:24:55 +00:00
plunky e5826973cc add a noisy debug message for overlong packets
(I do get them from my phone)
2009-05-02 20:13:44 +00:00
plunky 02f520acc7 use assert() instead of _DIAGASSERT()
suggested by emax@freebsd
2009-05-02 20:07:51 +00:00
christos 11a630f123 easier done with a goto instead of closing in each error. 2009-05-02 16:19:36 +00:00
elad 0b783346d2 PR/41332: Jason V. Miller: paxctl(8) leaks file descriptors
Always close(fd) before returning.

Thanks for the report!
2009-05-02 06:01:30 +00:00
pooka 45ef580f17 Merge librumpfs_ufs into librumpfs_ffs. This reflects what happened
with the ffs kernel module and follows the trend of retiring ufs.
It also allows to get rid of a special case kludge in runtime module
loading, since ufs was not really a module.  librumpfs_ufs is now
obsoleted and ffs consumers should be linked solely against
librumpfs_ffs.
2009-05-02 01:15:52 +00:00
agc b79fe05de0 Get rid of files which aren't used 2009-05-01 23:40:32 +00:00
nakayama c7386761f6 WARNS=4 fixes. 2009-04-30 16:10:10 +00:00
nakayama 4ff5774174 WARNS=4 fixes. 2009-04-30 07:45:28 +00:00
nakayama 1d09b9bbae More WARNS=4 fixes, for sparc and sun3. 2009-04-29 09:13:58 +00:00
joerg 70e3d67b70 Create images with 0666 - umask, not 0777 - umask (e.g. without x bits). 2009-04-28 22:49:26 +00:00
nonaka 50010e742d Fix WARNS=4 issues. 2009-04-28 10:57:24 +00:00
lukem 103ca7bc06 Fix issue I introduced in WARNS=4 -- addition of extra argument to default argv.
Found & fixed by Geoff Wing.
2009-04-28 08:32:56 +00:00
mlelstv 094ee5306f don't discard const qualifiers 2009-04-26 19:56:20 +00:00
mlelstv 4c90ae5cf0 don't discard const qualifiers 2009-04-26 19:24:18 +00:00
lukem e92226ab69 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)
Fixes PR bin/41283
2009-04-26 04:54:27 +00:00
lukem 7a4c7e7ffc Fix WARNS=4 issues (-Wextra -Wcast-qual).
Resolves PR bin/41282
2009-04-26 01:51:07 +00:00
lukem a3417b09b0 WARNS=1 for pf 2009-04-23 05:25:06 +00:00
lukem 74f7394a13 Allow WARNS=4 after Christos' fix sys/cdefs.h 2009-04-23 01:37:55 +00:00
lukem 6c17577005 Fix -Wsign-compare issue 2009-04-23 01:36:56 +00:00
christos 33c521093c WARNS=4 2009-04-22 18:10:38 +00:00
lukem d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
joerg e7f29a3386 Split fsck during boot into two phases. Check the root file system
first, mount root and run the various disk providers. Add swap and
check the remaining file systems after that.
This breaks the dependency cycle for lvm, which needs writeable /dev.
Depend on rndctl in cgd.
2009-04-21 16:08:57 +00:00
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
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
christos b86f9ffb61 CID 4393: plug memory leak. 2009-02-18 20:06:27 +00:00
is 11927f0b16 synchronize error flags with own comment and with traceroute, as discussed
on tech-net.
2009-02-16 20:36:11 +00:00
reinoud 9277c1a831 Remove idd `tag' left over from importing this file into NetBSD.
Thanks Soren :)
2009-02-16 06:46:54 +00:00
pooka 501138e80e regen: putter in synopsis and note about experimental status 2009-02-15 18:01:26 +00:00
pooka 0838b02036 * include "pseudo-device putter" in synopsis as requested by hubertf
* note that rump p2k utilities are currently experimental (noted
  already on the rump manpages, but better note it here also)
2009-02-15 18:00:16 +00:00
wiz 845915475d New sentence, new line. Bump date for previous. 2009-02-15 00:01:19 +00:00
ahoka 4f97e87b0c Add support for showing temperatures in Kelvin. 2009-02-14 16:08:22 +00:00
abs 515e52158b Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
uebayasi a6f7a3d986 Disable debug. 2009-02-13 16:16:26 +00:00
uebayasi a6533b8fed Comment out CFLAGS+=-g. 2009-02-13 16:02:05 +00:00
pooka 1ca3ac22a3 regen: note that vnconfig not required 2009-02-10 15:08:40 +00:00
pooka 108fcd8ae3 Note that the rump file servers do not require use of vnconfig when
mounting images.  Suggested by apb
2009-02-10 15:04:35 +00:00
mschuett 499d95ff35 PR/40563: Takahiro Hayashi: syslogd(8) refers freed pointer on exiting 2009-02-06 21:09:46 +00:00
plunky fe9facd3bf use some size_t instead of int 2009-02-04 19:24:18 +00:00
uebayasi 9281ce080c Make nbpwd_mkdb always generate version 1 by deciding version depending on
sizeof(pw_change).  No objection on tech-userlevel.
2009-02-02 04:24:18 +00:00
wiz 7eff20f8db New sentence, new line. 2009-02-02 03:27:37 +00:00
hubertf 47da095c98 -c: make it clear where the file hierarchy starts
-I, -E: they also work with -C, not just with -D
2009-02-01 22:37:22 +00:00
hubertf dde9e1886b When {MD5,RMD160,SHA1,SHA256_,SHA384_,SHA512_}File fail, use errno
to print what's actually wrong
2009-02-01 22:36:24 +00:00
wiz e0de6d25c7 Bump date for previous. 2009-02-01 12:59:05 +00:00
yamt 168debd7ec note some options' optarg in DESCRIPTION as well. 2009-02-01 08:12:25 +00:00
yamt ca6221a5b3 make -o option consistent with others. 2009-02-01 07:55:42 +00:00
plunky 8f0a91453b Fix a problem which prevents remote parties connecting to our NAP service,
we got the services mixed up.
2009-01-31 07:21:15 +00:00
ad 47afbfb94e cpuctl list: map hardware id after getting state. avoids screwed up display
when ci_cpuid != cpu_index()
2009-01-28 22:37:09 +00:00
jklos c259dad90f Added MAKEDEV.local to postinstall's makedev check. Upgraded systems were
not getting an updated MAKEDEV.local file.
2009-01-26 07:40:01 +00:00
yamt efeccfb5bc fix an error message. 2009-01-26 05:53:10 +00:00
plunky 8d16a25319 The "Service Availability" value in the SDP record should be a number
from 0-255 indicating how much availability the service has, rather
than the "Load Factor (0-7)" as used in the "Class of Device" setting.
2009-01-24 17:29:28 +00:00
mschuett c998ee30ad PR/40438: Takahiro Hayashi: syslogd(8) refers freed area 2009-01-22 21:10:52 +00:00
lukem 64d3f79556 sign-compare fixes for amd64 2009-01-22 10:45:35 +00:00
bjh21 9d5675794b Bump date for last change. 2009-01-20 20:47:25 +00:00
christos 962e67cdc0 fix version ioctl 2009-01-19 00:53:15 +00:00
he fddc3457b2 Change the use of formally undocumented features, which have now been
made to fail.  Specifically, change
.ifdef(SYMBOL) -> .ifdef SYMBOL or .if defined(SYMBOL),
and corresponding for .ifndef.

Also correct one error in lib/libm/Makefile (.ifdef (${MKCOMPLEX} != "no")?!?).
2009-01-18 20:42:11 +00:00
lukem c5eb4ab601 fix -Wsign-compare issues 2009-01-18 11:56:51 +00:00
lukem b118202501 fix -Wsign-compare issues 2009-01-18 10:39:17 +00:00
lukem 7e0b2295e7 fix -Wsign-compare issues 2009-01-18 10:35:26 +00:00
lukem 3cafe960ea fix -Wsign-compare issues 2009-01-18 10:10:47 +00:00
lukem 29f2e1ce01 fix -Wsign-compare issues 2009-01-18 10:01:34 +00:00
lukem f5a433a737 fix -Wsign-compare issues 2009-01-18 09:57:26 +00:00
lukem e7dd2c7514 fix -Wsign-compare issues 2009-01-18 09:46:59 +00:00
he 38068400a9 Avoid casting an uisigned to a signed value, thereby invoking formally
undefined behaviour.  Instead go via u_int and print with %u.
2009-01-17 22:01:32 +00:00
pooka aeac8f5107 Move fs-specific stuff in Makefile to fs/Makefile.inc to clarify
top-level Makefile.
2009-01-16 19:39:52 +00:00
pooka 9857fb8cb2 remove fsopts asserts - the parameter is unused, so we don't care here 2009-01-16 18:02:24 +00:00
jmmv 9b08dc4841 Make sure that the database version is correct if we are updating a single
record; otherwise, bail out early to avoid leaving the database in an
inconsistent state (some old-format records, one new-format record).
2009-01-16 10:42:36 +00:00
junyoung 555ffa79b2 Fix one more build breakage ("warning: 'er' may be used uninitialized in
this function").
2009-01-16 10:24:20 +00:00
junyoung 121584256f Fix build error (hi christos). 2009-01-16 07:09:09 +00:00
haad f42e53f384 Add lvm script to the lists. 2009-01-16 01:58:32 +00:00
plunky c2336815fa use msg_flags field to determine
a. if the PDU is truncated, close client fd
    b. if a control message is truncated, ignore it
2009-01-15 23:17:00 +00:00
christos 651aa5ccda - remove errmsg; we all have strerror() these days.
- sanitize error printing. Try to print the system error or a reason for
  the message.
2009-01-15 15:58:42 +00:00
christos 19540887f2 - Don't use TOOL_SED; we are not a regular Makefile
- PREFIX defaults to /usr/pkg
- use -g
- delete errmsg.c
2009-01-15 15:57:18 +00:00
christos 5f47ffa430 Oops, forgot to merge this. 2009-01-14 23:18:57 +00:00
he 434b1b61b6 Add a cast to make this build again (no sense in doing PRIu64 when we
& with 7 right after).
2009-01-14 22:57:48 +00:00
reed 26542189a9 Improve -G documentation. It may be repeated.
And value may be comman-delimited list of groups.
16 maximum groups.
2009-01-14 02:18:28 +00:00
christos 4cc87f6053 set the event protocol version. 2009-01-13 18:09:19 +00:00
pooka f604838fff Remove -I${NETBSDSRCDIR}/sys. I have no idea why it was there, but
it sure creates some interesting side-effects.
2009-01-12 20:43:29 +00:00
wiz 140f24c96f regen. 2009-01-11 22:03:15 +00:00
wiz 9492e5b9bf Make ready for HTML output, add comma. 2009-01-11 22:03:10 +00:00
wiz eaae165147 Mark up arguments with Ar and drop trailing whitespace. 2009-01-11 22:02:38 +00:00
pooka 317dcf1496 regen: mount -o rump 2009-01-11 21:15:31 +00:00
pooka 4c643b2022 Note mount -o rump support. 2009-01-11 21:15:07 +00:00
pooka bbf08a8acb Default to threading, non-threaded debug mode can be compiled separately.
Useful if running this from fstab.
2009-01-11 20:31:03 +00:00
bjh21 f8474b32a7 Add support for encoding RISC OS metadata into ISO 9660 filesystems.
This is done by adding the general ability to stuff non-SUSP data into
the end of the System Use field of a Directory Record, which required
some amount of rewriting of the SUSP support.  I think the result is
at least as good as what came before, and I've fixed at least one bug
along the way.  Tested against RISC OS 3.70 on my Risc PC.

Oh, why do we want it?  It should allow us to make acorn{26,32} CDs that
can be booted directly from RISC OS without mucking around copying the
bootloader to a native filing system.
2009-01-10 22:06:29 +00:00
pooka 29d7878897 Don't compile diagnostic code which accesses kernel symbols directly.
Will fail now since not all archs have the same symbol names.
2009-01-10 20:21:15 +00:00
he 8309b1bdfc Initialize a local variable to get rid of a "may be used uninitialized"
warning (turned into error by -Werror).
2009-01-10 11:04:36 +00:00
bjh21 7dd482c240 Fix another bug in SUSP "CE" handling: when the SUSP records fit into
the System Use field with fewer then 28 bytes to spare, we were
remembering the wrong length for the System Use field and hence
emitting a corrupt directory entry.  This could be triggered by trying
to build a filesystem containing a regular file with a 120-byte name.
Now we're a little more careful.
2009-01-09 00:24:07 +00:00
bjh21 61773f97b8 When splitting a System Use Area between a System Use field and a
Continuation Area, be sure to insert the "CE" record at the correct
point in the chain of SUSP records.  Without this, makefs emits
an invalid image if any file needs a Continuation Area.  The bug
seems to have been introduced with the conversion to TAILQs.
2009-01-08 23:31:33 +00:00
bjh21 a9eb597f96 Typo: debuging -> debugging. 2009-01-08 22:28:45 +00:00
bjh21 72846fc11e If the user specifies a cd9660-specific option that needs an integer value
without supplying a value, complain at them instead of segfaulting.
Or, to put it another way, check that the value is non-NULL before calling
set_option().
2009-01-08 22:26:19 +00:00
christos 8b39f71df8 - when we close an se_fd, set it to -1
- fix int/ssize_t/size_t/socklen_t issues
- fix casts
- remove unused variables
- fix prototypes
- fix const
- remove unneeded casts
2009-01-08 21:37:20 +00:00
kardel 300f8f3036 merge ntp 4.2.4p6 2009-01-08 20:09:03 +00:00