libuafs: enable 64 bit mode on linux
[openafs.git] / src / config / param.sparc64_linux22.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 #ifndef AFS_PARAM_H
11 #define AFS_PARAM_H
12
13 #ifndef UKERNEL
14
15 /* This section for kernel libafs compiles only */
16 #define AFS_SPARC64_LINUX20_ENV 1
17 #define AFS_SPARC64_LINUX22_ENV 1
18 #define AFS_LINUX_64BIT_KERNEL  1
19 #define AFS_64BITPOINTER_ENV    1       /* pointers are 64 bits. */
20 #define AFS_32BIT_USR_ENV       1       /* user level processes are 32bit */
21
22 /*
23  * on sparclinux is O_LARGEFILE defined but there is not off64_t,
24  * so small hack to get usd_file.c work
25  */
26 #ifndef KERNEL
27 #define __USE_FILE_OFFSET64     1
28 #define __USE_LARGEFILE64       1
29 #if !defined off64_t
30 #define off64_t __off64_t
31 #endif
32 #endif
33
34 #else /* !defined(UKERNEL) */
35
36 /* This section for user space compiles only */
37 #define UKERNEL                 1       /* user space kernel */
38
39 #endif /* !defined(UKERNEL) */
40
41 /* Machine / Operating system information */
42 #define SYS_NAME                "sparc64_linux22"
43 #define SYS_NAME_ID             SYS_NAME_ID_sparc64_linux22
44 #define AFS_SYSCALL             227
45 #define AFSBIG_ENDIAN           1
46
47 #endif /* AFS_PARAM_H */