Windows: permit code signing without timestamps
[openafs.git] / src / config / param.nbsd50.h
1 /* NetBSD shared section */
2
3 #ifndef AFS_PARAM_COMMON_H
4 #define AFS_PARAM_COMMON_H 1
5
6 #define AFS_NAMEI_ENV  1        /* User space interface to file system */
7 #define AFS_64BIT_IOPS_ENV 1    /* Needed for NAMEI */
8 #define AFS_64BIT_CLIENT 1
9
10 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
11 #define AFS_SYSCALL 210
12
13
14 #ifdef AFS_KALLOC
15 #undef AFS_KALLOC
16 #endif
17 #define AFS_KALLOC(s) (osi_nbsd_Alloc((s), 1 /* cansleep */))
18
19 #ifdef AFS_KFREE
20 #undef AFS_KFREE
21 #endif
22 #define AFS_KFREE(p, s) (osi_nbsd_Free((p), (s)))
23
24 #if 0
25 /* including this file before sysincludes.h is canonical, but
26  * NBSD40's mount.h defines MOUNT_AFS */
27
28 #ifndef MOUNT_AFS
29 #define MOUNT_AFS AFS_MOUNT_AFS
30 #endif
31
32 #endif /* 0 */
33
34 #define AFS_XBSD_ENV 1          /* {Free,Open,Net}BSD */
35
36 #define AFS_NBSD_ENV 1
37 #define AFS_NBSD15_ENV 1
38 #define AFS_NBSD16_ENV 1
39 #define AFS_NBSD20_ENV 1
40 #define AFS_NBSD30_ENV 1
41 #define AFS_NBSD40_ENV 1
42 #define AFS_NBSD50_ENV 1
43 #undef  AFS_NONFSTRANS
44 #define AFS_NONFSTRANS 1
45
46 #define AFS_VFSINCL_ENV 1
47
48 #define AFS_HAVE_FFS            1       /* Use system's ffs. */
49
50 #if     !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__) && !defined(IGNORE_STDS_H)
51 #define AFS_HAVE_STATVFS    1   /* System supports statvfs */
52 #endif
53
54 #ifndef UKERNEL
55
56 #if     !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__) && !defined(IGNORE_STDS_H)
57 #include <sys/param.h>
58 #endif
59
60 #define FTRUNC O_TRUNC
61
62 #define IUPD 0x0010
63 #define IACC 0x0020
64 #define ICHG 0x0040
65 #define IMOD 0x0080
66
67 #define RXK_LISTENER_ENV  1
68
69 #include <afs/afs_sysnames.h>
70
71 #define AFS_VM_RDWR_ENV 1
72 #define AFS_VFS_ENV     1
73 #define AFS_GREEDY43_ENV        1
74
75 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
76 #define AFS_USE_GETTIMEOFDAY    1       /* use gettimeofday to implement rx clock */
77 #define AFS_GLOBAL_SUNLOCK      1
78
79 /* Extra kernel definitions (from kdefs file) */
80 #ifdef _KERNEL_DEPRECATED
81 #define AFS_VFS34       1       /* What is VFS34??? */
82 #define AFS_SHORTGID    1       /* are group id's short? */
83 #define afsio_iov       uio_iov
84 #define afsio_iovcnt    uio_iovcnt
85 #define afsio_offset    uio_offset
86 #define afsio_seg       uio_segflg
87 #define afsio_resid     uio_resid
88 #define AFS_UIOSYS      UIO_SYSSPACE
89 #define AFS_UIOUSER     UIO_USERSPACE
90 #define AFS_CLBYTES     CLBYTES
91 #define osi_GetTime(x)  microtime(x)
92 #define AFS_KALLOC(x)   kalloc(x)
93 #define AFS_KFREE(x,y)  kfree(x,y)
94 #define v_count         v_usecount
95 #define v_vfsp          v_mount
96 #define vfs_bsize       mnt_stat.f_bsize
97 #define vfs_fsid        mnt_stat.f_fsid
98 #define va_nodeid       va_fileid
99 #define vfs_vnodecovered mnt_vnodecovered
100 #define direct          dirent
101
102 #ifndef MUTEX_DEFAULT
103 #define MUTEX_DEFAULT   0
104 #endif /* MUTEX_DEFAULT */
105
106 #ifndef SSYS
107 #define SSYS            0x00002
108 #endif /* SSYS */
109
110 #define p_rcred         p_ucred
111
112 #define VN_RELE(vp)     vrele(((struct vnode *)(vp)))
113 #define VN_HOLD(vp)     VREF(((struct vnode *)(vp)))
114
115 #if     !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__) && !defined(IGNORE_STDS_H)
116 enum vcexcl { NONEXCL, EXCL };
117
118 #ifdef KERNEL
119 #ifndef MIN
120 #define MIN(A,B) ((A) < (B) ? (A) : (B))
121 #endif
122 #ifndef MAX
123 #define MAX(A,B) ((A) > (B) ? (A) : (B))
124 #endif
125 #endif /* KERNEL */
126
127 #endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ && !defined(IGNORE_STDS_H) */
128 #endif /* _KERNEL_DEPRECATED */
129
130 #else /* !defined(UKERNEL) */
131
132
133 /* This section for user space compiles only */
134
135 #define UKERNEL                 1       /* user space kernel */
136
137 #include <afs/afs_sysnames.h>
138
139 #define AFS_USERSPACE_IP_ADDR 1
140 #define RXK_LISTENER_ENV      1
141 #define AFS_GCPAGS            0 /* if nonzero, garbage collect PAGs */
142
143 #define afsio_iov       uio_iov
144 #define afsio_iovcnt    uio_iovcnt
145 #define afsio_offset    uio_offset
146 #define afsio_seg       uio_segflg
147 #define afsio_fmode     uio_fmode
148 #define afsio_resid     uio_resid
149 #define AFS_UIOSYS      UIO_SYSSPACE
150 #define AFS_UIOUSER     UIO_USERSPACE
151 #define AFS_CLBYTES     MCLBYTES
152 #define AFS_MINCHANGE   2
153 #define VATTR_NULL      usr_vattr_null
154
155 #define AFS_DIRENT
156 #ifndef CMSERVERPREF
157 #define CMSERVERPREF
158 #endif
159
160 #if     !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__) && !defined(IGNORE_STDS_H) && !defined()
161 #include <limits.h>
162 #include <sys/param.h>
163 #include <sys/types.h>
164 #include <sys/mount.h>
165 #include <sys/fcntl.h>
166 #include <netinet/in.h>
167 #include <sys/uio.h>
168 #include <sys/socket.h>
169 #endif
170
171 #endif /* !defined(UKERNEL) */
172
173 #endif /* AFS_PARAM_COMMON_H */