]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/xattr.h
xnu-2050.48.11.tar.gz
[apple/xnu.git] / bsd / sys / xattr.h
index 67a04dab9bc0f1a866b2ecc6de6c61b713e328c3..b4fe1ac99a0dcab1e2365524e058eba3065e9226 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004-2005 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2004-2010 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
 /* Set this to bypass authorization checking (eg. if doing auth-related work) */
 #define XATTR_NOSECURITY 0x0008
 
+/* Set this to bypass the default extended attribute file (dot-underscore file) */
+#define XATTR_NODEFAULT  0x0010
+
+/* option for f/getxattr() and f/listxattr() to expose the HFS Compression extended attributes */
+#define XATTR_SHOWCOMPRESSION 0x0020
+
 #define        XATTR_MAXNAMELEN   127
 
+/* See the ATTR_CMN_FNDRINFO section of getattrlist(2) for details on FinderInfo */
 #define        XATTR_FINDERINFO_NAME     "com.apple.FinderInfo"
 
 #define        XATTR_RESOURCEFORK_NAME   "com.apple.ResourceFork"
 __BEGIN_DECLS
 int  xattr_protected(const char *);
 int  xattr_validatename(const char *);
+
+/* Maximum extended attribute size supported by VFS */
+#define XATTR_MAXSIZE          (64 * 1024 * 1024)
+
+#ifdef PRIVATE
+/* Maximum extended attribute size in an Apple Double file */  
+#define AD_XATTR_MAXSIZE       (128 * 1024)  
+
+/* Number of bits used to represent the maximum size of 
+ * extended attribute stored in an Apple Double file.
+ */
+#define AD_XATTR_SIZE_BITS     18
+#endif /* PRIVATE */
+
 __END_DECLS
 #endif /* KERNEL */