/usr/share/cagefs-skeleton/usr/include/sys
/* Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ #ifndef _SYS_XATTR_H #define _SYS_XATTR_H 1 #include <features.h> #include <sys/types.h> __BEGIN_DECLS /* The following constants should be used for the fifth parameter of `*setxattr'. */ #ifndef __USE_KERNEL_XATTR_DEFS enum { XATTR_CREATE = 1, /* set value, fail if attr already exists. */ #define XATTR_CREATE XATTR_CREATE XATTR_REPLACE = 2 /* set value, fail if attr does not exist. */ #define XATTR_REPLACE XATTR_REPLACE }; #endif /* Set the attribute NAME of the file pointed to by PATH to VALUE (which is SIZE bytes long). Return 0 on success, -1 for errors. */ extern int setxattr (const char *__path, const char *__name, const void *__value, size_t __size, int __flags) __THROW; /* Set the attribute NAME of the file pointed to by PATH to VALUE (which is SIZE bytes long), not following symlinks for the last pathname component. Return 0 on success, -1 for errors. */ extern int lsetxattr (const char *__path, const char *__name, const void *__value, size_t __size, int __flags) __THROW; /* Set the attribute NAME of the file descriptor FD to VALUE (which is SIZE bytes long). Return 0 on success, -1 for errors. */ extern int fsetxattr (int __fd, const char *__name, const void *__value, size_t __size, int __flags) __THROW; /* Get the attribute NAME of the file pointed to by PATH to VALUE (which is SIZE bytes long). Return 0 on success, -1 for errors. */ extern ssize_t getxattr (const char *__path, const char *__name, void *__value, size_t __size) __THROW; /* Get the attribute NAME of the file pointed to by PATH to VALUE (which is SIZE bytes long), not following symlinks for the last pathname component. Return 0 on success, -1 for errors. */ extern ssize_t lgetxattr (const char *__path, const char *__name, void *__value, size_t __size) __THROW; /* Get the attribute NAME of the file descriptor FD to VALUE (which is SIZE bytes long). Return 0 on success, -1 for errors. */ extern ssize_t fgetxattr (int __fd, const char *__name, void *__value, size_t __size) __THROW; /* List attributes of the file pointed to by PATH into the user-supplied buffer LIST (which is SIZE bytes big). Return 0 on success, -1 for errors. */ extern ssize_t listxattr (const char *__path, char *__list, size_t __size) __THROW; /* List attributes of the file pointed to by PATH into the user-supplied buffer LIST (which is SIZE bytes big), not following symlinks for the last pathname component. Return 0 on success, -1 for errors. */ extern ssize_t llistxattr (const char *__path, char *__list, size_t __size) __THROW; /* List attributes of the file descriptor FD into the user-supplied buffer LIST (which is SIZE bytes big). Return 0 on success, -1 for errors. */ extern ssize_t flistxattr (int __fd, char *__list, size_t __size) __THROW; /* Remove the attribute NAME from the file pointed to by PATH. Return 0 on success, -1 for errors. */ extern int removexattr (const char *__path, const char *__name) __THROW; /* Remove the attribute NAME from the file pointed to by PATH, not following symlinks for the last pathname component. Return 0 on success, -1 for errors. */ extern int lremovexattr (const char *__path, const char *__name) __THROW; /* Remove the attribute NAME from the file descriptor FD. Return 0 on success, -1 for errors. */ extern int fremovexattr (int __fd, const char *__name) __THROW; __END_DECLS #endif /* sys/xattr.h */
.
Edit
..
Edit
acct.h
Edit
auxv.h
Edit
bitypes.h
Edit
capability.h
Edit
cdefs.h
Edit
debugreg.h
Edit
dir.h
Edit
elf.h
Edit
epoll.h
Edit
errno.h
Edit
eventfd.h
Edit
fanotify.h
Edit
fcntl.h
Edit
file.h
Edit
fsuid.h
Edit
gmon.h
Edit
gmon_out.h
Edit
inotify.h
Edit
io.h
Edit
ioctl.h
Edit
ipc.h
Edit
kd.h
Edit
klog.h
Edit
mman.h
Edit
mount.h
Edit
msg.h
Edit
mtio.h
Edit
param.h
Edit
pci.h
Edit
perm.h
Edit
personality.h
Edit
platform
Edit
poll.h
Edit
prctl.h
Edit
procfs.h
Edit
profil.h
Edit
psx_syscall.h
Edit
ptrace.h
Edit
queue.h
Edit
quota.h
Edit
random.h
Edit
raw.h
Edit
reboot.h
Edit
reg.h
Edit
resource.h
Edit
rseq.h
Edit
sdt-config.h
Edit
sdt.h
Edit
select.h
Edit
sem.h
Edit
sendfile.h
Edit
shm.h
Edit
signal.h
Edit
signalfd.h
Edit
single_threaded.h
Edit
socket.h
Edit
socketvar.h
Edit
soundcard.h
Edit
stat.h
Edit
statfs.h
Edit
statvfs.h
Edit
swap.h
Edit
syscall.h
Edit
sysinfo.h
Edit
syslog.h
Edit
sysmacros.h
Edit
termios.h
Edit
time.h
Edit
timeb.h
Edit
timerfd.h
Edit
times.h
Edit
timex.h
Edit
ttychars.h
Edit
ttydefaults.h
Edit
types.h
Edit
ucontext.h
Edit
uio.h
Edit
un.h
Edit
unistd.h
Edit
user.h
Edit
utsname.h
Edit
vfs.h
Edit
vlimit.h
Edit
vm86.h
Edit
vt.h
Edit
wait.h
Edit
xattr.h
Edit