summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-09-27 01:18:27 +0000
committerbde <bde@FreeBSD.org>2003-09-27 01:18:27 +0000
commita91f57834dcd12290cf7f9b1c0a50c48e7009351 (patch)
tree78bf59f0baeb772fca77a5255fe188d5b936bd4c /sys/fs/msdosfs
parent70f8d0daf6da86979fbdacedb8fb0864a34b2013 (diff)
downloadFreeBSD-src-a91f57834dcd12290cf7f9b1c0a50c48e7009351.zip
FreeBSD-src-a91f57834dcd12290cf7f9b1c0a50c48e7009351.tar.gz
Fixed some style bugs in previous commit. Mainly, forward-declare
struct msdosfsmount so that this file has the same prerequisites as it used to. The new prerequistite was a meta-style bug. It required many style bugs (unsorted includes ...) elsewhere. Formatted prototypes in KNF. Resisted urge to sort all the prototypes, to minimise differences with NetBSD. (NetBSD has reformatted the prototypes but has not sorted them and still uses __P(()).)
Diffstat (limited to 'sys/fs/msdosfs')
-rw-r--r--sys/fs/msdosfs/direntry.h36
1 files changed, 21 insertions, 15 deletions
diff --git a/sys/fs/msdosfs/direntry.h b/sys/fs/msdosfs/direntry.h
index c54cbe3..f007e81 100644
--- a/sys/fs/msdosfs/direntry.h
+++ b/sys/fs/msdosfs/direntry.h
@@ -98,9 +98,9 @@ struct winentry {
#define WIN_CHARS 13 /* Number of chars per winentry */
/*
- * Maximum number of winentries for a filename
+ * Maximum number of winentries for a filename.
*/
-#define WIN_MAXSUBENTRIES 20
+#define WIN_MAXSUBENTRIES 20
/*
* Maximum filename length in Win95
@@ -134,18 +134,24 @@ struct winentry {
#ifdef _KERNEL
struct dirent;
-void unix2dostime(struct timespec *tsp, u_int16_t *ddp,
- u_int16_t *dtp, u_int8_t *dhp);
-void dos2unixtime(u_int dd, u_int dt, u_int dh, struct timespec *tsp);
-int dos2unixfn(u_char dn[11], u_char *un, int lower, struct msdosfsmount *pmp);
-int unix2dosfn(const u_char *un, u_char dn[12], int unlen, u_int gen, struct msdosfsmount *pmp);
-int unix2winfn(const u_char *un, int unlen, struct winentry *wep, int cnt, int chksum, struct msdosfsmount *pmp);
-int winChkName(const u_char *un, int unlen, int chksum, struct msdosfsmount *pmp);
-int win2unixfn(struct winentry *wep, int chksum, struct msdosfsmount *pmp);
+struct msdosfsmount;
+
+char *mbnambuf_flush(struct dirent *dp);
+void mbnambuf_init(void);
+void mbnambuf_write(char *name, int id);
+void unix2dostime(struct timespec *tsp, u_int16_t *ddp,
+ u_int16_t *dtp, u_int8_t *dhp);
+void dos2unixtime(u_int dd, u_int dt, u_int dh, struct timespec *tsp);
+int dos2unixfn(u_char dn[11], u_char *un, int lower,
+ struct msdosfsmount *pmp);
+int unix2dosfn(const u_char *un, u_char dn[12], int unlen, u_int gen,
+ struct msdosfsmount *pmp);
+int unix2winfn(const u_char *un, int unlen, struct winentry *wep, int cnt,
+ int chksum, struct msdosfsmount *pmp);
+int winChkName(const u_char *un, int unlen, int chksum,
+ struct msdosfsmount *pmp);
+int win2unixfn(struct winentry *wep, int chksum, struct msdosfsmount *pmp);
u_int8_t winChksum(u_int8_t *name);
-int winSlotCnt(const u_char *un, int unlen, struct msdosfsmount *);
-int winLenFixup(const u_char *un, int unlen);
-void mbnambuf_init(void);
-void mbnambuf_write(char *name, int id);
-char * mbnambuf_flush(struct dirent *dp);
+int winSlotCnt(const u_char *un, int unlen, struct msdosfsmount *pmp);
+int winLenFixup(const u_char *un, int unlen);
#endif /* _KERNEL */
OpenPOWER on IntegriCloud