Searched refs:SEEK_END (Results 1 - 25 of 58) sorted by relevance

123

/ast/src/cmd/tests/sfio/
H A Dterrno.c37 sfseek(fr, (Sfoff_t)0, SEEK_END);
60 if(sfseek(fw, (Sfoff_t)0, SEEK_SET|SEEK_CUR|SEEK_END) >= 0)
79 if(sfseek(fw, (Sfoff_t)0, SEEK_END) >= 0)
H A Dtsfstr.c43 if(!(s = sfstrseek(fp, 0, SEEK_END)) )
/ast/src/cmd/pax/
H A Dpax-gzip.c36 if ((pos = lseek(ap->io->fd, (off_t)0, SEEK_CUR)) < 0 || lseek(ap->io->fd, (off_t)-4, SEEK_END) <= 0 || read(ap->io->fd, num, sizeof(num)) != sizeof(num))
H A Dpax-xz.c36 if ((pos = lseek(ap->io->fd, (off_t)0, SEEK_CUR)) < 0 || lseek(ap->io->fd, (off_t)-sizeof(foot), SEEK_END) <= 0 || read(ap->io->fd, foot, sizeof(foot)) != sizeof(foot) || foot[4] != 0x59 || foot[5] != 0x5A)
H A Dpax-ar.c79 pos = lseek(ap->io->fd, (off_t)0, SEEK_END);
H A Dpax-vdb.c69 if (lseek(ap->io->fd, (off_t)(-(VDB_LENGTH + 1)), SEEK_END) <= 0)
170 ap->io->count = lseek(ap->io->fd, (off_t)0, SEEK_END);
/ast/src/lib/libast/sfio/
H A Dsfseek.c93 if((type &= (SEEK_SET|SEEK_CUR|SEEK_END)) != SEEK_SET &&
94 type != SEEK_CUR && type != SEEK_END )
120 else if(type == SEEK_END)
146 if(!hardseek && type < SEEK_END && !(f->flags&SF_APPENDWR) )
161 if(type == SEEK_END || (f->mode&SF_WRITE) )
162 { if((hardseek&SF_PUBLIC) || type == SEEK_END)
H A Dsfsk.c61 if((type &= (SEEK_SET|SEEK_CUR|SEEK_END)) > SEEK_END)
H A Dsfsize.c61 if((e = SFSK(f,0,SEEK_END,disc)) >= 0)
H A Dsfmove.c98 { sk = n > 0 ? SFSEEK(fr, n, SEEK_CUR) : SFSEEK(fr, 0, SEEK_END);
H A Dsfwr.c182 { f->here = SFSK(f,(Sfoff_t)0,SEEK_END,dc);
/ast/src/lib/libtk/unix/
H A DtkUnixPort.h137 #ifndef SEEK_END
138 # define SEEK_END 2 macro
/ast/src/lib/libast/comp/
H A Dopen.c106 else if ((op & O_APPEND) && lseek(fd, 0L, SEEK_END) == -1L)
/ast/src/lib/libcmd/
H A Dcomm.c130 sfseek(in1,(Sfoff_t)0,SEEK_END);
197 sfseek(sfstdin,(Sfoff_t)0,SEEK_END);
H A Drevlib.c54 if((offset = sfseek(in,(off_t)0,SEEK_END)) <= start)
/ast/src/cmd/mailx/
H A Dedit.c112 fseek(state.msg.op, (off_t)0, SEEK_END);
221 if (fseek(ep, (off_t)-2, SEEK_END) < 0)
/ast/src/lib/libast/disc/
H A Dsfdcdos.c309 case SEEK_END:
311 return(sfsk(iop,offset,SEEK_END,disc));
340 if(whence==SEEK_END && offset<0)
349 if(whence==SEEK_END)
H A Dsfdcsubstr.c134 case SEEK_END:
139 if((here = sfsk(f,(Sfoff_t)0,SEEK_END,disc)) < 0)
H A Dsfdcseekable.c127 case SEEK_END:
/ast/src/lib/libast/aso/
H A Daso-fcntl.c130 if ((size = lseek(fd, 0, SEEK_END)) <= sizeof(references))
/ast/src/cmd/ksh93/edit/
H A Dhistory.c268 hsize=lseek(fd,(off_t)0,SEEK_END);
631 off_t last = sfseek(hp->histfp,(off_t)0,SEEK_END);
810 if((cur = lseek(sffileno(iop),(off_t)0,SEEK_END)) <0)
849 lseek(acctfd, (off_t)0, SEEK_END);
1086 sfseek(hp->histfp,(off_t)0,SEEK_END);
1205 if(lseek(oldfd,(off_t)0,SEEK_END) < hp->histcnt)
/ast/src/cmd/ksh93/sh/
H A Dparse.c785 t->funct.functloc = sfseek(lexp->sh->heredocs,(Sfoff_t)0, SEEK_END);
2070 off1 = sfseek(lexp->kiafile,(off_t)0,SEEK_END);
2073 off2 = sfseek(lexp->kiafile,(off_t)0,SEEK_END);
/ast/src/cmd/paxlib/zip/
H A Dzip.c145 if (paxseek(pax, ap, -(off_t)ZIP_END_HEADER, SEEK_END, 1) > 0 &&
297 paxseek(pax, ap, (off_t)0, SEEK_END, 1);
/ast/src/lib/libast/astsa/
H A Dsfstr.c179 : (m) == SEEK_END ? \
/ast/src/cmd/ie/
H A Dio.h193 # define SEEK_END 2 /* EOF offset */ macro

Completed in 56 milliseconds

123