| Disk ARchive 2.8.1 Full featured and portable backup and archiving tool

Loading...
Searching...
No Matches
capabilities.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// dar - disk archive - a backup/restoration program
3// Copyright (C) 2002-2025 Denis Corbin
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18//
19// to contact the author, see the AUTHOR file
20/*********************************************************************/
21
25
26#ifndef CAPABILITIES_HPP
27#define CAPABILITIES_HPP
28
29#include "../my_config.h"
30
31#include "user_interaction.hpp"
32
33 namespace libdar
34{
37
39
41 enum capa_status { capa_set,
42 capa_clear,
43 capa_unknown };
44
45 extern capa_status capability_LINUX_IMMUTABLE(user_interaction & ui, bool verbose);
46
47 extern capa_status capability_SYS_RESOURCE(user_interaction & ui, bool verbose);
48
49 extern capa_status capability_FOWNER(user_interaction & ui, bool verbose);
50
51 extern capa_status capability_CHOWN(user_interaction & ui, bool verbose);
52
53
55
56} // end of namespace
57
58#endif
libdar::capa_status
capa_status
the EFFECTIVE set the value of the associated capability for the calling thread
Definition capabilities.hpp:41
libdar::capa_clear
@ capa_clear
current thread has not the requested capability
Definition capabilities.hpp:42
libdar::capa_set
@ capa_set
current thread has the requested capability
Definition capabilities.hpp:41
my_config.h
include macro defined by the configure script and some specific additional ones
libdar
libdar namespace encapsulate all libdar symbols
Definition archive.hpp:47
user_interaction.hpp
defines the interaction interface between libdar and users.