/ast/src/lib/libcs/ |
H A D | css.c | 84 drop(Css_t* css, register Cspoll_t* pp) argument 90 if (!css) 91 css = state.main; 94 if (ip->css == css) 98 if (css->auth) 103 if ((*ip->actionf)(css, ip, css->disc) > 0) 111 css->fdpolling--; 113 css 128 register Css_t* css; local 342 cssclose(register Css_t* css) argument 426 cssfd(register Css_t* css, register int fd, unsigned long op) argument 601 register Css_t* css; local [all...] |
H A D | csserve.c | 27 * <css.h> provides a discipline interface with multiple servers 35 Css_t* css; member in struct:Server_s 45 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 53 actionf(Css_t* css, Cssfd_t* fp, Cssdisc_t* disc) argument 72 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument 99 return !state->server || cssfd(state->server->css, fd, op) ? -1 : 0; 113 state->server->css->disc->wakeup = 0; 114 rv = state->server->css->disc->timeout; 115 state->server->css->disc->timeout = ms; 130 state->server->css [all...] |
H A D | csslib.h | 62 Css_t* css; \ 88 #include <css.h>
|
H A D | Makefile | 17 HEADERS = cs.h css.h msg.h ast_cs.h cs_lib.h 26 cssend.c css.c csserve.c csstat.c csto.c csvar.c cswrite.c \
|
/ast/src/cmd/cs/ |
H A D | 6263.c | 32 #include <css.h> 36 actionf(register Css_t* css, register Cssfd_t* fp, Cssdisc_t* disc) argument 47 if ((n = csread(css->state, fp->fd, path, sizeof(path) - 1, CS_LINE)) <= 1) 50 if ((ud = csopen(css->state, path, CS_OPEN_READ)) >= 0) 52 s = cspath(css->state, ud, 0); 67 cswrite(css->state, fp->fd, s, n); 73 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument 91 Css_t* css; local 102 if (!(css = cssopen(argv[1], &disc))) 104 error_info.id = css [all...] |
H A D | css.c | 25 * css - multiplex multiple clients on one filter server 29 "[-?\n@(#)$Id: css (AT&T Research) 1998-05-01 $\n]" 31 "[+NAME?css - multiplex multiple clients on one connect stream server]" 53 #include <css.h> 74 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 87 actionf(register Css_t* css, register Cssfd_t* fp, Cssdisc_t* disc) argument 108 if ((n = csread(css->state, fp->fd, buf, sizeof(buf) - 1, CS_LINE)) <= 0) 120 if (*s && cssfd(css, i, 0)) 123 if (cswrite(css->state, i, s, n) != n) 124 cssfd(css, 156 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument 175 Css_t* css; local [all...] |
H A D | tst.c | 32 #include <css.h> 47 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 74 actionf(register Css_t* css, register Cssfd_t* fp, Cssdisc_t* disc) argument 91 if ((n = csread(css->state, fp->fd, dat, sizeof(dat), CS_LINE)) <= 0) 110 n = sfsprintf(buf, sizeof(buf), "I [%s] server=%s version=%s %s=%s server.pid=%d pid=%d uid=%d gid=%d args=`%s'\n", fmttime(*dat ? dat : "%K", time(NiL)), csname(css->state, 0), TST_VERSION, CS_HOST_LOCAL, csntoa(css->state, con->id.hid), getpid(), con->id.pid, con->id.uid, con->id.gid, con->args); 111 if (cswrite(css->state, fp->fd, buf, n) != n) 119 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument 140 Css_t* css; local 153 if (!(css [all...] |
H A D | mbb.c | 72 #include <css.h> 130 note(Css_t* css, register Connection_t* to, int log, char* s, size_t n, int force, Cssdisc_t* disc) argument 161 cssfd(css, to->fp->fd, CS_POLL_READ|CS_POLL_WRITE); 181 dump(Css_t* css, register Connection_t* con, int log, Cssdisc_t* disc) argument 196 r = note(css, con, log, s, n, 1, disc); 203 post(Css_t* css, Cssdisc_t* disc, Connection_t* from, register Connection_t* to, int channel, const char* format, ...) argument 228 note(css, to, state->log, s, n, 0, disc); 231 note(css, to, state->log, s, n, 0, disc); 236 drop(Css_t* css, Connection_t* con, Cssdisc_t* disc) argument 252 post(css, dis 258 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 280 actionf(register Css_t* css, register Cssfd_t* fp, Cssdisc_t* disc) argument 359 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument [all...] |
H A D | Makefile | 9 css :: css.c -lcs
|
/ast/src/cmd/coshell/ |
H A D | event.c | 115 #include <css.h> 198 Cssdisc_t disc; /* css discipline */ 292 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 389 info(State_t* state, Connection_t* con, Css_t* css) argument 395 log(state, con, 'I', "info server='%s' version=%d.%d host=%s pid=%d uid=%d gid=%d", fmtident(usage), EVENT_MAJOR, EVENT_MINOR, csname(css->state, 0), getpid(), geteuid(), getegid()); 646 actionf(register Css_t* css, register Cssfd_t* fp, Cssdisc_t* disc) argument 677 if ((n = csread(css->state, fp->fd, state->req, sizeof(state->req), CS_LINE)) <= 0) 770 else if (!(f = cssfd(css, n, 0)) || !(x = (Connection_t*)f->data)) 809 cssfd(css, fp->fd, CS_POLL_CLOSE); 812 info(state, con, css); 927 exceptf(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument 1055 Css_t* css; local [all...] |
/ast/src/cmd/mailx/ |
H A D | smtp.c | 80 #include <css.h>
|
H A D | imap.c | 80 #include <css.h>
|
/ast/src/cmd/at/ |
H A D | at.h | 33 #include <css.h>
|
H A D | atd.c | 139 Cssdisc_t disc; /* css discipline */ 140 Css_t* css; /* css handle */ member in struct:__anon39 481 client(Css_t* css, Cssfd_t* fp, Csid_t* id, char** args, Cssdisc_t* disc) argument 616 csstat(state->css->state, NiL, &st); 673 exception(Css_t* css, unsigned long op, unsigned long arg, Cssdisc_t* disc) argument 1274 request(Css_t* css, Cssfd_t* fp, Cssdisc_t* disc) argument 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) 1362 if (!(state->css [all...] |