From 8a6d48c0542876eb3acfc0970c0ab7872db08d5f Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Sun, 6 Dec 2009 05:26:23 +0100 Subject: check in the original version of dde linux26. --- libdde_linux26/contrib/include/linux/generic_acl.h | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 libdde_linux26/contrib/include/linux/generic_acl.h (limited to 'libdde_linux26/contrib/include/linux/generic_acl.h') diff --git a/libdde_linux26/contrib/include/linux/generic_acl.h b/libdde_linux26/contrib/include/linux/generic_acl.h new file mode 100644 index 00000000..886f5faa --- /dev/null +++ b/libdde_linux26/contrib/include/linux/generic_acl.h @@ -0,0 +1,36 @@ +/* + * include/linux/generic_acl.h + * + * (C) 2005 Andreas Gruenbacher + * + * This file is released under the GPL. + */ + +#ifndef GENERIC_ACL_H +#define GENERIC_ACL_H + +#include +#include + +/** + * struct generic_acl_operations - filesystem operations + * + * Filesystems must make these operations available to the generic + * operations. + */ +struct generic_acl_operations { + struct posix_acl *(*getacl)(struct inode *, int); + void (*setacl)(struct inode *, int, struct posix_acl *); +}; + +size_t generic_acl_list(struct inode *, struct generic_acl_operations *, int, + char *, size_t); +int generic_acl_get(struct inode *, struct generic_acl_operations *, int, + void *, size_t); +int generic_acl_set(struct inode *, struct generic_acl_operations *, int, + const void *, size_t); +int generic_acl_init(struct inode *, struct inode *, + struct generic_acl_operations *); +int generic_acl_chmod(struct inode *, struct generic_acl_operations *); + +#endif -- cgit v1.2.3