Home
last modified time | relevance | path

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

12345678910>>...14

/titanic_41/usr/src/lib/libast/common/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)
H A Dsfpurge.c62 (void)SFSK(f,f->here,SEEK_SET,f->disc);
85 (void)SFSK(f,f->here,SEEK_SET,f->disc);
/titanic_41/usr/src/lib/libdscfg/common/
H A Dcfg_lockdlck.c71 lk.l_whence = SEEK_SET; in cfg_filelock()
92 lk.l_whence = SEEK_SET; in cfg_fileunlock()
105 lseek(local_lockfd, off, SEEK_SET); in cfg_readpid()
113 lseek(local_lockfd, off, SEEK_SET); in cfg_writepid()
/titanic_41/usr/src/lib/libast/common/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);
H A Dsfdcseekable.c121 case SEEK_SET:
159 return sfseek(sf,addr,SEEK_SET) + sk->discard;
188 sfseek(sk->shadow,(Sfoff_t)0,SEEK_SET);
/titanic_41/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()
/titanic_41/usr/src/cmd/geniconvtbl/
H A Dassemble.c951 (void) fseek(fp, 0, SEEK_SET); in output()
955 (void) fseek(fp, info_header->str_sec.place.itm_ptr, SEEK_SET); in output()
963 (void) fseek(fp, info_header->direc_tbl_sec.place.itm_ptr, SEEK_SET); in output()
971 (void) fseek(fp, info_header->cond_tbl_sec.place.itm_ptr, SEEK_SET); in output()
979 (void) fseek(fp, info_header->map_tbl_sec.place.itm_ptr, SEEK_SET); in output()
987 (void) fseek(fp, info_header->op_tbl_sec.place.itm_ptr, SEEK_SET); in output()
995 (void) fseek(fp, info_header->range_tbl_sec.place.itm_ptr, SEEK_SET); in output()
1004 SEEK_SET); in output()
1013 (void) fseek(fp, info_header->data_sec.place.itm_ptr, SEEK_SET); in output()
1032 (void) fseek(fp, itm_header->info_hdr.itm_ptr, SEEK_SET); in output()
[all …]
/titanic_41/usr/src/lib/libshell/common/edit/
H A Dhexpand.c376 sfseek(wm, 0, SEEK_SET);
456 sfseek(tmp, 0, SEEK_SET);
493 sfseek(tmp, i, SEEK_SET);
535 sfseek(tmp, 0, SEEK_SET);
563 sfseek(tmp2, n, SEEK_SET);
577 sfseek(tmp, n, SEEK_SET);
658 sfseek(tmp, 0, SEEK_SET);
/titanic_41/usr/src/uts/common/syscall/
H A Dlseek.c52 #define SEEK_SET 0 /* Set file pointer to "offset" */ macro
93 case SEEK_SET: in lseek32_common()
227 if (fp->f_vnode->v_type == VREG || stype != SEEK_SET) in lseek32()
230 else if (stype == SEEK_SET) in lseek32()
301 case SEEK_SET: in lseek64()
/titanic_41/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()
/titanic_41/usr/src/lib/libcmd/common/
H A Dtail.c177 sfseek(fp, offset, SEEK_SET); in tailpos()
222 sfseek(out, (Sfoff_t)0, SEEK_SET); in pipetail()
231 sfseek(tmp[0], (Sfoff_t)0, SEEK_SET); in pipetail()
239 sfseek(tmp[1], (Sfoff_t)0, SEEK_SET); in pipetail()
299 sfseek(tp->sp, offset, SEEK_SET); in init()
322 sfseek(op, (Sfoff_t)0, SEEK_SET); in init()
753 sfseek(ip, offset, SEEK_SET); in b_tail()
763 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()
/titanic_41/usr/src/lib/libbc/inc/include/
H A Dunistd.h93 #ifndef SEEK_SET
94 #define SEEK_SET 0 /* Set file pointer to "offset" */ macro
/titanic_41/usr/src/cmd/format/
H A Ddisk_generic.c132 status = llseek(fd, tmpblk, SEEK_SET);
144 status = llseek(fd, tmpblk, SEEK_SET);
/titanic_41/usr/src/cmd/audio/utilities/
H A Dfilehdr.c148 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_aiff_filesize()
160 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_aiff_filesize()
172 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_aiff_filesize()
198 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_au_filesize()
231 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_wav_filesize()
243 if (lseek(fd, offset, SEEK_SET) < 0) { in audio_rewrite_wav_filesize()
277 } else if ((lseek(fd, (off_t)0, SEEK_SET) < 0) || in audio_rewrite_filesize()
646 (void) lseek(fd, (off_t)4, SEEK_SET); in decode_au()
783 (void) lseek(fd, (off_t)0, SEEK_SET); in audio_decode_filehdr()
/titanic_41/usr/src/lib/libzonecfg/common/
H A Dscratchops.c75 lock.l_whence = SEEK_SET; in lock_op()
252 if (fseek(fp, woffs, SEEK_SET) == -1) in zonecfg_delete_scratch()
257 if (fseek(fp, roffs, SEEK_SET) == -1) in zonecfg_delete_scratch()
/titanic_41/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()
/titanic_41/usr/src/head/
H A Dfcntl.h50 #ifndef SEEK_SET
51 #define SEEK_SET 0 /* Set file pointer to "offset" */ macro
/titanic_41/usr/src/lib/libc/port/gen/
H A Dseekdir.c66 (void) lseek(dirp->dd_fd, loc, SEEK_SET); in seekdir()
109 (void) lseek64(dirp->dd_fd, loc, SEEK_SET); in seekdir64()
/titanic_41/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c74 lock.l_whence = SEEK_SET; in _check_daemon_lock()
153 lock.l_whence = SEEK_SET; in _enter_daemon_lock()
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dlcl_pr.c104 #ifndef SEEK_SET
105 # define SEEK_SET 0 macro
185 if (fseek(pvt->fp, 0L, SEEK_SET) == 0) in pr_rewind()
/titanic_41/usr/src/lib/libnsctl/common/
H A Dcache.c112 lk.l_whence = SEEK_SET;
140 if (lseek(id, 0, SEEK_SET) < 0)
191 lk.l_whence = SEEK_SET;
/titanic_41/usr/src/stand/lib/sa/
H A Dstdio.c269 (void) lseek(stream->_file, stream->_offset, SEEK_SET); in fread()
289 case SEEK_SET: in fseek()
311 result = lseek(stream->_file, new_offset, SEEK_SET); in fseek()
/titanic_41/usr/src/lib/libpp/common/
H A Dppinput.c135 if (sfseek(pp.member->archive->info.sp, pp.member->offset, SEEK_SET) != pp.member->offset) in pppush()
163 if (lseek(cur->fd, 0L, SEEK_END) > 0 && !lseek(cur->fd, 0L, SEEK_SET)) in pppush()
492 if (sfseek(sp, file_offset + 22, SEEK_SET) != file_offset + 22 || !(s = sfgetr(sp, '\n', 1))) in ppload()
524 if ((n = sfseek(sp, p, SEEK_SET)) != p) in ppload()
535 if (sfseek(sp, index_offset, SEEK_SET) != index_offset) in ppload()
573 if (sfseek(sp, file_offset + keep_begin, SEEK_SET) != file_offset + keep_begin) in ppload()
628 if (sfseek(sp, macro_offset, SEEK_SET) != macro_offset) in ppload()

12345678910>>...14