[Bug 211333] Inconsistent exposure of unlinkat and AT_REMOVEDIR
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jul 24 11:05:51 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211333
Bug ID: 211333
Summary: Inconsistent exposure of unlinkat and AT_REMOVEDIR
Product: Base System
Version: 10.3-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: dbn at FreeBSD.org
in unistd.h (with some trimming):
#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE
int unlinkat(int, const char *, int);
#endif /* __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE */
however, in fcntl.h (with some trimming):
#if __POSIX_VISIBLE >= 200809
#define AT_REMOVEDIR 0x800 /* Remove directory instead of file */
#endif
Thus, one can define __BSD_VISIBLE but be unable to pass AT_REMOVEDIR to
unlinkat(2).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list