/illumos-gate/usr/src/ucbhead/ |
H A D | unistd.h | 127 #pragma redefine_extname lseek lseek64 129 #define lseek lseek64 135 #pragma redefine_extname lseek64 lseek 137 #define lseek64 lseek 161 extern off_t lseek(int, off_t, int); 163 extern off_t lseek();
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/ |
H A D | aso-fcntl.c | 67 if (lseek(apl->fd, apl->size, SEEK_SET) != apl->size) 74 if (lseek(apl->fd, apl->size, SEEK_SET) != apl->size) 122 if (lseek(fd, size, SEEK_SET) != size) 130 if ((size = lseek(fd, 0, SEEK_END)) <= sizeof(references)) 139 if (lseek(fd, size, SEEK_SET) != size) 144 if (lseek(fd, size, SEEK_SET) != size)
|
/illumos-gate/usr/src/lib/libc/common/sys/ |
H A D | lseek.S | 38 ANSI_PRAGMA_WEAK(lseek,function) 47 SYSCALL_RVAL1(lseek) 49 SET_SIZE(lseek)
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | nlist.c | 114 if (lseek(fd, 0L, 0) == -1L) { /* rewind to beginning of object file */ in nlist() 318 if (lseek(fd, offset, 0L) == -1) { in elf_read() 381 if (lseek(fd, (long)sa, 0) == -1L) { in _coff_nlist() 417 long home = lseek(fd, 0L, 1); in _coff_nlist() 422 if (lseek(fd, buf.f_symptr + in _coff_nlist() 433 lseek(fd, home, 0) == -1) { in _coff_nlist() 434 (void) lseek(fd, home, 0); in _coff_nlist() 493 if ((where = lseek(fd, 0L, 1)) == -1L) { in sym_read() 509 if ((lseek(fd, where + SYMESZ + (AUXESZ * sym->n_numaux), 0)) == -1L) { in sym_read()
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | bstream.c | 190 sz = lseek(h->bstr_fd, 0L, SEEK_END); in wav_write_stream_close() 191 (void) lseek(h->bstr_fd, 0L, SEEK_SET); in wav_write_stream_close() 197 (void) lseek(h->bstr_fd, 0L, SEEK_SET); in wav_write_stream_close() 212 sz = lseek(h->bstr_fd, 0L, SEEK_END); in au_write_stream_close() 215 if (lseek(h->bstr_fd, 8L, SEEK_SET) < 0) in au_write_stream_close() 235 (void) lseek(h->bstr_fd, 0L, SEEK_SET); in file_stream_rewind() 243 (void) lseek(h->bstr_fd, 0L, SEEK_SET); in au_stream_rewind() 248 if (lseek(h->bstr_fd, (long)(BE32_TO_CPU(au.au_offset)), in au_stream_rewind() 317 (void) lseek(h->bstr_fd, ISO9660_BOOT_BLOCK_SIZE, SEEK_SET); in open_iso_read_stream() 442 if (lseek(fd, au->au_offset, SEEK_SET) < 0) { in open_au_read_stream() [all …]
|
/illumos-gate/usr/src/cmd/tic/ |
H A D | tic_read.c | 147 extern long lseek(); in read_entry() 175 lseek(fd, (long)(header.name_size - 127), 1); in read_entry() 182 lseek(fd, (long)(header.bool_count - BoolCount), 1); in read_entry() 209 lseek(fd, (long)(2 * (header.num_count - NumCount)), 1); in read_entry() 272 lseek(fd, (long)(2 * (header.str_count - StrCount)), 1); in read_entry()
|
/illumos-gate/usr/src/test/libc-tests/tests/threads/ |
H A D | thread_name.c | 195 if (lseek(fd, 0, SEEK_SET) != 0) in main() 203 if (lseek(fd, 0, SEEK_SET) != 0) in main() 214 if (lseek(fd, 0, SEEK_SET) != 0) in main() 223 if (lseek(fd, 0, SEEK_SET) != 0) in main() 231 if (lseek(fd, 0, SEEK_SET) != 0) in main()
|
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | dbm.c | 177 (void) lseek(pagf, blkno*PBLKSIZ, 0); in delete() 210 (void) lseek(pagf, blkno*PBLKSIZ, 0); in store() 238 (void) lseek(pagf, blkno*PBLKSIZ, 0); in store() 242 (void) lseek(pagf, (blkno+hmask+1)*PBLKSIZ, 0); in store() 328 (void) lseek(pagf, blkno*PBLKSIZ, 0); in dbm_access() 354 (void) lseek(dirf, (long)b*DBLKSIZ, 0); in getbit() 385 (void) lseek(dirf, (long)b*DBLKSIZ, 0); in setbit()
|
/illumos-gate/usr/src/ucblib/libdbm/ |
H A D | dbm.c | 185 (void) lseek(pagf, blkno*PBLKSIZ, 0); in delete() 223 (void) lseek(pagf, blkno*PBLKSIZ, 0); in store() 262 (void) lseek(pagf, blkno*PBLKSIZ, 0); in store() 265 (void) lseek(pagf, (blkno+hmask+1)*PBLKSIZ, 0); in store() 345 (void) lseek(pagf, blkno*PBLKSIZ, 0); in dbm_access() 370 (void) lseek(dirf, (long)b*DBLKSIZ, 0); in getbit() 400 (void) lseek(dirf, (long)b*DBLKSIZ, 0); in setbit()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | filehdr.c | 146 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_aiff_filesize() 158 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_aiff_filesize() 170 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_aiff_filesize() 196 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_au_filesize() 229 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_wav_filesize() 241 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_wav_filesize() 275 } else if ((lseek(fd, (off_t)0, SEEK_SET) < 0) || in audio_rewrite_filesize() 394 err = lseek(fd, (off_t)(resid - 1), SEEK_CUR); in audio_read_filehdr() 619 if (lseek(fd, size, SEEK_CUR) < 0) { in decode_aiff() 644 (void) lseek(fd, (off_t)4, SEEK_SET); in decode_au() [all …]
|
H A D | AudioFile.cc | 181 hdrsize = lseek(desc, (off_t)0, SEEK_CUR); in createfile() 326 hdrsize = (off_t)lseek(desc, (off_t)0, SEEK_CUR); in tryopen() 394 (lseek(getfd(), (off_t)0, SEEK_END) - hdrsize)) { in Close() 519 if (lseek(getfd(), (off_t)(hdrsize + offset), SEEK_SET) < 0) in seekread() 548 if (lseek(getfd(), (off_t)(hdrsize + offset), SEEK_SET) < 0) in seekwrite()
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | ftruncate.c | 32 if ((cursize = lseek(fd, 0L, 2)) == -1) in __ftruncate() 37 if (lseek(fd, wantsize - 1, 0) == -1 || in __ftruncate()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getut.c | 168 (void) lseek(fd, 0L, 1); in getutent_frec() 347 loc_utmp = lseek(fd, 0L, 1); in _compat_pututline() 353 (void) lseek(fd, -(long)sizeof (struct futmp), 1); in _compat_pututline() 355 (void) lseek(fd, -(long)sizeof (struct futmp), 1); in _compat_pututline() 395 (void) lseek(fd, 0L, 0); in _compat_setutent() 437 (void) lseek(fd, 0, 2); in _compat_updwtmp()
|
H A D | seekdir.c | 58 if (lseek(dirp->dd_fd, 0, SEEK_CUR) != 0) { in seekdir() 64 (void) lseek(dirp->dd_fd, loc, SEEK_SET); in seekdir()
|
/illumos-gate/usr/src/test/smbclient-tests/cmd/rw_mmap/ |
H A D | rw_mmap.c | 136 lseek(fid, 2013, SEEK_SET); in main() 155 lseek(fid, 2013, SEEK_SET); in main() 178 lseek(fid, 2013, SEEK_SET); in main()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/smbsrv/ |
H A D | smbsrv_pcap.c | 171 (void) lseek(fd, st.st_size, SEEK_SET); in pcap_file_header() 183 (void) lseek(fd, (off_t)0, SEEK_SET); in pcap_file_header() 354 pkt_off = lseek(pcap_fd, (off_t)0, SEEK_CUR); in smbsrv_pcap_dump() 392 (void) lseek(pcap_fd, pkt_off, SEEK_SET); in smbsrv_pcap_dump() 396 (void) lseek(pcap_fd, pkt_off, SEEK_SET); in smbsrv_pcap_dump()
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | input.c | 152 if ((lseek(elf->ed_fd, off, in _elf_vm() 184 if ((lseek(elf->ed_fd, off, SEEK_SET) != off) || in _elf_vm() 201 register off_t off = lseek(fd, (off_t)0, SEEK_END); in _elf_inmap()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astcopy.c | 67 if (!fstat(rfd, &st) && S_ISREG(st.st_mode) && (pos = lseek(rfd, (off_t)0, 1)) != ((off_t)-1)) in astcopy() 74 if (write(wfd, mapbuf, mapsize) != mapsize || lseek(rfd, mapsize, 1) == ((off_t)-1)) return(-1); in astcopy()
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/with_structs/ |
H A D | implicit_dependencies | 35 'lseek', 142 'lseek', 232 'lseek', 486 'lseek', 1189 'lseek', 1286 'lseek', 1540 'lseek', 1935 'lseek', 2312 'lseek', 8060 'lseek', [all …]
|
/illumos-gate/usr/src/head/ |
H A D | unistd.h | 201 #pragma redefine_extname lseek lseek64 209 #define lseek lseek64 222 #pragma redefine_extname lseek64 lseek 230 #define lseek64 lseek 421 extern off_t lseek(int, off_t, int);
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/without_structs/ |
H A D | implicit_dependencies.pretty | 644 'lseek', 714 'lseek', 784 'lseek', 859 'lseek', 952 'lseek', 1186 'lseek', 2087 'lseek', 2250 'lseek', 4094 'lseek', 5664 'lseek', [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 140 if (lseek(fd, h.e_phoff, SEEK_SET) != h.e_phoff || in __fex_read_syms() 152 if (lseek(fd, h.e_shoff, SEEK_SET) != h.e_shoff || in __fex_read_syms() 191 if (lseek(fd, sh[i].sh_offset, SEEK_SET) != sh[i].sh_offset || in __fex_read_syms() 193 lseek(fd, sh[sh[i].sh_link].sh_offset, SEEK_SET) != in __fex_read_syms()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | gzipfs.c | 287 if (lseek(zf->zf_rawfd, zf->zf_dataoffset, SEEK_SET) == -1) in zf_rewind() 344 pos1 = lseek(zf->zf_rawfd, 0, SEEK_CUR); in zf_stat() 345 pos2 = lseek(zf->zf_rawfd, sb->st_size - 4, SEEK_SET); in zf_stat() 354 pos1 = lseek(zf->zf_rawfd, pos1, SEEK_SET); in zf_stat()
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 301 if (lseek(fd, elfhdrp->e_phoff, 0) == -1) in read_elf32() 325 if (lseek(fd, phdr->p_offset, 0) == -1) in read_elf32() 384 if (lseek(fd, phdr->p_offset, 0) == -1) in read_elf32() 491 if (lseek(fd, phdr->p_offset, 0) == -1) { in read_elf32() 675 if (lseek(fd, elfhdrp->e_phoff, 0) == -1) in read_elf64() 700 if (lseek(fd, phdr->p_offset, 0) == -1) in read_elf64() 764 if (lseek(fd, phdr->p_offset, 0) == -1) in read_elf64() 1023 if (lseek(fd, ehdr->e_shoff, 0) == -1 || in iload32() 1078 if (lseek(fd, sp->sh_offset, 0) == -1 || in iload32() 1170 if (lseek(fd, ehdr->e_shoff, 0) == -1 || in iload64() [all …]
|
/illumos-gate/usr/src/cmd/cat/ |
H A D | cat.c | 347 if (S_ISREG(statp->st_mode) && (lseek(fi_desc, (off_t)0, SEEK_CUR) in cat() 408 (void) lseek(fi_desc, (off_t)mapoffset, in cat() 427 (void) lseek(fi_desc, (off_t)mapoffset, in cat() 437 (void) lseek(fi_desc, (off_t)mapoffset, SEEK_SET); in cat()
|