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:
Robert Watson 2002-10-20 22:11:13 +00:00
parent 6f54838539
commit be36629d5c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105572
2 changed files with 8 additions and 9 deletions

View File

@ -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

View File

@ -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;