]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/xattr-util.h
meson: make user $PATH configurable
[thirdparty/systemd.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 int fgetxattrat_fake(
14 int dirfd,
15 const char *filename,
16 const char *attribute,
17 void *value, size_t size,
18 int flags,
19 size_t *ret_size);
20
21 int fd_setcrtime(int fd, usec_t usec);
22
23 int fd_getcrtime(int fd, usec_t *usec);
24 int path_getcrtime(const char *p, usec_t *usec);
25 int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags);