/ast/src/lib/libast/hash/ |
H A D | hashscan.c | 35 * 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...] |
H A D | hashwalk.c | 41 Hash_position_t* pos; local 43 if (!(pos = hashscan(tab, flags))) 46 while (b = hashnext(pos)) 49 hashdone(pos);
|
/ast/src/lib/libast/stdio/ |
H A D | fgetpos.c | 31 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 D | fsetpos.c | 31 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/cmd/3d/ |
H A D | read3d.c | 35 int pos = 0; local 47 if (!pos) 49 pos = 1; 57 if (!pos) 59 pos = 1;
|
H A D | write3d.c | 34 int pos = 0; local 47 if (!pos) 49 pos = 1; 57 if (!pos) 59 pos = 1;
|
H A D | dir3d.c | 245 seekdir3d(register DIR* dirp, long pos) argument 253 SEEKDIR(dirp, pos); 256 if (pos) 258 lev = GETLEV(pos); 259 pos = GETOFF(pos); 272 SEEKDIR(dirp->view[n].dirp, pos); 377 seekdir643d(register DIR* dirp, off64_t pos) argument 385 SEEKDIR64(dirp, pos); 388 if (pos) [all...] |
/ast/src/lib/libast/port/ |
H A D | astcopy.c | 55 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 D | pax-gzip.c | 31 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 D | pax-xz.c | 31 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 D | pax-ar.c | 75 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/std/ |
H A D | tsort.c | 102 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/libardir/ |
H A D | ardir.c | 34 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/libcmd/ |
H A D | cmp.c | 154 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...] |
/ast/src/cmd/tests/sfio/ |
H A D | ttmp.c | 49 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/cmd/ksh93/sh/ |
H A D | streval.c | 577 const char *pos; local 843 pos = vp->nextchr; 850 if(pos[1]=='\\' && pos[2]=='\'' && pos[3]!='\'') 856 d = chresc(pos+1,(char**)&vp->nextchr); 863 if (vp->nextchr == pos) 866 vp->errstr = pos;
|
/ast/src/lib/libvcodex/Vcwindow/ |
H A D | vcwngram.c | 58 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
|
H A D | vcwvote.c | 105 Sfoff_t pos, l, r, max; local 112 pos = ((Sfoff_t)fr->srcf->idx[i])*((Sfoff_t)NG_SIZE); 113 if((l = pos - IDXITVL) < 0) 115 if((r = pos + IDXITVL) > max) 120 { pos = ((Sfoff_t)fr->srcf->idx[i])*((Sfoff_t)NG_SIZE); 121 if(pos-IDXITVL >= r) 123 if((r = pos+IDXITVL) > max) 145 Sfoff_t pos, cpos; local 164 if((pos = here - (size+size/8)) < 0) 165 pos [all...] |
/ast/src/cmd/cs/ |
H A D | pid.c | 109 Hash_position_t* pos; local 136 if (pos = hashscan(state->pids, 0)) 138 while (pp = (Pid_t*)hashnext(pos)) 145 hashdone(pos); 221 register Hash_position_t* pos; local 230 if (pos = hashscan(state->pids, 0)) 232 while (pp = (Pid_t*)hashnext(pos)) 258 hashdone(pos);
|
/ast/src/lib/libtk/library/ |
H A D | text.tcl | 413 set pos [$w index @$x,$y] 414 set bbox [$w bbox $pos] 416 return $pos 419 return $pos 421 $w index "$pos + 1 char" 585 # pos - The desired new position for the cursor in the window. 587 proc tkTextSetCursor {w pos} { 590 if [$w compare $pos == end] { 591 set pos {end - 1 chars} 593 $w mark set insert $pos [all...] |
/ast/src/lib/libast/disc/ |
H A D | sfdcsubstr.c | 112 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/cmd/kshlib/dbm_t/ |
H A D | dbm_t.c | 60 Namval_t *pos; member in struct:dbm_array 207 if(ap->pos) 211 ap->pos = ap->cur = 0; 216 ap->cur = ap->pos = 0; 232 if(!ap->pos) 234 ap->pos = &ap->node; 241 ap->cur = ap->pos; 246 ap->pos = 0; 259 ap->pos = 0; 262 if(ap->pos) [all...] |
/ast/src/cmd/nmake/ |
H A D | expand.c | 445 long pos; local 449 pos = sfstrtell(xp); 458 if (sfstrtell(xp) > pos) 496 long pos; local 512 pos = sfstrtell(xp); 514 x = sfstrseek(xp, pos, SEEK_SET); 515 pos += canon(x) - x; 516 sfstrseek(xp, pos, SEEK_SET); 526 pos = sfstrtell(xp); 535 x = sfstrseek(xp, pos, SEEK_SE 692 long pos; local 723 Hash_position_t* pos; local 783 Hash_position_t* pos; local 999 long pos; local 1700 long pos; local 2204 long pos; local 3339 Hash_position_t* pos; local 3403 Hash_position_t* pos; local 4478 long pos; local [all...] |
/ast/src/cmd/cs/vcs_src/ |
H A D | ifs_func.c | 63 SecurityDataAccess( pos, data, len ) 64 int pos; 80 if( pos <= 0 ) { /* write security data */ 81 pos = lseek( FileNum, 0, SEEK_END ); 85 if( lseek( FileNum, pos, SEEK_SET ) == -1 ) 90 return pos;
|
/ast/src/lib/libtksh/src/ |
H A D | list.c | 264 ssize_t pos[20]; 306 exp->n = strgrpmatch(string, exp->re, exp->pos, 10, STR_MAXIMAL); 315 dprintf(("From %d to %d\n", exp->pos[2*i], 316 exp->pos[2*i+1])); 329 *startPtr = exp->str + exp->pos[2*index]; 330 *endPtr = exp->str + exp->pos[2*index+1];
|