Commit Graph

36 Commits

Author SHA1 Message Date
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
fvdl a3ff3a3038 Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
lukem 7360d7b6ae Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 10:16:51 +00:00
wiz 80d1ff493a Sort sections. 2001-11-16 11:21:37 +00:00
lukem 1b81d6353d remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap()
determine the endianness of the `struct fs *o' superblock from o->fs_magic
and set needswap as necessary, rather than trusting the caller to get
it right.  invariably, almost every caller of ffs_sb_swap() was calling it
with ns set to the wrong value for ns anyway!
ansi KNF ffs_bswap.c declarations whilst here.

this fixes all sorts of problems when trying to use other-endian file systems,
notably the kernel trying to access memory *way* off, possibly corrupting or
panicing, and userland programs SEGVing and/or corrupting things (e.g,
"fsck_ffs -B"  to swap a file system endianness).

whilst the previous rev of ffs_bswap.c (1.10, 2000/12/23) made this problem
worse, i suspect that the problem was always there and previous versions
just happened not to trash things at the wrong time.

FFS_EI should now be a lot more stable.
2001-08-17 02:18:46 +00:00
wiz 73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
wiz bd49a98652 Improve wording of a sentence. misc/10893 by Jim Bernard, part 2. 2001-05-06 12:30:05 +00:00
cgd 8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
christos ee002727d9 fix nested extern 2001-02-04 19:54:56 +00:00
hubertf c58e6bf54d We don't ship format(8), so don't x-ref it. 2000-10-02 21:17:04 +00:00
drochner 6205a5ed9e don't use the result of a readdir() after closedir(), from
Christian Groessler per PR bin/8107
1999-07-30 15:56:58 +00:00
bouyer 3e3f9c7795 #include machine/bswap.h and remove -lutil. 1999-01-15 13:32:05 +00:00
ross 029a64cc29 from Erik Bertelsen <erik@mediator.uni-c.dk>
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
1998-08-25 19:18:12 +00:00
fair 3d7afc6d03 fix bad .Xr references 1998-04-29 09:49:10 +00:00
bouyer 29e97528a5 Add support for non-native endian ffs. 1998-03-18 16:50:12 +00:00
lukem 6cdb4c3fbf resolve sccsid conflict 1997-09-16 02:13:23 +00:00
lukem 2ddc10a0ab define WARNS?=1 for all of sbin/* 1997-09-15 12:45:47 +00:00
lukem ad6499dd3c can now use '.Nm "" :' 1997-09-15 00:49:56 +00:00
lukem bc8059ebcd * don't use register
* warnx() doesn't need trailing \n
1997-09-14 08:14:32 +00:00
lukem b5e8aaf95a use .Nm appropriately 1997-09-14 07:46:13 +00:00
christos 59ae79ebe0 Fix warnings.
Use warn(3) and err(3) instead of printf+perror
1997-08-01 00:35:50 +00:00
scottr b9656d4793 Since the filesystem is mounted on the block device, we need to use
the character device instead.  Closes PRs 897, 994, 2719, and 2769, but
somewhat differently.
1996-09-21 06:08:16 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
mycroft 0c1f0c97eb Don't mix stat flags and inode flags. 1995-01-30 20:32:01 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
jtc 3a08d567f4 Misc manpages fixes (PR #551) 1994-11-03 15:37:46 +00:00
cgd 65a9ae984d Add string.h 1994-10-31 04:19:00 +00:00
mycroft c250a07889 Fix up RCS ids. 1994-06-11 07:50:42 +00:00
pk e681ff5f4a Update to 4.4-lite. 1994-06-10 17:42:09 +00:00
jtc ee123e4b36 Update to use <dirent.h>. 1993-12-15 17:01:36 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00