Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Static Public Member Functions | List of all members
TestFileUtil02 Class Reference
Inheritance diagram for TestFileUtil02:
Collaboration diagram for TestFileUtil02:

Public Member Functions

void test50_mount_copy_r_p ()
 

Static Public Member Functions

static bool cap_get_flag (cap_t cap_p, cap_value_t cap, cap_flag_t flag, cap_flag_value_t *value_p) noexcept
 
static bool cap_set_flag (cap_t cap_p, cap_flag_t flag, int ncap, const cap_value_t *caps, cap_flag_value_t value) noexcept
 
static bool cap_set_proc_flag (const std::string &title, cap_flag_t flag, int ncap, const cap_value_t *cap_list) noexcept
 
::gid_t get_gid (const std::string &groupname)
 Get group-id by groupname using system commands getent and cut. More...
 
static void print_caps (const std::string &title)
 

Detailed Description

Definition at line 39 of file testsudo_fileutils02.cpp.

Member Function Documentation

◆ cap_get_flag()

static bool TestFileUtil02::cap_get_flag ( cap_t  cap_p,
cap_value_t  cap,
cap_flag_t  flag,
cap_flag_value_t *  value_p 
)
inlinestaticnoexcept

Definition at line 86 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ cap_set_flag()

static bool TestFileUtil02::cap_set_flag ( cap_t  cap_p,
cap_flag_t  flag,
int  ncap,
const cap_value_t *  caps,
cap_flag_value_t  value 
)
inlinestaticnoexcept

Definition at line 93 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ cap_set_proc_flag()

static bool TestFileUtil02::cap_set_proc_flag ( const std::string &  title,
cap_flag_t  flag,
int  ncap,
const cap_value_t *  cap_list 
)
inlinestaticnoexcept

Definition at line 101 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ print_caps()

static void TestFileUtil02::print_caps ( const std::string &  title)
inlinestatic

Definition at line 119 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ get_gid()

::gid_t TestFileUtil02::get_gid ( const std::string &  groupname)
inlinestatic

Get group-id by groupname using system commands getent and cut.

Known group-ids are

  • Ubuntu, Debian group 24: cdrom
  • FreeBSD, Ubuntu, Debian group 44: video
  • Alpine/Linux group 27: video

Definition at line 142 of file testsudo_fileutils02.cpp.

Here is the caller graph for this function:

◆ test50_mount_copy_r_p()

void TestFileUtil02::test50_mount_copy_r_p ( )
inline

Definition at line 162 of file testsudo_fileutils02.cpp.


The documentation for this class was generated from the following file: