Home
last modified time | relevance | path

Searched refs:lseek (Results 1 – 25 of 39) sorted by relevance

12

/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/test/unittest/src/
Ddlp_fuse_test.cpp225 ASSERT_NE(lseek(linkfd1, 0, SEEK_SET), -1); in CheckLinkFd()
230 ASSERT_NE(lseek(linkfd1, 0x1000, SEEK_SET), -1); in CheckLinkFd()
236 ASSERT_NE(lseek(linkfd1, 0x100000, SEEK_SET), -1); in CheckLinkFd()
241 ASSERT_NE(lseek(linkfd1, 0x100010, SEEK_SET), -1); in CheckLinkFd()
246 ASSERT_NE(lseek(linkfd1, 0x100022, SEEK_SET), -1); in CheckLinkFd()
251 ASSERT_NE(lseek(linkfd1, 0x10002f, SEEK_SET), -1); in CheckLinkFd()
256 ASSERT_NE(lseek(linkfd1, 0x10003f, SEEK_SET), -1); in CheckLinkFd()
266 ASSERT_NE(lseek(g_recoveryFileFd, 0, SEEK_SET), -1); in CheckRecoverFd()
272 ASSERT_NE(lseek(g_recoveryFileFd, 0x1000, SEEK_SET), -1); in CheckRecoverFd()
279 ASSERT_NE(lseek(g_recoveryFileFd, 0x100000, SEEK_SET), -1); in CheckRecoverFd()
[all …]
Ddlp_file_test.cpp157 ASSERT_NE(lseek(g_recoveryFileFd, 0, SEEK_SET), -1);
216 lseek(g_recoveryFileFd, 0, SEEK_SET);
269 lseek(g_recoveryFileFd, 0, SEEK_SET);
/base/update/updater/services/applypatch/
Dpartition_record.cpp46 if (lseek(fd, PARTITION_RECORD_START, SEEK_CUR) < 0) { in IsPartitionUpdated()
75 if (lseek(fd, PARTITION_RECORD_OFFSET, SEEK_SET) < 0) { in RecordPartitionSetOffset()
84 if (lseek(fd, PARTITION_RECORD_START + offset_, SEEK_SET) < 0) { in RecordPartitionSetOffset()
104 if (lseek(fd, PARTITION_RECORD_OFFSET, SEEK_SET) < 0) { in RecordPartitionSetInfo()
161 if (lseek(fd, PARTITION_RECORD_OFFSET, SEEK_SET) < 0) { in ClearRecordPartitionOffset()
Dblock_writer.cpp64 if (lseek(fd_, offset, SEEK_SET) < 0) { in Write()
Ddata_writer.cpp51 if (lseek(fd, 0, SEEK_SET) == -1) { in OpenPath()
Dtransfer_manager.cpp141 (void)lseek(fd, 0, SEEK_SET); in ReloadForRetry()
/base/startup/init/services/begetctl/
Dmisc_daemon.cpp47 if (lseek(fd, addrOffset * BLOCK_SZIE_1, SEEK_SET) < 0) { in ClearLogo()
92 if (lseek(fd, addrOffset * BLOCK_SZIE_1, SEEK_SET) < 0) { in WriteLogo()
110 lseek(fd, addrOffset * BLOCK_SZIE_1, SEEK_SET); in WriteLogo()
164 if (lseek(fd1, addrOffset * BLOCK_SZIE_1, SEEK_SET) < 0) { in WriteLogoToMisc()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_file.c60 file->len = lseek(*handle, 0, SEEK_END); in InitVerify()
78 lseek(file->fp, offset, SEEK_SET); in HapMMap()
Dapp_verify_hap.c213 lseek(fp, 0, SEEK_SET); in ComputerFileHash()
258 lseek(fp, signInfo->hapCoreDirOffset, SEEK_SET); in ComputerCoreDirHash()
280 lseek(fp, signInfo->hapEocdOffset, SEEK_SET); in ComputerEocdHash()
Dapp_centraldirectory.c176 lseek(file->fp, offset, SEEK_SET); in ReadFileFullyFromOffset()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
Ddlp_file_kits.cpp108 off_t curPos = lseek(dlpFd, 0, SEEK_CUR); in IsDlpFile()
114 if (lseek(dlpFd, 0, SEEK_SET) == static_cast<off_t>(-1)) { in IsDlpFile()
124 if (lseek(dlpFd, curPos, SEEK_SET) < 0) { in IsDlpFile()
Ddlp_file.cpp392 if (lseek(dlpFd_, 0, SEEK_SET) == static_cast<off_t>(-1)) { in CheckDlpFile()
714 (void)lseek(dlpFd_, oldTxtOffset, SEEK_SET); in UpdateFile()
719 int32_t fileSize = lseek(tmpFile, 0, SEEK_CUR); in UpdateFile()
720 (void)lseek(tmpFile, 0, SEEK_SET); in UpdateFile()
721 (void)lseek(dlpFd_, 0, SEEK_SET); in UpdateFile()
982 int32_t fileLen = lseek(fd, 0, SEEK_END); in GetFileSize()
983 (void)lseek(fd, 0, SEEK_SET); in GetFileSize()
1019 lseek(encFile, 0, SEEK_SET); in GenerateHmacVal()
1148 off_t fileLen = lseek(inPlainFileFd, 0, SEEK_END); in GenFileInRaw()
1162 if (lseek(inPlainFileFd, 0, SEEK_SET) == static_cast<off_t>(-1)) { in GenFileInRaw()
[all …]
/base/update/updater/services/diffpatch/
Ddiffpatch.cpp65 st.st_size = lseek(info.fd, 0, SEEK_END); in PatchMapFile()
66 lseek(info.fd, 0, SEEK_SET); in PatchMapFile()
/base/hiviewdfx/hiview_lite/
Dhiview_util.c46 static off_t (*hiview_lseek)(int, off_t, int) = lseek;
142 hiview_lseek = lseek; in HIVIEW_InitHook()
152 hiview_lseek = (hooks->lseek_fn) == NULL ? lseek : hooks->lseek_fn; in HIVIEW_InitHook()
/base/startup/hvb/test/
Dhvb_main.c61 where = lseek(fd, offset, SEEK_SET); in hvb_read_partition()
111 where = lseek(fd, offset, SEEK_SET); in hvb_write_partition()
/base/update/updater/interfaces/kits/misc_info/
Dmisc_info.cpp131 if (lseek(fileno(fp), MISC_UPDATER_PARA_OFFSET, SEEK_SET) == -1) { in WriteUpdaterParaMisc()
173 if (lseek(fileno(fp), MISC_UPDATER_PARA_OFFSET, SEEK_SET) == -1) { in ReadUpdaterParaMisc()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/
Dhc_file_posix.c117 int size = lseek(fp, 0, SEEK_END); in HcFileSize()
118 (void)lseek(fp, 0, SEEK_SET); in HcFileSize()
/base/security/dlp_permission_service/frameworks/test/mock/
Dfile_io_mock.cpp31 off_t lseek(int fd, off_t offset, int whence) in lseek() function
/base/startup/init/services/param/liteos/
Dparam_hal.c93 *fileSize = lseek(fd, 0, SEEK_END); in ParamFileStat()
94 lseek(fd, 0, SEEK_SET); in ParamFileStat()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_file_manager_test.cpp245 lseek(g_fdDlp, 0, SEEK_SET);
285 lseek(g_fdDlp, sizeof(struct DlpHeader) + 256, SEEK_SET);
289 lseek(g_fdDlp, 0, SEEK_SET);
328 lseek(g_fdDlp, sizeof(struct DlpHeader) + 256, SEEK_SET);
332 lseek(g_fdDlp, 0, SEEK_SET);
Ddlp_file_test.cpp1188 lseek(fd, 0, SEEK_SET);
1211 lseek(fd, 0, SEEK_SET);
1407 lseek(fdDlp, 0, SEEK_SET);
1453 lseek(fdDlp, 0, SEEK_SET);
1460 lseek(fdDlp, 0, SEEK_SET);
1467 lseek(fdDlp, 0, SEEK_SET);
1474 lseek(fdDlp, 0, SEEK_SET);
1510 lseek(fdDlp, 0, SEEK_SET);
1516 lseek(fdDlp, 0, SEEK_SET);
1522 lseek(fdDlp, 0, SEEK_SET);
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal_utils.c301 int seekRet = lseek(file, INDEX_DEFAULT_OFFSET, SEEK_CUR); // skip the "KEYS" header in GetKeyParams()
366 …int seekRet = lseek(file, RES_CONFIG_NUM_OFFSET, SEEK_SET); // goto resConfigNum index, now is fix… in GetOffsetByLocale()
432 int seekRet = lseek(file, offset, SEEK_SET); in GetIdItem()
502 (void)lseek(file, (int32_t)offset + INDEX_DEFAULT_OFFSET, SEEK_SET); // skip the "IDSS" header in GetIdHeaderByOffset()
/base/global/i18n_lite/frameworks/i18n/src/
Ddata_resource.cpp168 int32_t seekSize = lseek(infile, GLOBAL_RESOURCE_HEADER_SKIP, SEEK_SET); in ReadHeader()
272 int32_t seekSize = lseek(infile, configOffset, SEEK_SET); in PrepareLocaleData()
400 int32_t seekSize = lseek(infile, stringPoolOffset + offset, SEEK_SET); in Retrieve()
/base/security/appverify/interfaces/innerkits/appverify/src/common/
Drandom_access_file.cpp58 fileLength = lseek(fd, 0, SEEK_END); in Init()
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlog_formatter.cpp345 off_t endPos = lseek(fd, 0, SEEK_END); in LimitCppCrashLog()
353 endPos = lseek(fd, maxLogSize, SEEK_SET); in LimitCppCrashLog()

12