summaryrefslogtreecommitdiff
path: root/src/linux/arch_defs_.h
blob: eb2f97eb9a65a5a8382159d76c9e745c9b54c5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
 * Fallback file for arch-specific definitions.
 *
 * Copyright (c) 2018-2020 The strace developers.
 * All rights reserved.
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#ifndef HAVE_ARCH_GETRVAL2
# define HAVE_ARCH_GETRVAL2 0
#endif

#ifndef HAVE_ARCH_OLD_MMAP
# define HAVE_ARCH_OLD_MMAP 0
#endif

#ifndef HAVE_ARCH_OLD_MMAP_PGOFF
# define HAVE_ARCH_OLD_MMAP_PGOFF 0
#endif

#ifndef HAVE_ARCH_OLD_SELECT
# define HAVE_ARCH_OLD_SELECT 0
#endif

#ifndef HAVE_ARCH_UID16_SYSCALLS
# define HAVE_ARCH_UID16_SYSCALLS 0
#endif

#ifndef DEFAULT_PERSONALITY
# define DEFAULT_PERSONALITY 0
#endif

#ifndef SUPPORTED_PERSONALITIES
# define SUPPORTED_PERSONALITIES 1
#endif

#ifndef HAVE_ARCH_DEDICATED_ERR_REG
# define HAVE_ARCH_DEDICATED_ERR_REG 0
#endif

#ifndef CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL
# define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 0
#endif

#ifndef ARCH_NEEDS_SET_ERROR_FOR_SCNO_TAMPERING
# define ARCH_NEEDS_SET_ERROR_FOR_SCNO_TAMPERING 0
#endif

#ifndef MIN_WORDSIZE
# if SUPPORTED_PERSONALITIES > 1
#  define MIN_WORDSIZE 4
# else
#  define MIN_WORDSIZE SIZEOF_LONG
# endif
#endif

#ifndef HAVE_ARCH_TIME32_SYSCALLS
# define HAVE_ARCH_TIME32_SYSCALLS (MIN_WORDSIZE == 4)
#endif

#ifndef HAVE_ARCH_OLD_TIME64_SYSCALLS
# define HAVE_ARCH_OLD_TIME64_SYSCALLS (SIZEOF_LONG == 8)
#endif

#ifndef MIN_KLONGSIZE
# if SUPPORTED_PERSONALITIES > 1
#  define MIN_KLONGSIZE 4
# else
#  define MIN_KLONGSIZE SIZEOF_KERNEL_LONG_T
# endif
#endif

#ifndef HAVE_ARCH_TIMESPEC32
# define HAVE_ARCH_TIMESPEC32 (MIN_KLONGSIZE == 4)
#endif