/ast/src/cmd/sortlib/sync/ |
H A D | test.c | 37 E00(int index, Rsobj_t* rp, Rsobj_t* dp, void** data) argument 74 switch (rp->data[1]) 77 rp->data[1] = 'z'; 80 rp->data[1] = 'x'; 86 rp->data[1] = 'u'; 94 sfprintf(sfstderr, "sort exit E%02d %lu %c [%u] \"%-.*s\"\n", index, state->count, state->pretty, rp->datalen, rp->datalen ? (rp->datalen - 1) : 0, rp->data); 102 extern int E11(Rsobj_t* rp, Rsobj_ argument 103 E14(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 104 E15(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 105 E16(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 106 E17(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 107 E21(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 108 E25(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 109 E27(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 110 E31(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 111 E32(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 112 E35(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 113 E37(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 114 E38(Rsobj_t* rp, Rsobj_t* dp, void** state) argument 115 E39(Rsobj_t* rp, Rsobj_t* dp, void** state) argument [all...] |
/ast/src/cmd/dsslib/bgp/ |
H A D | bgp-ciscov6.c | 124 register Bgproute_t* rp; local 130 rp = &state->route; 139 rp->set = 0; 140 rp->attr = BGP_valid; 141 rp->type = BGP_TYPE_table_dump; 142 rp->origin = BGP_ORIGIN_incomplete; 159 if (!strtoip6(t, NiL, rp->prefixv6, rp->prefixv6 + IP6BITS)) 167 if (!strtoip6(t, NiL, rp->hop.v6, NiL)) 177 rp [all...] |
H A D | bgp-cisco.c | 115 register Bgproute_t* rp; local 126 rp = &state->route; 137 rp->attr = 0; 138 rp->type = BGP_TYPE_table_dump; 139 rp->origin = BGP_ORIGIN_incomplete; 144 rp->attr |= BGP_best; 147 rp->attr |= BGP_atomic; 150 rp->attr |= BGP_damped; 153 rp->attr |= BGP_history; 156 rp 299 register Bgproute_t* rp = (Bgproute_t*)record->data; local [all...] |
H A D | bgp-table.c | 112 register Bgproute_t* rp; local 121 rp = &state->route[state->index = !state->index]; 128 rp->set = 0; 129 rp->type = BGP_TYPE_withdraw; 130 rp->attr = BGP_valid; 131 rp->origin = BGP_ORIGIN_incomplete; 134 rp->addr.v4 = 0; 135 rp->bits = 0; 136 if (strtoip6(s, &p, rp->prefixv6, rp 203 register Bgproute_t* rp = (Bgproute_t*)record->data; local [all...] |
H A D | bgp-fixed.c | 117 register Bgproute_t* rp; local 119 if (!(rp = (Bgproute_t*)sfreserve(file->io, sizeof(*rp), 0))) 131 swapmem(state->swap, rp, rp, (char*)&rp->path - (char*)rp); 132 if (rp->cluster.size) 133 swapmem(state->swap, rp->data + rp [all...] |
H A D | bgp.c | 143 Bgproute_t* rp = (Bgproute_t*)DSSDATA(data); local 151 r->value.number = rp->afi ? rp->afi : MRT_AFI_IPV4; 154 if (rp->set & BGP_SET_agg_addrv6) 156 r->value.buffer.data = rp->agg_addr.v6; 157 r->value.buffer.size = sizeof(rp->agg_addr.v6); 163 r->value.number = rp->agg_addr.v4; 168 r->value.number = (rp->set & BGP_SET_agg_addrv6) ? 0 : rp->agg_addr.v4; 171 r->value.buffer.data = (rp [all...] |
H A D | bgp-mrt.c | 56 #define DATA(sp,rp) (rp=&sp->route,sp->osize=sp->size) 57 #define ZERO(sp,rp) ((rp->set&BGP_SET_mvpn?(sp->np->size=0,memset(sp->np,0,BGP_FIXED),memset(sp->np+1,0,BGP_FIXED),sp->np->unknown.size=0):0),sp->size=0,memset(rp,0,BGP_FIXED),sp->unknown.size=0) 58 #define HEAD(sp,rp) (rp->message=sp->message,rp->stamp=sp->time) 59 #define INIT(sp,rp) (DATA(sp,rp),ZER 467 rd(Dssfile_t* file, Mrtstate_t* state, Bgproute_t* rp, char* end, Dssdisc_t* disc) argument 503 prefix(Dssfile_t* file, Mrtstate_t* state, Bgproute_t* rp, int bits, char* end, Dssdisc_t* disc) argument 580 nlri(register Dssfile_t* file, register Mrtstate_t* state, register Bgproute_t* rp, char* end, Dssdisc_t* disc) argument 796 attr(register Dssfile_t* file, register Mrtstate_t* state, register Bgproute_t* rp, char* end, Dssdisc_t* disc) argument 1136 pathattr(register Dssfile_t* file, register Mrtstate_t* state, register Bgproute_t* rp, Dssdisc_t* disc) argument 1192 done(Mrtstate_t* state, Bgproute_t* rp, Dssrecord_t* record, Dssdisc_t* disc) argument 1218 register Bgproute_t* rp; local [all...] |
H A D | bgp-ipma.c | 218 register Bgproute_t* rp; local 228 rp = &state->route; 239 if (strtoip4(s, &p, &rp->addr.v4, &rp->bits)) 268 if (strtoip4(s, &p, &rp->hop.v4, NiL)) 273 n = elementsof(rp->data) / sizeof(Bgpasn_t); 274 ap = (Bgpasn_t*)rp->data; 275 rp->path.offset = i; 318 rp->path.size = i; 322 rp 342 register Bgproute_t* rp = (Bgproute_t*)record->data; local [all...] |
/ast/src/cmd/dsslib/netflow/ |
H A D | flow-flat.c | 87 register Netflow_t* rp = &((State_t*)file->data)->record; local 102 if (strtoip4(a, &b, &rp->src_addrv4, NiL) || *b++ != '|') 104 if (strtoip4(b, &a, &rp->dst_addrv4, NiL) || *a++ != '|') 106 if (strtoip4(a, &b, &rp->hopv4, NiL) || *b++ != '|') 108 rp->input = strtoul(b, &a, 10); 111 rp->output = strtoul(a, &b, 10); 114 rp->packets = strtoul(b, &a, 10); 117 rp->bytes = strtoul(a, &b, 10); 120 rp->first = strtoul(b, &a, 10); 123 rp 183 register Netflow_t* rp = (Netflow_t*)record->data; local [all...] |
H A D | netflow.c | 161 Netflow_t* rp = (Netflow_t*)DSSDATA(data); local 186 r->value.number = rp->bytes ? rp->bytes : rp->in_bytes; 189 r->value.number = rp->count; 192 r->value.number = rp->direction; 195 if (rp->set & NETFLOW_SET_dst_addrv6) 197 r->value.buffer.data = rp->dst_addrv6; 198 r->value.buffer.size = sizeof(rp->dst_addrv6) - 1; 203 r->value.number = rp [all...] |
H A D | flow-dump.c | 215 register Netflow_t* rp = &state->record; local 219 while (!rp->count--) 241 swapmem(1, state->data, &rp->version, 4); 242 swapmem(3, state->data + 4, &rp->uptime, 12); 245 memcpy(&rp->version, state->data, n); 251 swapmem(1, state->data, &rp->version, 4); 252 swapmem(3, state->data + 4, &rp->uptime, 16); 253 memcpy(&rp->engine_type, state->data + 20, 2); 254 swapmem(1, state->data + 22, &rp->sampler_interval, 2); 257 memcpy(&rp 353 register Netflow_t* rp = (Netflow_t*)record->data; local [all...] |
H A D | flow-tool.c | 331 register Netflow_t* rp = &state->record; local 353 memset(rp, 0, sizeof(*rp)); 354 rp->set = NETFLOW_SET_src_addrv4|NETFLOW_SET_dst_addrv4|NETFLOW_SET_hopv4; 370 rp->src_addrv4 = R1(fp)->srcaddr; 371 rp->dst_addrv4 = R1(fp)->dstaddr; 372 rp->hopv4 = R1(fp)->nexthop; 373 rp->input = R1(fp)->input; 374 rp->output = R1(fp)->output; 375 rp 517 register Netflow_t* rp = (Netflow_t*)record->data; local [all...] |
H A D | flow-fixed.c | 118 register Netflow_t* rp; local 120 if (!(rp = (Netflow_t*)sfreserve(file->io, sizeof(*rp), 0))) 133 record->data = rp; 134 record->size = sizeof(*rp);
|
/ast/src/lib/libcodex/ |
H A D | codexgetpass.c | 40 Sfio_t* rp; local 45 if (rp = sfopen(NiL, "/dev/tty", "r+")) 46 wp = rp; 49 rp = sfstdin; 53 tcgetattr(sffileno(rp), &tty); 56 tcsetattr(sffileno(rp), TCSANOW, &tty); 63 if (s = sfgetr(rp, '\n', 1)) 69 tcsetattr(sffileno(rp), TCSANOW, &tty); 71 if (rp == wp) 72 sfclose(rp); [all...] |
/ast/src/cmd/dsslib/ip_t/ |
H A D | ireexec.h | 42 IRENEXT(Ire_t* ire, register Re_t* re, int must, IREINT* lp, IREINT* rp) argument 52 return !ire->right || lp >= rp; 53 if ((rp - lp) < must) 60 else if (IRENEXT(ire, re->next, must, lp, rp)) 64 if ((rp - bp) < must) 66 if (!re->hi || re->hi > (rp - lp)) 67 ep = rp; 70 if ((rp - ep) < must) 71 ep = rp - must; 104 if (cp >= bp && IRENEXT(ire, re->next, must, cp + 1, rp)) 119 IREINT* rp = lp + size / sizeof(IREINT); local [all...] |
/ast/src/lib/libcmd/ |
H A D | expr.c | 303 Node_t rp; local 305 tok = getnode(state, &rp); 312 if (n = regcomp(&re, rp.str, REG_LEFT|REG_LENIENT)) 351 Node_t rp; local 353 tok = expr_cond(state, &rp); 354 if (!numeric(np) || !numeric(&rp)) 356 if (op && rp.num==0) 361 np->num *= rp.num; 364 np->num /= rp.num; 367 np->num %= rp 380 Node_t rp; local 400 Node_t rp; local 467 Node_t rp; local 483 Node_t rp; local [all...] |
/ast/src/lib/libast/hash/ |
H A D | hashfree.c | 46 Hash_root_t* rp; local 120 if ((rp = hash_info.list) != tab->root) 122 for (; rp; rp = rp->next) 123 if (rp->next == tab->root) 125 rp->next = tab->root->next; 129 else hash_info.list = rp->next;
|
/ast/src/cmd/mailx/ |
H A D | smtp.c | 107 Sfio_t* rp; local 122 !(rp = sfnew(NiL, NiL, SF_UNBOUND, fd, SF_READ))) 138 if (!(s = sfgetr(rp, '\n', 1))) 154 if (!(s = sfgetr(rp, '\n', 1))) 186 if (!(s = sfgetr(rp, '\n', 1))) 204 if (!(s = sfgetr(rp, '\n', 1))) 219 if (!(s = sfgetr(rp, '\n', 1))) 240 if (!(s = sfgetr(rp, '\n', 1))) 254 if (!(s = sfgetr(rp, '\n', 1))) 278 sfclose(rp); [all...] |
H A D | names.c | 395 register char* rp; local 399 rp = state.path.path; 400 ep = rp + sizeof(state.path.path) - 1; 403 if (state.var.outfolder && !strchr(METAFILE, *tp) && rp < ep) 404 *rp++ = '+'; 405 while ((*rp = *tp++) && rp < ep) 406 rp++; 407 if (*(rp - 1) != '/' && rp < e [all...] |
/ast/src/cmd/tests/aso/ |
H A D | taso.c | 28 void *vp, *rp; local 105 if ((rp = asocasptr(&vp, (void*)1, (void*)2)) != (void*)1) 106 terror("asocasptr return value failed -- expected %p, got %p", (void*)1, rp); 109 else if ((rp = asocasptr(&vp, (void*)1, (void*)3)) != (void*)2) 110 terror("asocasptr return value failed -- expected %p, got %p", (void*)2, rp);
|
/ast/src/lib/libcs/ |
H A D | cspoll.c | 53 register fd_set* rp = &rd; local 71 FD_ZERO(rp); 82 FD_SET(pp->fd, rp); 101 rp = 0; 105 num = select(width + 1, rp, wp, ep, tp); 108 rp = 0; 110 num = select(width + 1, rp, wp, ms); 121 if (rp && FD_ISSET(pp->fd, rp))
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_checkout.c | 27 int checkout(rp, vp) 28 register rfile_t* rp; 42 ap = rp->ap; 47 TOBEGIN(rp->fd); 50 if (lookup_tag(NULL, rp->fd, ap, vp->version, vp->domain, &tp, 0)) 53 if (search_tag(rp->fd, ap, vp->version, vp->domain, &tp, G_LINK, &dir)) 73 (void) TOBASE(rp->fd, ap); 76 sfread(rp->fd, sbuf, nsrc) != nsrc || 96 if (((dbuf = (char *) malloc(len)) == NULL) || sfseek(rp->fd, tp->del, 0) != tp->del || sfread(rp [all...] |
H A D | vcs_marker.c | 25 int rs_marker(rp, from, to, st, expire, force) 26 register rfile_t* rp; 40 if (from && *from && search_tag(rp->fd, rp->ap, from, 0, &tp, G_LINK, &dir)) 70 (void) sfseek(rp->fd, 0L, 2); 71 sfwrite(rp->fd, (char *)tp, tp->length); 72 replica(rp->path, NULL, tp);
|
/ast/src/cmd/3d/ |
H A D | close3d.c | 33 register short* rp; local 45 if (rp = state.file[fd].reserved) 52 *rp = nfd; 53 state.file[nfd].reserved = rp;
|
/ast/src/lib/libpz/ |
H A D | pzsplit.c | 293 Pzsplit_t* rp; local 360 while (rp = (*pz->disc->splitf)(pz, pz->io, pz->disc)) 362 if (rp->record) 364 z = rp->record; 369 z = rp->size; 370 if (!rp->size) 381 if (rp->record && indexf && (*indexf)(pz, &index, rp->data, pz->disc) < 0) 383 index.offset += rp->size; 384 if (!(ip = (Id_t*)dtmatch(def.ids, &rp 711 Pzsplit_t* rp; local [all...] |