Commit Graph

5662 Commits

Author SHA1 Message Date
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