diff options
Diffstat (limited to 'sys/coda/coda.h')
-rw-r--r-- | sys/coda/coda.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/sys/coda/coda.h b/sys/coda/coda.h index 8426d00..7b67ea9 100644 --- a/sys/coda/coda.h +++ b/sys/coda/coda.h @@ -27,10 +27,11 @@ * Mellon the rights to redistribute these changes without encumbrance. * * @(#) src/sys/coda/coda.h,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $ - * $Id: coda.h,v 1.4 1998/09/13 13:57:59 rvb Exp $ + * $Id: coda.h,v 1.5 1998/10/28 19:33:49 rvb Exp $ * */ + /* * * Based on cfs.h from Mach, but revamped for increased simplicity. @@ -59,7 +60,11 @@ typedef unsigned short u_short; typedef u_long ino_t; typedef u_long dev_t; typedef void * caddr_t; +#ifdef DOS +typedef unsigned __int64 u_quad_t; +#else typedef unsigned long long u_quad_t; +#endif #define inline @@ -188,7 +193,7 @@ static __inline__ ino_t coda_f2i(struct ViceFid *fid) #else #define coda_f2i(fid)\ - (fid) ? ((fid)->Unique + ((fid)->Vnode<<10) + ((fid)->Volume<<20)) : 0 + ((fid) ? ((fid)->Unique + ((fid)->Vnode<<10) + ((fid)->Volume<<20)) : 0) #endif @@ -282,7 +287,15 @@ struct coda_vattr { #define VC_MAXMSGSIZE sizeof(union inputArgs)+sizeof(union outputArgs) +\ VC_MAXDATASIZE - +#define CIOC_KERNEL_VERSION _IOWR('c', 10, sizeof (int)) +#if 0 + /* don't care about kernel version number */ +#define CODA_KERNEL_VERSION 0 + /* The old venus 4.6 compatible interface */ +#define CODA_KERNEL_VERSION 1 +#endif + /* venus_lookup gets an extra parameter to aid windows.*/ +#define CODA_KERNEL_VERSION 2 /* * Venus <-> Coda RPC arguments @@ -392,11 +405,17 @@ struct coda_access_out { struct coda_out_hdr out; }; + +/* lookup flags */ +#define CLU_CASE_SENSITIVE 0x01 +#define CLU_CASE_INSENSITIVE 0x02 + /* coda_lookup: */ struct coda_lookup_in { struct coda_in_hdr ih; ViceFid VFid; int name; /* Place holder for data. */ + int flags; }; struct coda_lookup_out { @@ -711,11 +730,20 @@ struct ViceIoctl { short out_size; /* Maximum size of output buffer, <= 2K */ }; +#if defined(__CYGWIN32__) || defined(DJGPP) struct PioctlData { + unsigned long cmd; const char *path; int follow; struct ViceIoctl vi; }; +#else +struct PioctlData { + const char *path; + int follow; + struct ViceIoctl vi; +}; +#endif #define CODA_CONTROL ".CONTROL" #define CODA_CONTROLLEN 8 |