git: 89dbe1dd2f1d - main - fcntl.h: Add O_XATTR for Solaris compatibility
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Jul 2025 15:15:29 UTC
The branch main has been updated by rmacklem:
URL: https://cgit.FreeBSD.org/src/commit/?id=89dbe1dd2f1d37e1b369d1910f12ff737857f070
commit 89dbe1dd2f1d37e1b369d1910f12ff737857f070
Author: Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2025-07-01 15:12:42 +0000
Commit: Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2025-07-01 15:12:42 +0000
fcntl.h: Add O_XATTR for Solaris compatibility
Commit 2ec2ba7e231d added O_NAMEDATTR for support
of the Solaris style extended attribute mechanism.
This patch adds O_XATTR as a synonym so that
software that has Solaris extended attribute support
can be built easily.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D51099
---
sys/sys/fcntl.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h
index 9329ecc29c47..dd9fccf5cf38 100644
--- a/sys/sys/fcntl.h
+++ b/sys/sys/fcntl.h
@@ -141,6 +141,7 @@ typedef __pid_t pid_t;
#if __BSD_VISIBLE
#define O_EMPTY_PATH 0x02000000
#define O_NAMEDATTR 0x04000000 /* NFSv4 named attributes */
+#define O_XATTR O_NAMEDATTR /* Solaris compatibility */
#endif
/*