]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/xattr-util.h
Merge pull request #8417 from brauner/2018-03-09/add_bind_mount_fallback_to_private_d...
[thirdparty/systemd.git] / src / basic / xattr-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
89a5a90c
LP
2#pragma once
3
4/***
5 This file is part of systemd.
6
7 Copyright 2010 Lennart Poettering
89a5a90c
LP
8***/
9
10#include <stdbool.h>
11c3a366 11#include <stddef.h>
89a5a90c
LP
12#include <sys/types.h>
13
14#include "time-util.h"
15
16int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink);
17int fgetxattr_malloc(int fd, const char *name, char **value);
18
e4de6259
ZJS
19int fgetxattrat_fake(
20 int dirfd,
21 const char *filename,
22 const char *attribute,
23 void *value, size_t size,
24 int flags,
25 size_t *ret_size);
89a5a90c
LP
26
27int fd_setcrtime(int fd, usec_t usec);
28
29int fd_getcrtime(int fd, usec_t *usec);
30int path_getcrtime(const char *p, usec_t *usec);
31int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags);