Home
last modified time | relevance | path

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

123

/base/hiviewdfx/hiview/base/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;
57 constexpr mode_t FILE_PERM_666 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
70 int32_t CreateFile(const std::string &path, mode_t mode = DEFAULT_FILE_MODE);
81 bool ForceCreateDirectory(const std::string& path, mode_t mode);
87 bool ChangeMode(const std::string& fileName, 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/ueventd/include/
Dueventd_read_cfg.h29 mode_t mode;
41 mode_t mode;
56 int GetDeviceNodePermissions(const char *devNode, uid_t *uid, gid_t *gid, mode_t *mode);
/base/hiviewdfx/hiview/base/utility/
Dfile_util.cpp162 bool ForceCreateDirectory(const string& path, mode_t mode) in ForceCreateDirectory()
199 bool ChangeMode(const string& fileName, const mode_t& mode) in ChangeMode()
204 bool ChangeModeFile(const string& fileName, const mode_t& mode) in ChangeModeFile()
213 bool ChangeModeDirectory(const std::string& path, const mode_t& mode) in ChangeModeDirectory()
223 mode_t Umask(const mode_t& mode) in Umask()
228 int Open(const std::string& path, const int flags, const mode_t mode) in Open()
267 int CreateFile(const std::string &path, mode_t mode) in CreateFile()
/base/startup/init/interfaces/innerkits/include/
Dinit_utils.h77 int MakeDirRecursive(const char *dir, mode_t mode);
79 int CheckAndCreatFile(const char *file, mode_t mode);
80 int MakeDir(const char *dir, mode_t mode);
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/
Dzip_helper.h39 constexpr mode_t DEFAULT_LOG_FILE_MODE = 0666;
40 constexpr mode_t DEFAULT_LOG_DIR_MODE = 0775;
/base/startup/init/test/unittest/init/
Dutils_unittest.cpp43 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IXOTH | S_IROTH;
74 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
/base/startup/init/services/init/include/
Dinit_service_file.h39 mode_t perm; // Setting permissions
Dinit_service_socket.h65 mode_t perm; // Setting permissions
/base/hiviewdfx/hidumper/frameworks/native/include/executor/
Dfd_output.h56 static const mode_t OPEN_ARGV;
/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/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_storage.c208 mode_t mode = 0; in GetCertConfRootDir()
222 ret = CmUserBakupMakeDir(CERT_BACKUP_CONFIG_ROOT_DIR, (const mode_t *)&mode); in GetCertConfRootDir()
354 mode_t mode = 0; in GetCertBakeupRootDir()
357 ret = CmUserBakupMakeDir(CERT_BACKUP_ROOT_DIR, (const mode_t *)&mode); in GetCertBakeupRootDir()
/base/update/updater/utils/include/
Dutils.h51 int MkdirRecursive(const std::string &pathName, mode_t mode);
93 void SetFileAttributes(const std::string& file, uid_t owner, gid_t group, mode_t mode);
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_file_operator.h58 int32_t CmUserBakupMakeDir(const char *path, const mode_t *mode);
/base/startup/init/test/unittest/ueventd/
Dueventd_config_unittest.cpp48 mode_t mode = 0;
/base/update/sys_installer/services/module_update/util/include/
Dmodule_utils.h27 bool CreateDirIfNeeded(const std::string &path, mode_t mode);
/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);
Dpartition_update_record_unittest.cpp58 mode_t dirMode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
Dimagepatch_unittest.h75 mode_t mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in RunImageApplyPatch()
Dcommandsfunction_unittest.cpp68 mode_t dirMode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dfd_output.cpp22 const mode_t FDOutput::OPEN_ARGV = 0664;
/base/inputmethod/imf/services/include/
Dime_cfg_manager.h58 static int32_t Create(std::string &path, mode_t pathMode);
/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/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Ddmesg_catcher.cpp36 constexpr mode_t DEFAULT_LOG_FILE_MODE = 0644;
/base/startup/init/ueventd/
Dueventd_device_handler.c41 static inline void AdjustDeviceNodePermissions(const char *deviceNode, uid_t uid, gid_t gid, mode_t in AdjustDeviceNodePermissions()
63 mode_t mode = DEVMODE; in CreateSymbolLinks()
155 mode_t mode = DEVMODE; in CreateDeviceNode()

123