/development/tools/line_endings/ |
line_endings.c | 58 len = lseek(fd, 0, SEEK_END); 59 lseek(fd, 0, SEEK_SET); 92 lseek(fd, 0, SEEK_SET);
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
MtpFileWriter.java | 60 Os.lseek(mCacheFd.getFileDescriptor(), offset, OsConstants.SEEK_SET); 80 final long size = Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_END); 85 Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_SET);
|
/hardware/intel/img/psb_video/fw/topazhp/ |
fwinfo.c | 120 unsigned int i, lseek; local 212 lseek = ((sizeof(fw) + (fw.text_size + fw.data_size) * 4 + 0xfff) & ~0xfff); 213 fseek(fp, lseek, SEEK_SET);
|
/hardware/intel/img/psb_video/fw/topazsc/ |
fwinfo.c | 120 unsigned int lseek; local 212 lseek = ((sizeof(fw) + (fw.text_size + fw.data_size) * 4 + 0xfff) & ~0xfff); 213 fseek(fp, lseek, SEEK_SET);
|
/external/e2fsprogs/include/nonunix/ |
unistd.h | 25 #define lseek _lseek macro
|
/external/ltp/testcases/kernel/syscalls/ioctl/ |
ioctl05.c | 22 * - lseek to the end of the device, this should work 54 if (lseek(fd, size * 512, SEEK_SET) != (off_t)size * 512) { 56 "Cannot lseek to the end of the device"); 58 tst_res(TPASS, "Could lseek to the end of the device");
|
/external/mesa3d/src/compiler/spirv/ |
spirv2nir.c | 55 off_t len = lseek(fd, 0, SEEK_END);
|
/frameworks/native/libs/binder/tests/ |
binderTextOutputTest.cpp | 35 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET)); 64 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET)); 73 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET)); 82 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET));
|
/system/core/debuggerd/libdebuggerd/test/ |
dump_memory_test.cpp | 207 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 227 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 246 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 259 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 315 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 335 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 360 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 386 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 440 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 465 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0) [all...] |
tombstone_test.cpp | 102 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 137 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 176 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 234 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 288 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 340 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 392 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 447 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0); 476 ASSERT_TRUE(lseek(log_.tfd, 0, SEEK_SET) == 0);
|
/system/core/libutils/include/utils/ |
Compat.h | 29 return lseek(fd, offset, whence);
|
/toolchain/binutils/binutils-2.27/gold/ |
ftruncate.c | 61 if (lseek (fd, (length - 1), SEEK_SET) < 0)
|
/external/ltp/testcases/kernel/io/direct_io/ |
diotest4.c | 103 if (lseek(fd, offset, SEEK_SET) < 0) { 105 tst_resm(TFAIL, "lseek before read failed: %s", 118 if (lseek(fd, offset, SEEK_SET) < 0) { 120 tst_resm(TFAIL, "lseek before write failed: %s", 144 if (lseek(fd, offset, SEEK_SET) < 0) { 145 tst_resm(TFAIL, "lseek before read failed: %s", 155 if (lseek(fd, offset, SEEK_SET) < 0) { 156 tst_resm(TFAIL, "lseek before write failed: %s", 250 ret = lseek(fd, offset, SEEK_SET); 252 tst_resm(TFAIL, "lseek allows negative offset. returns %d:%s" [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
stdio.c | 95 (void) lseek(fp->_file, (off_t)0, SEEK_END);
112 ret = lseek(fp->_file, (off_t)offset, whence);
|
/external/e2fsprogs/misc/ |
e2label.c | 61 if (lseek(fd, 1024, SEEK_SET) != 1024) { 98 if (lseek(fd, 1024, SEEK_SET) != 1024) {
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
llseek.c | 98 * Now try ordinary lseek. 104 return lseek(fd, (off_t) offset, origin); 120 return lseek(fd, (off_t) offset, origin);
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
mremap01.c | 184 if (lseek(fildes, (off_t) memsize, SEEK_SET) != (off_t) memsize) { 206 if (lseek(fildes, (off_t) newsize, SEEK_SET) != (off_t) newsize) { 207 tst_brkm(TBROK, cleanup, "lseek() to %d offset pos. Failed, "
|
/external/perfetto/src/tracing/ipc/ |
posix_shared_memory_unittest.cc | 38 return lseek(fd, 0, SEEK_CUR) == -1 && errno == EBADF; 62 ASSERT_EQ(static_cast<off_t>(base::kPageSize), lseek(fd, 0, SEEK_END));
|
/external/valgrind/memcheck/tests/ |
writev1.c | 55 lseek(fd, 0, 0); 61 lseek(fd, K_1, 0);
|
/frameworks/av/media/libmedia/ |
MidiIoWrapper.cpp | 40 mLength = lseek(mFd, 0, SEEK_END); 81 lseek(mFd, mBase + offset, SEEK_SET);
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
ZipFileTest.java | 51 long initialOffset = android.system.Os.lseek(fd, 0, OsConstants.SEEK_CUR); 75 long currentOffset = android.system.Os.lseek(fd, 0, OsConstants.SEEK_CUR);
|
/external/google-breakpad/src/client/mac/handler/ |
breakpad_nlist_64.cc | 207 if (lseek(fd, 0, SEEK_SET) == -1) { 263 if (lseek(fd, arch_offset, SEEK_SET) == -1) { 275 if (lseek(fd, arch_offset, SEEK_SET) == -1) { 335 if (lseek(fd, sa, SEEK_SET) == -1) { 353 off_t savpos = lseek(fd, 0, SEEK_CUR); 365 if (lseek(fd, ss+q->n_un.n_strx, SEEK_SET) == -1) { 397 if (lseek(fd, savpos, SEEK_SET) == -1) {
|
/external/zlib/src/examples/ |
gzlog.c | 231 #include <unistd.h> /* lseek, read, write, close, unlink, sleep, */ 415 if (lseek(log->fd, 0, SEEK_SET) < 0 || 451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || 476 if (back != 8 && (lseek(log->fd, log->last - len, SEEK_SET) < 0 || 491 return lseek(log->fd, log->last - len, SEEK_SET) < 0 || 493 lseek(log->fd, log->stored, SEEK_CUR) < 0 ? -1 : 0; 553 (end = lseek(log->fd, 0, SEEK_CUR)) < 0 || ftruncate(log->fd, end)) 644 if (lseek(log->fd, log->first - (log->back > 8 ? 2 : 1), 646 read(log->fd, buf, 1) != 1 || lseek(log->fd, -1, SEEK_CUR) < 0) { 677 if ((log->first = lseek(log->fd, -1, SEEK_CUR)) < 0 | [all...] |
/toolchain/binutils/binutils-2.27/zlib/examples/ |
gzlog.c | 231 #include <unistd.h> /* lseek, read, write, close, unlink, sleep, */ 415 if (lseek(log->fd, 0, SEEK_SET) < 0 || 451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || 476 if (back != 8 && (lseek(log->fd, log->last - len, SEEK_SET) < 0 || 491 return lseek(log->fd, log->last - len, SEEK_SET) < 0 || 493 lseek(log->fd, log->stored, SEEK_CUR) < 0 ? -1 : 0; 553 (end = lseek(log->fd, 0, SEEK_CUR)) < 0 || ftruncate(log->fd, end)) 644 if (lseek(log->fd, log->first - (log->back > 8 ? 2 : 1), 646 read(log->fd, buf, 1) != 1 || lseek(log->fd, -1, SEEK_CUR) < 0) { 677 if ((log->first = lseek(log->fd, -1, SEEK_CUR)) < 0 | [all...] |
/system/core/libziparchive/ |
zip_writer_test.cc | 59 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 91 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 126 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 160 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 188 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 210 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 238 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 270 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET)); 336 ASSERT_GE(0, lseek(fd_, 0, SEEK_SET));
|