Lines Matching defs:expect
357 /* Down the NCPs. We don't expect to get fsm_Close()d ourself ! */
1360 int niov, expect, f;
1370 for (f = expect = 0; f < niov; f++)
1371 expect += iov[f].iov_len;
1373 return expect;
1380 int niov, expect, f, *fd, nfd, onfd;
1404 for (f = expect = 0; f < niov; f++) {
1410 expect += iov[f].iov_len;
1496 if ((got = readv(fd[1], iov + 1, niov - 1)) != expect) {
1500 log_Printf(LogERROR, "Failed write: Got %zd, not %d\n", got, expect);
1547 int niov, f, expect, newsid, fd[SEND_MAXFD], nfd, reply[2];
1603 for (f = 1, expect = 0; f < niov; f++)
1604 expect += iov[f].iov_len;
1606 if (setsockopt(reply[0], SOL_SOCKET, SO_SNDBUF, &expect, sizeof(int)) == -1)
1607 log_Printf(LogERROR, "setsockopt(SO_RCVBUF, %d): %s\n", expect,
1609 if (setsockopt(reply[1], SOL_SOCKET, SO_RCVBUF, &expect, sizeof(int)) == -1)
1610 log_Printf(LogERROR, "setsockopt(SO_RCVBUF, %d): %s\n", expect,
1633 log_Printf(LogDEBUG, "Transmitting link (%d bytes)\n", expect);
1634 if ((got = writev(reply[0], iov + 1, niov - 1)) != expect) {
1640 sun->sun_path, got, expect);