/* File: linux/xattr.h Extended attributes handling. Copyright (C) 2001 by Andreas Gruenbacher <a.gruenbacher@computer.org> Copyright (c) 2001-2002 Silicon Graphics, Inc. All Rights Reserved. Copyright (c) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com>*/#ifndef _LINUX_XATTR_H#define _LINUX_XATTR_H#define XATTR_CREATE 0x1 /* set value, fail if attr already exists */#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */#define XATTR_SECURITY_PREFIX "security."structxattr_handler{char*prefix;size_t(*list)(structinode*inode,char*list,size_tlist_size,constchar*name,size_tname_len);int(*get)(structinode*inode,constchar*name,void*buffer,size_tsize);int(*set)(structinode*inode,constchar*name,constvoid*buffer,size_tsize,intflags);};ssize_tgeneric_getxattr(structdentry*dentry,constchar*name,void*buffer,size_tsize);ssize_tgeneric_listxattr(structdentry*dentry,char*buffer,size_tbuffer_size);intgeneric_setxattr(structdentry*dentry,constchar*name,constvoid*value,size_tsize,intflags);intgeneric_removexattr(structdentry*dentry,constchar*name);#endif /* _LINUX_XATTR_H */