/ast/src/lib/libcs/ |
H A D | msgread.c | 45 n = csread(&cs, fd, buf, MSG_SIZE_SIZE, CS_EXACT); 50 if (n <= MSG_SIZE_SIZE || n > siz || csread(&cs, fd, buf + o, n - o, CS_EXACT) != n - o) return -1;
|
H A D | csping.c | 41 n = (cswrite(state, fd, M, N) != N || csread(state, fd, state->temp, N, CS_LINE) != N || strncmp(M, state->temp, N)) ? -1 : 0;
|
H A D | csread.c | 40 csread(Cs_t* state, int fd, void* buf, size_t size, int op) function 103 return csread(&cs, fd, buf, size, op);
|
H A D | csauth.c | 74 if ((n = csread(state, fd, buf, sizeof(buf), CS_LINE)) <= 1) 119 if (csread(state, fd, num, sizeof(num), CS_LINE) <= 0) 198 if (csread(state, fd, num, 1, CS_LINE) != 1)
|
H A D | cs.h | 49 #define CS_EXACT 0x0001 /* csread() exact amount */ 50 #define CS_LIMIT 0x0002 /* csread() amount limit */ 51 #define CS_LINE 0x0004 /* csread() one or more lines */ 263 #define csread _cs_read macro 302 extern ssize_t csread(Cs_t*, int, void*, size_t, int);
|
H A D | Makefile | 25 csping.c cspipe.c cspoll.c csport.c csread.c csrecv.c \
|
H A D | csopen.c | 313 if ((m = csread(state, proc->rfd, buf, sizeof(buf), CS_LINE)) <= 1) 324 if ((m = csread(state, proc->rfd, buf, sizeof(buf), CS_LINE)) <= 1) 328 if ((n = csread(state, fd, num, sizeof(num), CS_LINE)) <= 0) 337 if ((m = csread(state, proc->rfd, buf, sizeof(buf), CS_LINE)) <= 0) 341 if (csread(state, fd, num, 1, CS_LINE) != 1) 817 if (cswrite(state, fd, tmp, n) == n && (n = csread(state, fd, tmp, sizeof(tmp), CS_LINE)) >= 2)
|
H A D | css.c | 824 if ((n = csread(css->state, fd, css->buf, sizeof(css->buf), CS_LINE)) <= 0) 861 if (cs.time > ap->expire || (n = csread(css->state, fd, css->buf, sizeof(css->buf), CS_LINE)) <= 1)
|
/ast/src/cmd/3d/ |
H A D | cs_3d.h | 43 #define csread _3d_csread macro
|
H A D | fs.c | 125 if (write(fd, dev, n) != n || (n = csread(&cs, fd, s, PATH_MAX, CS_LINE)) <= 0)
|
/ast/src/cmd/cs/ |
H A D | cat.c | 152 if ((n = csread(fd, state->buf, i, CS_EXACT)) <= 0) 166 else if ((n = csread(fd, state->buf, sizeof(state->buf), CS_LIMIT)) > 0 && cswrite(fp->fd, state->buf, n) == n)
|
H A D | 6263.c | 47 if ((n = csread(css->state, fp->fd, path, sizeof(path) - 1, CS_LINE)) <= 1)
|
H A D | nam.c | 86 if ((n = csread(fd, buf, sizeof(buf), CS_LINE)) <= 1)
|
H A D | fs_env.c | 135 if ((n = csread(fd, buf, sizeof(buf), CS_LINE)) <= 1) 163 if ((n = csread(fd, buf, sizeof(buf), CS_LINE)) <= 1)
|
H A D | css.c | 108 if ((n = csread(css->state, fp->fd, buf, sizeof(buf) - 1, CS_LINE)) <= 0)
|
H A D | tst-old.c | 99 if ((n = csread(fd, dat, sizeof(dat), CS_LINE)) <= 0) goto drop;
|
H A D | tst.c | 91 if ((n = csread(css->state, fp->fd, dat, sizeof(dat), CS_LINE)) <= 0)
|
H A D | dbm.c | 161 if ((n = csread(fd, nxt, sizeof(msg), CS_LINE)) <= 0) goto drop;
|
H A D | mbb.c | 301 if ((n = csread(css->state, fp->fd, buf, sizeof(buf) - 1, CS_LINE)) <= 0)
|
/ast/src/cmd/coshell/ |
H A D | main.c | 303 n = csread(fd, s = state.buf, state.buflen, CS_LINE); 443 if (csread(fd, s = state.buf, 13, CS_EXACT) != 13 || s[0] != '#' || (jp = state.job + (int)strtol(s + 1, NiL, 10)) > state.jobmax || fstat(state.con[fd].info.pass.fd = (int)strtol(s + 7, NiL, 10), &st)) 492 if (csread(fd, s = cmd, 7, CS_EXACT) != 7 || s[0] != '#' || (i = (int)strtol(s + 1, NiL, 10)) && (i < 0 || i > state.buflen || csread(fd, state.buf, i, CS_EXACT) != i)) 654 if (csread(fd, cmd, 7, CS_EXACT) != 7 || cmd[0] != '#' || (n = (int)strtol(cmd + 1, NiL, 10)) <= 0) 665 if (csread(fd, state.buf, n, CS_EXACT) != n) 899 if ((state.indirect.con || !cssend(fd, fds, i)) && csread(fd, s, 7, CS_EXACT) == 7 && s[0] == '#' && !(errno = (int)strtol(s + 1, NiL, 10))) do 934 for (; d > 0 && csrecv(pfd, NiL, fds, 1) == 1 && csread(fds[0], s, 7, CS_EXACT) == 7 && s[0] == '#'; d--)
|
H A D | command.c | 105 else if (csread(fds[m].fd, cmd, 7, CS_EXACT) == 7 && cmd[0] == '#')
|
H A D | event.c | 677 if ((n = csread(css->state, fp->fd, state->req, sizeof(state->req), CS_LINE)) <= 0)
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs.c | 146 if( (n = csread( fd, msg, sizeof(msgbuf), CS_LINE )) <= 0 )
|
/ast/src/cmd/at/ |
H A D | atd.c | 1285 if ((c = csread(state->css->state, fp->fd, state->buf, 7, CS_EXACT|CS_RESTART)) != 7) 1307 if (csread(state->css->state, fp->fd, s = state->buf, n, CS_EXACT|CS_RESTART) != n)
|