29b14a130301b3e01f48c117d446e91de9a7feac
[openafs.git] / src / config / param.i386_obsd31.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 /*
5  * Jim Rees, University of Michigan CITI
6  */
7
8 #ifndef AFS_PARAM_H
9 #define AFS_PARAM_H
10
11 #ifndef IGNORE_STDS_H
12 #include <sys/param.h>
13 #include <afs/afs_sysnames.h>
14 #endif
15
16 #define AFS_XBSD_ENV 1             /* {Free,Open,Net}BSD */
17 #define AFS_X86_XBSD_ENV 1
18
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
25 #define AFS_VFS_ENV     1
26 #define AFS_VFSINCL_ENV 1
27
28 #define FTRUNC O_TRUNC
29
30 #define AFS_SYSCALL     210
31 #define AFS_MOUNT_AFS   "afs"
32
33 #define SYS_NAME        "i386_obsd31"
34 #define SYS_NAME_ID     2002
35
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 */
39
40 #define AFSLITTLE_ENDIAN 1
41
42 /* Extra kernel definitions (from kdefs file) */
43 #ifdef _KERNEL
44 #define AFS_SHORTGID    0       /* are group id's short? */
45
46 #if     !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
47 enum vcexcl {NONEXCL, EXCL};
48
49 #ifndef MIN
50 #define MIN(A,B) ((A) < (B) ? (A) : (B))
51 #endif
52 #ifndef MAX
53 #define MAX(A,B) ((A) > (B) ? (A) : (B))
54 #endif
55
56 #endif  /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
57 #endif /* _KERNEL */
58
59 #endif  /* AFS_PARAM_H */
60
61 #else /* !defined(UKERNEL) */
62
63 /* This section for user space compiles only */
64
65 /*
66  * Jim Rees, University of Michigan CITI
67  */
68
69 #ifndef AFS_PARAM_H
70 #define AFS_PARAM_H
71
72
73 #define UKERNEL                 1       /* user space kernel */
74 #define AFS_ENV                 1
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
80
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>
86
87 #define AFS_USERSPACE_IP_ADDR 1
88 #define RXK_LISTENER_ENV      1
89 #define AFS_GCPAGS            0       /* if nonzero, garbage collect PAGs */
90
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 */
97
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
104 #define AFS_UIOSYS      1
105 #define AFS_UIOUSER     UIO_USERSPACE
106 #define AFS_CLBYTES     MB_CLBYTES
107 #define AFS_MINCHANGE   2
108 #define VATTR_NULL      usr_vattr_null
109
110 #define AFS_DIRENT
111 #ifndef CMSERVERPREF
112 #define CMSERVERPREF
113 #endif
114
115 #include <limits.h>
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>
121 #include <sys/uio.h>
122 #include <sys/socket.h>
123
124 #endif /* AFS_PARAM_H */
125
126 #endif /* !defined(UKERNEL) */