[PATCH STAGING v2 03/16] lapi: fallback fchroot() parameters
Andrea Cervesato <[email protected]>
| Newsgroups | gmane.linux.ltp |
|---|---|
| Message-ID | <[email protected]> |
From: Andrea Cervesato <andrea.cervesato-IBi9RG/[email protected]> Add to fcntl.h fallback definitions: - FD_PIDFS_ROOT - FD_NSFS_ROOT - FD_FAILFS_ROOT Signed-off-by: Andrea Cervesato <andrea.cervesato-IBi9RG/[email protected]> --- include/lapi/fcntl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/lapi/fcntl.h b/include/lapi/fcntl.h index 6a9ef11ce..d70954ea7 100644 --- a/include/lapi/fcntl.h +++ b/include/lapi/fcntl.h @@ -144,6 +144,19 @@ # endif #endif +/* Roots of kernel internal pseudo filesystems, usable as fd sentinels */ +#ifndef FD_PIDFS_ROOT +# define FD_PIDFS_ROOT -10002 +#endif + +#ifndef FD_NSFS_ROOT +# define FD_NSFS_ROOT -10003 +#endif + +#ifndef FD_FAILFS_ROOT +# define FD_FAILFS_ROOT -10004 +#endif + #ifndef FALLOC_FL_KEEP_SIZE # define FALLOC_FL_KEEP_SIZE 1 #endif -- 2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp