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