Home
last modified time | relevance | path

Searched refs:S_IRUSR (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/ohos5.0/foundation/multimedia/av_codec/test/unittest/avmuxer_test/
H A Davmuxer_unit_test.cpp165 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
179 fd_ = open(outputFile.c_str(), O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
193 fd_ = open(outputFile.c_str(), O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR);
233 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
274 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR);
316 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR);
359 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR);
406 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR);
449 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR);
472 fd_ = open(outputFile.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR);
[all …]
/ohos5.0/base/hiviewdfx/hiview/base/utility/include/
H A Dfile_util.h29 #define S_IRUSR 00400 macro
52 constexpr mode_t DEFAULT_FILE_MODE = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH; // -rw-rw-r--
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;
59 constexpr mode_t FILE_PERM_666 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
/ohos5.0/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs_impl.c141 ret = mkdir(fullPath, S_IRUSR | S_IWUSR | S_IXUSR); in MakeParent()
228 int fdSrc = open(realSrc, O_RDONLY, S_IRUSR); in CopyFileImpl()
244 int fdDest = open(realDest, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in CopyFileImpl()
275 fileHandle = open(resolvePath, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); in WriteTextFile()
277 fileHandle = open(resolvePath, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in WriteTextFile()
303 fileHandle = open(resolvePath, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); in WriteArrayFile()
310 fileHandle = open(resolvePath, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in WriteArrayFile()
339 int fileHandle = open(resolvePath, O_RDONLY, S_IRUSR); in ReadFileImpl()
463 int ret = mkdir(fileName, S_IRUSR | S_IWUSR | S_IXUSR); in CreateDirImpl()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/muxer/Common/src/
H A DAVMuxerDemo.cpp43 int32_t fd = open(filename.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in GetFdByMode()
54 int32_t fd = open(filename.c_str(), O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR); in GetErrorFd()
75 int32_t fd = open(filename.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in GetFdByName()
92 int32_t fd = open(filename.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in InnerGetFdByMode()
109 int32_t fd = open(filename.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in InnerGetFdByName()
/ohos5.0/foundation/resourceschedule/memmgr/common/include/
H A Dkernel_interface.h94 …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;
/ohos5.0/base/startup/init/services/init/standard/
H A Ddevice.c27 #define DEFAULT_RW_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
28 #define DEFAULT_NO_AUTHORITY_MODE (S_IWUSR | S_IRUSR)
102 …int fd = open("/proc/sys/kernel/printk_devkmsg", O_WRONLY | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP… in EnableDevKmsg()
/ohos5.0/base/global/timezone/tool/update_tool/
H A Ddownload_iana.py31 modes = stat.S_IWUSR | stat.S_IRUSR
52 modes = stat.S_IWUSR | stat.S_IRUSR
113 modes = stat.S_IWUSR | stat.S_IRUSR
/ohos5.0/commonlibrary/utils_lite/js/builtin/kvstorekit/src/
H A Dnativeapi_kv_impl.c93 if (mkdir(g_kvFolder, S_IRUSR | S_IWUSR | S_IXUSR) != 0) { in InitKv()
113 int fileHandle = open(resolvePath, O_RDONLY, S_IRUSR); in GetValue()
142 int fd = open(resolvePath, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in SetValue()
/ohos5.0/foundation/multimodalinput/input/util/common/src/
H A Dklog.cpp51 int fd = open("/dev/kmsg", O_WRONLY | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IRGRP); in KLogOpenLogDevice()
53 int fd = open("/dev/kmsg", O_WRONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IRGRP); in KLogOpenLogDevice()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imagesource_fuzzer/src/
H A Dimage_source_fuzz.cpp100 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in CreateImageSourceByFDEXFuzz()
114 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in CreateImageSourceByIstreamFuzz()
133 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in CreateImageSourceByPathNameFuzz()
151 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in CreateIncrementalPixelMapFuzz()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/tools/snapshot/
H A Dframework2char.py69 input_modes = stat.S_IWUSR | stat.S_IRUSR
73 modes = stat.S_IWUSR | stat.S_IRUSR
109 modes = stat.S_IWUSR | stat.S_IRUSR
/ohos5.0/build/ohos/images/mkimage/
H A Dimkcovert.py34 modes = stat.S_IWUSR | stat.S_IRUSR
89 modes = stat.S_IWUSR | stat.S_IRUSR
154 modes = stat.S_IWUSR | stat.S_IRUSR
169 modes = stat.S_IWUSR | stat.S_IRUSR
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_api/backup_impl/
H A Dservice_proxy_test.cpp231 UniqueFd fd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
237 …r(open(tmErr.GetRootDirCurTest().append(FILE_NAME).data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
356 UniqueFd fd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
387 UniqueFd fd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
694 UniqueFd fd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
699 …r(open(tmErr.GetRootDirCurTest().append(FILE_NAME).data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
729 UniqueFd fd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
730 UniqueFd manifestFd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
738 … open(tmErr.GetRootDirCurTest().append(FILE_NAME).data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
768 UniqueFd fd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/tools/profiler/
H A Djs_profiler.py50 modes = stat.S_IWUSR | stat.S_IRUSR
70 modes = stat.S_IWUSR | stat.S_IRUSR
/ohos5.0/base/startup/init/simulator/parameter/src/param_impl_posix/
H A Dparam_impl_posix.c89 int fd = open(keyPath, O_RDONLY, S_IRUSR); in GetSysParam()
119 int fd = open(keyPath, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in SetSysParam()
/ohos5.0/base/powermgr/thermal_manager/utils/native/src/
H A Dfile_operation.cpp51 int32_t fd = open(filePath.c_str(), O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP| S_IROTH); in CreateNodeFile()
90 int32_t fd = open(path, O_RDONLY, S_IRUSR | S_IRGRP | S_IROTH); in ReadFile()
/ohos5.0/build/lite/testfwk/
H A Dgen_module_list_files.py52 os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR),
73 os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR),
/ohos5.0/build/indep_configs/scripts/
H A Dvariants_info_handler.py53 modes = stat.S_IWUSR | stat.S_IRUSR
68 modes = stat.S_IWUSR | stat.S_IRUSR
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_tarball/
H A Db_tarball_cmdline_test.cpp119 UniqueFd fd(open(strFile.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
166 UniqueFd fd(open(strFile.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
213 UniqueFd fd(open(strFile.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR));
/ohos5.0/drivers/peripheral/partitionslot/hal/src/
H A Dpartitionslot_manager.cpp93 int fd = open(MISC_DEVICE_NODE, O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in ReadMisc()
119 int fd = open(MISC_DEVICE_NODE, O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in WriteSlotToMisc()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_packer_test.cpp176 const int fd2 = open("/data/local/tmp/image/test.jpg", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
484 const int fd = open(IMAGE_JPG_DEST.c_str(), O_RDWR, S_IRUSR | S_IWUSR);
499 const int fdDest = open(IMAGE_JPG_DEST.c_str(), O_RDWR, S_IRUSR | S_IWUSR);
636 const int fd = open(IMAGE_PNG2JPG_DEST.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
647 const int fdDest = open(IMAGE_PNG2JPG_DEST.c_str(), O_RDWR, S_IRUSR | S_IWUSR);
681 const int fd = open(outJpeg.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
718 const int fd = open(outJpeg.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
755 const int fd = open(outJpeg.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
792 const int fd = open(outJpeg.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/
H A Dkv_store.c83 int fd = open(keyPath, O_RDONLY, S_IRUSR); in GetValueByFile()
109 int fd = open(keyPath, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in SetValueToFile()
153 if (mkdir(kvPath, S_IRUSR | S_IWUSR | S_IXUSR) != F_OK) { in InitKv()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_receiver_test.cpp58 int fd = open("/data/receiver/Receiver_buffer7.jpg", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
82 int fd = open("/data/receiver/Receiver_buffer7.jpg", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
127 int fd = open("/data/receiver/Receiver_buffer7.jpg", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
362 int fd = open("/data/receiver/Receiver_buffer7.jpg", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
438 int fd = open("/data/receiver/Receiver_buffer7.jpg", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
/ohos5.0/build/ohos/notice/
H A Dcollect_module_notice_file.py150 with os.fdopen(os.open(notice_file, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR),
153 with os.fdopen(os.open(output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR),
157 with os.fdopen(os.open(output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR),
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_api/backup_impl/include/
H A Dext_extension_mock.h49 UniqueFd fd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR)); in InvokeGetFileHandleRequest()
70 UniqueFd fd(open(filePath.data(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR)); in GetFileHandle()

12345678910>>...12