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