Searched refs:csread (Results 1 - 24 of 24) sorted by relevance

/ast/src/lib/libcs/
H A Dmsgread.c45 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 Dcsping.c41 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 Dcsread.c40 csread(Cs_t* state, int fd, void* buf, size_t size, int op) function
103 return csread(&cs, fd, buf, size, op);
H A Dcsauth.c74 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 Dcs.h49 #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 DMakefile25 csping.c cspipe.c cspoll.c csport.c csread.c csrecv.c \
H A Dcsopen.c313 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 Dcss.c824 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 Dcs_3d.h43 #define csread _3d_csread macro
H A Dfs.c125 if (write(fd, dev, n) != n || (n = csread(&cs, fd, s, PATH_MAX, CS_LINE)) <= 0)
/ast/src/cmd/cs/
H A Dcat.c152 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 D6263.c47 if ((n = csread(css->state, fp->fd, path, sizeof(path) - 1, CS_LINE)) <= 1)
H A Dnam.c86 if ((n = csread(fd, buf, sizeof(buf), CS_LINE)) <= 1)
H A Dfs_env.c135 if ((n = csread(fd, buf, sizeof(buf), CS_LINE)) <= 1)
163 if ((n = csread(fd, buf, sizeof(buf), CS_LINE)) <= 1)
H A Dcss.c108 if ((n = csread(css->state, fp->fd, buf, sizeof(buf) - 1, CS_LINE)) <= 0)
H A Dtst-old.c99 if ((n = csread(fd, dat, sizeof(dat), CS_LINE)) <= 0) goto drop;
H A Dtst.c91 if ((n = csread(css->state, fp->fd, dat, sizeof(dat), CS_LINE)) <= 0)
H A Ddbm.c161 if ((n = csread(fd, nxt, sizeof(msg), CS_LINE)) <= 0) goto drop;
H A Dmbb.c301 if ((n = csread(css->state, fp->fd, buf, sizeof(buf) - 1, CS_LINE)) <= 0)
/ast/src/cmd/coshell/
H A Dmain.c303 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 Dcommand.c105 else if (csread(fds[m].fd, cmd, 7, CS_EXACT) == 7 && cmd[0] == '#')
H A Devent.c677 if ((n = csread(css->state, fp->fd, state->req, sizeof(state->req), CS_LINE)) <= 0)
/ast/src/cmd/cs/vcs_src/
H A Dvcs.c146 if( (n = csread( fd, msg, sizeof(msgbuf), CS_LINE )) <= 0 )
/ast/src/cmd/at/
H A Datd.c1285 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)

Completed in 32 milliseconds