1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * QEMU internal errno values for implementing user-only POSIX.
5 * Copyright (c) 2003 Fabrice Bellard
6 * Copyright (c) 2021 Linaro, Ltd.
9 #ifndef SPECIAL_ERRNO_H
10 #define SPECIAL_ERRNO_H
13 * All of these are QEMU internal, not visible to the guest.
14 * They should be chosen so as to not overlap with any host
19 * This is returned when a system call should be restarted, to tell the
20 * main loop that it should wind the guest PC backwards so it will
21 * re-execute the syscall after handling any pending signals.
23 #define QEMU_ERESTARTSYS 512
26 * This is returned after a successful sigreturn syscall, to indicate
27 * that it has correctly set the guest registers and so the main loop
28 * should not touch them.
30 #define QEMU_ESIGRETURN 513
32 #endif /* SPECIAL_ERRNO_H */