OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright 2000, International Business Machines Corporation and others. 00003 * All Rights Reserved. 00004 * 00005 * This software has been released under the terms of the IBM Public 00006 * License. For details, see the LICENSE file in the top-level source 00007 * directory or online at http://www.openafs.org/dl/license10.html 00008 */ 00009 00010 #define VREAD R_ACC 00011 #define VEXEC X_ACC 00012 #define VWRITE W_ACC 00013 #define VSUID S_ISUID 00014 #define VSGID S_ISGID 00015 #define VSVTX S_ISVTX 00016 00017 #define min(a, b) (((a) < (b)) ? (a) : (b)) 00018 #define bcopyin copyin /* Aux has identical bcopyin */ 00019 00020 #define BLKDEV_IOSIZE BSIZE 00021 /*#define MAXBSIZE NFS_MAXDATA*/ 00022 #define VROOT V_ROOT 00023 #define VTEXT V_TEXT 00024 /*#define IO_SYNC FSYNC*/ 00025 #define IO_APPEND FAPPEND 00026 /*#define IO_NDELAY FNDELAY*/ 00027 #define VTOI VTOIP 00028 /*#define v_pdata v_data*/ 00029 #define v_op v_gnode->gn_ops 00030 #define iunlock(x) irele(x) 00031 00032 #if !defined(_SUN) 00033 /* 00034 * if _SUN is defined, this is in vnode.h (at least today... who knows where 00035 * they will hide it tomorrow) 00036 */ 00037 enum vcexcl { NONEXCL, EXCL }; /* (non)exclusive create */ 00038 #endif 00039 00040 struct buf *getblk(), *geteblk(), *breada(), *bread(); 00041 #define b_actf av_forw 00042 #define dbtob(db) ((unsigned)(db) << 9) /* (db * 512) */