Searched defs:dat (Results 1 - 11 of 11) sorted by relevance

/ast/src/lib/libcs/
H A Dcssend.c42 struct strbuf dat; local
48 dat.buf = "";
49 dat.len = 0;
50 if (putmsg(fd, NiL, &dat, 0) < 0 || write(fd, &hdr, sizeof(hdr)) != sizeof(hdr))
/ast/src/cmd/tests/
H A Dbase64.c35 unsigned char dat[256]; local
36 unsigned char tst[sizeof(dat)];
45 for (i = 0; i < sizeof(dat); i++)
46 dat[i] = i;
47 for (i = 0; i < sizeof(dat) - 1; i++)
52 l = base64encode(dat, i, NiL, buf, sizeof(buf), NiL);
66 if (memcmp(dat, tst, i))
75 r = base64encode(dat + i, sizeof(dat) - i, NiL, buf + l, sizeof(buf) - l, NiL);
83 if (t != (sizeof(dat)
[all...]
/ast/src/cmd/cs/
H A Dtst-old.c52 static char dat[1024]; variable
99 if ((n = csread(fd, dat, sizeof(dat), CS_LINE)) <= 0) goto drop;
100 dat[--n] = 0;
101 if (isalpha(dat[0]) && (dat[1] == 0 || isdigit(dat[1]))) switch (dat[0])
104 error_info.trace = -(int)strtol(dat + 1, NiL, 0);
113 n = sfsprintf(buf, sizeof(buf), "E %s: unknown command\n", dat);
[all...]
H A Dtst.c44 static char dat[1024]; variable
91 if ((n = csread(css->state, fp->fd, dat, sizeof(dat), CS_LINE)) <= 0)
93 dat[--n] = 0;
94 if (isalpha(dat[0]) && (dat[1] == 0 || isdigit(dat[1]))) switch (dat[0])
97 error_info.trace = -(int)strtol(dat + 1, NiL, 0);
106 n = sfsprintf(buf, sizeof(buf), "E %s: unknown command\n", dat);
[all...]
/ast/src/cmd/pzip/
H A Dpcmp.c120 unsigned char* dat; local
170 if (!(dat = newof(0, unsigned char, datsize, 0)))
171 error(ERROR_SYSTEM|3, "out of space [dat]");
175 end = dat + datsize;
185 memset(dat, 040, cols);
186 for (s = p = dat; s < end; p = s, s += cols)
192 d = dif(dat, datsize, buf, bufsize, cols);
193 z = zip(dat, datsize, buf, bufsize);
H A Dpin.c523 * filter out the high frequency columns from dat
534 unsigned char* dat; local
547 dat = *datp;
602 s = dat;
702 s = dat;
711 *bufp = dat;
725 * permute state.map and dat according to a new order
729 permute(unsigned char* buf, unsigned char* dat, size_t* ord, size_t row, size_t tot) argument
740 for (end = dat + tot; dat < en
803 reorder_heuristic(Reorder_method_t* method, unsigned char* buf, unsigned char* dat, int* lab, size_t row, size_t tot) argument
1123 reorder_tsp(Reorder_method_t* method, unsigned char* buf, unsigned char* dat, int* lab, size_t row, size_t tot) argument
1257 optimize_dynamic(Optimize_method_t* method, unsigned char* buf, unsigned char* dat, size_t** val, size_t* cst, size_t* sol, size_t row, size_t tot, size_t grp) argument
1307 optimize_greedy(Optimize_method_t* method, unsigned char* buf, unsigned char* dat, size_t** val, size_t* cst, size_t* sol, size_t row, size_t tot, size_t grp) argument
1338 optimize_transitive(Optimize_method_t* method, unsigned char* buf, unsigned char* dat, size_t** val, size_t* cst, size_t* sol, size_t row, size_t tot, size_t grp) argument
1442 unsigned char* dat; local
[all...]
/ast/src/cmd/coshell/
H A Dcommand.c364 server(int fd, int op, int sub, int arg, char* dat) argument
387 if (dat)
389 t = tokopen(dat, 1);
397 if (dat)
399 t = tokopen(dat, 1);
421 message((error_info.trace, "level=%d output=%s", -arg, dat ? dat : cspath(state.indirect.con ? 2 : con[fd].info.user.fds[2], 0)));
423 if (dat)
425 if ((n = open(dat, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) >= 0)
632 if (dat
[all...]
H A Devent.c416 apply(State_t* state, Connection_t* con, int id, int index, datum key, datum val, Data_t* dat) argument
424 dat->flags |= DATA_clear;
425 dat->time = time(NiL);
426 val.dptr = (void*)dat;
427 val.dsize = sizeof(*dat);
453 dat->flags |= DATA_hold;
454 dat->time = time(NiL);
455 val.dptr = (void*)dat;
456 val.dsize = sizeof(*dat);
468 dat
553 Data_t dat; local
619 Data_t dat; local
[all...]
/ast/src/lib/librecsort/
H A Drskey.c603 * return encoded key for dat,datlen in key,keylen
608 code(Rs_t* rs, unsigned char* dat, size_t datlen, unsigned char* key, size_t keylen, Rsdisc_t* disc) argument
610 code(rs, dat, datlen, key, keylen, disc)
612 unsigned char* dat;
625 unsigned char* xp = dat + datlen;
633 pp[0] = dat;
638 for (cp = dat; cp < xp && np < m;)
651 for (cp = dat; cp < xp && np < m;)
/ast/src/cmd/sort/
H A Dmain.c819 dumpkey(Rs_t* rs, unsigned char* dat, size_t datlen, unsigned char* key, size_t keylen, Rsdisc_t* disc) argument
826 if ((n = (*sp->defkeyf)(rs, dat, datlen, key, keylen, disc)) > 0)
/ast/src/cmd/dsslib/bgp/
H A Dbgp-mrt.c151 anonymize_value(char* dat, char* buf, int n) argument
160 if (dat)
162 memcpy(dat, anonymize.value, n);

Completed in 69 milliseconds