/ohos5.0/base/hiviewdfx/hiview/base/utility/include/ |
H A D | file_util.h | 20 using mode_t = unsigned short; variable 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_600 = S_IRUSR | S_IWUSR; 57 constexpr mode_t FILE_PERM_640 = S_IRUSR | S_IWUSR | S_IRGRP; 58 constexpr mode_t FILE_PERM_660 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP; 83 bool ForceCreateDirectory(const std::string& path, mode_t mode); 89 bool ChangeMode(const std::string& fileName, const mode_t& mode); 90 bool ChangeModeFile(const std::string& fileName, const mode_t& mode); 91 bool ChangeModeDirectory(const std::string& path, const mode_t& mode); [all …]
|
H A 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;
|
/ohos5.0/foundation/resourceschedule/memmgr/common/include/ |
H A D | kernel_interface.h | 51 bool CreateFile(const std::string& path, const mode_t& mode); 94 …static constexpr mode_t FILE_MODE_666 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;… 95 …static constexpr mode_t FILE_MODE_664 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH; // -rw-rw… 96 static constexpr mode_t FILE_MODE_644 = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; // -rw-r--r-- 97 static constexpr mode_t FILE_MODE_660 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP; 98 static constexpr mode_t FILE_MODE_755 = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; 99 static constexpr mode_t FILE_MODE_775 = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH; 100 static constexpr mode_t FILE_MODE_770 = S_IRWXU | S_IRWXG; 101 static constexpr mode_t FILE_MODE_700 = S_IRWXU;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/ |
H A D | file_utils_test.cpp | 41 int32_t ChMod(const std::string &path, mode_t mode); 43 int32_t MkDir(const std::string &path, mode_t mode); 56 mode_t mode = 002; in SetUp() 84 mode_t mode = 0660; 113 mode_t mode = 0660; 152 mode_t mode = 0771; 175 mode_t mode = 0771; 197 mode_t mode = 0771; 220 mode_t mode = 0664; 249 mode_t mode = 0771;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/file_sharing/ |
H A D | file_sharing.h | 39 constexpr mode_t STORAGE_DAEMON_DIR_MODE = 0711; 40 constexpr mode_t FILE_SHARING_DIR_MODE = 0750; 41 constexpr mode_t PUBLIC_DIR_MODE = 02770; 42 constexpr mode_t SHARE_TOB_DIR_MODE = 0770;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/utils/ |
H A D | file_utils.h | 38 int32_t ChMod(const std::string &path, mode_t mode); 39 int32_t MkDir(const std::string &path, mode_t mode); 42 bool PrepareDir(const std::string &path, mode_t mode, uid_t uid, gid_t gid); 44 bool MkDirRecurse(const std::string& path, mode_t mode); 46 void TravelChmod(const std::string &path, mode_t mode);
|
/ohos5.0/base/startup/init/ueventd/include/ |
H A 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);
|
/ohos5.0/base/startup/init/test/fuzztest/getdevicenodepermissions_fuzzer/ |
H A D | getdevicenodepermissions_fuzzer.cpp | 23 … if ((data == nullptr) || (size < sizeof(char) + sizeof(uid_t) + sizeof(gid_t) + sizeof(mode_t))) { in FuzzGetDeviceNodePermissions() 34 mode_t *mode = reinterpret_cast<mode_t*>(const_cast<uint8_t *>(data + offset)); in FuzzGetDeviceNodePermissions()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | key_backup.h | 33 mode_t mode; 61 int32_t MkdirParent(const std::string &pathName, mode_t mode); 62 int32_t MkdirParentWithRetry(const std::string &pathName, mode_t mode); 94 constexpr static mode_t DEFAULT_DIR_PERM = 0700; 95 constexpr static mode_t DEFAULT_WRITE_FILE_PERM = 0644;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/common/ |
H A D | help_utils.h | 27 mode_t mode; 37 constexpr mode_t MODE = 0711; 51 static bool MkDir(const std::string &path, mode_t mode);
|
/ohos5.0/base/hiviewdfx/hiview/base/utility/ |
H A D | file_util.cpp | 165 bool ForceCreateDirectory(const string& path, mode_t mode) in ForceCreateDirectory() 202 bool ChangeMode(const string& fileName, const mode_t& mode) in ChangeMode() 207 bool ChangeModeFile(const string& fileName, const mode_t& mode) in ChangeModeFile() 216 bool ChangeModeDirectory(const std::string& path, const mode_t& mode) in ChangeModeDirectory() 226 mode_t Umask(const mode_t& mode) in Umask() 231 int Open(const std::string& path, const int flags, const mode_t mode) in Open() 270 int CreateFile(const std::string &path, mode_t mode) in CreateFile()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/file_sharing/test/ |
H A D | setacl_test.cpp | 78 mode_t mode = S_IRWXU | S_IRWXG | S_IXOTH; // 0771 99 mode_t mode = S_IRWXU | S_IRWXG | S_IXOTH; // 0771 161 mode_t mode = S_IRWXU | S_IRWXG | S_IXOTH; // 0771 199 mode_t mode = S_IRWXU | S_IRWXG | S_IXOTH; // 0771 220 mode_t mode = S_IRWXU | S_IRWXG | S_IXOTH; // 0771 282 mode_t mode = S_IRWXU | S_IRWXG | S_IXOTH; // 0771
|
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/include/cloud_disk/ |
H A D | fuse_operations.h | 31 static void MkDir(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode); 36 mode_t mode, dev_t rdev); 38 mode_t mode, struct fuse_file_info *fi);
|
H A D | file_operations_cloud.h | 29 void MkDir(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode) override; 34 mode_t mode, dev_t rdev) override; 36 mode_t mode, struct fuse_file_info *fi) override;
|
H A D | file_operations_base.h | 36 virtual void MkDir(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode); 41 mode_t mode, dev_t rdev); 43 mode_t mode, struct fuse_file_info *fi);
|
/ohos5.0/base/startup/init/interfaces/innerkits/include/ |
H A 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);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/distributeddb/distributeddataservice/adapter/autils/ |
H A D | constant.cpp | 61 const mode_t Constant::DEFAULT_MODE = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; 64 const mode_t Constant::DEFAULT_MODE_DIR = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; 67 const mode_t Constant::DEFAULT_MODE_FILE = S_IRUSR | S_IWUSR;
|
H A D | constant.h | 129 KVSTORE_API static const mode_t DEFAULT_MODE; 131 KVSTORE_API static const mode_t DEFAULT_MODE_DIR; 133 KVSTORE_API static const mode_t DEFAULT_MODE_FILE;
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | rdb_platform.h | 29 static constexpr mode_t DIR_RIGHT = 0771; 39 static UNUSED_FUNCTION int MkDir(const std::string &filePath, mode_t dirRight = DIR_RIGHT)
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/ |
H A D | zip_helper.h | 31 constexpr mode_t DEFAULT_LOG_FILE_MODE = 0644; 32 constexpr mode_t DEFAULT_LOG_DIR_MODE = 0775;
|
/ohos5.0/base/inputmethod/imf/services/file/include/ |
H A D | file_operator.h | 29 static bool Create(const std::string &path, mode_t mode); 34 …const std::string &path, const std::string &content, int32_t flags, mode_t mode = S_IRUSR | S_IWUS…
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/library_func_mock/ |
H A D | library_func_mock.h | 35 virtual int mkdir(const char *pathname, mode_t mode) = 0; 45 MOCK_METHOD2(mkdir, int(const char *pathname, mode_t mode));
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | directory_ex.h | 128 bool ChangeModeFile(const std::string& fileName, const mode_t& mode); 137 bool ChangeModeDirectory(const std::string& path, const mode_t& mode);
|
/ohos5.0/foundation/multimedia/image_framework/mock/native/include/ |
H A D | directory_ex.h | 104 bool ChangeModeFile(const std::string& fileName, const mode_t& mode); 110 bool ChangeModeDirectory(const std::string& path, const mode_t& mode);
|
/ohos5.0/base/startup/appspawn/modules/sandbox/ |
H A D | appspawn_sandbox.h | 115 mode_t destMode; // "dest-mode": "S_IRUSR | S_IWOTH | S_IRWXU " 默认值:0 128 mode_t destMode; // "dest-mode": "S_IRUSR | S_IWOTH | S_IRWXU " 334 mode_t mountSharedFlag; 355 mode_t mountSharedFlag;
|