/base/hiviewdfx/hiview/base/utility/include/ |
D | file_util.h | 20 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 …]
|
D | common_utils.h | 27 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/ |
D | ueventd_read_cfg.h | 29 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/ |
D | file_util.cpp | 162 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/ |
D | init_utils.h | 77 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/ |
D | zip_helper.h | 39 constexpr mode_t DEFAULT_LOG_FILE_MODE = 0666; 40 constexpr mode_t DEFAULT_LOG_DIR_MODE = 0775;
|
/base/startup/init/test/unittest/init/ |
D | utils_unittest.cpp | 43 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/ |
D | init_service_file.h | 39 mode_t perm; // Setting permissions
|
D | init_service_socket.h | 65 mode_t perm; // Setting permissions
|
/base/hiviewdfx/hidumper/frameworks/native/include/executor/ |
D | fd_output.h | 56 static const mode_t OPEN_ARGV;
|
/base/hiviewdfx/hiview/base/logstore/ |
D | log_store_ex.cpp | 35 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/ |
D | cert_manager_storage.c | 208 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/ |
D | utils.h | 51 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/ |
D | cert_manager_file_operator.h | 58 int32_t CmUserBakupMakeDir(const char *path, const mode_t *mode);
|
/base/startup/init/test/unittest/ueventd/ |
D | ueventd_config_unittest.cpp | 48 mode_t mode = 0;
|
/base/update/sys_installer/services/module_update/util/include/ |
D | module_utils.h | 27 bool CreateDirIfNeeded(const std::string &path, mode_t mode);
|
/base/update/updater/test/unittest/applypatch_test/ |
D | all_cmd_unittest.cpp | 173 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);
|
D | partition_update_record_unittest.cpp | 58 mode_t dirMode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
|
D | imagepatch_unittest.h | 75 mode_t mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in RunImageApplyPatch()
|
D | commandsfunction_unittest.cpp | 68 mode_t dirMode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | fd_output.cpp | 22 const mode_t FDOutput::OPEN_ARGV = 0664;
|
/base/inputmethod/imf/services/include/ |
D | ime_cfg_manager.h | 58 static int32_t Create(std::string &path, mode_t pathMode);
|
/base/update/updater/test/unittest/updater_test/ |
D | updater_unittest.cpp | 48 mode_t mode = (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); in SetUp()
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
D | dmesg_catcher.cpp | 36 constexpr mode_t DEFAULT_LOG_FILE_MODE = 0644;
|
/base/startup/init/ueventd/ |
D | ueventd_device_handler.c | 41 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()
|