Searched defs:pos (Results 1 - 25 of 63) sorted by relevance

123

/ast/src/lib/libast/stdio/
H A Dfgetpos.c31 fgetpos(Sfio_t* f, fpos_t* pos) argument
33 STDIO_INT(f, "fgetpos", int, (Sfio_t*, fpos_t*), (f, pos))
35 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1;
41 fgetpos64(Sfio_t* f, fpos64_t* pos) argument
43 STDIO_INT(f, "fgetpos64", int, (Sfio_t*, fpos64_t*), (f, pos))
45 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1;
H A Dfsetpos.c31 fsetpos(Sfio_t* f, const fpos_t* pos) argument
33 STDIO_INT(f, "fsetpos", int, (Sfio_t*, const fpos_t*), (f, pos))
35 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1;
41 fsetpos64(Sfio_t* f, const fpos64_t* pos) argument
43 STDIO_INT(f, "fsetpos64", int, (Sfio_t*, const fpos64_t*), (f, pos))
45 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1;
/ast/src/lib/libast/hash/
H A Dhashwalk.c41 Hash_position_t* pos; local
43 if (!(pos = hashscan(tab, flags)))
46 while (b = hashnext(pos))
49 hashdone(pos);
H A Dhashscan.c35 * Hash_position_t* pos;
37 * pos = hashscan(tab, flags);
38 * while (b = hashnext(&pos)) ...;
39 * hashdone(pos);
43 * return pos for scan on table
49 register Hash_position_t* pos; local
53 if (!(pos = newof(0, Hash_position_t, 1, 0))) return(0);
54 pos->tab = tab->root->last.table = tab;
55 pos->bucket = ∅
56 pos
87 hashnext(register Hash_position_t* pos) argument
131 hashdone(register Hash_position_t* pos) argument
[all...]
/ast/src/cmd/3d/
H A Dread3d.c35 int pos = 0; local
47 if (!pos)
49 pos = 1;
57 if (!pos)
59 pos = 1;
H A Dwrite3d.c34 int pos = 0; local
47 if (!pos)
49 pos = 1;
57 if (!pos)
59 pos = 1;
/ast/src/lib/libast/port/
H A Dastcopy.c55 off_t pos; local
67 if (!fstat(rfd, &st) && S_ISREG(st.st_mode) && (pos = lseek(rfd, (off_t)0, 1)) != ((off_t)-1))
69 if (pos >= st.st_size) return(0);
70 mapsize = st.st_size - pos;
72 if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos)) != ((caddr_t)-1))
/ast/src/cmd/pax/
H A Dpax-gzip.c31 off_t pos; local
36 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))
43 lseek(ap->io->fd, pos, SEEK_SET);
H A Dpax-xz.c31 off_t pos; local
36 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)
43 lseek(ap->io->fd, pos, SEEK_SET);
H A Dpax-ar.c75 off_t pos; local
79 pos = lseek(ap->io->fd, (off_t)0, SEEK_END);
80 return (pos < 0 || paxseek(pax, ap, pos, SEEK_SET, 0) != pos) ? -1 : 0;
/ast/src/cmd/tests/sfio/
H A Dttmp.c49 Sfoff_t pos; local
66 if (pos = sfseek(f, (Sfoff_t)0, SEEK_CUR))
67 terror("top offset %I*d expected 0", sizeof(pos), pos);
71 if ((nxt = sfseek(f, (Sfoff_t)0, SEEK_CUR)) != (pos + siz))
75 if ((pos = sfseek(f, (Sfoff_t)SF_BUFSIZE, SEEK_CUR)) != (nxt + SF_BUFSIZE))
/ast/src/lib/libardir/
H A Dardir.c34 off_t pos; local
47 if (ar->fd >= 0 && ((pos = lseek(ar->fd, (off_t)0, SEEK_CUR)) < 0 || (n = read(ar->fd, buf, sizeof(buf))) < 0 || lseek(ar->fd, pos, SEEK_SET) != pos))
84 off_t pos; local
92 pos = lseek(ar->fd, (off_t)0, SEEK_CUR);
113 lseek(ar->fd, pos, SEEK_SET);
/ast/src/lib/libast/disc/
H A Dsfdcsubstr.c112 static Sfoff_t streamseek(Sfio_t* f, Sfoff_t pos, int type, Sfdisc_t* disc) argument
114 static Sfoff_t streamseek(f, pos, type, disc)
116 Sfoff_t pos;
149 pos += here;
150 if(pos < 0 || (su->extent >= 0 && pos >= su->extent))
153 return (su->here = pos);
/ast/src/lib/libast/string/
H A Dstrexpr.c81 char* pos; local
246 pos = --ex->nextchr;
249 if (ex->nextchr == pos) error(ex, "syntax error");
/ast/src/cmd/std/
H A Dtsort.c102 Hash_position_t* pos; local
138 if (pos = hashscan(tab, 0))
140 while (hashnext(pos))
141 visit((Node_t*)pos->bucket);
142 hashdone(pos);
/ast/src/lib/libcoshell/
H A Dcoinit.c40 exid(Sfio_t* sp, const char* pre, const char* name, const char* pos) argument
58 sfputr(sp, pos, -1);
/ast/src/lib/libdss/
H A Ddssopt.c218 long pos; local
286 pos = sfstrtell(sp);
386 if (sfstrtell(sp) == pos)
/ast/src/lib/librecsort/
H A Drslist.c31 int pos; member in struct:_union_s
81 if(un->pos < h->pos || !(p=h, h=h->equi) )
124 uarray[p].pos = p;
188 if(un->pos < u->pos ||
/ast/src/cmd/paxlib/arj/
H A Darj.c198 off_t pos; local
206 pos = paxseek(pax, ap, 0, SEEK_CUR, 0) + f->st->st_size;
237 if (paxseek(pax, ap, pos, SEEK_SET, 0) != pos)
/ast/src/cmd/paxlib/lha/
H A Dlha.c200 off_t pos; local
208 pos = paxseek(pax, ap, 0, SEEK_CUR, 0) + f->st->st_size;
242 if (paxseek(pax, ap, pos, SEEK_SET, 0) != pos)
/ast/src/cmd/paxlib/rar/
H A Drar.c211 off_t pos; local
219 pos = paxseek(pax, ap, 0, SEEK_CUR, 0) + f->st->st_size;
250 if (paxseek(pax, ap, pos, SEEK_SET, 0) != pos)
/ast/src/lib/libvcodex/Vcwindow/
H A Dvcwngram.c58 Vcchar_t* data, size_t dtsz, size_t pos, double stop)
60 double vcwngmatch(mtch, dfreq, size, data, dtsz, pos, stop)
66 size_t pos; /* starting position of search */
84 if(pos > (dtsz -= size) )
85 pos = dtsz;
87 vcwngfreq(rfreq, data+pos, size);
102 bestp = pos;
109 lldt = rldt = data + pos;
110 lrdt = rrdt = data + pos + size - NG_BYTE;
57 vcwngmatch(int* mtch, size_t* dfreq, size_t size, Vcchar_t* data, size_t dtsz, size_t pos, double stop) argument
/ast/src/lib/libbz/
H A Dcompress.c414 UChar pos[BZ_N_GROUPS], ll_i, tmp2, tmp; local
415 for (i = 0; i < nGroups; i++) pos[i] = i;
419 tmp = pos[j];
423 tmp = pos[j];
424 pos[j] = tmp2;
426 pos[0] = tmp;
H A Ddecompress.c327 UChar pos[BZ_N_GROUPS], tmp, v; local
328 for (v = 0; v < nGroups; v++) pos[v] = v;
332 tmp = pos[v];
333 while (v > 0) { pos[v] = pos[v-1]; v--; }
334 pos[0] = tmp;
/ast/src/lib/libcmd/
H A Dcmp.c154 Sfoff_t pos = 0; local
192 pos += c1;
215 sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u\n", file1, file2, sizeof(pos), pos - (last - p1), sizeof(lines), lines);
218 sfprintf(sfstdout, "%6I*d", sizeof(pos), pos - (last - p1));
224 sfprintf(sfstdout, "%6I*d", sizeof(pos), pos - (last - p1));
226 sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u", file1, file2, sizeof(pos), pos
[all...]

Completed in 51 milliseconds

123