9 #include "../layout/dlist.h"
11 struct ClientList clients;
13 static void new_client(int fd, OutBufferError error,
14 char *desc, Selector default_selectors) {
18 cl= mmalloc(sizeof(*cl));
19 cl->sel= default_selectors;
21 cl->ci.out.desc= desc;
23 cl->ci.out.error= error;
26 LIST_LINK_TAIL(clients, cl);
29 static void stdin_error(OutBufferChain *ch, const char *e1, const char *e2) {
32 fprintf(stderr,"stdin: %s: %s\n", e1, e2);
36 void stdin_client(void) {
37 new_client(0, stdin_error, (char*)"stdin", sel_picio|sel_picioh);