Home
last modified time | relevance | path

Searched refs:mode_t (Results 1 – 25 of 39) sorted by relevance

12

/base/hiviewdfx/hiview/adapter/utility/include/
Dfile_util.h20 using mode_t = unsigned short; variable
52 constexpr mode_t DEFAULT_FILE_MODE = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH; // -rw-rw-r--
53 constexpr mode_t FILE_PERM_755 = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
54 constexpr mode_t FILE_PERM_775 = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH;
55 constexpr mode_t FILE_PERM_770 = S_IRWXU | S_IRWXG;
56 constexpr mode_t FILE_PERM_660 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP;
67 int32_t CreateFile(const std::string &path, mode_t mode = DEFAULT_FILE_MODE);
76 bool ForceCreateDirectory(const std::string& path, mode_t mode);
82 bool ChangeMode(const std::string& fileName, const mode_t& mode);
83 bool ChangeModeDirectory(const std::string& path, const mode_t& mode);
[all …]
Dcommon_utils.h27 static constexpr mode_t DEFAULT_FILE_MODE = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH; // -rw…
28 static constexpr mode_t FILE_PERM_755 = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
29 static constexpr mode_t FILE_PERM_775 = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH;
30 static constexpr mode_t FILE_PERM_770 = S_IRWXU | S_IRWXG;
/base/startup/init_lite/ueventd/include/
Dueventd_read_cfg.h29 mode_t mode;
41 mode_t mode;
56 void GetDeviceNodePermissions(const char *devNode, uid_t *uid, gid_t *gid, mode_t *mode);
/base/hiviewdfx/hiview/adapter/utility/platform/linux/
Dfile_util.cpp47 bool ChangeModeFile(const string& fileName, const mode_t& mode) in ChangeModeFile()
56 mode_t Umask(const mode_t& mode) in Umask()
61 int Open(const std::string& path, const int flags, const mode_t mode) in Open()
/base/hiviewdfx/hiview/adapter/utility/platform/windows/
Dfile_util.cpp50 mode_t Umask(const mode_t& mode) in Umask()
55 int Open(const std::string& path, const int flags, const mode_t mode) in Open()
57 const mode_t defaultMode = 0; in Open()
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/
Dfile_util.cpp103 bool ForceCreateDirectory(const string& path, mode_t mode) in ForceCreateDirectory()
140 bool ChangeMode(const string& fileName, const mode_t& mode) in ChangeMode()
145 bool ChangeModeFile(const string& fileName, const mode_t& mode) in ChangeModeFile()
154 bool ChangeModeDirectory(const std::string& path, const mode_t& mode) in ChangeModeDirectory()
164 mode_t Umask(const mode_t& mode) in Umask()
169 int Open(const std::string& path, const int flags, const mode_t mode) in Open()
208 int CreateFile(const std::string &path, mode_t mode) in CreateFile()
/base/startup/init_lite/services/include/
Dinit_utils.h50 int MakeDirRecursive(const char *dir, mode_t mode);
51 int MakeDir(const char *dir, mode_t mode);
/base/hiviewdfx/faultloggerd/utils/
Ddirectory_ex.h99 bool ChangeModeFile(const std::string& fileName, const mode_t& mode);
105 bool ChangeModeDirectory(const std::string& path, const mode_t& mode);
Ddirectory_ex.cpp205 bool ChangeMode(const string& fileName, const mode_t& mode) in ChangeMode()
210 bool ChangeModeFile(const string& fileName, const mode_t& mode) in ChangeModeFile()
219 bool ChangeModeDirectory(const string& path, const mode_t& mode) in ChangeModeDirectory()
/base/startup/init_lite/services/init/include/
Dinit_service_file.h39 mode_t perm; // Setting permissions
Dinit_service_socket.h65 mode_t perm; // Setting permissions
/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/
Devent_logger_action_test.cpp67 constexpr mode_t defaultLogDirMode = 0770; in SetUp()
113 constexpr mode_t defaultLogFileMode = 0644; in JudgmentsFileSize()
151 constexpr mode_t defaultLogFileMode = 0644; in StartCreate()
/base/hiviewdfx/hiview/base/logstore/
Dlog_store_ex.cpp35 constexpr mode_t DEFAULT_LOG_FILE_MODE = 0664;
36 constexpr mode_t DEFAULT_LOG_DIR_MODE = 0770;
/base/hiviewdfx/hidumper/frameworks/native/include/executor/
Dfd_output.h50 static const mode_t OPEN_ARGV;
/base/startup/appspawn_standard/src/include/
Dserver_socket.h102 static constexpr mode_t SOCKET_PERM = 0660; // root system can read and write appspawn socket
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/
Devent_logger_catcher_test.cpp67 constexpr mode_t defaultLogDirMode = 0770; in SetUp()
113 constexpr mode_t defaultLogFileMode = 0644; in JudgmentsFileSize()
150 constexpr mode_t defaultLogFileMode = 0644; in StartCreate()
/base/startup/init_lite/test/unittest/init/
Dutils_unittest.cpp38 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IXOTH | S_IROTH;
/base/startup/init_lite/test/unittest/ueventd/
Dueventd_config_unittest.cpp108 mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP; // 0640 in GenerateConfigFiles()
165 mode_t mode = 0;
/base/hiviewdfx/hiview/adapter/utility/
Dfile_util.cpp254 int CreateFile(const std::string &path, mode_t mode) in CreateFile()
340 bool ChangeMode(const string& fileName, const mode_t& mode) in ChangeMode()
353 bool ChangeModeDirectory(const string& path, const mode_t& mode) in ChangeModeDirectory()
/base/update/updater/utils/include/
Dutils.h46 int MkdirRecursive(const std::string &pathName, mode_t mode);
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dfd_output.cpp22 const mode_t FDOutput::OPEN_ARGV = 0664;
/base/update/updater/test/unittest/applypatch_test/
Dall_cmd_unittest.cpp173 mode_t dirMode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
190 mode_t mode = (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
Dimagepatch_unittest.h76 mode_t mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in RunImageApplyPatch()
/base/update/updater/test/unittest/updater_test/
Dupdater_unittest.cpp48 mode_t mode = (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); in SetUp()
/base/account/os_account/services/accountmgr/src/
Daccount_file_operator.cpp40 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IXOTH; in CreateDir()

12