/ast/src/cmd/dsslib/ip_t/ |
H A D | ptaddresses.c | 33 Ptprefix_t* ap; local 36 for (ap = (Ptprefix_t*)dtfirst(a->dict); ap; ap = (Ptprefix_t*)dtnext(a->dict, ap)) 37 n += (Ptcount_t)(ap->max - ap->min) + 1;
|
H A D | ptrebit.c | 33 Ptprefix_t* ap; local 36 for (ap = (Ptprefix_t*)dtfirst(a->dict); ap; ap = (Ptprefix_t*)dtnext(a->dict, ap)) 37 if (!ptinsert(b, PTMIN(ap->min, m), PTMAX(ap->max, m)))
|
H A D | ptcover.c | 34 Ptprefix_t* ap; local 39 ap = (Ptprefix_t*)dtfirst(a->dict); 41 while (ap && bp) 43 if (ap->min > bp->max) 47 if (ap->max >= bp->min && !ptinsert(t, ap->min, ap->max)) 49 ap = (Ptprefix_t*)dtnext(a->dict, ap);
|
H A D | ptcopy.c | 33 Ptprefix_t* ap; local 38 for (ap = (Ptprefix_t*)dtfirst(a->dict); ap; ap = (Ptprefix_t*)dtnext(a->dict, ap)) 39 dtinsert(b->dict, ap);
|
H A D | ptvcopy.c | 33 Ptvprefix_t* ap; local 38 for (ap = (Ptvprefix_t*)dtfirst(a->dict); ap; ap = (Ptvprefix_t*)dtnext(a->dict, ap)) 39 dtinsert(b->dict, ap);
|
H A D | ptequal.c | 32 Ptprefix_t* ap; local 37 ap = (Ptprefix_t*)dtfirst(a->dict); 39 while (ap && bp) 41 if (ap->min != bp->min) 43 if (ap->max != bp->max) 45 ap = (Ptprefix_t*)dtnext(a->dict, ap); 48 return !ap && !bp;
|
H A D | ptinvert.c | 33 Ptprefix_t* ap; local 39 for (ap = (Ptprefix_t*)dtfirst(a->dict); ap; ap = (Ptprefix_t*)dtnext(a->dict, ap)) 41 if (m < ap->min && !ptinsert(t, m, ap->min - 1)) 43 m = ap->max + 1;
|
H A D | ptvequal.c | 32 Ptvprefix_t* ap; local 37 ap = (Ptvprefix_t*)dtfirst(a->dict); 39 while (ap && bp) 41 if (fvcmp(a->size, ap->min, bp->min)) 43 if (fvcmp(a->size, ap->max, bp->max)) 45 ap = (Ptvprefix_t*)dtnext(a->dict, ap); 48 return !ap && !bp;
|
H A D | ptsubset.c | 32 Ptprefix_t* ap; local 35 ap = (Ptprefix_t*)dtfirst(a->dict); 37 while (ap) 39 if (!bp || ap->max < bp->min || ap->min < bp->min) 41 if (ap->max < bp->max) 42 ap = (Ptprefix_t*)dtnext(a->dict, ap); 43 else if (ap->max > bp->max) 47 ap [all...] |
H A D | ptvsubset.c | 32 Ptvprefix_t* ap; local 35 ap = (Ptvprefix_t*)dtfirst(a->dict); 37 while (ap) 39 if (!bp || fvcmp(a->size, ap->max, bp->min) < 0 || fvcmp(a->size, ap->min, bp->min) < 0) 41 if (fvcmp(a->size, ap->max, bp->max) < 0) 42 ap = (Ptvprefix_t*)dtnext(a->dict, ap); 43 else if (fvcmp(a->size, ap->max, bp->max) > 0) 47 ap [all...] |
H A D | ptintersect.c | 33 Ptprefix_t* ap; local 38 ap = (Ptprefix_t*)dtfirst(a->dict); 40 while (ap && bp) 42 if (ap->max < bp->min) 43 ap = (Ptprefix_t*)dtnext(a->dict, ap); 44 else if (ap->min > bp->max) 48 if (!ptinsert(t, (ap->min > bp->min) ? ap->min : bp->min, (ap [all...] |
H A D | ptvintersect.c | 33 Ptvprefix_t* ap; local 38 ap = (Ptvprefix_t*)dtfirst(a->dict); 40 while (ap && bp) 42 if (fvcmp(a->size, ap->max, bp->min) < 0) 43 ap = (Ptvprefix_t*)dtnext(a->dict, ap); 44 else if (fvcmp(a->size, ap->min, bp->max) > 0) 48 if (!ptvinsert(t, fvcmp(a->size, ap->min, bp->min) > 0 ? ap->min : bp->min, fvcmp(a->size, ap [all...] |
H A D | ptdifference.c | 33 Ptprefix_t* ap; local 40 ap = (Ptprefix_t*)dtfirst(a->dict); 42 while (ap) 44 if (!bp || ap->max < bp->min) 46 if (!ptinsert(t, ap->min, ap->max)) 48 ap = (Ptprefix_t*)dtnext(a->dict, ap); 50 else if (ap->min > bp->max) 54 if (ap [all...] |
H A D | ptvaddresses.c | 32 Ptvprefix_t* ap; local 36 for (ap = (Ptvprefix_t*)dtfirst(a->dict); ap; ap = (Ptvprefix_t*)dtnext(a->dict, ap)) 38 fvsub(a->size, a->r[0], ap->max, ap->min);
|
H A D | ptvrebit.c | 33 Ptvprefix_t* ap; local 36 for (ap = (Ptvprefix_t*)dtfirst(a->dict); ap; ap = (Ptvprefix_t*)dtnext(a->dict, ap)) 37 if (!ptvinsert(b, ptvmin(a->size, b->r[0], ap->min, m), ptvmin(a->size, b->r[1], ap->max, m)))
|
/ast/src/cmd/kshlib/dbm_t/ |
H A D | dbm_t.c | 80 Namarr_t *ap; local 83 ap = nv_arrayptr(np); 84 dp = ap->hdr.disc; 85 nv_disc(np,&ap->hdr,NV_POP); 105 static void dbm_setname(struct dbm_array *ap) argument 107 if(((char*)ap->key.dptr)[ap->key.dsize-ap->addzero]) 109 ap->namlen = check_size(&ap 118 dbm_get(struct dbm_array *ap) argument 158 dbm_put(struct dbm_array *ap) argument 180 register struct dbm_array *ap = (struct dbm_array*)nv_arrayptr(np); local 337 struct dbm_array *ap; local [all...] |
/ast/src/lib/libast/misc/ |
H A D | errormsg.c | 35 va_list ap; local 37 va_start(ap, level); 38 errorv(dictionary, level, ap); 39 va_end(ap);
|
H A D | errorf.c | 35 va_list ap; local 37 va_start(ap, level); 38 errorv((discipline && handle) ? *((char**)handle) : (char*)handle, (discipline || level < 0) ? level : (level | ERROR_LIBRARY), ap); 39 va_end(ap);
|
/ast/src/lib/libpp/ |
H A D | pperror.c | 33 va_list ap; local 35 va_start(ap, level); 36 errorv(pp.pass, level, ap); 37 va_end(ap);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_attr.c | 27 int get_attr(f, ap) 29 register attr_t* ap; 31 if (sfread(f, (char *)ap, sizeof(attr_t)) != sizeof(attr_t) || !ISRSCS(ap))
|
H A D | vcs_message.c | 26 static void tracev(int level, va_list ap) argument 34 format = va_arg(ap, char*); 35 sfvprintf(sfstdout, format, ap); 42 va_list ap; local 44 va_start(ap, level); 45 tracev(level, ap); 46 va_end(ap);
|
/ast/src/cmd/pax/ |
H A D | bio.c | 130 blokread(register Archive_t* ap, char* buf, int n) 136 if (!ap->io->blokflag) 138 ap->io->blokeof = 0; 139 ap->io->blokflag = 1; 140 if ((i = read(ap->io->fd, buf, ap->io->blok ? 4 : n)) < 4 || !strneq(buf, "\002\014\017\013", 4)) 142 if (ap->io->blok) 143 error(3, "%s: input archive is not a BLOK file", ap->name); 146 if (i > 4 && lseek(ap->io->fd, (off_t)4, SEEK_SET) != 4) 147 error(3, "%s: cannot seek on input archive BLOK file -- use --blok=i", ap 274 binit(register Archive_t* ap) argument 303 bskip(register Archive_t* ap) argument 377 bfill(register Archive_t* ap, int must) argument 408 chunk(register Archive_t* ap, char* t, char* f, register size_t n, char* o) argument 436 bread(register Archive_t* ap, void* ob, off_t n, off_t m, int must) argument 534 bunread(register Archive_t* ap, void* b, register int n) argument 557 bget(register Archive_t* ap, register off_t n, off_t* p) argument 654 bsave(register Archive_t* ap) argument 667 backup(register Archive_t* ap) argument 717 bflushin(register Archive_t* ap, int hard) argument 733 bseek(register Archive_t* ap, off_t pos, int op, int hard) argument 782 bflushout(register Archive_t* ap) argument 812 bwrite(register Archive_t* ap, void* ab, register off_t n) argument 918 bput(register Archive_t* ap, register off_t n) argument 1010 newio(register Archive_t* ap, int c, int n) argument [all...] |
H A D | format.c | 38 getprologue(register Archive_t* ap) argument 41 register File_t* f = &ap->file; 47 message((-6, "getprologue() volume=%d eof=%d", ap->volume, ap->io->eof)); 48 if (ap->io->eof || state.volume && (ap->io->mode & O_ACCMODE) == O_WRONLY) 51 ap->entry = 0; 52 ap->format = 0; 53 ap->swapio = 0; 54 ap 264 setinfo(register Archive_t* ap, register File_t* f) argument 286 putinfo(register Archive_t* ap, char* file, unsigned long mtime, unsigned long checksum) argument 324 putprologue(register Archive_t* ap, int append) argument 350 getepilogue(register Archive_t* ap) argument 431 putepilogue(register Archive_t* ap) argument 494 getkeyid(Archive_t* ap, File_t* f, int index, uid_t* ip, int d) argument 515 getkeyname(Archive_t* ap, File_t* f, int index, char** sp, uid_t* ip, int d) argument 539 getkeysize(Archive_t* ap, File_t* f, int index, off_t* zp) argument 565 getkeytime(Archive_t* ap, File_t* f, int index) argument 613 getheader(register Archive_t* ap, register File_t* f) argument 726 putheader(register Archive_t* ap, register File_t* f) argument 787 gettrailer(register Archive_t* ap, File_t* f) argument 816 puttrailer(register Archive_t* ap, register File_t* f) argument [all...] |
/ast/src/lib/libast/uwin/ |
H A D | err.c | 48 errmsg(int level, int code, const char* fmt, va_list ap) argument 63 errorv(fmt, level|ERROR_NOID, ap); 68 extern void verr(int code, const char* fmt, va_list ap) argument 70 errmsg(ERROR_ERROR|ERROR_SYSTEM, code, fmt, ap); 75 va_list ap; local 77 va_start(ap, fmt); 78 errmsg(ERROR_ERROR|ERROR_SYSTEM, code, fmt, ap); 79 va_end(ap); 82 extern void verrx(int code, const char* fmt, va_list ap) argument 84 errmsg(ERROR_ERROR, code, fmt, ap); 89 va_list ap; local 96 vwarn(const char* fmt, va_list ap) argument 103 va_list ap; local 110 vwarnx(const char* fmt, va_list ap) argument 117 va_list ap; local [all...] |
/ast/src/lib/libast/string/ |
H A D | strsort.c | 42 register char** ap; local 51 ap = &argv[i]; 52 if ((*fn)(ap[m], ap[0]) >= 0) break; 53 s = ap[m]; 54 ap[m] = ap[0]; 55 ap[0] = s;
|