Lines Matching refs:con

71 	if (state.indirect.con)
74 fds[n].fd = state.indirect.con;
186 if (state.indirect.con)
368 register Connection_t* con;
380 con = state.con;
392 error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "%s: invalid host name", s);
402 if (!(sp = search(GET, s, NiL, NiL))) error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "%s: not found", s);
403 else if (!sp->fd) error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "%s: host not open", s);
404 else shellclose(sp, con[fd].info.user.fds[2]);
421 message((error_info.trace, "level=%d output=%s", -arg, dat ? dat : cspath(state.indirect.con ? 2 : con[fd].info.user.fds[2], 0)));
432 else if (!state.indirect.con)
435 dup(con[fd].info.user.fds[2]);
443 switch (con[n].type)
458 if (jp = con[n].info.pass.job) sfprintf(state.string, "%3d pass %-3d %s %d%s\n", n, con[n].info.pass.fd, jp->shell->name, jp->pid, con[n].info.pass.serialize ? " serialize" : "");
459 else sfprintf(state.string, "%3d pass %-3d zombie\n", n, con[n].info.pass.fd);
468 sfprintf(state.string, "%3d shell %s\n", n, con[n].info.shell->name);
471 if (con[n].info.user.fds[0] == n) sfprintf(state.string, "%3d query %-3d %-3d %s\n", n, con[n].info.user.fds[1], con[n].info.user.fds[2], (sp = con[n].info.user.home) ? sp->name : "");
472 else sfprintf(state.string, "%3d user %-3d %-3d %-3d %s\n", n, con[n].info.user.fds[0], con[n].info.user.fds[1], con[n].info.user.fds[2], (sp = con[n].info.user.home) ? sp->name : "");
487 else if (con[n].type) sfprintf(state.string, "%3d %s error\n", n, t);
491 else if (arg >= state.fdtotal || !con[arg].type) error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "cannot drop CON %d", arg);
594 v = con[jp->fd].info.user.attr.label;
602 error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "job id required");
604 error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "%d: invalid job id", arg);
625 error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "%c: invalid signal id", sub);
633 else attr = con[fd].info.user.attr;
654 if (!(sp = search(NEW, s, NiL, NiL))) error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "%s: invalid host name", s);
655 else if (sp->fd) error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "%s: host already open", s);
656 else shellopen(sp, con[fd].info.user.fds[2]);
724 , sp->fd > 0 && state.con[sp->fd].error ? '?' : ' '
778 if (con[n].type == USER) u++;
792 if (con[n].type == USER)
799 sfprintf(state.string, "%3d%6d%5d%6d %-28s %s\n", n, con[n].info.user.pid, con[n].info.user.running, con[n].info.user.total, cspath(con[n].info.user.fds[2], 0), con[n].info.user.attr.label);
808 error(ERROR_OUTPUT|2, con[fd].info.user.fds[2], "%c: unknown server op", op);
812 cswrite(con[fd].info.user.fds[1], sfstrseek(state.string, 0, SEEK_SET), n);