xref: /linux/include/uapi/linux/close_range.h (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
160997c3dSChristian Brauner /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
260997c3dSChristian Brauner #ifndef _UAPI_LINUX_CLOSE_RANGE_H
360997c3dSChristian Brauner #define _UAPI_LINUX_CLOSE_RANGE_H
460997c3dSChristian Brauner 
560997c3dSChristian Brauner /* Unshare the file descriptor table before closing file descriptors. */
660997c3dSChristian Brauner #define CLOSE_RANGE_UNSHARE	(1U << 1)
760997c3dSChristian Brauner 
8*582f1fb6SGiuseppe Scrivano /* Set the FD_CLOEXEC bit instead of closing the file descriptor. */
9*582f1fb6SGiuseppe Scrivano #define CLOSE_RANGE_CLOEXEC	(1U << 2)
10*582f1fb6SGiuseppe Scrivano 
1160997c3dSChristian Brauner #endif /* _UAPI_LINUX_CLOSE_RANGE_H */
1260997c3dSChristian Brauner 
13