aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2003-09-27 01:18:27 +0000
committerBruce Evans <bde@FreeBSD.org>2003-09-27 01:18:27 +0000
commit67425e4678d640e6a8556e4db0098e48d1dc1ed3 (patch)
tree78bf59f0baeb772fca77a5255fe188d5b936bd4c /sys/fs
parent5e50629b399548796d20f26d28a60a7fbbf6cc07 (diff)
Notes
Diffstat (limited to 'sys/fs')
-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 c54cbe368fb02..f007e8166d9d8 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 */