netfilter: xt_LOG: don't use xchg() for simple assignment
[pandora-kernel.git] / include / linux / posix_acl_xattr.h
index 5efd0a6..6e53c34 100644 (file)
 #define ACL_UNDEFINED_ID       (-1)
 
 typedef struct {
-       __u16                   e_tag;
-       __u16                   e_perm;
-       __u32                   e_id;
+       __le16                  e_tag;
+       __le16                  e_perm;
+       __le32                  e_id;
 } posix_acl_xattr_entry;
 
 typedef struct {
-       __u32                   a_version;
+       __le32                  a_version;
        posix_acl_xattr_entry   a_entries[0];
 } posix_acl_xattr_header;
 
@@ -52,4 +52,7 @@ posix_acl_xattr_count(size_t size)
        return size / sizeof(posix_acl_xattr_entry);
 }
 
+struct posix_acl *posix_acl_from_xattr(const void *value, size_t size);
+int posix_acl_to_xattr(const struct posix_acl *acl, void *buffer, size_t size);
+
 #endif /* _POSIX_ACL_XATTR_H */