1297c942edbe12b0f9733358aa2d171d9345105d
[openafs.git] / src / config / param.hp_ux110.h
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 /* THIS FILE IS AUTOMATICALLY GENERATED; DO NOT EDIT */
11
12 #ifndef _PARAM_HP_UX11_0_H_
13 #define _PARAM_HP_UX11_0_H_
14
15 #define AFS_HPUX_ENV    1
16 #define AFS_HPUX90_ENV  1
17 #define AFS_HPUX100_ENV 1
18 #define AFS_HPUX101_ENV 1
19 #define AFS_HPUX102_ENV 1
20 #define AFS_HPUX110_ENV 1
21
22 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
23 #define AFS_64BITPOINTER_ENV    1       /* pointers are 64 bits. */
24
25 #include <afs/afs_sysnames.h>
26
27 #define AFS_SYSCALL     48 /* slot reserved for AFS */
28
29 /* Machine / Operating system information */
30 #define SYS_NAME        "hp_ux110"
31 #define SYS_NAME_ID     SYS_NAME_ID_hp_ux110
32 #define AFSBIG_ENDIAN   1
33 #define AFS_HAVE_FFS    1
34 #define AFS_HAVE_STATVFS 1      /* System supports statvfs */
35 #define AFS_GLOBAL_SUNLOCK 1
36 #define RXK_LISTENER_ENV   1
37 #define AFS_USERSPACE_IP_ADDR 1
38 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
39 /*
40  * #define AFS_VM_RDWR_ENV      1
41  */
42 #define AFS_TEXT_ENV    1       /* Older kernels use TEXT */
43 #define AFS_USE_GETTIMEOFDAY 1  /* use gettimeofday to implement rx clock */
44 #define NEARINODE_HINT  1   /* hint to ufs module to scatter inodes on disk*/
45 #define nearInodeHash(volid, hval) {                                 \
46                 unsigned char*  ts = (unsigned char*)&(volid)+sizeof(volid)-1;\
47                 for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\
48                     (hval) *= 173;                      \
49                     (hval) += *ts;                      \
50                 }                                       \
51                 }
52
53 /* Extra kernel definitions (from kdefs file) */
54 #ifdef KERNEL
55 #define _KERNEL 1
56 #define afsio_iov       uio_iov
57 #define afsio_iovcnt    uio_iovcnt
58 #define afsio_offset    uio_offset
59 #define afsio_seg       uio_seg
60 #define afsio_resid     uio_resid
61 #define AFS_UIOSYS      UIOSEG_KERNEL
62 #define AFS_UIOUSER     UIOSEG_USER
63 #define AFS_CLBYTES     CLBYTES
64 #define AFS_MINCHANGE   2
65 #define osi_GetTime(x)  do { struct timeval osi_GetTimeVar; uniqtime(&osi_GetTimeVar); (x)->tv_sec = osi_GetTimeVar.tv_sec; (x)->tv_usec = osi_GetTimeVar.tv_usec; } while(0)
66 #define AFS_KALLOC      kmem_alloc
67 #define AFS_KFREE       kmem_free
68 #define VATTR_NULL      vattr_null
69
70 #if defined(__LP64__)
71 #define AFS_HPUX_64BIT_ENV 1
72 #endif
73
74 #ifndef UKERNEL
75 /*
76  * On HP-UX, sys/socket.h includes sys/uio.h, and sys/file.h and
77  * sys/uio.h #include each other, and there's no simple way to avoid a
78  * warning about the struct uio declaration not being visible outside
79  * of some prototype or other.  So, we put in a tenative declaration to
80  * supress the warnings.
81  */
82 struct uio;
83 #endif
84 #endif /* KERNEL */
85 #define AFS_DIRENT      
86 /* Non-standard definitions */
87 #ifndef EDQUOT
88 #define EDQUOT          69      /* Disc quota exceeded          */
89 #endif
90
91 #endif /* _PARAM_HP_UX11_0_H_ */