araujo
3b04951cce
Use macro MAX() from sys/param.h.
...
MFC after: 2 weeks.
2016-04-22 03:32:14 +00:00
pfg
d3a3a92848
fsck_msdosfs: use NULL instead of zero for pointers.
2016-04-19 19:08:37 +00:00
pfg
e2cfe25256
fsck_msdosfs(8): Optimimize memsets
...
Obtained from: NetBSD (bin/50908)
MFC after: 2 weeks
2016-04-06 15:28:26 +00:00
pfg
375de29597
msdosfs: Assorted fixes from other BSDs.
...
When truncating cluster chains fix the length of the cluster head.
http://marc.info/?t=140304310700005&r=1&w=2
Avoid infinite loops in cluster chain linked lists.
http://marc.info/?l=openbsd-tech&m=140275150804337&w=2
Avoid off-by-one on FAT12 filesystems.
http://marc.info/?l=openbsd-tech&m=140234174104724&w=2
Obtained from: NetBSD (from OpenBSD)
MFC after: 1 week
2014-07-14 20:58:02 +00:00
pfg
cbc817e242
Minor (mostly cosmetic) cleanups
...
Several whitespace fixes
convert *rootDir from external to static.
Obtained from: NetBSD, OpenBSD (partial)
MFC after: 3 days
2014-07-14 19:16:49 +00:00
uqs
d704245c81
sbin/fsck: s/perror/perr/ to avoid shadowing
...
- rename some other vars too
- merge NetBSD license changes
Obtained from: NetBSD
PR: bin/139802
Reviewed by: ed
2012-10-21 12:01:11 +00:00
ed
5b02333e84
Add missing static keywords for global variables to tools in sbin/.
...
These tools declare global variables without using the static keyword,
even though their use is limited to a single C-file, or without placing
an extern declaration of them in the proper header file.
2011-11-04 13:36:02 +00:00
brian
f4323232d9
Fix some style(9), although there's a lot more issues here.
...
Fix some casting errors.
PR: 142384
Submitted by: giffunip at tutopia dot com
Obtained from: NetBSD
MFC after: 3 weeks
2010-06-20 09:40:54 +00:00
kib
1bb580c8e7
Rename fields to match better the msdosfs headers. This work is still
...
incomplete as some info doesn't really belong to the structs where it is
defined.
Submitted by: Pedro F. Giffuni <giffunip tutopia com>
Reviewed by: bde
MFC after: 2 weeks
2010-02-14 12:31:28 +00:00
kib
53d879fa5d
Bug fixes from NetBSD
...
- fix sign-compare issues.
- ANSIfy a couple of functions.
- Remove more duplicate #includes.
- Memory leak found by Coverity on NetBSD.
Submitted by: Pedro F. Giffuni <giffunip tutopia com>
Reviewed by: bde
MFC after: 2 weeks
2010-02-14 12:30:30 +00:00
kib
ce3384ad3e
License changes from NetBSD.
...
Move to 2 clause license, approved by Wolfgang Solfrank.
Submitted by: Pedro F. Giffuni <giffunip tutopia com>
MFC after: 2 weeks
2010-02-14 12:28:43 +00:00
imp
120c3c211a
o __P removed
...
o ansi function prototypes
o unifdef -D__STDC__
o __dead2 on usage prototype
o remove now-bogus main prototype
2002-03-20 22:57:10 +00:00
obrien
a72361c15b
Add fsck_msdosfs.
...
Obtained from: NetBSD
2001-07-09 10:35:18 +00:00