]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/xattr-util.h
Merge pull request #14081 from poettering/xattr-list-rework
[thirdparty/systemd.git] / src / basic / xattr-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
89a5a90c
LP
2#pragma once
3
89a5a90c 4#include <stdbool.h>
11c3a366 5#include <stddef.h>
89a5a90c
LP
6#include <sys/types.h>
7
8#include "time-util.h"
9
10int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink);
11int fgetxattr_malloc(int fd, const char *name, char **value);
12
e4de6259
ZJS
13int 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);
89a5a90c
LP
20
21int fd_setcrtime(int fd, usec_t usec);
22
23int fd_getcrtime(int fd, usec_t *usec);
24int path_getcrtime(const char *p, usec_t *usec);
25int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags);
7de2d2e1
LP
26
27int flistxattr_malloc(int fd, char **ret);