/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/test/unittest/src/ |
H A D | dlp_file_test.cpp | 63 int32_t ret = mkdir(DLP_TEST_DIR.c_str(), S_IRWXU | S_IRWXG | S_IRWXO); in SetUpTestCase() 138 …plainFileFd = open("/data/file_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 139 …pFileFd = open("/data/file_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 153 …Fd = open("/data/fuse_test.txt.recovery", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 178 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 179 …pFileFd = open("/data/fuse_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 215 …Fd = open("/data/fuse_test.txt.recovery", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 236 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 237 …pFileFd = open("/data/fuse_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 268 …Fd = open("/data/fuse_test.txt.recovery", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO);
|
H A D | dlp_fuse_test.cpp | 86 int32_t ret = mkdir(DLP_TEST_DIR.c_str(), S_IRWXU | S_IRWXG | S_IRWXO); in SetUpTestCase() 183 int32_t ret = mkdir(MOUNT_POINT_DIR.c_str(), S_IRWXU | S_IRWXG | S_IRWXO); in PrepareDlpFuseFsMount() 318 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 319 …pFileFd = open("/data/fuse_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 376 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 435 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 492 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 534 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 577 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); 627 …plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | store_util_test.cpp | 151 ASSERT_FALSE(buf.st_mode & S_IRWXO); 158 ASSERT_FALSE(buf.st_mode & S_IRWXO); 177 ASSERT_TRUE(buf.st_mode & S_IRWXO); 184 ASSERT_FALSE(buf.st_mode & S_IRWXO); 187 int fp = open(fileName.c_str(), (O_WRONLY | O_CREAT), (S_IRWXU | S_IRWXG | S_IRWXO)); 192 ASSERT_TRUE(buf.st_mode & S_IRWXO); 198 ASSERT_FALSE(buf.st_mode & S_IRWXO);
|
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/utils/system/ |
H A D | utils_directory_test.cpp | 93 mode_t mode = (S_IRWXU | S_IRWXG | S_IRWXO); // 00777 113 mode_t mode = (S_IRWXU | S_IRWXG | S_IRWXO);
|
/ohos5.0/base/security/dlp_permission_service/test/fuzztest/dlp_permission/fuzzer/dlpfile_fuzzer/ |
H A D | dlpfile_fuzzer.cpp | 120 …plainFileFd = open("/data/file_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in FuzzTest() 121 …pFileFd = open("/data/file_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in FuzzTest() 135 O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in FuzzTest()
|
/ohos5.0/base/update/updater/test/unittest/applypatch_test/ |
H A D | blockset_unittest.cpp | 118 … = open("/data/updater/updater/blocksetTest.txt", O_CREAT | O_WRONLY, S_IRWXU | S_IRWXG | S_IRWXO); 146 … = open("/data/updater/updater/blocksetTest.txt", O_CREAT | O_WRONLY, S_IRWXU | S_IRWXG | S_IRWXO);
|
/ohos5.0/foundation/distributeddatamgr/preferences/test/native/unittest/ |
H A D | preferences_file_test.cpp | 96 ret = (st.st_mode & (S_IXUSR | S_IXGRP | S_IRWXO)); 126 result = st.st_mode & (S_IXUSR | S_IXGRP | S_IRWXO);
|
/ohos5.0/commonlibrary/c_utils/base/src/rust/ |
H A D | directory_ex.rs | 26 pub const S_IRWXO: u32 = 0o007; const
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_directory_test.rs | 180 let mut mode = directory_ex::S_IRWXU | directory_ex::S_IRWXG | directory_ex::S_IRWXO; in test_get_folder_size_001() 197 let mode = directory_ex::S_IRWXU | directory_ex::S_IRWXG | directory_ex::S_IRWXO; in test_change_mode_file_001()
|
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/directory_fuzzer/ |
H A D | directory_fuzzer.cpp | 64 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO; in DirectoryTestFunc()
|
/ohos5.0/base/startup/init/test/unittest/param/ |
H A D | param_stub.cpp | 247 mkdir("/data/ueventd_ut", S_IRWXU | S_IRWXG | S_IRWXO); in PrepareUeventdcfg() 277 mkdir("/data/init_ut/mount_unitest/", S_IRWXU | S_IRWXG | S_IRWXO); in PrepareInnerKitsCfg() 576 mkdir(STARTUP_INIT_UT_PATH, S_IRWXU | S_IRWXG | S_IRWXO); in ParamTestStubInit()
|
/ohos5.0/foundation/ability/idl_tool/codegen/ |
H A D | code_generator.cpp | 76 if (mkdir(targetDirectory_.string(), S_IRWXU | S_IRWXG | S_IRWXO) != 0) { in ResolveDirectory()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | store_util.cpp | 289 if ((buf.st_mode & S_IRWXO) == 0) { in RemoveRWXForOthers() 308 if (chmod(path.c_str(), (buf.st_mode & ~S_IRWXO)) < 0) { in RemoveRWXForOthers()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | platform_specific.cpp | 309 if (permissions > (S_IRWXU | S_IRWXG | S_IRWXO)) { in SetFilePermissions() 597 permissions = fileStat.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); 603 if (permissions > (S_IRWXU | S_IRWXG | S_IRWXO)) {
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
H A D | file_utils.cpp | 44 if (mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IRWXO)) { in CreateFolder()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | device_matrix_test.cpp | 92 mkdir("/data/service/el1/public/database/matrix_test", (S_IRWXU | S_IRWXG | S_IRWXO)); in SetUpTestCase() 93 mkdir("/data/service/el1/public/database/matrix_test/kvdb", (S_IRWXU | S_IRWXG | S_IRWXO)); in SetUpTestCase()
|
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_file_desc_unittest.cpp | 57 …stFdNum = open("/data/fd_unit_test.txt", O_RDWR | O_APPEND | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO);
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/directory_benchmark_test/ |
H A D | directory_benchmark_test.cpp | 370 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO; in BENCHMARK_F() 393 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO; in BENCHMARK_F()
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_directory_test.cpp | 467 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO; 486 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
|
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_event_source_example/ |
H A D | bundle_event_source_example.cpp | 52 …isCreate = ::mkdir(SYSTEM_FAULT_LOG_PATH.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRWXG | S_IRWXO); in OnLoad()
|
/ohos5.0/base/startup/appspawn/modules/sandbox/ |
H A D | appspawn_mount_template.c | 82 {"S_IRWXU", S_IRWXU}, {"S_IRWXG", S_IRWXG}, {"S_IRWXO", S_IRWXO}
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_persister_rotator.cpp | 83 mkdir(parentDirPath.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRWXG | S_IRWXO); in OpenInfoFile()
|
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/event_source_example/ |
H A D | event_source_example.cpp | 50 …isCreate = ::mkdir(SYSTEM_FAULT_LOG_PATH.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRWXG | S_IRWXO); in OnLoad()
|
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/ |
H A D | dlp_zip_test.cpp | 75 int32_t ret = mkdir(DLP_TEST_DIR.c_str(), S_IRWXU | S_IRWXG | S_IRWXO); in SetUpTestCase()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/databaseutils/src/ |
H A D | acl.cpp | 175 (st.st_mode & S_IRWXO))); in AclFromMode()
|