Though following code sequence is safe currently (even w/o BGL):
[dragonfly/netmp.git] / sys / vfs / udf / osta.h
blob51bd914d17affe26889534f23944c043aa2b6d65
1 /*
2 * Prototypes for the OSTA functions
4 * $FreeBSD: src/sys/fs/udf/osta.h,v 1.2 2003/11/05 06:55:23 scottl Exp $
5 * $DragonFly: src/sys/vfs/udf/osta.h,v 1.1 2004/03/12 22:38:15 joerg Exp $
6 */
8 #ifndef UNIX
9 #define UNIX
10 #endif
12 #ifndef MAXLEN
13 #define MAXLEN 255
14 #endif
16 /***********************************************************************
17 * The following two typedef's are to remove compiler dependancies.
18 * byte needs to be unsigned 8-bit, and unicode_t needs to be
19 * unsigned 16-bit.
21 typedef unsigned short unicode_t;
22 typedef unsigned char byte;
24 int udf_UncompressUnicode(int, byte *, unicode_t *);
25 int udf_UncompressUnicodeByte(int, byte *, byte *);
26 int udf_CompressUnicode(int, int, unicode_t *, byte *);
27 unsigned short udf_cksum(unsigned char *, int);
28 unsigned short udf_unicode_cksum(unsigned short *, int);
29 int UDFTransName(unicode_t *, unicode_t *, int);