MCPcopy Create free account
hub / github.com/F-Stack/f-stack / at2cnpflags

Function at2cnpflags

freebsd/kern/vfs_syscalls.c:113–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 const char *path, enum uio_seg segflag);
112
113static uint64_t
114at2cnpflags(u_int at_flags, u_int mask)
115{
116 u_int64_t res;
117
118 MPASS((at_flags & (AT_SYMLINK_FOLLOW | AT_SYMLINK_NOFOLLOW)) !=
119 (AT_SYMLINK_FOLLOW | AT_SYMLINK_NOFOLLOW));
120
121 res = 0;
122 at_flags &= mask;
123 if ((at_flags & AT_RESOLVE_BENEATH) != 0)
124 res |= RBENEATH;
125 if ((at_flags & AT_SYMLINK_FOLLOW) != 0)
126 res |= FOLLOW;
127 /* NOFOLLOW is pseudo flag */
128 if ((mask & AT_SYMLINK_NOFOLLOW) != 0) {
129 res |= (at_flags & AT_SYMLINK_NOFOLLOW) != 0 ? NOFOLLOW :
130 FOLLOW;
131 }
132 return (res);
133}
134
135int
136kern_sync(struct thread *td)

Callers 10

sys_linkatFunction · 0.85
kern_funlinkatFunction · 0.85
kern_accessatFunction · 0.85
kern_statatFunction · 0.85
kern_chflagsatFunction · 0.85
kern_fchmodatFunction · 0.85
kern_fchownatFunction · 0.85
kern_utimensatFunction · 0.85
kern_frmdiratFunction · 0.85
kern_getfhatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected