/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/ |
H A D | aso-fcntl.c | 62 lock.l_whence = SEEK_SET; 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) 134 lock.l_whence = SEEK_SET; 139 if (lseek(fd, size, SEEK_SET) != size) 144 if (lseek(fd, size, SEEK_SET) != size) 180 lock.l_whence = SEEK_SET;
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfseek.c | 93 if((type &= (SEEK_SET|SEEK_CUR|SEEK_END)) != SEEK_SET && 134 if(SFSK(f,r,SEEK_SET,f->disc) != r) 148 r = p + (type == SEEK_SET ? 0 : s); 166 p = (hardseek || r != f->here) ? SFSK(f,r,SEEK_SET,f->disc) : r; 181 (s = SFSK(f, f->here, SEEK_SET, f->disc)) == f->here) ) 249 if((hardseek || r != f->here) && (f->here = SFSK(f,r,SEEK_SET,f->disc)) != r) 251 f->here = SFSK(f,p,SEEK_SET,f->disc); 263 if((f->here = SFSK(f,p,SEEK_SET,f->disc)) != p)
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcsubstr.c | 69 if(sfsk(f,here,SEEK_SET,disc) != here) 80 sfsk(f,parent,SEEK_SET,disc); 128 case SEEK_SET: 142 sfsk(f,parent,SEEK_SET,disc); 186 if((here = sfseek(parent,(Sfoff_t)0,SEEK_CUR)) < 0 || sfseek(parent,offset,SEEK_SET) < 0) 188 else sfseek(parent,here,SEEK_SET);
|
H A D | sfdcdos.c | 304 case SEEK_SET: 323 sfsk(iop,mp->physical,SEEK_SET,disc); 333 if(whence==SEEK_SET && dp->lhere>=offset) 343 whence=SEEK_SET; 354 if(whence==SEEK_SET) 356 sfsk(iop, physical ,SEEK_SET,disc);
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | assemble.c | 949 (void) fseek(fp, 0, SEEK_SET); in output() 953 (void) fseek(fp, info_header->str_sec.place.itm_ptr, SEEK_SET); in output() 961 (void) fseek(fp, info_header->direc_tbl_sec.place.itm_ptr, SEEK_SET); in output() 969 (void) fseek(fp, info_header->cond_tbl_sec.place.itm_ptr, SEEK_SET); in output() 977 (void) fseek(fp, info_header->map_tbl_sec.place.itm_ptr, SEEK_SET); in output() 985 (void) fseek(fp, info_header->op_tbl_sec.place.itm_ptr, SEEK_SET); in output() 993 (void) fseek(fp, info_header->range_tbl_sec.place.itm_ptr, SEEK_SET); in output() 1002 SEEK_SET); in output() 1011 (void) fseek(fp, info_header->data_sec.place.itm_ptr, SEEK_SET); in output() 1030 (void) fseek(fp, itm_header->info_hdr.itm_ptr, SEEK_SET); in output() [all …]
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | bstream.c | 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() 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() 249 SEEK_SET) < 0) { in au_stream_rewind() 257 (void) lseek(h->bstr_fd, (long)(sizeof (Wave_filehdr)), SEEK_SET); in wav_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() 511 if (lseek(fd, sizeof (*wav), SEEK_SET) < 0) { in open_wav_read_stream()
|
/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/boot/sys/sys/ |
H A D | unistd.h | 106 #ifndef SEEK_SET 107 #define SEEK_SET 0 /* set file offset to offset */ macro 118 #define L_SET SEEK_SET
|
/illumos-gate/usr/src/test/libc-tests/tests/stdio/ |
H A D | open_memstreamtest.c | 75 if (fseek(fp, OFFSET, SEEK_SET) != 0) { in main() 96 if (fseek(fp, 0, SEEK_SET) != 0) { in main() 156 if (fseek(fp, 8, SEEK_SET) != 0) { in main()
|
H A D | fmemopentest.c | 66 (void) fseek(s2, 0, SEEK_SET); in simpletest() 101 (void) fseek(s1, 0, SEEK_SET); in updatetest() 187 if (fseek(s1, 8, SEEK_SET) != 0) { in seektest()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | hexpand.c | 378 sfseek(wm, 0, SEEK_SET); 459 sfseek(tmp, 0, SEEK_SET); 496 sfseek(tmp, i, SEEK_SET); 538 sfseek(tmp, 0, SEEK_SET); 566 sfseek(tmp2, n, SEEK_SET); 580 sfseek(tmp, n, SEEK_SET); 661 sfseek(tmp, 0, SEEK_SET);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lseek.c | 50 #define SEEK_SET 0 /* Set file pointer to "offset" */ macro 91 case SEEK_SET: in lseek32_common() 225 if (fp->f_vnode->v_type == VREG || stype != SEEK_SET) in lseek32() 228 else if (stype == SEEK_SET) in lseek32() 299 case SEEK_SET: in lseek64()
|
/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/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rep.c | 260 if (lock_register(fd, F_SETLKW, F_WRLCK, 0, SEEK_SET, 0) < 0) { in update_fabric_wwn_list() 328 if (lseek(copy_fd, filesize - 1, SEEK_SET) == -1) { in update_fabric_wwn_list() 448 if (lseek(tmp_fd, size - 1, SEEK_SET) == -1) { in update_fabric_wwn_list() 502 if (lock_register(fd, F_SETLK, F_UNLCK, 0, SEEK_SET, 0) < 0) { in update_fabric_wwn_list() 544 if (lseek(tmp_fd, size - 1, SEEK_SET) == -1) { in update_fabric_wwn_list() 601 if (lock_register(fd, F_SETLK, F_UNLCK, 0, SEEK_SET, 0) < 0) { in update_fabric_wwn_list()
|
/illumos-gate/usr/src/cmd/acpi/common/ |
H A D | acfileio.c | 438 fseek (File, TableOffset, SEEK_SET); in AcGetOneTableFromFile() 510 fseek (File, FileOffset, SEEK_SET); in AcIsFileBinary() 555 fseek (File, TableOffset, SEEK_SET); in AcValidateTableHeader() 558 fseek (File, OriginalOffset, SEEK_SET); in AcValidateTableHeader()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | lseek.c | 83 case SEEK_SET: in lseek() 110 case SEEK_SET: in lseek()
|
H A D | gzipfs.c | 287 if (lseek(zf->zf_rawfd, zf->zf_dataoffset, SEEK_SET) == -1) in zf_rewind() 305 case SEEK_SET: in zf_seek() 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/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() 644 (void) lseek(fd, (off_t)4, SEEK_SET); in decode_au() 781 (void) lseek(fd, (off_t)0, SEEK_SET); in audio_decode_filehdr()
|
/illumos-gate/usr/src/cmd/format/ |
H A D | disk_generic.c | 116 status = llseek(fd, tmpblk, SEEK_SET); in generic_rdwr() 128 status = llseek(fd, tmpblk, SEEK_SET); in generic_rdwr()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | tail.c | 180 sfseek(fp, offset, SEEK_SET); in tailpos() 234 sfseek(out, (Sfoff_t)0, SEEK_SET); in pipetail() 243 sfseek(tmp[0], (Sfoff_t)0, SEEK_SET); in pipetail() 251 sfseek(tmp[1], (Sfoff_t)0, SEEK_SET); in pipetail() 310 sfseek(tp->sp, offset, SEEK_SET); in init() 333 sfseek(op, (Sfoff_t)0, SEEK_SET); in init() 781 sfseek(ip, offset, SEEK_SET); in b_tail() 791 sfseek(op, (Sfoff_t)0, SEEK_SET); in b_tail()
|
H A D | revlib.c | 65 sfseek(in, offset, SEEK_SET); in rev_line() 107 sfseek(in, start, SEEK_SET); in rev_line()
|
/illumos-gate/usr/src/cmd/acpi/acpixtract/ |
H A D | axutils.c | 209 fseek (Handle, 0, SEEK_SET); in AxIsFileAscii() 252 fseek (Handle, 0, SEEK_SET); in AxIsFileAscii() 259 fseek (Handle, 0, SEEK_SET); in AxIsFileAscii()
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 73 lock.l_whence = SEEK_SET; in lock_op() 250 if (fseek(fp, woffs, SEEK_SET) == -1) in zonecfg_delete_scratch() 255 if (fseek(fp, roffs, SEEK_SET) == -1) in zonecfg_delete_scratch()
|
/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/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() 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()
|