diff options
author | semenu <semenu@FreeBSD.org> | 2001-09-08 23:03:52 +0000 |
---|---|---|
committer | semenu <semenu@FreeBSD.org> | 2001-09-08 23:03:52 +0000 |
commit | 8c98d68610fb0ec072a45372df6fae9ec3afd215 (patch) | |
tree | 19a136464adf6bfe402fbab8c1d2c88463c6d7e7 /sys/fs/ntfs/ntfs_subr.h | |
parent | 22c38894cbd19ca224d48e51045206a9406b5c0f (diff) | |
download | FreeBSD-src-8c98d68610fb0ec072a45372df6fae9ec3afd215.zip FreeBSD-src-8c98d68610fb0ec072a45372df6fae9ec3afd215.tar.gz |
Stole unicode translation table from mount_msdos. Add kernel code
to support this translation.
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/ntfs/ntfs_subr.h')
-rw-r--r-- | sys/fs/ntfs/ntfs_subr.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/fs/ntfs/ntfs_subr.h b/sys/fs/ntfs/ntfs_subr.h index 8f1480a..41a2dc7 100644 --- a/sys/fs/ntfs/ntfs_subr.h +++ b/sys/fs/ntfs/ntfs_subr.h @@ -84,7 +84,6 @@ int ntfs_filesize __P(( struct ntfsmount *, struct fnode *, u_int64_t *, u_int64 int ntfs_times __P(( struct ntfsmount *, struct ntnode *, ntfs_times_t *)); struct timespec ntfs_nttimetounix __P(( u_int64_t )); int ntfs_ntreaddir __P(( struct ntfsmount *, struct fnode *, u_int32_t, struct attr_indexentry **)); -char ntfs_u28 __P((wchar)); int ntfs_runtovrun __P(( cn_t **, cn_t **, u_long *, u_int8_t *)); int ntfs_attrtontvattr __P(( struct ntfsmount *, struct ntvattr **, struct attr * )); void ntfs_freentvattr __P(( struct ntvattr * )); @@ -108,3 +107,15 @@ int ntfs_toupper_use __P((struct mount *, struct ntfsmount *)); void ntfs_toupper_unuse __P((void)); int ntfs_fget __P((struct ntfsmount *, struct ntnode *, int, char *, struct fnode **)); void ntfs_frele __P((struct fnode *)); + +int ntfs_u28_init(struct ntfsmount *ntmp, wchar *u2w); +int ntfs_u28_uninit(struct ntfsmount *ntmp); +int ntfs_82u_init(struct ntfsmount *ntmp, u_int16_t *u2w); +int ntfs_82u_uninit(struct ntfsmount *ntmp); +char ntfs_u28(struct ntfsmount *ntmp, wchar wc); +#define NTFS_U28(ch) ntfs_u28(ntmp, (ch)) +#define NTFS_82U(ch) (ntmp->ntm_82u[(ch)&0xFF]) +#define NTFS_UASTRCMP(ustr, ustrlen, astr, astrlen) \ + ntfs_uastrcmp(ntmp, (ustr), (ustrlen), (astr), (astrlen)) +#define NTFS_UASTRICMP(ustr, ustrlen, astr, astrlen) \ + ntfs_uastricmp(ntmp, (ustr), (ustrlen), (astr), (astrlen)) |