Searched defs:off (Results 1 - 25 of 37) sorted by relevance

12

/ast/src/lib/libast/stdio/
H A Dfseek.c31 fseek(Sfio_t* f, long off, int op) argument
33 STDIO_INT(f, "fseek", int, (Sfio_t*, long, int), (f, off, op))
35 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
41 fseek64(Sfio_t* f, int64_t off, int op) argument
43 STDIO_INT(f, "fseek64", int, (Sfio_t*, int64_t, int), (f, off, op))
45 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
H A Dfseeko.c31 fseeko(Sfio_t* f, off_t off, int op) argument
33 STDIO_INT(f, "fseeko", int, (Sfio_t*, off_t, int), (f, off, op))
35 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
41 fseeko64(Sfio_t* f, int64_t off, int op) argument
43 STDIO_INT(f, "fseeko64", int, (Sfio_t*, int64_t, int), (f, off, op))
45 return sfseek(f, (Sfoff_t)off, op|SF_SHARE) >= 0 ? 0 : -1;
/ast/src/lib/libast/tm/
H A Dtmzone.c56 static char off[16]; local
61 strlcpy(fixed.standard = fixed.daylight = off, name, sizeof(off));
/ast/src/cmd/3d/
H A Dread3d.c34 off_t off; local
50 off = LSEEK(fd, 0, SEEK_CUR) - r;
52 fscall(mp, r, MSG_read3d, fd, buf, n, off);
60 off = LSEEK(fd, 0, SEEK_CUR) - r;
62 fscall(mp, MSG_read3d, r, fd, buf, n, off);
H A Dwrite3d.c35 off_t off; local
50 off = LSEEK(fd, 0, SEEK_CUR) - r;
52 fscall(mp, MSG_write3d, r, fd, buf, n, off);
60 off = LSEEK(fd, 0, SEEK_CUR) - r;
62 fscall(mp, MSG_write3d, r, fd, buf, n, off);
H A Dlseek3d.c53 lseek64(int fd, off64_t off, int op) argument
63 if (!fscall(NiL, MSG_seek, 0, fd, off, op))
76 r = (*state.trap.intercept[m].call)(&state.trap.intercept[m], MSG_seek, SYS3D_lseek64, (void*)fd, (void*)&off, (void*)op, NiL, NiL, NiL) ? -1 : off;
80 r = (*seekf)(fd, off, op);
85 fscall(mp, MSG_seek, r, fd, off, op);
88 fscall(mp, MSG_seek, r, fd, off, op);
99 lseek3d(int fd, off_t off, int op) argument
108 if (!fscall(NiL, MSG_seek, 0, fd, off, op))
116 r = (*seekf)(fd, off, o
[all...]
H A Dinit.c116 n += sfsprintf(buf + n, 0, "/off");
935 bprintf(&b, e, " boundary %s\n", state.boundary ? "on" : "off");
986 if (!(fs->flags & FS_ON)) bprintf(&b, e, " off");
1148 long off; local
1173 off = 0;
1176 off = (off << 4) + c - 'a';
/ast/src/lib/libast/misc/
H A Dfs3d.c48 static char off[] = FS3D_off; local
69 else if (!strncmp(v, off, sizeof(off) - 1) && v[sizeof(off)] == '=')
70 cur = FS3D_LIMIT((int)strtol(v + sizeof(off) + 1, NiL, 0));
78 v = off;
84 sfsprintf(val, sizeof(val), "%s=%d", off, FS3D_arg(op));
H A Dtranslate.c66 int off; /* string base offset */ member in struct:__anon297
94 tempuse(Sfio_t* sp, int off) argument
97 return sfstrbase(sp) + off;
H A Derror.c431 long off; local
435 if (off = stktell(stkstd))
586 stkset(stkstd, bas, off);
H A Dstk.c454 register int off=stktell(stream); local
456 if(off)
458 if(off > sizeof(buff))
460 if(!(tp = malloc(off)))
463 if(!sp->stkoverflow || !(tp = (*sp->stkoverflow)(off)))
467 memcpy(tp, stream->_data, off);
480 if(off)
482 _stkseek(stream,off);
483 memcpy(stream->_data, tp, off);
H A Dmagic.c282 * return pointer to data at offset off and size siz
286 getdata(register Magic_t* mp, register long off, register int siz) argument
290 if (off < 0)
292 if (off + siz <= mp->fbsz)
293 return mp->fbuf + off;
294 if (off < mp->xoff || off + siz > mp->xoff + mp->xbsz)
296 if (off + siz > mp->fbmx)
298 n = (off / (SF_BUFSIZE / 2)) * (SF_BUFSIZE / 2);
309 if (off
476 ckmagic(register Magic_t* mp, const char* file, char* buf, char* end, struct stat* st, unsigned long off) argument
2398 off_t off; local
[all...]
/ast/src/cmd/tests/sfio/
H A Dtsync.c93 Sfoff_t off; local
118 if((off = sfmove(sfstdin,sfstdout,(Sfoff_t)SF_UNBOUND,-1)) != 4)
119 terror("Wrong # of bytes %lld", off);
168 if((off = sftell(f2)) != 1)
169 terror("Wrong sfseek location %lld", off);
171 if((off = (Sfoff_t)lseek(sffileno(f2), (off_t)0, 1)) != 1)
172 terror("Wrong lseek location %lld", off);
176 if((off = (Sfoff_t)lseek(dupf2, (off_t)0, 1)) != 1)
177 terror("Wrong lseek location %lld", off);
/ast/src/lib/libz/
H A Dsfdcgzip.c152 sfgzseek(Sfio_t* fp, Sfoff_t off, int op, Sfdisc_t* dp) argument
154 return sfsk(fp, off, op, dp);
/ast/src/lib/libbz/
H A Ddecompress.c441 Int32 ii, jj, kk, pp, lno, off; local
464 off = nn % MTFL_SIZE;
465 pp = s->mtfbase[lno] + off;
/ast/src/lib/libpp/
H A Dppsearch.c183 unsigned long off; local
272 off = strtol(s + VDB_OFFSET, NiL, 10) - sizeof(VDB_DIRECTORY);
274 if (sfseek(sp, off, SEEK_SET) != off)
312 && (dp->info.buffer = sfreserve(sp, off, 0)))
/ast/src/cmd/ksh93/sh/
H A Darith.c272 int off=stktell(shp->stk); local
279 stkseek(shp->stk,off);
280 if(np=nv_search(stkptr(shp->stk,off),shp->fun_tree,0))
H A Dexpand.c100 register int off; local
133 if(off = staktell())
160 for(cp=stakptr(off); *cp; cp++)
197 if(off)
198 stakset(sp,off);
H A Dnvtree.c970 Sfoff_t off = 0; local
1064 off = sftell(outfile);
1079 sfseek(out,off,SEEK_SET);
1080 return((char*)out->_data+off);
H A Dsubshell.c139 Sfoff_t off; local
145 if(off = sftell(sfstdout))
146 write(fds[1],sfsetbuf(sfstdout,(Void_t*)sfstdout,0),(size_t)off);
/ast/src/cmd/std/
H A Dsplit.c341 Sfoff_t off = sftell(in); local
348 if (sfsize(in) - off <= len)
355 sfseek(in, off + n, SEEK_SET);
366 sfseek(in, off, SEEK_SET);
/ast/src/lib/libcmd/
H A Dstty.c471 register int i,off,off2; local
495 off = off2 = 1;
500 off = 0;
506 off = 0;
512 off = 0;
518 off = 0;
524 if(!flags && off==off2)
526 if(!off)
534 off = sp->c_cc[tp->mask];
537 if(!flags && off
636 register int c,off; local
[all...]
/ast/src/cmd/mailx/
H A Dfio.c566 ftruncate(int fd, off_t off) argument
/ast/src/cmd/pax/
H A Ddelta.c978 delread(void* buf, int n, Vdoff_t off, Vddisc_t* vd) argument
983 message((-6, "delread: op=%o buf=%p n=%d off=%I*d nxt=%I*d", dp->op, buf, n, sizeof(off), off, sizeof(dp->offset), dp->offset));
984 if (diff = off - dp->offset)
986 dp->offset = off;
990 error(PANIC, "BIO seek: have=%I*d need=%I*d", sizeof(dp->offset), dp->offset, sizeof(off), off);
994 off += dp->base;
995 if (lseek(dp->fd, off, SEEK_SE
1020 delwrite(void* buf, int n, Vdoff_t off, Vddisc_t* vd) argument
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dtypeset.c415 int off=0,offset = stktell(stkp); local
422 off = stktell(stkp)+1;
432 if(!tdata.tp && off)
434 *stkptr(stkp,off)=0;

Completed in 57 milliseconds

12