Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
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 * - statx 4.11 STATX_BASIC_STATS
45 */
46
47#if defined(__GLIBC__) && defined(STATX_BASIC_STATS)
48// if using glibc, the statx() function in sysdeps/unix/sysv/linux/statx.c
49// falls back to stat() for us.
50# define QT_ELF_NOTE_OS_MAJOR 4
51# define QT_ELF_NOTE_OS_MINOR 11
52# define QT_ELF_NOTE_OS_PATCH 0
53#elif QT_CONFIG(getentropy)
54# define QT_ELF_NOTE_OS_MAJOR 3
55# define QT_ELF_NOTE_OS_MINOR 17
56# define QT_ELF_NOTE_OS_PATCH 0
57#elif QT_CONFIG(renameat2)
58# define QT_ELF_NOTE_OS_MAJOR 3
59# define QT_ELF_NOTE_OS_MINOR 16
60# define QT_ELF_NOTE_OS_PATCH 0
61#else
62
63# define QT_ELF_NOTE_OS_MAJOR 2
64# define QT_ELF_NOTE_OS_MINOR 6
65# define QT_ELF_NOTE_OS_PATCH 28
66#endif
67
68/* you must include <elf.h> */
69#define QT_ELF_NOTE_OS_TYPE ELF_NOTE_OS_LINUX
70
72
73#endif // MINIMUMLINUX_P_H
Combined button and popup list for selecting options.