Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2016 11:05:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 211333] Inconsistent exposure of unlinkat and AT_REMOVEDIR
Message-ID:  <bug-211333-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211333

            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@FreeBSD.org
          Reporter: dbn@FreeBSD.org

in unistd.h (with some trimming):

#if __POSIX_VISIBLE >=3D 200809 || __BSD_VISIBLE
int     unlinkat(int, const char *, int);
#endif /* __POSIX_VISIBLE >=3D 200809 || __BSD_VISIBLE */

however, in fcntl.h (with some trimming):

#if __POSIX_VISIBLE >=3D 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).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211333-8>