Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso-fcntl.c62 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 Dsfseek.c93 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 Dsfdcsubstr.c69 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 Dsfdcdos.c304 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 Dassemble.c949 (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 Dbstream.c191 (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 Dthread_name.c195 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 Dunistd.h106 #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 Dopen_memstreamtest.c75 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 Dfmemopentest.c66 (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 Dhexpand.c378 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 Dlseek.c50 #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 Drw_mmap.c136 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 Dcfga_rep.c260 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 Dacfileio.c438 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 Dlseek.c83 case SEEK_SET: in lseek()
110 case SEEK_SET: in lseek()
H A Dgzipfs.c287 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 Dfilehdr.c146 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 Ddisk_generic.c116 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 Dtail.c180 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 Drevlib.c65 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 Daxutils.c209 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 Dscratchops.c73 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.c140 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 Dsmbsrv_pcap.c171 (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()

12345678910>>...15