uapi/fcntl: add FD_INVALID

Add a marker for an invalid file descriptor.

Link: https://lore.kernel.org/[email protected]
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Amir Goldstein <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
This commit is contained in:
Christian Brauner committed 2025-06-24 15:50:15 +02:00
1 parent 67fcec2919
commit cd5d200632
1 file changed
+1
+1
View File
@@ -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. */