/base/hiviewdfx/hiview/adapter/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; 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 …]
|
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_lite/ueventd/include/ |
D | ueventd_read_cfg.h | 29 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/ |
D | file_util.cpp | 47 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/ |
D | file_util.cpp | 50 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/ |
D | file_util.cpp | 103 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/ |
D | init_utils.h | 50 int MakeDirRecursive(const char *dir, mode_t mode); 51 int MakeDir(const char *dir, mode_t mode);
|
/base/hiviewdfx/faultloggerd/utils/ |
D | directory_ex.h | 99 bool ChangeModeFile(const std::string& fileName, const mode_t& mode); 105 bool ChangeModeDirectory(const std::string& path, const mode_t& mode);
|
D | directory_ex.cpp | 205 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/ |
D | init_service_file.h | 39 mode_t perm; // Setting permissions
|
D | init_service_socket.h | 65 mode_t perm; // Setting permissions
|
/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/ |
D | event_logger_action_test.cpp | 67 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/ |
D | log_store_ex.cpp | 35 constexpr mode_t DEFAULT_LOG_FILE_MODE = 0664; 36 constexpr mode_t DEFAULT_LOG_DIR_MODE = 0770;
|
/base/hiviewdfx/hidumper/frameworks/native/include/executor/ |
D | fd_output.h | 50 static const mode_t OPEN_ARGV;
|
/base/startup/appspawn_standard/src/include/ |
D | server_socket.h | 102 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/ |
D | event_logger_catcher_test.cpp | 67 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/ |
D | utils_unittest.cpp | 38 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IXOTH | S_IROTH;
|
/base/startup/init_lite/test/unittest/ueventd/ |
D | ueventd_config_unittest.cpp | 108 mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP; // 0640 in GenerateConfigFiles() 165 mode_t mode = 0;
|
/base/hiviewdfx/hiview/adapter/utility/ |
D | file_util.cpp | 254 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/ |
D | utils.h | 46 int MkdirRecursive(const std::string &pathName, mode_t mode);
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | fd_output.cpp | 22 const mode_t FDOutput::OPEN_ARGV = 0664;
|
/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 | imagepatch_unittest.h | 76 mode_t mode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in RunImageApplyPatch()
|
/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/account/os_account/services/accountmgr/src/ |
D | account_file_operator.cpp | 40 mode_t mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IXOTH; in CreateDir()
|