mirror of
git://git.musl-libc.org/musl
synced 2025-01-11 17:19:29 +00:00
b583c5d3b4
With Linux kernel 4.16 it will be possible to guard more parts of the Linux header files from a libc. Make use of this in musl to guard all the structures and other definitions from the Linux header files which are also defined by the header files provided by musl. This will make it possible to compile source files which include both the libc headers and the kernel userspace headers. This extends the definitions done in commit 04983f227238 ("make netinet/in.h suppress clashing definitions from kernel headers")
33 lines
921 B
C
33 lines
921 B
C
#ifndef _SYS_XATTR_H
|
|
#define _SYS_XATTR_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define __NEED_ssize_t
|
|
#define __NEED_size_t
|
|
#include <bits/alltypes.h>
|
|
|
|
#define XATTR_CREATE 1
|
|
#define XATTR_REPLACE 2
|
|
|
|
ssize_t getxattr(const char *, const char *, void *, size_t);
|
|
ssize_t lgetxattr(const char *, const char *, void *, size_t);
|
|
ssize_t fgetxattr(int, const char *, void *, size_t);
|
|
ssize_t listxattr(const char *, char *, size_t);
|
|
ssize_t llistxattr(const char *, char *, size_t);
|
|
ssize_t flistxattr(int, char *, size_t);
|
|
int setxattr(const char *, const char *, const void *, size_t, int);
|
|
int lsetxattr(const char *, const char *, const void *, size_t, int);
|
|
int fsetxattr(int, const char *, const void *, size_t, int);
|
|
int removexattr(const char *, const char *);
|
|
int lremovexattr(const char *, const char *);
|
|
int fremovexattr(int, const char *);
|
|
|
|
#define __UAPI_DEF_XATTR 0
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|