fd-util: introduce a simple helper to check a file descriptor has O_PATH

This commit is contained in:
Yu Watanabe
2023-02-17 07:18:42 +09:00
parent ca8b1d68c5
commit ea61e2e9bd
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -104,6 +104,7 @@ static inline int make_null_stdio(void) {
int fd_reopen(int fd, int flags);
int fd_reopen_condition(int fd, int flags, int mask, int *ret_new_fd);
int fd_is_opath(int fd);
int read_nr_open(void);
int fd_get_diskseq(int fd, uint64_t *ret);