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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"