PHP 7.4.33
Preview: ucontext.h Size: 2.07 KB
/home/godevadmin/public_html/upload_images/home/000~ROOT~000/usr/include/asm/ucontext.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_X86_UCONTEXT_H
#define _ASM_X86_UCONTEXT_H

/*
 * Indicates the presence of extended state information in the memory
 * layout pointed by the fpstate pointer in the ucontext's sigcontext
 * struct (uc_mcontext).
 */
#define UC_FP_XSTATE	0x1

#ifdef __x86_64__
/*
 * UC_SIGCONTEXT_SS will be set when delivering 64-bit or x32 signals on
 * kernels that save SS in the sigcontext.  All kernels that set
 * UC_SIGCONTEXT_SS will correctly restore at least the low 32 bits of esp
 * regardless of SS (i.e. they implement espfix).
 *
 * Kernels that set UC_SIGCONTEXT_SS will also set UC_STRICT_RESTORE_SS
 * when delivering a signal that came from 64-bit code.
 *
 * Sigreturn restores SS as follows:
 *
 * if (saved SS is valid || UC_STRICT_RESTORE_SS is set ||
 *     saved CS is not 64-bit)
 *         new SS = saved SS  (will fail IRET and signal if invalid)
 * else
 *         new SS = a flat 32-bit data segment
 *
 * This behavior serves three purposes:
 *
 * - Legacy programs that construct a 64-bit sigcontext from scratch
 *   with zero or garbage in the SS slot (e.g. old CRIU) and call
 *   sigreturn will still work.
 *
 * - Old DOSEMU versions sometimes catch a signal from a segmented
 *   context, delete the old SS segment (with modify_ldt), and change
 *   the saved CS to a 64-bit segment.  These DOSEMU versions expect
 *   sigreturn to send them back to 64-bit mode without killing them,
 *   despite the fact that the SS selector when the signal was raised is
 *   no longer valid.  UC_STRICT_RESTORE_SS will be clear, so the kernel
 *   will fix up SS for these DOSEMU versions.
 *
 * - Old and new programs that catch a signal and return without
 *   modifying the saved context will end up in exactly the state they
 *   started in, even if they were running in a segmented context when
 *   the signal was raised..  Old kernels would lose track of the
 *   previous SS value.
 */
#define UC_SIGCONTEXT_SS	0x2
#define UC_STRICT_RESTORE_SS	0x4
#endif

#include <asm-generic/ucontext.h>

#endif /* _ASM_X86_UCONTEXT_H */

Directory Contents

Dirs: 0 × Files: 64

Name Size Perms Modified Actions
756 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
8.68 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
618 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
321 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
323 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
7.58 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
40 B lrw-r--r-- 2025-06-25 10:53:23
Edit Download
176 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
3.25 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
2.52 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
31 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
31 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
270 B lrw-r--r-- 2025-06-25 10:53:23
Edit Download
69 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
31 B lrw-r--r-- 2025-06-25 10:53:23
Edit Download
32 B lrw-r--r-- 2025-06-25 10:53:23
Edit Download
32 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
854 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
11.44 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
4.24 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
388 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1.28 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1.65 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1002 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1.03 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
346 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
4.13 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
31 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1.37 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
30 B lrw-r--r-- 2025-06-25 10:53:23
Edit Download
224 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
765 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
609 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
581 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
618 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
6.47 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1.99 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1.46 KB lrw-r--r-- 2025-06-25 10:53:23
Edit Download
34 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1.02 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
6 B lrw-r--r-- 2025-06-25 10:53:23
Edit Download
8.15 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
1.23 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
9.50 KB lrw-r--r-- 2025-06-25 10:53:23
Edit Download
247 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
422 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
2.83 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
32 B lrw-r--r-- 2025-06-25 10:53:23
Edit Download
33 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
3.06 KB lrw-r--r-- 2025-06-25 10:53:23
Edit Download
416 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
9.54 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
724 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
34 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
33 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
152 B lrw-r--r-- 2025-06-25 10:53:23
Edit Download
2.07 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
359 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download
10.87 KB lrw-r--r-- 2025-06-25 10:53:23
Edit Download
9.10 KB lrw-r--r-- 2025-06-25 10:53:23
Edit Download
16.03 KB lrw-r--r-- 2025-06-25 10:53:23
Edit Download
3.04 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
7.20 KB lrw-r--r-- 2025-06-25 10:53:22
Edit Download
263 B lrw-r--r-- 2025-06-25 10:53:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).