Searched refs:lseek64 (Results 1 - 24 of 24) sorted by relevance

/system/core/libsparse/
H A Dimg2simg.c37 #define lseek64 lseek macro
89 len = lseek64(in, 0, SEEK_END);
90 lseek64(in, 0, SEEK_SET);
H A Dappend2simg.c37 #define lseek64 lseek macro
40 #define lseek64 lseek macro
97 input_len = lseek64(input, 0, SEEK_END);
105 lseek64(input, 0, SEEK_SET);
120 lseek64(output, 0, SEEK_SET);
H A Dsparse_read.c39 #define lseek64 lseek macro
132 lseek64(fd, len, SEEK_CUR);
322 lseek64(fd, sparse_header.file_hdr_sz - SPARSE_HEADER_LEN, SEEK_CUR);
335 lseek64(fd, sparse_header.chunk_hdr_sz - CHUNK_HEADER_LEN, SEEK_CUR);
338 offset = lseek64(fd, 0, SEEK_CUR);
457 ret = lseek64(fd, 0, SEEK_SET);
486 len = lseek64(fd, 0, SEEK_END);
491 lseek64(fd, 0, SEEK_SET);
H A Doutput_file.c45 #define lseek64 lseek macro
131 ret = lseek64(outn->fd, cnt, SEEK_CUR);
133 error_errno("lseek64");
721 pos = lseek64(fd, offset, SEEK_SET);
/system/core/include/utils/
H A DCompat.h30 static inline off64_t lseek64(int fd, off64_t offset, int whence) { function
/system/core/adb/
H A Ddisable_verity_service.c62 if (lseek64(data_device, 1024, SEEK_SET) < 0) {
104 if (lseek64(device, device_length, SEEK_SET) < 0) {
129 if (lseek64(device, device_length, SEEK_SET) < 0) {
/system/extras/libpagemap/
H A Dpm_kernel.c122 off = lseek64(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET);
138 off = lseek64(ker->kpageflags_fd, pfn * sizeof(uint64_t), SEEK_SET);
H A Dpm_process.c128 off = lseek64(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET);
/system/core/libdiskconfig/
H A Ddiskutils.c56 if (lseek64(dst_fd, offset, SEEK_SET) != offset) {
H A Dwrite_lst.c73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) {
/system/extras/ext4_utils/
H A Dext4fixup.c35 #define lseek64 lseek macro
95 lseek64(fd, 0, SEEK_SET);
144 lseek64(fd, 0, SEEK_SET);
178 if (lseek64(fd, inode_offset, SEEK_SET) < 0) {
197 if (lseek64(fd, off, SEEK_SET) , 0) {
220 if (lseek64(fd, off, SEEK_SET) < 0) {
330 ret = lseek64(fd, ((unsigned long long)i * info.blocks_per_group * info.block_size) +
H A Dext2simg.c76 ret = lseek64(fd, (u64)info.block_size * aux_info.bg_desc[i].bg_block_bitmap,
H A Dext4_utils.c103 ret = lseek64(fd, 1024, SEEK_SET);
119 ret = lseek64(fd, offset, SEEK_SET);
510 ret = lseek64(fd, info.len, SEEK_SET);
514 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET);
H A Dext4_utils.h42 #define lseek64 lseek macro
/system/extras/f2fs_utils/
H A Df2fs_ioutils.c100 if (lseek64(config.fd, (off64_t)offset, SEEK_SET) < 0)
H A Df2fs_sparseblock.c160 ret = lseek64(fd, start, SEEK_SET);
562 ret = lseek64(d->outfd, pos*F2FS_BLKSIZE, SEEK_SET);
/system/extras/tests/directiotest/
H A Ddirectiotest.c76 lseek64(fd, start, SEEK_SET);
98 lseek64(fd, start, SEEK_SET);
/system/extras/tests/ext4/
H A Drand_emmc_perf.c126 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) {
127 fprintf(stderr, "lseek64 failed\n");
156 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) {
157 fprintf(stderr, "lseek64 failed\n");
/system/extras/verity/
H A Dverify_boot_signature.c135 if (lseek64(fd, offset, SEEK_SET) == -1) {
239 if (lseek64(fd, 0, SEEK_SET) != 0) {
/system/core/fs_mgr/
H A Dfs_mgr_verity.c131 if (TEMP_FAILURE_RETRY(lseek64(data_device, 1024, SEEK_SET)) < 0) {
172 if (TEMP_FAILURE_RETRY(lseek64(device, device_length, SEEK_SET)) < 0) {
/system/core/libziparchive/
H A Dzip_archive_test.cc240 ASSERT_EQ(0, lseek64(fd, 0, SEEK_SET));
254 lseek64(fd, 0, SEEK_END));
H A Dzip_archive.cc454 if (lseek64(fd, search_start, SEEK_SET) != search_start) {
548 // Test file length. We use lseek64 to make sure the file
551 off64_t file_length = lseek64(fd, 0, SEEK_END);
737 // lseek64 + read on platforms that don't. This implies that
748 if (lseek64(fd, off, SEEK_SET) != off) {
1085 if (lseek64(archive->fd, data_offset, SEEK_SET) != data_offset) {
1120 const off64_t current_offset = lseek64(fd, 0, SEEK_CUR);
/system/vold/
H A Dcryptfs.c400 if (lseek64(fd, 1024, SEEK_SET) < 0) {
505 if (lseek64(fd, starting_off, SEEK_SET) == -1) {
574 if (lseek64(fd, pdata_offset, SEEK_SET) == -1) {
609 if (lseek64(fd, offset, SEEK_SET) == -1) {
648 if (lseek64(fd, starting_off, SEEK_SET) == -1) {
775 if (lseek64(fd, crypt_ftr.persist_data_offset[i], SEEK_SET) < 0) {
854 if (lseek64(fd, crypt_ftr.persist_data_offset[0], SEEK_SET) < 0) {
2690 if (lseek64(realfd, i * CRYPT_SECTOR_SIZE, SEEK_SET) < 0) {
2695 if (lseek64(cryptofd, i * CRYPT_SECTOR_SIZE, SEEK_SET) < 0) {
/system/core/toolbox/
H A Dnandread.c194 lseek64(fd, pos, SEEK_SET);

Completed in 491 milliseconds