/openbsd-current/libexec/ftpd/ |
H A D | logutmp.c | 79 (void)lseek(fd, (off_t)topslot * sizeof(struct utmp), SEEK_SET); 85 (void)lseek(fd, -(off_t)sizeof(struct utmp), 91 (void)lseek(fd, (off_t)topslot * sizeof(struct utmp), 111 (void)lseek(fd, 0, SEEK_SET); 121 (void)lseek(fd, -(off_t)sizeof(struct utmp), SEEK_CUR);
|
/openbsd-current/gnu/gcc/gcc/config/i386/ |
H A D | host-cygwin.c | 55 off_t p = lseek(fd, 0, SEEK_CUR); 75 if (lseek (fd, p, SEEK_SET) == (off_t) -1 )
|
/openbsd-current/games/hangman/ |
H A D | ksyms.c | 44 if (lseek(symfd, pos + symoffs, SEEK_SET) == -1) 118 if (lseek(symfd, 0, SEEK_SET) == -1) 127 if (lseek(symfd, eh.e_shoff, SEEK_SET) == -1)
|
/openbsd-current/sys/lib/libsa/ |
H A D | lseek.c | 1 /* $OpenBSD: lseek.c,v 1.7 2003/08/11 06:23:09 deraadt Exp $ */ 2 /* $NetBSD: lseek.c,v 1.3 1996/06/21 20:09:03 pk Exp $ */ 35 * @(#)lseek.c 8.1 (Berkeley) 6/11/93 68 lseek(int fd, off_t offset, int where) function
|
H A D | readdir.c | 59 lseek(fd, 0, SEEK_SET);
|
H A D | loadfile_elf.c | 88 if (lseek(fd, (off_t)elf->e_phoff, SEEK_SET) == -1) { 89 WARN(("lseek phdr")); 142 if (lseek(fd, (off_t)phdr[i].p_offset, SEEK_SET) == -1) { 143 WARN(("lseek text")); 190 if (lseek(fd, (off_t)elf->e_shoff, SEEK_SET) == -1) { 191 WARN(("lseek section headers")); 208 if (lseek(fd, (off_t)shp[elf->e_shstrndx].sh_offset, SEEK_SET) == -1) { 209 WARN(("lseek section header string table")); 240 if (lseek(fd, (off_t)shp[i].sh_offset, 242 WARN(("lseek symbol [all...] |
/openbsd-current/usr.bin/login/ |
H A D | failedlogin.c | 59 (void)lseek(fd, (off_t)uid * sizeof(failedlogin), SEEK_SET); 66 (void)lseek(fd, (off_t)uid * sizeof(failedlogin), SEEK_SET); 99 (void)lseek(fd, (off_t)uid * sizeof(failedlogin), SEEK_SET); 129 (void)lseek(fd, (off_t)uid * sizeof(failedlogin),
|
/openbsd-current/gnu/usr.bin/perl/ext/SDBM_File/ |
H A D | sdbm.c | 47 # undef lseek macro 48 # define lseek _lseeki64 macro 224 if (lseek(db->pagf, OFF_PAG(db->pagbno), SEEK_SET) < 0 275 if (lseek(db->pagf, OFF_PAG(db->pagbno), SEEK_SET) < 0 332 oldtail = lseek(db->pagf, 0L, SEEK_END); 335 if (lseek(db->pagf, 0L, SEEK_END) < 0 || 344 if (lseek(db->pagf, OFF_PAG(db->pagbno), SEEK_SET) < 0 350 else if (lseek(db->pagf, OFF_PAG(newp), SEEK_SET) < 0 371 if (lseek(db->pagf, OFF_PAG(db->pagbno), SEEK_SET) < 0 402 if (lseek(d [all...] |
/openbsd-current/lib/libc/stdio/ |
H A D | stdio.c | 63 (void) lseek(fp->_file, 0, SEEK_END); 74 ret = lseek(fp->_file, offset, whence);
|
/openbsd-current/usr.bin/rsync/ |
H A D | copy.c | 52 if (lseek(tofd, r, SEEK_CUR) == -1) 62 if (ftruncate(tofd, lseek(tofd, 0, SEEK_CUR)) == -1)
|
/openbsd-current/sys/arch/hppa/stand/mkboot/ |
H A D | mkboot.c | 141 lseek(to, pos, 0); 167 lseek(to, LIF_VOLSTART, 0); 170 lseek(to, 0, SEEK_END); 202 (void) lseek(from, 0, SEEK_SET); 212 (void) lseek(from, ntohl(elf_header.e_phoff), SEEK_SET); 237 lseek(to, sizeof(load), SEEK_CUR); 241 for (lseek(from, 0, 0); ; n = sizeof(buf)) { 265 lseek(to, -total, SEEK_CUR); 268 lseek(to, total - sizeof(load), SEEK_CUR);
|
/openbsd-current/gnu/usr.bin/cvs/lib/ |
H A D | ftruncate.c | 42 if (lseek (fd, (length - 1), SEEK_SET) < 0)
|
/openbsd-current/lib/libc/gen/ |
H A D | seekdir.c | 72 dirp->dd_bufpos = dirp->dd_curpos = lseek(dirp->dd_fd, loc, SEEK_SET);
|
/openbsd-current/lib/libutil/ |
H A D | logout.c | 59 (void)lseek(fd, -(off_t)sizeof(UTMP), SEEK_CUR);
|
/openbsd-current/regress/sys/uvm/mmap_4g/ |
H A D | mmap_4g.c | 36 if (lseek(fd, offset, SEEK_SET) != offset) 37 err(1, "lseek"); 66 if (lseek(fd, offset, SEEK_SET) != offset) 67 err(1, "lseek");
|
/openbsd-current/sbin/fsirand/ |
H A D | fsirand.c | 135 if (lseek(devfd, sblockloc, SEEK_SET) == -1) { 193 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) == -1) { 247 if (lseek(devfd, SBOFF, SEEK_SET) == -1) { 264 if (lseek(devfd, (off_t)dblk * bsize, 280 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) == -1) { 309 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) == -1) {
|
/openbsd-current/usr.sbin/mkuboot/ |
H A D | copy_elf.c | 68 if (lseek(ifd, (off_t)elfoff2h(elf.e_shoff), SEEK_SET) == -1) 84 if (lseek(ifd, elfoff2h(ehdr.e_phoff) + i * 133 if (lseek(ifd, elfoff2h(ehdr.e_phoff) + i * 191 if (lseek(ifd, elfoff2h(phdr.p_offset), 200 if (lseek(ifd, elfoff2h(phdr.p_offset) + 209 if (lseek(ifd, elfoff2h(phdr.p_offset), 269 if (lseek(ifd, elfoff2h(shp[i].sh_offset), SEEK_SET)
|
/openbsd-current/sys/arch/sparc64/stand/ofwboot/ |
H A D | elf64_exec.c | 96 size = lseek(fd, (size_t)(elf->e_phoff + sizeof(phdr) * i), 152 (void)lseek(fd, (size_t)phdr.p_offset, SEEK_SET); 193 (void)lseek(fd, (off_t)elf->e_shoff, SEEK_SET); 202 if (lseek(fd, (off_t)shp[elf->e_shstrndx].sh_offset, SEEK_SET) == -1) { 203 printf("lseek section header string table: %s\n", strerror(errno)); 257 (void)lseek(fd, shp->sh_offset, SEEK_SET);
|
/openbsd-current/games/robots/ |
H A D | score.c | 103 lseek(inf, 0, SEEK_SET); 126 lseek(inf, 0L, SEEK_SET); 131 lseek(inf, 0, SEEK_SET);
|
/openbsd-current/sbin/fsck_msdos/ |
H A D | boot.c | 65 if ((o = lseek(dosfs, 0, SEEK_SET)) == -1) { 131 o = lseek(dosfs, boot->FSInfo * secsize, SEEK_SET); 173 o = lseek(dosfs, boot->FSInfo * secsize, 197 o = lseek(dosfs, boot->Backup * secsize, SEEK_SET); 322 o = lseek(dosfs, boot->FSInfo * secsize, SEEK_SET); 343 o = lseek(dosfs, o, SEEK_SET);
|
/openbsd-current/lib/libc/db/recno/ |
H A D | rec_close.c | 127 if (lseek(t->bt_rfd, 0, SEEK_SET) != 0) 167 if ((off = lseek(t->bt_rfd, 0, SEEK_CUR)) == -1)
|
/openbsd-current/regress/sys/kern/flock/ |
H A D | lockf.c | 72 if (lseek(fd, len, SEEK_SET) == -1) 73 err(1, "lseek"); 86 if (lseek(fd, 0, SEEK_SET) == -1) 87 err(1, "lseek");
|
/openbsd-current/bin/dd/ |
H A D | position.c | 53 * dependent. Seekable devices use lseek, and the rest position by reading. 67 if (lseek(in.fd, in.offset * in.dbsz, SEEK_CUR) == -1) 127 if (lseek(out.fd, out.offset * out.dbsz, SEEK_SET) == -1)
|
/openbsd-current/usr.sbin/mopd/common/ |
H A D | loop-bsd.c | 136 * lseek() to 0 will fix things. */ 138 if (errno == EINVAL && (lseek(ii->fd, 0, 140 lseek(ii->fd, 0, SEEK_SET);
|
/openbsd-current/gnu/gcc/gcc/config/ |
H A D | host-hpux.c | 118 if (lseek (fd, offset, SEEK_SET) == (off_t)-1)
|