We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f08d0c3 commit e943271Copy full SHA for e943271
1 file changed
tools/testing/selftests/pidfd/pidfd.h
@@ -50,6 +50,22 @@
50
#define PIDFD_NONBLOCK O_NONBLOCK
51
#endif
52
53
+#ifndef PIDFD_SELF_THREAD
54
+#define PIDFD_SELF_THREAD -10000 /* Current thread. */
55
+#endif
56
+
57
+#ifndef PIDFD_SELF_THREAD_GROUP
58
+#define PIDFD_SELF_THREAD_GROUP -20000 /* Current thread group leader. */
59
60
61
+#ifndef PIDFD_SELF
62
+#define PIDFD_SELF PIDFD_SELF_THREAD
63
64
65
+#ifndef PIDFD_SELF_PROCESS
66
+#define PIDFD_SELF_PROCESS PIDFD_SELF_THREAD_GROUP
67
68
69
/*
70
* The kernel reserves 300 pids via RESERVED_PIDS in kernel/pid.c
71
* That means, when it wraps around any pid < 300 will be skipped.
0 commit comments