diff options
author | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
commit | 871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch) | |
tree | 8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/include/linux/posix_acl_xattr.h | |
parent | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff) | |
download | FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2 FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip |
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/include/linux/posix_acl_xattr.h')
-rw-r--r-- | ANDROID_3.4.5/include/linux/posix_acl_xattr.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/ANDROID_3.4.5/include/linux/posix_acl_xattr.h b/ANDROID_3.4.5/include/linux/posix_acl_xattr.h deleted file mode 100644 index 6e53c340..00000000 --- a/ANDROID_3.4.5/include/linux/posix_acl_xattr.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - File: linux/posix_acl_xattr.h - - Extended attribute system call representation of Access Control Lists. - - Copyright (C) 2000 by Andreas Gruenbacher <a.gruenbacher@computer.org> - Copyright (C) 2002 SGI - Silicon Graphics, Inc <linux-xfs@oss.sgi.com> - */ -#ifndef _POSIX_ACL_XATTR_H -#define _POSIX_ACL_XATTR_H - -#include <linux/posix_acl.h> - -/* Extended attribute names */ -#define POSIX_ACL_XATTR_ACCESS "system.posix_acl_access" -#define POSIX_ACL_XATTR_DEFAULT "system.posix_acl_default" - -/* Supported ACL a_version fields */ -#define POSIX_ACL_XATTR_VERSION 0x0002 - - -/* An undefined entry e_id value */ -#define ACL_UNDEFINED_ID (-1) - -typedef struct { - __le16 e_tag; - __le16 e_perm; - __le32 e_id; -} posix_acl_xattr_entry; - -typedef struct { - __le32 a_version; - posix_acl_xattr_entry a_entries[0]; -} posix_acl_xattr_header; - - -static inline size_t -posix_acl_xattr_size(int count) -{ - return (sizeof(posix_acl_xattr_header) + - (count * sizeof(posix_acl_xattr_entry))); -} - -static inline int -posix_acl_xattr_count(size_t size) -{ - if (size < sizeof(posix_acl_xattr_header)) - return -1; - size -= sizeof(posix_acl_xattr_header); - if (size % sizeof(posix_acl_xattr_entry)) - return -1; - 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 */ |