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_SHORTGID 0 /* are group id's short? */
46 #if !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
47 enum vcexcl {NONEXCL, EXCL};
50 #define MIN(A,B) ((A) < (B) ? (A) : (B))
53 #define MAX(A,B) ((A) > (B) ? (A) : (B))
56 #endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
59 #endif /* AFS_PARAM_H */
61 #else /* !defined(UKERNEL) */
63 /* This section for user space compiles only */
66 * Jim Rees, University of Michigan CITI
73 #define UKERNEL 1 /* user space kernel */
75 #define AFS_VFSINCL_ENV 1
76 #define AFS_OBSD_ENV 1
77 #define AFS_386i_ENV 1 /* 386 Architecture--for lwp stuff */
78 #define AFS_NONFSTRANS 1
79 #define AFS_KERBEROS_ENV
81 #define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
82 #define AFS_SYSCALL 210
83 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
84 #define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
85 #include <afs/afs_sysnames.h>
87 #define AFS_USERSPACE_IP_ADDR 1
88 #define RXK_LISTENER_ENV 1
89 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
91 /* Machine / Operating system information */
92 #define SYS_NAME "i386_obsd31"
93 #define SYS_NAME_ID 2002
94 #define AFSLITTLE_ENDIAN 1
95 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
96 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
98 #define afsio_iov uio_iov
99 #define afsio_iovcnt uio_iovcnt
100 #define afsio_offset uio_offset
101 #define afsio_seg uio_segflg
102 #define afsio_fmode uio_fmode
103 #define afsio_resid uio_resid
105 #define AFS_UIOUSER UIO_USERSPACE
106 #define AFS_CLBYTES MB_CLBYTES
107 #define AFS_MINCHANGE 2
108 #define VATTR_NULL usr_vattr_null
116 #include <sys/param.h>
117 #include <sys/types.h>
118 #include <sys/mount.h>
119 #include <sys/fcntl.h>
120 #include <netinet/in.h>
122 #include <sys/socket.h>
124 #endif /* AFS_PARAM_H */
126 #endif /* !defined(UKERNEL) */