diff options
author | Rene Ladan <rene@FreeBSD.org> | 2025-01-01 13:09:33 +0100 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2025-01-01 13:09:33 +0100 |
commit | de57ad9a410debe1770605935df7236645eb70f8 (patch) | |
tree | a5b6184f2b57bde8c823ae9b37e49e6e4d56eef2 /databases/compass/files/xattr.h | |
parent | devel/kdesvn: Remove expired port (diff) |
databases/compass: Remove expired port
2024-12-31 databases/compass: Depends on expired devel/electron29
Diffstat (limited to 'databases/compass/files/xattr.h')
-rw-r--r-- | databases/compass/files/xattr.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/databases/compass/files/xattr.h b/databases/compass/files/xattr.h deleted file mode 100644 index 1ed546a49dee..000000000000 --- a/databases/compass/files/xattr.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * xattr is a Linux kernel API that has to be mapped to the FreeBSD API - * code below is adopted and simplified from the 'xattr' python module - * https://github.com/xattr/xattr/blob/master/xattr/lib_build.c - */ - -#ifdef __FreeBSD__ -#include <sys/types.h> - -/* FreeBSD compatibility API */ -#define XATTR_XATTR_NOFOLLOW 0x0001 -#define XATTR_XATTR_CREATE 0x0002 -#define XATTR_XATTR_REPLACE 0x0004 -#define XATTR_XATTR_NOSECURITY 0x0008 - -#define XATTR_CREATE 0x1 -#define XATTR_REPLACE 0x2 - -ssize_t getxattr(const char *path, const char *name, - void *value, ssize_t size, u_int32_t position, - int options); -ssize_t setxattr(const char *path, const char *name, - void *value, ssize_t size, u_int32_t position, - int options); -ssize_t removexattr(const char *path, const char *name, - int options); -ssize_t listxattr(const char *path, char *namebuf, - size_t size, int options); -ssize_t fgetxattr(int fd, const char *name, void *value, - ssize_t size, u_int32_t position, int options); -ssize_t fsetxattr(int fd, const char *name, void *value, - ssize_t size, u_int32_t position, int options); -ssize_t fremovexattr(int fd, const char *name, int options); -ssize_t flistxattr(int fd, char *namebuf, size_t size, int options); - -#endif - -#ifndef XATTR_MAXNAMELEN -#define XATTR_MAXNAMELEN 127 -#endif |