mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 06:25:34 +00:00
committed by
Andrei Pavel
parent
3403f15dc7
commit
923990b389
@@ -7,7 +7,6 @@
|
||||
#ifndef KEA_UTIL_FILESYSTEM_H
|
||||
#define KEA_UTIL_FILESYSTEM_H
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <string>
|
||||
|
||||
namespace isc {
|
||||
@@ -49,23 +48,6 @@ isDir(const std::string& path);
|
||||
bool
|
||||
isFile(const std::string& path);
|
||||
|
||||
/// @brief RAII device to limit access of created files.
|
||||
struct Umask {
|
||||
/// @brief Constructor
|
||||
///
|
||||
/// Set wanted bits in umask.
|
||||
Umask(mode_t mask);
|
||||
|
||||
/// @brief Destructor.
|
||||
///
|
||||
/// Restore umask.
|
||||
~Umask();
|
||||
|
||||
private:
|
||||
/// @brief Original umask.
|
||||
mode_t orig_umask_;
|
||||
};
|
||||
|
||||
bool
|
||||
isSocket(const std::string& path);
|
||||
|
||||
|
Reference in New Issue
Block a user