2 /* This section for kernel libafs compiles only */
5 * Jim Rees, University of Michigan CITI
12 #include <sys/param.h>
13 #include <afs/afs_sysnames.h>
16 #define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
17 #define AFS_X86_XBSD_ENV 1
19 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
20 #define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
21 #define AFS_OBSD_ENV 1
22 #define AFS_NONFSTRANS 1
23 #define AFS_KERBEROS_ENV 1
24 #define AFS_VM_RDWR_ENV 1
26 #define AFS_VFSINCL_ENV 1
28 #define FTRUNC O_TRUNC
30 #define AFS_SYSCALL 210
31 #define AFS_MOUNT_AFS "afs"
33 #define SYS_NAME "i386_obsd31"
34 #define SYS_NAME_ID 2002
36 #define RXK_LISTENER_ENV 1
37 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
38 #define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
40 #define AFSLITTLE_ENDIAN 1
42 /* Extra kernel definitions (from kdefs file) */
44 #define AFS_GLOBAL_SUNLOCK 1
45 #define AFS_SHORTGID 0 /* are group id's short? */
47 #if !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
48 enum vcexcl {NONEXCL, EXCL};
51 #define MIN(A,B) ((A) < (B) ? (A) : (B))
54 #define MAX(A,B) ((A) > (B) ? (A) : (B))
57 #endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
60 #endif /* AFS_PARAM_H */
62 #else /* !defined(UKERNEL) */
64 /* This section for user space compiles only */
67 * Jim Rees, University of Michigan CITI
74 #define UKERNEL 1 /* user space kernel */
76 #define AFS_VFSINCL_ENV 1
77 #define AFS_OBSD_ENV 1
78 #define AFS_386i_ENV 1 /* 386 Architecture--for lwp stuff */
79 #define AFS_NONFSTRANS 1
80 #define AFS_KERBEROS_ENV
82 #define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
83 #define AFS_SYSCALL 210
84 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
85 #define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
86 #include <afs/afs_sysnames.h>
88 #define AFS_USERSPACE_IP_ADDR 1
89 #define RXK_LISTENER_ENV 1
90 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
92 /* Machine / Operating system information */
93 #define SYS_NAME "i386_obsd31"
94 #define SYS_NAME_ID 2002
95 #define AFSLITTLE_ENDIAN 1
96 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
97 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
99 #define afsio_iov uio_iov
100 #define afsio_iovcnt uio_iovcnt
101 #define afsio_offset uio_offset
102 #define afsio_seg uio_segflg
103 #define afsio_fmode uio_fmode
104 #define afsio_resid uio_resid
106 #define AFS_UIOUSER UIO_USERSPACE
107 #define AFS_CLBYTES MB_CLBYTES
108 #define AFS_MINCHANGE 2
109 #define VATTR_NULL usr_vattr_null
117 #include <sys/param.h>
118 #include <sys/types.h>
119 #include <sys/mount.h>
120 #include <sys/fcntl.h>
121 #include <netinet/in.h>
123 #include <sys/socket.h>
125 #endif /* AFS_PARAM_H */
127 #endif /* !defined(UKERNEL) */