Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
minimum-linux_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 Intel Corporation.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
ifndef
MINIMUMLINUX_P_H
5
#
define
MINIMUMLINUX_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
// EXTRA WARNING
19
// -------------
20
//
21
// This file must also be valid assembler source.
22
//
23
24
#
include
"private/qglobal_p.h"
25
#
include
<
sys
/
stat
.
h
>
26
27
QT_BEGIN_NAMESPACE
28
29
/* Minimum Linux kernel version:
30
* We require the following features in Qt (unconditional, no fallback):
31
* Feature Added in version Macro
32
* - inotify_init1 before 2.6.12-rc12
33
* - futex(2) before 2.6.12-rc12
34
* - FUTEX_WAKE_OP 2.6.14 FUTEX_OP
35
* - linkat(2) 2.6.17 O_TMPFILE && QT_CONFIG(linkat)
36
* - FUTEX_PRIVATE_FLAG 2.6.22
37
* - O_CLOEXEC 2.6.23
38
* - eventfd 2.6.23
39
* - FUTEX_WAIT_BITSET 2.6.25
40
* - pipe2 & dup3 2.6.27
41
* - accept4 2.6.28
42
* - renameat2 3.16 QT_CONFIG(renameat2)
43
* - getrandom 3.17 QT_CONFIG(getentropy)
44
* - copy_file_range 4.5 QT_CONFIG(copy_file_range)
45
* - statx 4.11 STATX_BASIC_STATS
46
*/
47
48
#
if
defined
(
__GLIBC__
)
&&
defined
(
STATX_BASIC_STATS
)
49
// if using glibc, the statx() function in sysdeps/unix/sysv/linux/statx.c
50
// falls back to stat() for us.
51
#
define
QT_ELF_NOTE_OS_MAJOR
4
52
#
define
QT_ELF_NOTE_OS_MINOR
11
53
#
define
QT_ELF_NOTE_OS_PATCH
0
54
#
elif
QT_CONFIG
(
copy_file_range
)
55
#
define
QT_ELF_NOTE_OS_MAJOR
4
56
#
define
QT_ELF_NOTE_OS_MINOR
5
57
#
define
QT_ELF_NOTE_OS_PATCH
0
58
#
elif
QT_CONFIG
(
getentropy
)
59
#
define
QT_ELF_NOTE_OS_MAJOR
3
60
#
define
QT_ELF_NOTE_OS_MINOR
17
61
#
define
QT_ELF_NOTE_OS_PATCH
0
62
#
elif
QT_CONFIG
(
renameat2
)
63
#
define
QT_ELF_NOTE_OS_MAJOR
3
64
#
define
QT_ELF_NOTE_OS_MINOR
16
65
#
define
QT_ELF_NOTE_OS_PATCH
0
66
#
else
67
#
define
QT_ELF_NOTE_OS_MAJOR
2
68
#
define
QT_ELF_NOTE_OS_MINOR
6
69
#
define
QT_ELF_NOTE_OS_PATCH
28
70
#
endif
71
72
/* you must include <elf.h> */
73
#
define
QT_ELF_NOTE_OS_TYPE
ELF_NOTE_OS_LINUX
74
75
QT_END_NAMESPACE
76
77
#
endif
// MINIMUMLINUX_P_H
QSqlRelationalDelegate
\inmodule QtSql
qtbase
src
corelib
global
minimum-linux_p.h
Generated on
for Qt by
1.14.0