]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/sys/prctl.h
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / sys / prctl.h
CommitLineData
dff8da6b 1/* Copyright (C) 1997-2024 Free Software Foundation, Inc.
af6f3906
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
af6f3906
UD
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 12 Lesser General Public License for more details.
af6f3906 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6 15 License along with the GNU C Library; if not, see
5a82c748 16 <https://www.gnu.org/licenses/>. */
af6f3906
UD
17
18#ifndef _SYS_PRCTL_H
19#define _SYS_PRCTL_H 1
20
21#include <features.h>
22#include <linux/prctl.h> /* The magic values come from here */
23
0d1bafdc
RE
24/* Recent extensions to linux which may post-date the kernel headers
25 we're picking up... */
26
27/* Memory tagging control operations (for AArch64). */
0d1bafdc
RE
28#ifndef PR_MTE_TCF_SHIFT
29# define PR_MTE_TCF_SHIFT 1
30# define PR_MTE_TCF_NONE (0UL << PR_MTE_TCF_SHIFT)
31# define PR_MTE_TCF_SYNC (1UL << PR_MTE_TCF_SHIFT)
32# define PR_MTE_TCF_ASYNC (2UL << PR_MTE_TCF_SHIFT)
33# define PR_MTE_TCF_MASK (3UL << PR_MTE_TCF_SHIFT)
34# define PR_MTE_TAG_SHIFT 3
35# define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT)
36#endif
37
af6f3906
UD
38__BEGIN_DECLS
39
40/* Control process execution. */
b39ffab8 41#ifndef __USE_TIME_BITS64
4d3a563f 42extern int prctl (int __option, ...) __THROW;
b39ffab8
FW
43#else
44# ifdef __REDIRECT
c87fcacc 45extern int __REDIRECT_NTH (prctl, (int __option, ...), __prctl_time64);
b39ffab8
FW
46# else
47extern int __prctl_time64 (int __option,d ...) __THROW;
48# define ioctl __prctl_time64
49# endif
50#endif
51
af6f3906
UD
52
53__END_DECLS
54
55#endif /* sys/prctl.h */