Home
last modified time | relevance | path

Searched refs:lseek64 (Results 1 – 25 of 31) 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/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/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.cpp326 off64_t saved_current = lseek64(fd, 0, SEEK_CUR); in GetTotalSize()
333 off64_t total_size = lseek64(fd, 0, SEEK_END); in GetTotalSize()
340 if (lseek64(fd, saved_current, SEEK_SET) == -1) { in GetTotalSize()
/system/extras/tests/directiotest/
Ddirectiotest.c76 lseek64(fd, start, SEEK_SET); in do_read()
98 lseek64(fd, start, SEEK_SET); in do_write()
/system/extras/ext4_utils/
Dext4_utils.cpp88 ret = lseek64(fd, 1024, SEEK_SET); in read_sb()
286 ret = lseek64(fd, info.len, SEEK_SET); in read_ext()
289 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); in read_ext()
/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.cpp104 return lseek64(fd, len, SEEK_CUR) >= 0 ? 0 : -errno; in WriteCallback()
118 lseek64(fd, 0, SEEK_SET); in FlashBlockDevice()
/system/core/fs_mgr/tools/
Ddmuserd.cpp221 if (lseek64(backing_fd, msg.sector * SECTOR_SIZE, SEEK_SET) < 0) { in simple_daemon()
261 if (lseek64(backing_fd, msg.sector * SECTOR_SIZE, SEEK_SET) < 0) { in simple_daemon()
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h42 #define lseek64 lseek macro
/system/vold/
DCheckpoint.cpp561 lseek64(device_fd, 0, SEEK_SET); in restoreSector()
579 lseek64(device_fd, le->source * kSectorSize, SEEK_SET); in restoreSector()
593 lseek64(device_fd, sector * kSectorSize, SEEK_SET); in relocatedRead()
601 lseek64(device_fd, (sector + relocation->second - relocation->first) * kSectorSize, in relocatedRead()
703 lseek64(device_fd, 0, SEEK_SET); in cp_restoreCheckpoint()
Dcryptfs.cpp572 if (lseek64(fd, 1024, SEEK_SET) < 0) { in get_fs_size()
696 if (lseek64(fd, starting_off, SEEK_SET) == -1) { in put_crypt_ftr_and_key()
767 if (lseek64(fd, pdata_offset, SEEK_SET) == -1) { in upgrade_crypt_ftr()
804 if (lseek64(fd, offset, SEEK_SET) == -1) { in upgrade_crypt_ftr()
841 if (lseek64(fd, starting_off, SEEK_SET) == -1) { in get_crypt_ftr_and_key()
975 if (lseek64(fd, crypt_ftr.persist_data_offset[i], SEEK_SET) < 0) { in load_persistent_data()
1052 if (lseek64(fd, crypt_ftr.persist_data_offset[0], SEEK_SET) < 0) { in save_persistent_data()
1075 if (lseek64(fd, write_offset, SEEK_SET) < 0) { in save_persistent_data()
1081 if (lseek64(fd, erase_offset, SEEK_SET) < 0) { in save_persistent_data()
Dsecdiscard.cpp216 if (lseek64(fd, start, SEEK_SET) != start) { in overwrite_with_zeros()
/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.cc74 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.c162 ret = lseek64(fd, start, SEEK_SET); in read_structure()
552 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