Home
last modified time | relevance | path

Searched refs:lseek64 (Results 1 – 25 of 30) sorted by relevance

12

/system/core/libsparse/
Dappend2simg.cpp36 #define lseek64 lseek macro
39 #define lseek64 lseek macro
94 input_len = lseek64(input, 0, SEEK_END); in main()
102 lseek64(input, 0, SEEK_SET); in main()
117 lseek64(output, 0, SEEK_SET); in main()
Dimg2simg.cpp36 #define lseek64 lseek macro
86 len = lseek64(in, 0, SEEK_END); in main()
87 lseek64(in, 0, SEEK_SET); in main()
Dsparse_read.cpp41 #define lseek64 lseek macro
91 void Seek(int64_t off) override { lseek64(fd, off, SEEK_CUR); } in Seek()
93 int64_t GetOffset() override { return lseek64(fd, 0, SEEK_CUR); } in GetOffset()
96 return lseek64(fd, offset, SEEK_SET) == offset ? 0 : -errno; in SetOffset()
558 len = lseek64(fd, 0, SEEK_END); in sparse_file_import_auto()
563 lseek64(fd, 0, SEEK_SET); in sparse_file_import_auto()
Doutput_file.cpp47 #define lseek64 lseek macro
121 ret = lseek64(outn->fd, cnt, SEEK_CUR); in file_skip()
/system/extras/ext4_utils/
Dext4_utils.cpp98 ret = lseek64(fd, 1024, SEEK_SET); in read_sb()
278 ret = lseek64(fd, info.len, SEEK_SET); in read_ext()
282 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); in read_ext()
/system/core/libutils/
DFileMap_test.cpp45 ASSERT_EQ(offset, lseek64(tf.fd, offset, SEEK_SET)); in TEST()
/system/core/libdiskconfig/
Dwrite_lst.c73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) { in wlist_commit()
Ddiskutils.c56 if (lseek64(dst_fd, offset, SEEK_SET) != offset) { in write_raw_image()
/system/core/libutils/include/utils/
DCompat.h36 static inline off64_t lseek64(int fd, off64_t offset, int whence) { in lseek64() function
/system/extras/tests/directiotest/
Ddirectiotest.c76 lseek64(fd, start, SEEK_SET); in do_read()
98 lseek64(fd, start, SEEK_SET); in do_write()
/system/core/fs_mgr/libfs_avb/
Davb_ops.cpp198 off64_t total_size = lseek64(fd, 0, SEEK_END); in ReadFromPartition()
205 if (lseek64(fd, 0, SEEK_SET) == -1) { in ReadFromPartition()
Davb_util.cpp324 off64_t saved_current = lseek64(fd, 0, SEEK_CUR); in GetTotalSize()
331 off64_t total_size = lseek64(fd, 0, SEEK_END); in GetTotalSize()
338 if (lseek64(fd, saved_current, SEEK_SET) == -1) { in GetTotalSize()
/system/extras/tests/ext4/
Drand_emmc_perf.c126 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) { in stats_test()
156 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) { in perf_test()
/system/core/fastboot/device/
Dflashing.cpp103 return lseek64(fd, len, SEEK_CUR) >= 0 ? 0 : -errno; in WriteCallback()
117 lseek64(fd, 0, SEEK_SET); in FlashBlockDevice()
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h42 #define lseek64 lseek macro
/system/vold/
DCheckpoint.cpp562 lseek64(device_fd, 0, SEEK_SET); in restoreSector()
580 lseek64(device_fd, le->source * kSectorSize, SEEK_SET); in restoreSector()
594 lseek64(device_fd, sector * kSectorSize, SEEK_SET); in relocatedRead()
602 lseek64(device_fd, (sector + relocation->second - relocation->first) * kSectorSize, in relocatedRead()
704 lseek64(device_fd, 0, SEEK_SET); in cp_restoreCheckpoint()
Dcryptfs.cpp489 if (lseek64(fd, 1024, SEEK_SET) < 0) { in get_fs_size()
613 if (lseek64(fd, starting_off, SEEK_SET) == -1) { in put_crypt_ftr_and_key()
684 if (lseek64(fd, pdata_offset, SEEK_SET) == -1) { in upgrade_crypt_ftr()
721 if (lseek64(fd, offset, SEEK_SET) == -1) { in upgrade_crypt_ftr()
758 if (lseek64(fd, starting_off, SEEK_SET) == -1) { in get_crypt_ftr_and_key()
892 if (lseek64(fd, crypt_ftr.persist_data_offset[i], SEEK_SET) < 0) { in load_persistent_data()
969 if (lseek64(fd, crypt_ftr.persist_data_offset[0], SEEK_SET) < 0) { in save_persistent_data()
992 if (lseek64(fd, write_offset, SEEK_SET) < 0) { in save_persistent_data()
998 if (lseek64(fd, erase_offset, SEEK_SET) < 0) { in save_persistent_data()
Dsecdiscard.cpp175 if (lseek64(fd, start, SEEK_SET) != start) { in overwrite_with_zeros()
DEncryptInplace.cpp504 if (lseek64(realfd, i * CRYPT_SECTOR_SIZE, SEEK_SET) < 0) { in cryptfs_enable_inplace_full()
509 if (lseek64(cryptofd, i * CRYPT_SECTOR_SIZE, SEEK_SET) < 0) { in cryptfs_enable_inplace_full()
/system/extras/libfec/test/
Dfec_unittest.cpp205 ASSERT_EQ(corrupt_offset, lseek64(verity_image.fd, corrupt_offset, 0)); in TEST_F()
260 ASSERT_EQ(corrupt_offset, lseek64(avb_image.fd, corrupt_offset, 0)); in TEST_F()
282 ASSERT_EQ(corrupt_offset, lseek64(avb_image.fd, corrupt_offset, 0)); in TEST_F()
/system/update_engine/payload_consumer/
Dfile_descriptor.cc67 return lseek64(fd_, offset, whence); in Seek()
/system/extras/verity/fec/
Dimage.cpp221 if (lseek64(fd, -FEC_BLOCKSIZE, SEEK_END) < 0) { in image_ecc_load()
271 if (lseek64(fd, 0, SEEK_SET) < 0) { in image_ecc_load()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test.cpp59 EXPECT_EQ(flags_offset, lseek64(fd, flags_offset, SEEK_SET)); in ModifyVBMetaHeaderFlags()
/system/extras/f2fs_utils/
Df2fs_sparseblock.c166 ret = lseek64(fd, start, SEEK_SET); in read_structure()
572 ret = lseek64(d->outfd, pos * F2FS_BLKSIZE, SEEK_SET); in copy_used()
/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp394 off64_t offset = lseek64(file_fd, 0, SEEK_SET); in WriteZeroes()
421 if (lseek64(file_fd, 0, SEEK_SET) < 0) { in WriteZeroes()

12