Lines Matching defs:state
31 cssend(register Cs_t* state, int fd, int* fds, int n)
55 messagef((state->id, NiL, -1, "send: %d: hdr write error", fd));
61 messagef((state->id, NiL, -1, "send: %d: ioctl I_SENDFD error", fd));
99 s = csvar(state, CS_VAR_LOCAL, 0);
102 messagef((state->id, NiL, -1, "send: %d: %s: invalid authentication directory ", fd, s));
107 messagef((state->id, NiL, -1, "send: %d: authentication tmp file error", fd));
112 messagef((state->id, NiL, -1, "send: %d: %s: authentication file creat error", fd, s));
117 messagef((state->id, NiL, -1, "send: %d: %s: authentication file remove error", fd, s));
149 if (i) messagef((state->id, NiL, -1, "send: %d: sendmsg error", fd));
155 messagef((state->id, NiL, -8, "send(%d,%d) call", fd, n));
187 s = state->temp;
188 s += sfsprintf(s, sizeof(state->temp), "%lu %d", getpid(), n);
197 s += sfsprintf(s, sizeof(state->temp) - (s - state->temp), " %d", j);
201 s += sfsprintf(s, sizeof(state->temp) - (s - state->temp), " %d", fds[i]);
202 s += sfsprintf(s, sizeof(state->temp) - (s - state->temp), "\n");
203 n = s - state->temp;
204 messagef((state->id, NiL, -8, "send(%d, %-*.*s) call", fd, n - 1, n - 1, state->temp));
205 i = send(fd, state->temp, n, 0) == n ? 0 : -1;
206 if (i) messagef((state->id, NiL, -1, "send: %d: write error", fd));
210 messagef((state->id, NiL, -1, "send: %d: not supported", fd));