jakllsch
58fe39198a
Wrap or shorten lines longer than 80 columns.
2011-10-31 14:44:07 +00:00
christos
1309a94f0a
remove some lint
2011-10-30 18:40:06 +00:00
christos
f772004800
cleanup some messy casts and type violations.
...
XXX: There is one piece of code I marked that does not make sense.
Someone should take a look at it.
2011-10-29 16:54:49 +00:00
jakllsch
34ce9c94ba
use C99 fixed-width integer types
2011-10-24 19:15:42 +00:00
jakllsch
fbc01b29da
constify
2011-10-24 19:13:03 +00:00
jakllsch
44a52e4ad8
change lines containing only whitespace to empty lines,
...
remove trailing whitespace
2011-10-24 15:56:17 +00:00
christos
2360984d25
add printflike and fix the format error.
2011-10-23 23:41:56 +00:00
agc
75a17f3ce7
Start to move the in-kernel iSCSI initiator, kindly contributed to the
...
NetBSD Foundation by Wasabi Systems, from
othersrc/external/bsd/iscsi/{iscsictl,iscsid}
to
src/sbin/{iscsictl,iscsid}
2011-10-23 21:11:23 +00:00
dyoung
91e31ba9fe
Don't print the silly header, "Properties for device `xxx0':", before
...
the device properties if the -n option was given.
2011-10-19 22:13:46 +00:00
christos
f42bf26590
PR/45456: Tetsuya Isaki: Don't mix stdio and write.
2011-10-12 16:45:37 +00:00
christos
daed4f8c46
fix the date.
2011-10-12 16:41:47 +00:00
martin
dfa74ee736
Two small fixes from David H. Gutteridge in PR bin/45454.
2011-10-12 10:33:14 +00:00
joerg
f843de8680
Simplify.
2011-10-07 09:56:15 +00:00
dholland
adcc6f36b6
Fix thinko about halt vs. poweroff; from Moritz Wilhelmy in PR 45141.
2011-10-04 07:25:34 +00:00
pgoyette
0b5ef36c08
Fix typo
2011-10-01 02:55:00 +00:00
mrg
1ca3e5d8c0
print the serial number as an unsigned number.
2011-09-28 10:29:41 +00:00
wiz
82c488769a
Minimally document gpt recover. Bump date.
2011-09-19 10:40:35 +00:00
plunky
2b8aaed8cd
NULL does not need a cast, here
2011-09-16 16:13:16 +00:00
joerg
bd80b77cd9
Use __dead. Save a pointer.
2011-09-16 15:42:56 +00:00
wiz
369bd71deb
Consistently spell MS-DOS with a hyphen. From Snader_LB.
2011-09-15 09:44:59 +00:00
christos
42d1e41665
print the missing flag if missing argument...
2011-09-13 19:55:28 +00:00
wiz
c94449f6a8
Fix typo.
2011-09-13 08:54:11 +00:00
christos
8b1d441333
document that dumpdir is now optional
2011-09-12 21:22:27 +00:00
christos
7249eb3f75
- always print corrupted dump messages instead of silently failing
...
- don't require /var/crash to be specified, default to it
- determine and print the kernel name
- print all messages to syslog
2011-09-12 21:22:07 +00:00
christos
bdfab20ffb
print summary stats.
2011-09-11 17:18:52 +00:00
wiz
72a60d8cd5
Another option order fix.
2011-09-10 20:47:33 +00:00
wiz
51f435b8eb
Sort options and descriptions in standard order.
...
Remove unecessary Bk/Ek in SYNOPSIS.
2011-09-10 20:46:43 +00:00
christos
e8ad09e0b7
PR/45257: Instead of passing a 32bit sec and 32 bit usec timestamp in little
...
endian format by default, pass a struct timespec in native host format. Add
-C flag to produce a compatible timestamp like before.
2011-09-10 20:04:28 +00:00
riz
b146b6f7a7
Build and install the skeleton manpage for devpubd - it's better than
...
nothing.
2011-09-06 21:30:12 +00:00
christos
9bf741a041
put back the byte swapping code, and remove the double byte swapping.
2011-08-31 22:27:26 +00:00
riz
e14f406cd9
Remove erroneous seq=ntohs(seq) introduced in rev. 1.74, which caused
...
icmp_seq numbers to increment by 256 instead of 1 on LE platforms.
2011-08-31 22:05:57 +00:00
bouyer
a47e2eb758
Add getlabelusesmbr(), as proposed in
...
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
2011-08-30 12:39:49 +00:00
bouyer
d8593e7a9a
PR bin/45299: print FBMASK not FFMASK when lfs_fbmask is incorrect.
2011-08-29 18:43:20 +00:00
joerg
baa8e84b6f
Use __dead
2011-08-29 14:34:58 +00:00
joerg
693655118a
static + __dead
2011-08-29 14:29:21 +00:00
wiz
5febc69036
Add minimal devpubd man page, not hooked into the build yet.
...
XXX: someone should write drvctl(4)
2011-08-29 14:21:50 +00:00
jruoho
7fc7b88321
Remove a comma. From "Snader_LB" on freenode.
2011-08-29 11:47:46 +00:00
mrg
f385d8f556
add the device publish daemon, written by jmcneill@.
...
listens on drvctl for new devices and invokes MAKEDEV for them.
missing:
- manual page
- rc.d script
- more testing
but it works well enough to make new disk nodes appear in /dev when
netbsd sees them and they're missing. you will need to make sure
you have a new /dev/MAKEDEV for this to work properly (postinstall
should handle this normally, of course.)
thanks jared!
2011-08-29 11:38:48 +00:00
wiz
f91d202feb
Move a sentence to where it makes more sense.
2011-08-28 21:25:11 +00:00
wiz
6964284f70
New sentence, new line.
2011-08-28 17:15:16 +00:00
gson
d2c5449570
fix the sparc build
2011-08-28 15:46:26 +00:00
christos
694c2250cf
make it compile with SMALLPROG
2011-08-28 10:13:03 +00:00
mbalmer
eba5829387
Remove duplicate static.
2011-08-28 08:43:02 +00:00
christos
4d53e32690
one static is enough, otherwise you risk zapping yourself.
2011-08-27 20:49:03 +00:00
joerg
e837071dcc
Mark yyerror as static and dead.
2011-08-27 19:01:34 +00:00
joerg
b79356001b
static + __dead
2011-08-27 18:57:50 +00:00
joerg
8d4273fcb4
__dead + kill main prototype.
2011-08-27 18:55:58 +00:00
joerg
bab034bac4
static + __dead
2011-08-27 18:55:21 +00:00
joerg
8bdebf9d52
statc + __dead
2011-08-27 18:54:39 +00:00
joerg
fdbae3b9b7
static + const + __dead
2011-08-27 18:48:59 +00:00
joerg
eccb2789c7
static + __dead
2011-08-27 18:44:44 +00:00
joerg
3fedada239
static + __dead + G/C pathmtu
2011-08-27 18:43:24 +00:00
joerg
c6d7b0bb59
static + __dead
2011-08-27 18:37:41 +00:00
joerg
c0a388c8b2
Be more static.
2011-08-27 17:45:30 +00:00
joerg
d2ac3967fe
Be more static
2011-08-27 17:43:42 +00:00
joerg
a4b65553ae
Use __dead
2011-08-27 17:38:16 +00:00
joerg
8e00898905
static + __dead
2011-08-27 17:36:05 +00:00
joerg
6923d07c1a
Use __dead and __printflike.
2011-08-27 17:34:44 +00:00
joerg
9c28fb5747
staticfy. __dead.
2011-08-27 17:16:01 +00:00
joerg
9f300e34f1
static. dead.
2011-08-27 17:07:28 +00:00
joerg
22db016bc9
Mark usage as static and dead.
2011-08-27 16:43:07 +00:00
christos
17187885c3
PR/45301: Julian Fagir: make clear that the unit is sectors and fix a typo.
...
While there, use errx, and sizeof(*var) instead of sizeof(type)
2011-08-27 16:34:57 +00:00
joerg
307d355803
staticfy. __dead.
2011-08-27 16:34:38 +00:00
joerg
fbefc91819
static. __dead.
2011-08-27 16:29:51 +00:00
joerg
1a61ef5ea6
staticfy. Use __dead.
2011-08-27 16:12:54 +00:00
joerg
1cd05199a0
staticfy. Use __nodead
2011-08-27 16:10:51 +00:00
joerg
0927b2bcb2
staticfy. Use __dead.
2011-08-27 16:05:27 +00:00
joerg
dbf6e7953c
Avoid magic manipulation of the format string.
2011-08-25 16:17:58 +00:00
joerg
cf30c8e1b5
main.c uses non-literal format strings.
2011-08-25 16:12:37 +00:00
christos
a14203e91d
Instead of using strncat and re-scanning the strings all the time, use and
...
append printf function.
2011-08-24 12:15:44 +00:00
christos
7b373c7105
handle the first loop where time == 0.
2011-08-21 06:39:09 +00:00
christos
6ffa97db52
we need difftime to return a signed result, so clamp the timeval's to
...
uint32_t but then, return a signed result of their difference.
2011-08-20 14:38:09 +00:00
christos
3ca3bc9b9b
PR/45257: Ryo Shimizu: ping(8) prints bogus round-trip times after Year 2038
...
Clamp all time computations to 32 bits; idea from dsl@
2011-08-19 08:35:40 +00:00
phx
233e75c9c0
Define USE_MBR for ofppc.
2011-08-18 08:42:07 +00:00
martin
9a8267aad8
Fix sign compare bugs
2011-08-17 12:27:50 +00:00
jakllsch
fdc9473539
Ajdust bootcode file name from mbr_gpt to gptmbr.bin.
2011-08-17 00:45:55 +00:00
jakllsch
f43df25dd7
Switch 'gpt biosboot' to support T13 EDD-4 annex A GPT hybrid MBR instead
...
of a home-grown MBR/VBR hand off protocol.
'biosboot' now will set the legacy BIOS boot flag instead of patching a
GUID into the MBR.
2011-08-17 00:04:41 +00:00
dholland
64b8763551
Fix another dodgy switch-jump.
2011-08-15 02:22:46 +00:00
dholland
7a8d9bb430
WARNS = 4
2011-08-15 02:19:50 +00:00
dholland
66ed9af4d1
Add missing __RCSID().
2011-08-15 00:30:25 +00:00
dholland
fc91a8d8ae
Whitespace.
2011-08-15 00:27:50 +00:00
dholland
2bf41d920c
Avoid switch-jumping into the middle of an if. Compiler output is unchanged.
2011-08-15 00:26:16 +00:00
dholland
46eb69af0a
Minor KNF.
2011-08-15 00:24:19 +00:00
dholland
a73186c2e6
Remove redundant WARNS=4
2011-08-15 00:16:58 +00:00
christos
8712189410
kill gcc45 warnings
2011-08-14 12:36:02 +00:00
christos
64aae439ac
WARNS=4
2011-08-14 12:32:01 +00:00
christos
cf237a73b8
remove gcc-4.5 hacks.
2011-08-14 12:30:04 +00:00
christos
f5bc231029
use memcpy to avoid strict aliasing warnings
2011-08-14 12:15:15 +00:00
christos
6e76d2b876
use a union to eliminate strict alias warnings.
2011-08-14 12:13:24 +00:00
christos
82f7376491
fix gcc warnings and eliminate duplicate code.
2011-08-14 12:09:35 +00:00
christos
7d4b82edad
document non-literal strings
2011-08-14 11:34:11 +00:00
mbalmer
c52f77ae96
Xr pwdog(4).
2011-08-11 08:00:05 +00:00
wiz
4f1a87cdfa
Sync usage with man page.
2011-08-10 12:13:20 +00:00
uch
7d18226237
newfs_v7fs(8)'s -v and -P options are obsolete. changed to newfs(8) compatible -V option.
2011-08-10 11:31:49 +00:00
joerg
90aa08ed31
Don't use array access to compute addresses that are definitely beyond
...
the static array boundaries.
2011-08-09 12:55:18 +00:00
uch
e97cfbb012
Fix warning message.
2011-08-09 11:18:28 +00:00
uch
49e9e92f1d
Check whether superblock is writable sector.
2011-08-09 09:12:07 +00:00
jmcneill
f398b121d3
add the -t option that modifies -l behaviour to recursively scan for
...
child devices and print them in tree format:
$ drvctl -lt usb0
uhub0
uhub6
uhidev0
ukbd0
wskbd1
uhidev1
ums0
wsmouse1
uhid0
ubt0
2011-08-07 13:00:35 +00:00
jmcneill
3b8212e891
add an optional argument to the -p flag that lets you extract specific
...
property values from the command-line:
$ drvctl -p wd0 disk-info/geometry/cylinders-per-unit
620181
$ drvctl -p wd0 device-driver device-unit
wd
0
$ drvctl -p wd0 nonexistent || echo "not found"
not found
2011-08-07 12:00:11 +00:00
dholland
4804dbd307
Add wrapper functions around hash algorithm operations to avoid
...
undefined behavior arising from illegal function casts. As a side
effect, no longer need -Wno-pointer-sign either.
2011-08-06 20:46:42 +00:00