xattr.h
Go to the documentation of this file.
1 /****
2  * xattr.h
3  * Extended Attributes
4  *
5  * Created on: 16 Feb 2021
6  *
7  * Copyright 2019 mikee47 <mike@sillyhouse.net>
8  *
9  * This file is part of the IFS Library
10  *
11  * This library is free software: you can redistribute it and/or modify it under the terms of the
12  * GNU General Public License as published by the Free Software Foundation, version 3 or later.
13  *
14  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along with this library.
19  * If not, see <https://www.gnu.org/licenses/>.
20  *
21  ****/
22 
23 #pragma once
24 
25 #include <cstddef>
26 #include <cstdint>
27 
28 int fgetxattr(int file, const char* name, void* value, size_t size);
29 int fsetxattr(int file, const char* name, const void* value, size_t size, int flags);
30 int flistxattr(int file, char* namebuf, size_t size);
31 
32 // Get Win32 attribute bits (FILE_ATTRIBUTE_xxx)
33 int fgetattr(int file, uint32_t& attr);
int fgetattr(int file, uint32_t &attr)
int flistxattr(int file, char *namebuf, size_t size)
int fgetxattr(int file, const char *name, void *value, size_t size)
int fsetxattr(int file, const char *name, const void *value, size_t size, int flags)