Home
last modified time | relevance | path

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

12

/system/core/adb/
Dadb_io_test.cpp62 ASSERT_EQ(0, lseek(tf.fd, SEEK_SET, 0)); in TEST()
76 ASSERT_EQ(0, lseek(tf.fd, SEEK_SET, 0)); in TEST()
90 ASSERT_EQ(0, lseek(tf.fd, SEEK_SET, 0)); in TEST()
109 ASSERT_EQ(0, lseek(tf.fd, SEEK_SET, 0)); in TEST()
123 ASSERT_EQ(0, lseek(tf.fd, SEEK_SET, 0)); in TEST()
149 ASSERT_EQ(0, lseek(tf.fd, SEEK_SET, 0)); in TEST()
162 ASSERT_EQ(0, lseek(tf.fd, SEEK_SET, 0)); in TEST()
Dsysdeps.h389 return lseek(fd, pos, where); in adb_lseek()
391 #undef lseek
392 #define lseek ___xxx_lseek macro
/system/core/debuggerd/test/
Ddump_memory_test.cpp158 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
178 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
197 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
210 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
266 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
286 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
311 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
337 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
391 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
416 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
[all …]
Ddump_maps_test.cpp109 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
142 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
179 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
235 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
291 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
345 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
399 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
455 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
493 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
521 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); in TEST_F()
[all …]
/system/core/base/
Dlogging_test.cpp91 ASSERT_EQ(0, lseek(cap.fd(), SEEK_SET, 0)); in TEST()
104 ASSERT_EQ(0, lseek(cap.fd(), SEEK_SET, 0)); in TEST()
117 ASSERT_EQ(0, lseek(cap.fd(), SEEK_SET, 0)); in TEST()
128 ASSERT_EQ(0, lseek(cap.fd(), SEEK_SET, 0)); in TEST()
144 ASSERT_EQ(0, lseek(cap.fd(), SEEK_SET, 0)); in TEST()
160 ASSERT_EQ(0, lseek(cap.fd(), SEEK_SET, 0)); in TEST()
Dfile_test.cpp76 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)) << errno; in TEST()
92 ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno); in TEST()
/system/core/libcutils/
Dload_file.c32 sz = lseek(fd, 0, SEEK_END); in load_file()
35 if(lseek(fd, 0, SEEK_SET) != 0) goto oops; in load_file()
/system/extras/tests/fstest/
Drecovery_test.cpp81 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in getSuperBlock()
116 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in setSbErrorBit()
151 if (lseek(blk_fd, block_size, SEEK_SET) == -1) { in corruptGdtFreeBlock()
171 if (lseek(blk_fd, -sizeof(gd), SEEK_CUR) == -1) { in corruptGdtFreeBlock()
/system/core/libsparse/
Dappend2simg.c37 #define lseek64 lseek
40 #define lseek64 lseek
Dsimg2img.c74 lseek(out, SEEK_SET, 0); in main()
Dimg2simg.c37 #define lseek64 lseek
/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd_hostops.c50 .op_lseek = lseek,
/system/core/include/utils/
DCompat.h29 return lseek(fd, offset, whence); in lseek64()
/system/vold/
DBenchmarkGen.h43 TEMP_FAILURE_RETRY(lseek(t3433f17, 0, SEEK_END)); in BenchmarkRun()
44 TEMP_FAILURE_RETRY(lseek(t3433f17, 38891199, SEEK_SET)); in BenchmarkRun()
63 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_SET)); in BenchmarkRun()
64 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_END)); in BenchmarkRun()
65 TEMP_FAILURE_RETRY(lseek(t3433f18, 38891199, SEEK_SET)); in BenchmarkRun()
81 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_SET)); in BenchmarkRun()
82 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_END)); in BenchmarkRun()
83 TEMP_FAILURE_RETRY(lseek(t3433f18, 38891199, SEEK_SET)); in BenchmarkRun()
91 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_SET)); in BenchmarkRun()
92 TEMP_FAILURE_RETRY(lseek(t3433f18, 0, SEEK_END)); in BenchmarkRun()
[all …]
DLoop.cpp322 if (lseek(fd, ((*nr_sec - 1) * 512), SEEK_SET) < 0) { in lookupInfo()
/system/core/liblog/
Devent_tag_map.c81 end = lseek(fd, 0L, SEEK_END); in android_openEventTagMap()
82 (void) lseek(fd, 0L, SEEK_SET); in android_openEventTagMap()
Dlog_read.c718 current = TEMP_FAILURE_RETRY(lseek(logger_list->sock, in android_logger_list_read_pstore()
723 next = TEMP_FAILURE_RETRY(lseek(logger_list->sock, in android_logger_list_read_pstore()
/system/core/libbacktrace/
DGetPss.cpp37 if (lseek(fd, place * sizeof(uint64_t), SEEK_SET) < 0) { in ReadData()
/system/core/mkbootimg/
Dmkbootimg.c39 sz = lseek(fd, 0, SEEK_END); in load_file()
42 if(lseek(fd, 0, SEEK_SET) != 0) goto oops; in load_file()
/system/core/libsuspend/
Dautosuspend_wakeup_count.c55 lseek(wakeup_count_fd, 0, SEEK_SET); in suspend_thread_func()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c109 if (lseek(f->fd, 0, SEEK_SET) == -1) in grep_refill()
/system/extras/ext4_utils/
Dext4_utils.h42 #define lseek64 lseek
/system/core/libziparchive/
Dzip_archive_test.cc99 ASSERT_EQ(-1, lseek(fd, 0, SEEK_SET)); in TEST()
109 ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)); in TEST()
/system/extras/sound/
Dplaywav.c285 lseek(fd, 0, SEEK_SET); in wav_rec()
/system/core/fastboot/
Dfastboot.cpp460 lseek(fd, 0, SEEK_SET); in unzip_to_file()
661 lseek(fd, 0, SEEK_SET); in load_buf_fd()

12