Commit | Line | Data |
---|---|---|
805e021f CE |
1 | /* |
2 | * Copyright 2000, International Business Machines Corporation and others. | |
3 | * All Rights Reserved. | |
4 | * | |
5 | * This software has been released under the terms of the IBM Public | |
6 | * License. For details, see the LICENSE file in the top-level source | |
7 | * directory or online at http://www.openafs.org/dl/license10.html | |
8 | */ | |
9 | ||
10 | #define VREAD R_ACC | |
11 | #define VEXEC X_ACC | |
12 | #define VWRITE W_ACC | |
13 | #define VSUID S_ISUID | |
14 | #define VSGID S_ISGID | |
15 | #define VSVTX S_ISVTX | |
16 | ||
17 | #define min(a, b) (((a) < (b)) ? (a) : (b)) | |
18 | #define bcopyin copyin /* Aux has identical bcopyin */ | |
19 | ||
20 | #define BLKDEV_IOSIZE BSIZE | |
21 | /*#define MAXBSIZE NFS_MAXDATA*/ | |
22 | #define VROOT V_ROOT | |
23 | #define VTEXT V_TEXT | |
24 | /*#define IO_SYNC FSYNC*/ | |
25 | #define IO_APPEND FAPPEND | |
26 | /*#define IO_NDELAY FNDELAY*/ | |
27 | #define VTOI VTOIP | |
28 | /*#define v_pdata v_data*/ | |
29 | #define v_op v_gnode->gn_ops | |
30 | #define iunlock(x) irele(x) | |
31 | ||
32 | #if !defined(_SUN) | |
33 | /* | |
34 | * if _SUN is defined, this is in vnode.h (at least today... who knows where | |
35 | * they will hide it tomorrow) | |
36 | */ | |
37 | enum vcexcl { NONEXCL, EXCL }; /* (non)exclusive create */ | |
38 | #endif | |
39 | ||
40 | struct buf *getblk(), *geteblk(), *breada(), *bread(); | |
41 | #define b_actf av_forw | |
42 | #define dbtob(db) ((unsigned)(db) << 9) /* (db * 512) */ |