Rename _POSIX_FOO_PRESENT and friends from POSIX.1e to _PC_FOO_PRESENT
and related friends. This would have been corrected had POSIX.1e progressed to a standard. Pointed out by: wollman
This commit is contained in:
parent
6f54838539
commit
be36629d5c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105572
@ -143,12 +143,11 @@
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
/* XXX: These symbols are in the WRONG namespace (should be _PC_*). */
|
||||
#define _POSIX_ACL_EXTENDED 59
|
||||
#define _POSIX_ACL_PATH_MAX 60
|
||||
#define _POSIX_CAP_PRESENT 61
|
||||
#define _POSIX_INF_PRESENT 62
|
||||
#define _POSIX_MAC_PRESENT 63
|
||||
#define _PC_ACL_EXTENDED 59
|
||||
#define _PC_ACL_PATH_MAX 60
|
||||
#define _PC_CAP_PRESENT 61
|
||||
#define _PC_INF_PRESENT 62
|
||||
#define _PC_MAC_PRESENT 63
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
|
@ -2188,7 +2188,7 @@ ufs_pathconf(ap)
|
||||
case _PC_NO_TRUNC:
|
||||
*ap->a_retval = 1;
|
||||
return (0);
|
||||
case _POSIX_ACL_EXTENDED:
|
||||
case _PC_ACL_EXTENDED:
|
||||
#ifdef UFS_ACL
|
||||
if (ap->a_vp->v_mount->mnt_flag & MNT_ACLS)
|
||||
*ap->a_retval = 1;
|
||||
@ -2198,7 +2198,7 @@ ufs_pathconf(ap)
|
||||
*ap->a_retval = 0;
|
||||
#endif
|
||||
return (0);
|
||||
case _POSIX_ACL_PATH_MAX:
|
||||
case _PC_ACL_PATH_MAX:
|
||||
#ifdef UFS_ACL
|
||||
if (ap->a_vp->v_mount->mnt_flag & MNT_ACLS)
|
||||
*ap->a_retval = ACL_MAX_ENTRIES;
|
||||
@ -2208,7 +2208,7 @@ ufs_pathconf(ap)
|
||||
*ap->a_retval = 3;
|
||||
#endif
|
||||
return (0);
|
||||
case _POSIX_MAC_PRESENT:
|
||||
case _PC_MAC_PRESENT:
|
||||
#ifdef MAC
|
||||
if (ap->a_vp->v_mount->mnt_flag & MNT_MULTILABEL)
|
||||
*ap->a_retval = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user