Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sys
File: xattr.h
/* Copyright (C) 2002-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _SYS_XATTR_H
[17] Fix | Delete
#define _SYS_XATTR_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
#include <sys/types.h>
[21] Fix | Delete
[22] Fix | Delete
[23] Fix | Delete
__BEGIN_DECLS
[24] Fix | Delete
[25] Fix | Delete
/* The following constants should be used for the fifth parameter of
[26] Fix | Delete
`*setxattr'. */
[27] Fix | Delete
#ifndef __USE_KERNEL_XATTR_DEFS
[28] Fix | Delete
enum
[29] Fix | Delete
{
[30] Fix | Delete
XATTR_CREATE = 1, /* set value, fail if attr already exists. */
[31] Fix | Delete
#define XATTR_CREATE XATTR_CREATE
[32] Fix | Delete
XATTR_REPLACE = 2 /* set value, fail if attr does not exist. */
[33] Fix | Delete
#define XATTR_REPLACE XATTR_REPLACE
[34] Fix | Delete
};
[35] Fix | Delete
#endif
[36] Fix | Delete
[37] Fix | Delete
/* Set the attribute NAME of the file pointed to by PATH to VALUE (which
[38] Fix | Delete
is SIZE bytes long). Return 0 on success, -1 for errors. */
[39] Fix | Delete
extern int setxattr (const char *__path, const char *__name,
[40] Fix | Delete
const void *__value, size_t __size, int __flags)
[41] Fix | Delete
__THROW;
[42] Fix | Delete
[43] Fix | Delete
/* Set the attribute NAME of the file pointed to by PATH to VALUE (which is
[44] Fix | Delete
SIZE bytes long), not following symlinks for the last pathname component.
[45] Fix | Delete
Return 0 on success, -1 for errors. */
[46] Fix | Delete
extern int lsetxattr (const char *__path, const char *__name,
[47] Fix | Delete
const void *__value, size_t __size, int __flags)
[48] Fix | Delete
__THROW;
[49] Fix | Delete
[50] Fix | Delete
/* Set the attribute NAME of the file descriptor FD to VALUE (which is SIZE
[51] Fix | Delete
bytes long). Return 0 on success, -1 for errors. */
[52] Fix | Delete
extern int fsetxattr (int __fd, const char *__name, const void *__value,
[53] Fix | Delete
size_t __size, int __flags) __THROW;
[54] Fix | Delete
[55] Fix | Delete
/* Get the attribute NAME of the file pointed to by PATH to VALUE (which is
[56] Fix | Delete
SIZE bytes long). Return 0 on success, -1 for errors. */
[57] Fix | Delete
extern ssize_t getxattr (const char *__path, const char *__name,
[58] Fix | Delete
void *__value, size_t __size) __THROW;
[59] Fix | Delete
[60] Fix | Delete
/* Get the attribute NAME of the file pointed to by PATH to VALUE (which is
[61] Fix | Delete
SIZE bytes long), not following symlinks for the last pathname component.
[62] Fix | Delete
Return 0 on success, -1 for errors. */
[63] Fix | Delete
extern ssize_t lgetxattr (const char *__path, const char *__name,
[64] Fix | Delete
void *__value, size_t __size) __THROW;
[65] Fix | Delete
[66] Fix | Delete
/* Get the attribute NAME of the file descriptor FD to VALUE (which is SIZE
[67] Fix | Delete
bytes long). Return 0 on success, -1 for errors. */
[68] Fix | Delete
extern ssize_t fgetxattr (int __fd, const char *__name, void *__value,
[69] Fix | Delete
size_t __size) __THROW;
[70] Fix | Delete
[71] Fix | Delete
/* List attributes of the file pointed to by PATH into the user-supplied
[72] Fix | Delete
buffer LIST (which is SIZE bytes big). Return 0 on success, -1 for
[73] Fix | Delete
errors. */
[74] Fix | Delete
extern ssize_t listxattr (const char *__path, char *__list, size_t __size)
[75] Fix | Delete
__THROW;
[76] Fix | Delete
[77] Fix | Delete
/* List attributes of the file pointed to by PATH into the user-supplied
[78] Fix | Delete
buffer LIST (which is SIZE bytes big), not following symlinks for the
[79] Fix | Delete
last pathname component. Return 0 on success, -1 for errors. */
[80] Fix | Delete
extern ssize_t llistxattr (const char *__path, char *__list, size_t __size)
[81] Fix | Delete
__THROW;
[82] Fix | Delete
[83] Fix | Delete
/* List attributes of the file descriptor FD into the user-supplied buffer
[84] Fix | Delete
LIST (which is SIZE bytes big). Return 0 on success, -1 for errors. */
[85] Fix | Delete
extern ssize_t flistxattr (int __fd, char *__list, size_t __size)
[86] Fix | Delete
__THROW;
[87] Fix | Delete
[88] Fix | Delete
/* Remove the attribute NAME from the file pointed to by PATH. Return 0
[89] Fix | Delete
on success, -1 for errors. */
[90] Fix | Delete
extern int removexattr (const char *__path, const char *__name) __THROW;
[91] Fix | Delete
[92] Fix | Delete
/* Remove the attribute NAME from the file pointed to by PATH, not
[93] Fix | Delete
following symlinks for the last pathname component. Return 0 on
[94] Fix | Delete
success, -1 for errors. */
[95] Fix | Delete
extern int lremovexattr (const char *__path, const char *__name) __THROW;
[96] Fix | Delete
[97] Fix | Delete
/* Remove the attribute NAME from the file descriptor FD. Return 0 on
[98] Fix | Delete
success, -1 for errors. */
[99] Fix | Delete
extern int fremovexattr (int __fd, const char *__name) __THROW;
[100] Fix | Delete
[101] Fix | Delete
__END_DECLS
[102] Fix | Delete
[103] Fix | Delete
#endif /* sys/xattr.h */
[104] Fix | Delete
[105] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function