]> arthur.barton.de Git - netatalk.git/blob - bin/megatron/updcrc.h
Writing metadata xattr on directories with sticky bit set, FR#94
[netatalk.git] / bin / megatron / updcrc.h
1 /*
2  */
3
4 #ifndef _UPDCRC_H
5 #define _UPDCRC_H 1
6
7 #define W       16      /* bits in CRC:16       16      16      */
8
9     /* data type that holds a W-bit unsigned integer */
10 #if W <= 16
11 #  define WTYPE unsigned short
12 #else /* W <= 16 */
13 #  define WTYPE   u_int32_t
14 #endif /* W <= 16 */
15
16 WTYPE updcrc(WTYPE icrc, unsigned char *icp, int icnt);
17
18 #endif /* _UPDCRC_H */