git: 8df080625bd3 - main - unistd.h: Add new Solaris compatible pathconf names

From: Rick Macklem <rmacklem_at_FreeBSD.org>
Date: Sat, 26 Jul 2025 21:30:29 UTC
The branch main has been updated by rmacklem:

URL: https://cgit.FreeBSD.org/src/commit/?id=8df080625bd3aa573194a65a9167614ca83ba57e

commit 8df080625bd3aa573194a65a9167614ca83ba57e
Author:     Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2025-07-26 21:26:31 +0000
Commit:     Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2025-07-26 21:28:04 +0000

    unistd.h: Add new Solaris compatible pathconf names
    
    Solaris software can use _PC_XATTR_ENABLED and
    _PC_XATTR_EXISTS, which are semantically the same
    as _PC_NAMEDATTR_ENABLED and _PC_HAS_NAMEDATTR.
    
    Add these pathconf names to unistd.h for Solaris compatibility.
    
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D51546
    Fixes:  2ec2ba7e232d ("vfs: Add VFS/syscall support for Solaris style extended attributes")
---
 sys/sys/unistd.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/sys/unistd.h b/sys/sys/unistd.h
index c291c1dc2b95..85ed93fd359d 100644
--- a/sys/sys/unistd.h
+++ b/sys/sys/unistd.h
@@ -156,6 +156,8 @@
 #define	_PC_DEALLOC_PRESENT	65
 #define	_PC_NAMEDATTR_ENABLED	66
 #define	_PC_HAS_NAMEDATTR	67
+#define	_PC_XATTR_ENABLED	_PC_NAMEDATTR_ENABLED	/* Solaris Compatible */
+#define	_PC_XATTR_EXISTS	_PC_HAS_NAMEDATTR	/* Solaris Compatible */
 #define	_PC_HAS_HIDDENSYSTEM	68
 #endif