Commit Graph

3239 Commits

Author SHA1 Message Date
dsl ae60f83e33 Remove old i386 mbr stuff (move to arch/i386/stand/mbr a while ago)
mbr.8 moved to src/share/man/man8/man8.i386
2003-07-16 11:11:49 +00:00
dsl 02af72a142 Fix code that detects bios geometry from mbr table. 2003-07-14 09:32:12 +00:00
lukem a21d1e7a14 xref dkctl(8) 2003-07-13 09:55:34 +00:00
lukem 6a52ab7b0e also reference disklabel(5) 2003-07-13 09:53:10 +00:00
itojun 6950184129 use bounded string op 2003-07-13 08:23:39 +00:00
itojun 49fbaf537e use bounded string op (one strcpy remains)
VS: ----------------------------------------------------------------------
2003-07-13 08:22:55 +00:00
itojun 0e4dc5229d use bounded string op 2003-07-13 08:16:15 +00:00
itojun 8883e1fb40 use bounded string op 2003-07-13 08:05:58 +00:00
itojun b5bc655b98 strlcat 2003-07-13 07:59:24 +00:00
itojun a9282a99c0 die if asprintf fails to malloc 2003-07-13 07:58:19 +00:00
itojun 09c1e9bc45 use bounded copy (a few unbounded copy remains - need work) 2003-07-13 07:48:01 +00:00
itojun 354140d884 remove obsolete comment 2003-07-13 07:45:27 +00:00
itojun 8ff221767c asprintf is easier. plug memory leak 2003-07-13 07:44:33 +00:00
itojun d90a2369ab use bounded string ops 2003-07-13 07:39:39 +00:00
itojun 658b0219c1 snprintf 2003-07-13 07:38:12 +00:00
itojun 0b04aee3ea use bouded string ops 2003-07-13 07:37:02 +00:00
atatat fc035bc8fd Allow _ in tags 2003-07-12 23:02:59 +00:00
itojun 59b2dcde2e asprintf() is easier than malloc + sprintf 2003-07-12 16:52:22 +00:00
yamt 884f970fae in ckinode(), use idesc->id_number instead of dino.di_u.inumber
since the latter is invalid for pass2 and vget can return invalid vnode
for inode number 0.
2003-07-12 16:13:38 +00:00
itojun d99433c2b5 use bounded string ops 2003-07-12 14:48:10 +00:00
itojun 09401b303a use asprintf, which is easier 2003-07-12 14:46:41 +00:00
itojun efb986d740 sprintf can return negative 2003-07-12 14:36:07 +00:00
itojun ca9297afc4 use strlcat/strlcpy 2003-07-12 14:33:55 +00:00
yamt a7f5ddbf64 in lfs_raw_vget(),
- don't leave references into free'ed memory region. (fix SIGBUSes)
- plug a memory leak.
2003-07-12 12:28:23 +00:00
yamt e01ace1f2e - don't assume that malloc'ed memory is zero-filled.
- LIST_INIT {dirty,clean} block lists.
2003-07-12 11:57:59 +00:00
yamt 1d5f020689 fix a null dereference on stale inode. 2003-07-12 11:49:04 +00:00
yamt c992c60208 only read superblock (ie. struct dlfs) from disk and
initialize rest of struct lfs by hand.
(this shouldn't cause a real problem since if superblock is valid,
LFS_SBPAD-sizeof(struct dlfs) bytes after it is always zero-filled, though)

PR/22123 (Izumi Tsutsui)
2003-07-12 11:47:05 +00:00
yamt 96782bb1fd don't use uninitialized variables.
PR/22123 (Izumi Tsutsui)
2003-07-12 11:41:15 +00:00
dsl 7db2cff2fd Allow for the netbsd partition being in the extended partition list. 2003-07-07 13:05:46 +00:00
dsl 93e88fd2eb Only look at each pair of CHS values once when trying to guess geometry. 2003-07-07 11:45:00 +00:00
wiz f4e5486eb2 Bump date for last, and replace some \*[Lt]/\*[Gt] with .Aq. 2003-07-04 13:32:13 +00:00
wiz 6e047dae78 Bump date for last. 2003-07-04 13:09:58 +00:00
ragge 9e60a88e86 Add somaxkva. 2003-07-03 20:15:28 +00:00
itojun e97be76fa1 strcat -> strlcat 2003-07-03 03:04:04 +00:00
christos 9dd592469e Avoid code duplication by factoring out the open/map open/write/unmap functions. 2003-07-01 16:44:48 +00:00
lukem b96069c077 Always compile in support for attempting to obtain the major device
number of the console from sysctl("machdep.console_device"), rather
than making in optional on the (unused) #ifdef DEBUG.
Certain platforms do not have the console at makedev(0,0) (including
many arm32 and some sh3 platforms), so the "mfs MAKEDEV" hack would
have failed on those.

Noted in private discussion with Quentin Barnes.
2003-07-01 15:24:22 +00:00
itojun 5af08a4965 more error traps on malloc failure. accept "-E null".
various pedantic checks.  from kame
2003-07-01 07:20:12 +00:00
simonb 775170c02f Line up the cylinder numbers in the printlabel output a bit better. 2003-07-01 05:40:54 +00:00
wiz 52270a7fd9 Add Ns. 2003-06-30 11:49:54 +00:00
wiz 9f3dc3febc Remove unnecessary space before dot. 2003-06-30 11:48:05 +00:00
wiz d6967e3b9b Quote punctuation so it gets marked up. 2003-06-30 10:46:22 +00:00
wiz 217ca657dd Quote macro candidate. 2003-06-27 23:23:51 +00:00
wiz 6dd6d12d66 Add Ns. 2003-06-27 23:06:50 +00:00
wiz 8a0999a756 Remove superfluous "". 2003-06-27 23:02:16 +00:00
agc c2a3b5ec84 Add NetBSD RCS Ids. 2003-06-23 11:53:35 +00:00
simonb 7eb2ec40b2 Remove the KERN_DRIVERS case handler (prototype code?). 2003-06-17 03:34:23 +00:00
dsl f8f6959024 Print hw.cnmagic as escaped hex bytes (unless -n given).
Change 'special' to be a numeral not a bit, it isn't ever used as a bit
and I can't see why it should ever be used that way.
2003-06-16 21:52:58 +00:00
christos dffc5f5133 PR/21860: Robert Elz: ifconfig doesn't allow addr/N notation for INET6 2003-06-11 19:51:31 +00:00
christos 072bca2c13 PR/21856: Robert Elz: Changes to route(8) to allow /n instead of -prefixlen
for INET6
2003-06-11 15:45:20 +00:00
dsl ee0a07c072 Make writes to the in-core label persist after mbrlabel closes the disk. 2003-06-07 10:03:39 +00:00