expect
get_group(const char *name, int expect)
if (!expect)
#define likely(expr) expect((expr) != 0, 1)
#define unlikely(expr) expect((expr) != 0, 0)
#define likely(expr) expect((expr) != 0, 1)
#define unlikely(expr) expect((expr) != 0, 0)
expect(NUMBER);
expect(NUMBER);
expect(NUMBER);
expect(NUMBER);
expect(NUMBER);
expect(PLUS);
expect(EOF);
char *expect;
expect = expect_strtok (s, "-");
if (expect == NULL)
if (get_string (expect))
peekscan(tok_kind expect, token *tokp)
if (tokp->kind == expect) {
scan(tok_kind expect, token *tokp)
if (tokp->kind != expect)
expected1(expect);
#define likely(expr) expect((expr) != 0, 1)
#define unlikely(expr) expect((expr) != 0, 0)
int niov, expect, f;
for (f = expect = 0; f < niov; f++)
expect += iov[f].iov_len;
return expect;
int niov, expect, f, *fd, nfd, onfd;
for (f = expect = 0; f < niov; f++) {
expect += iov[f].iov_len;
if ((got = readv(fd[1], iov + 1, niov - 1)) != expect) {
log_Printf(LogERROR, "Failed write: Got %zu, not %d\n", got, expect);
int niov, f, expect, newsid, fd[SEND_MAXFD], nfd, reply[2];
for (f = 1, expect = 0; f < niov; f++)
expect += iov[f].iov_len;
if (setsockopt(reply[0], SOL_SOCKET, SO_SNDBUF, &expect, sizeof(int)) == -1)
log_Printf(LogERROR, "setsockopt(SO_RCVBUF, %d): %s\n", expect,
if (setsockopt(reply[1], SOL_SOCKET, SO_RCVBUF, &expect, sizeof(int)) == -1)
log_Printf(LogERROR, "setsockopt(SO_RCVBUF, %d): %s\n", expect,
log_Printf(LogDEBUG, "Transmitting link (%d bytes)\n", expect);
if ((got = writev(reply[0], iov + 1, niov - 1)) != expect) {
sun->sun_path, got, expect);