Home
last modified time | relevance | path

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

12345678910>>...13

/trueos/lib/libfigpar/
HDfigpar.c162 curpos = lseek(fd, 0, SEEK_CUR) - 1; in parse_config()
188 error = (int)lseek(fd, curpos, SEEK_SET); in parse_config()
206 if (lseek(fd, 1, SEEK_CUR) != -1) in parse_config()
247 curpos = lseek(fd, 0, SEEK_CUR) - 1; in parse_config()
269 charpos = lseek(fd, 0, SEEK_CUR) - 1; in parse_config()
280 error = (int)lseek(fd, -2, SEEK_CUR); in parse_config()
293 error = (int)lseek(fd, -2, SEEK_CUR); in parse_config()
302 error = (int)lseek(fd, charpos, SEEK_SET); in parse_config()
354 charpos = lseek(fd, 0, SEEK_CUR) - 1; in parse_config()
366 error = (int)lseek(fd, curpos, SEEK_SET); in parse_config()
/trueos/sbin/fsirand/
HDfsirand.c147 if (lseek(devfd, sblockloc, SEEK_SET) == -1) { in fsirand()
183 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
228 if (lseek(devfd, sblockloc, SEEK_SET) == -1) { in fsirand()
246 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
261 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
290 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
/trueos/contrib/libarchive/libarchive/test/
HDtest_open_fd.c31 #ifdef lseek
32 #undef lseek
34 #define lseek _lseek macro
90 assert(lseek(fd, 0, SEEK_SET) == 0); in DEFINE_TEST()
HDtest_archive_read_multiple_data_objects.c35 #ifdef lseek
36 #undef lseek
38 #define lseek(f, o, w) _lseek(f, (long)(o), (int)(w)) macro
206 int64_t result = lseek(mydata->fd, SEEK_CUR, request); in file_skip()
251 r = lseek(mine->fd, request, whence); in file_seek()
/trueos/contrib/netbsd-tests/kernel/kqueue/read/
HDt_file.c101 RL(lseek(fd, 0, SEEK_END)); in ATF_TC_BODY()
119 RL(lseek(fd, 0, SEEK_END)); in ATF_TC_BODY()
121 RL(lseek(fd, event[0].data, SEEK_END)); in ATF_TC_BODY()
/trueos/bin/pax/
HDar_io.c183 else if ((lseek(arfd, (off_t)0L, SEEK_CUR) == -1) && (errno == ESPIPE)) in ar_open()
476 if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) || in ar_set_wr()
635 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) in ar_write()
771 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) in ar_rdsync()
774 if (lseek(arfd, mpos, SEEK_CUR) < 0) in ar_rdsync()
832 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) >= 0) { in ar_fow()
844 if (lseek(arfd, mpos, SEEK_SET) >= 0) in ar_fow()
900 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) { in ar_rev()
925 if (lseek(arfd, cpos, SEEK_SET) < 0) { in ar_rev()
HDtables.c398 if (lseek(ffd,pt->seek,SEEK_SET) != pt->seek) { in chk_ftime()
448 if ((pt->seek = lseek(ffd, (off_t)0, SEEK_END)) >= 0) { in chk_ftime()
1135 if ((dblk.npos = lseek(dirfd, 0L, SEEK_CUR)) < 0) { in add_dir()
1181 if (lseek(dirfd, -((off_t)sizeof(dblk)), SEEK_CUR) < 0) in proc_dir()
1185 if (lseek(dirfd, dblk.npos, SEEK_SET) < 0) in proc_dir()
1189 if (lseek(dirfd, dblk.npos, SEEK_SET) < 0) in proc_dir()
/trueos/sbin/fsck_msdosfs/
HDboot.c103 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
129 if (lseek(dosfs, boot->bpbFSInfo * in readboot()
150 if (lseek(dosfs, boot->bpbBackup * boot->bpbBytesPerSec, in readboot()
242 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
256 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
/trueos/contrib/libarchive/libarchive/
HDarchive_read_open_filename.c338 lseek(fd, 0, SEEK_CUR) == 0 && in file_open()
339 lseek(fd, 0, SEEK_SET) == 0 && in file_open()
340 lseek(fd, 0, SEEK_END) > 0 && in file_open()
341 lseek(fd, 0, SEEK_SET) == 0) { in file_open()
452 if ((old_offset = lseek(mine->fd, 0, SEEK_CUR)) >= 0 && in file_skip_lseek()
453 (new_offset = lseek(mine->fd, request, SEEK_CUR)) >= 0) in file_skip_lseek()
505 r = lseek(mine->fd, request, whence); in file_seek()
HDarchive_read_open_fd.c153 if (((old_offset = lseek(mine->fd, 0, SEEK_CUR)) >= 0) && in file_skip()
154 ((new_offset = lseek(mine->fd, skip, SEEK_CUR)) >= 0)) in file_skip()
/trueos/sbin/clri/
HDclri.c96 if (lseek(fd, (off_t)(sblock_try[i]), SEEK_SET) < 0) in main()
125 if (lseek(fd, offset, SEEK_SET) < 0) in main()
151 if (lseek(fd, (off_t)-bsize, SEEK_CUR) < 0) in main()
/trueos/contrib/file/src/
HDpread.c13 if ((old = lseek(fd, off, SEEK_SET)) == -1) in pread()
19 if (lseek(fd, old, SEEK_SET) == -1) in pread()
/trueos/crypto/openssl/doc/crypto/
HDBIO_s_fd.pod30 using lseek(fd, 0, 0).
33 using lseek(fd, ofs, 0).
35 BIO_tell() returns the current file position by calling lseek(fd, 0, 1).
63 is an error occurred. These values reflect the underlying lseek()
/trueos/contrib/gcc/config/i386/
HDhost-cygwin.c55 off_t p = lseek(fd, 0, SEEK_CUR); in cygwin_gt_pch_get_address()
75 if (lseek (fd, p, SEEK_SET) == (off_t) -1 ) in cygwin_gt_pch_get_address()
/trueos/tools/tools/bus_autoconf/
HDbus_load_file.c50 off = lseek(f, 0, SEEK_END); in load_file()
56 if (lseek(f, 0, SEEK_SET) < 0) { in load_file()
/trueos/usr.sbin/kgzip/
HDxio.c92 if (offset != -1 && lseek(id->fd, offset, SEEK_SET) != offset) in xread()
119 if (lseek(id->fd, offset, SEEK_SET) != offset) in xseek()
/trueos/usr.bin/gcore/
HDgcore.c133 lseek(efd, 0, SEEK_SET); in main()
136 lseek(efd, 0, SEEK_SET); in main()
/trueos/usr.sbin/rpc.statd/
HDfile.c137 lseek(status_fd, desired_size - 1, SEEK_SET); in find_host()
194 status_file_len = lseek(status_fd, 0L, SEEK_END); in init_file()
212 lseek(status_fd, 0L, SEEK_SET); in init_file()
/trueos/contrib/llvm/tools/lldb/source/Host/common/
HDFile.cpp438 result = ::lseek (m_descriptor, offset, SEEK_SET); in SeekFromStart()
473 result = ::lseek (m_descriptor, offset, SEEK_CUR); in SeekFromCurrent()
508 result = ::lseek (m_descriptor, offset, SEEK_END); in SeekFromEnd()
708 long cur = ::lseek(m_descriptor, 0, SEEK_CUR); in Read()
795 long cur = ::lseek(m_descriptor, 0, SEEK_CUR); in Write()
797 long after = ::lseek(m_descriptor, 0, SEEK_CUR); in Write()
/trueos/tools/regression/fsx/
HDfsx.c326 off_t size_by_seek = lseek(fd, (off_t)0, SEEK_END); in save_buffer()
336 ret = lseek(fd, (off_t)0, SEEK_SET); in save_buffer()
426 size_by_seek = lseek(fd, (off_t)0, SEEK_END); in check_size()
486 ret = lseek(fd, (off_t)offset, SEEK_SET); in doread()
637 ret = lseek(fd, (off_t)offset, SEEK_SET); in dowrite()
764 if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) { in writefileimage()
1180 file_size = maxfilelen = lseek(fd, (off_t)0, SEEK_END); in main()
1186 ret = lseek(fd, (off_t)0, SEEK_SET); in main()
/trueos/contrib/apr/file_io/unix/
HDseek.c38 if (lseek(thefile->filedes, pos, SEEK_SET) != -1) { in setptr()
87 rv = lseek(thefile->filedes, *offset, where); in apr_file_seek()
/trueos/sbin/gbde/
HDgbde.c161 o2 = lseek(fd, offset, SEEK_SET); in g_read_data()
388 offset2 = lseek(dfd, offset, SEEK_SET); in cmd_nuke()
435 offset2 = lseek(dfd, 0, SEEK_SET); in cmd_write()
442 offset2 = lseek(dfd, 0, SEEK_SET); in cmd_write()
468 offset2 = lseek(dfd, offset, SEEK_SET); in cmd_write()
696 off2 = lseek(dfd, 0, SEEK_SET); in cmd_init()
709 off2 = lseek(dfd, off, SEEK_SET); in cmd_init()
/trueos/contrib/xz/src/xz/
HDfile_io.c653 if (lseek(STDOUT_FILENO, 0, SEEK_END) == -1) in io_open_dest_real()
666 } else if (lseek(STDOUT_FILENO, 0, SEEK_CUR) in io_open_dest_real()
757 if (lseek(pair->dest_fd, pair->dest_pending_sparse - 1, in io_close()
840 if (lseek(pair->src_fd, pos, SEEK_SET) != pos) { in io_pread()
941 if (lseek(pair->dest_fd, pair->dest_pending_sparse, in io_write()
/trueos/lib/libc/db/recno/
HDrec_close.c135 if (lseek(t->bt_rfd, (off_t)0, SEEK_SET) != 0) in __rec_sync()
176 if ((off = lseek(t->bt_rfd, (off_t)0, SEEK_CUR)) == -1) in __rec_sync()
/trueos/usr.sbin/crunch/crunchide/
HDcrunchide.c244 if (lseek(fd, 0, SEEK_SET) != 0) { in hide_syms()
260 if (lseek(fd, 0, SEEK_SET) != 0) { in hide_syms()

12345678910>>...13