chiark / gitweb /
tree-wide: remove Lennart's copyright lines
[elogind.git] / src / basic / xattr-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <stdbool.h>
5 #include <stddef.h>
6 #include <sys/types.h>
7
8 #include "time-util.h"
9
10 int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink);
11 int fgetxattr_malloc(int fd, const char *name, char **value);
12
13 #if 0 /// UNNEEDED by elogind
14 int fgetxattrat_fake(
15                 int dirfd,
16                 const char *filename,
17                 const char *attribute,
18                 void *value, size_t size,
19                 int flags,
20                 size_t *ret_size);
21
22 int fd_setcrtime(int fd, usec_t usec);
23
24 int fd_getcrtime(int fd, usec_t *usec);
25 int path_getcrtime(const char *p, usec_t *usec);
26 int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags);
27 #endif // 0