fd-util: introduce fd_vet_accmode()

Inspired by #39674
This commit is contained in:
Mike Yuan
2025-11-12 15:44:50 +01:00
parent 3b3113b87c
commit 7cf4f07567
2 changed files with 36 additions and 0 deletions
+1
View File
@@ -151,6 +151,7 @@ int fd_reopen_propagate_append_and_position(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 fd_vet_accmode(int fd, int mode);
int fd_verify_safe_flags_full(int fd, int extra_flags);
static inline int fd_verify_safe_flags(int fd) {