diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-06-24 10:29:10 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-06-24 15:50:15 +0200 |
| commit | cd5d2006327b6d8488612cb8c03ad7304417c8f2 (patch) | |
| tree | 9f603448f23797dd701afa15b73bc047a874a7d0 /include | |
| parent | fcntl/pidfd: redefine PIDFD_SELF_THREAD_GROUP (diff) | |
| download | linux-cd5d2006327b6d8488612cb8c03ad7304417c8f2.tar.gz linux-cd5d2006327b6d8488612cb8c03ad7304417c8f2.zip | |
uapi/fcntl: add FD_INVALID
Add a marker for an invalid file descriptor.
Link: https://lore.kernel.org/20250624-work-pidfs-fhandle-v2-7-d02a04858fe3@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/linux/fcntl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/fcntl.h b/include/uapi/linux/fcntl.h index ba4a698d2f33..a5bebe7c4400 100644 --- a/include/uapi/linux/fcntl.h +++ b/include/uapi/linux/fcntl.h @@ -110,6 +110,7 @@ #define PIDFD_SELF_THREAD -10000 /* Current thread. */ #define PIDFD_SELF_THREAD_GROUP -10001 /* Current thread group leader. */ +#define FD_INVALID -10009 /* Invalid file descriptor: -10000 - EBADF = -10009 */ /* Generic flags for the *at(2) family of syscalls. */ |
