Go to the documentation of this file.
59 #ifndef _UAPI_CODA_HEADER_
60 #define _UAPI_CODA_HEADER_
64 #if defined(__NetBSD__) || \
65 ((defined(DJGPP) || defined(__CYGWIN32__)) && !defined(KERNEL))
66 #include <sys/types.h>
69 #ifndef CODA_MAXSYMLINKS
70 #define CODA_MAXSYMLINKS 10
73 #if defined(DJGPP) || defined(__CYGWIN32__)
75 typedef unsigned long u_long;
76 typedef unsigned int u_int;
82 typedef unsigned __int64 u_quad_t;
84 typedef unsigned long long u_quad_t;
95 typedef unsigned long long u_quad_t;
100 #if defined(__linux__)
101 #include <linux/time.h>
102 #define cdev_t u_quad_t
104 #if !defined(_UQUAD_T_) && (!defined(__GLIBC__) || __GLIBC__ < 2)
106 typedef unsigned long long u_quad_t;
120 #ifndef __BIT_TYPES_DEFINED__
121 #define __BIT_TYPES_DEFINED__
134 #define CODA_MAXNAMLEN 255
135 #define CODA_MAXPATHLEN 1024
136 #define CODA_MAXSYMLINK 10
141 #define C_O_READ 0x001
142 #define C_O_WRITE 0x002
143 #define C_O_TRUNC 0x010
144 #define C_O_EXCL 0x100
145 #define C_O_CREAT 0x200
148 #define C_M_READ 00400
149 #define C_M_WRITE 00200
160 #ifndef _VENUS_DIRENT_T_
161 #define _VENUS_DIRENT_T_ 1
170 #define DIRSIZ(dp) ((sizeof (struct venus_dirent) - (CODA_MAXNAMLEN+1)) + \
171 (((dp)->d_namlen+1 + 3) &~ 3))
176 #define CDT_UNKNOWN 0
189 #define IFTOCDT(mode) (((mode) & 0170000) >> 12)
190 #define CDTTOIF(dirtype) ((dirtype) << 12)
204 #define coda_f2i(fid)\
205 (fid ? (fid->opaque[3] ^ (fid->opaque[2]<<10) ^ (fid->opaque[1]<<20) ^ fid->opaque[0]) : 0)
207 #ifndef _VENUS_VATTR_T_
208 #define _VENUS_VATTR_T_
249 #define CODA_OPEN_BY_FD 3
253 #define CODA_GETATTR 7
254 #define CODA_SETATTR 8
255 #define CODA_ACCESS 9
256 #define CODA_LOOKUP 10
257 #define CODA_CREATE 11
258 #define CODA_REMOVE 12
260 #define CODA_RENAME 14
261 #define CODA_MKDIR 15
262 #define CODA_RMDIR 16
263 #define CODA_SYMLINK 18
264 #define CODA_READLINK 19
265 #define CODA_FSYNC 20
267 #define CODA_SIGNAL 23
268 #define CODA_REPLACE 24
269 #define CODA_FLUSH 25
270 #define CODA_PURGEUSER 26
271 #define CODA_ZAPFILE 27
272 #define CODA_ZAPDIR 28
273 #define CODA_PURGEFID 30
274 #define CODA_OPEN_BY_PATH 31
275 #define CODA_RESOLVE 32
276 #define CODA_REINTEGRATE 33
277 #define CODA_STATFS 34
278 #define CODA_STORE 35
279 #define CODA_RELEASE 36
280 #define CODA_NCALLS 37
282 #define DOWNCALL(opcode) (opcode >= CODA_REPLACE && opcode <= CODA_PURGEFID)
284 #define VC_MAXDATASIZE 8192
285 #define VC_MAXMSGSIZE sizeof(union inputArgs)+sizeof(union outputArgs) +\
288 #define CIOC_KERNEL_VERSION _IOWR('c', 10, size_t)
290 #define CODA_KERNEL_VERSION 3
420 #define CLU_CASE_SENSITIVE 0x01
421 #define CLU_CASE_INSENSITIVE 0x02
650 #define CODA_NOCACHE 0x80000000
714 #define PIOCPARM_MASK 0x0000ffff
728 #define CODA_CONTROL ".CONTROL"
729 #define CODA_CONTROLLEN 8
734 #define CODA_MOUNT_VERSION 1