expect
EXTERN int chat(), rddev(), expect(), wrstr(), wrchr();
ok = expect(want, fn);
char *expect;
expect = expect_strtok (s, "-");
if (expect == (char *) 0)
if (get_string (expect))
static int warn_mismatch(char *desc, char *src, int expect, int assigned);
warn_mismatch(char *desc, char *src, int expect, int assigned)
if (expect == assigned)
desc, assigned, src, expect);
desc, assigned, src, expect);
verifytag(struct tag *tp, uint32_t loc, struct tag *otp, int expect)
if (id > 9 && id < 256 || id > 266 || (expect > 0 && id != expect))
peekscan(tok_kind expect, token *tokp)
if (tokp->kind == expect) {
scan(tok_kind expect, token *tokp)
if (tokp->kind != expect)
expected1(expect);
static int expect(char *);
if (!expect("READY")) {
if (!expect("NUMBER?")) {
if (!expect(phone)) {
if (!expect("DIALING:")) {
ok = expect("ON LINE");
#define likely(expr) expect((expr) != 0, 1)
#define unlikely(expr) expect((expr) != 0, 0)
"+a" (expect) /* 2 */
atomic_cmpset_int(volatile u_int *dst, u_int expect, u_int src)
"+a" (expect) /* 2 */
atomic_cmpset_long(volatile u_long *dst, u_long expect, u_long src)
#define likely(expr) expect((expr) != 0, 1)
#define unlikely(expr) expect((expr) != 0, 0)
uint16_t expect, const char *key)
if (crc == expect) {
"expected 0x%x, found 0x%x", expect, crc);
const uint16_t expect = si->si_data[off + len - 2] |
spd_parse_crc_expect(si, off, len - 2, expect, key);
const uint16_t expect = si->si_data[off + len - 2] |
spd_parse_crc_expect(si, off, crc_len, expect, key);
ok = expect(want, fn);
static int expect(char *, int);
http->expect = (http_status_t)atoi(value);
http_status_t expect; /* Expect: header */
usage(char *expect, char *got)
expect, got, prog, rsvp);
uint_t sum, expect;
expect = descp->cpd_csum;
expect = descp->cpd_usum;
if (sum != expect) {
expect, sum);
if (strcmp(ptr, expect) != 0) {
test_failed(t, "[%s] != [%s]", ptr, expect);
forkit(char *msg, const char *expect, void (*postfn)(void))
fail(int line, int r, char const *expect, char const *test)
line, r, expect, test);
const char *expect[] = {
VERIFYSTRING(ils, expect[n]);
#define EXPECT(_cu, _str) expect(#_cu, _cu, _str, __FILE__, __LINE__)
#define EXPECT(_cu, _str) expect(#_cu, _cu, _str, __FILE__, __LINE__)
return expect(token, '(',
return expect(token, ',',
return expect(token, ')',
return expect(token, '(', "after __builtin_offset");
return expect(token, ',', "in __builtin_offset");
return expect(token, ')', "at end of __builtin_offset");
token = expect(token, ']',
token = expect(token, ']', "in type expression");
token = expect(token, ']', "at end of array dereference");
token = expect(token, ')', "in function call");
return expect(token, ')', error[type]);
token = expect(token, '(', where);
token = expect(token, ')', "at end of cast operator");
token = expect(token, '}', "at end of statement expression");
return expect(token, ')', where);
token = expect(token, ':', "in conditional expression");
struct token *expect(struct token *, int, const char *);
return expect(token, ')', "after typeof");
token = expect(token, '(', "after address_space attribute");
token = expect(next, ')', "after address_space attribute");
token = expect(token, '(', "after mode attribute");
token = expect(token, ')', "after mode attribute");
token = expect(token, '(', "after context attribute");
token = expect(token, ',', "after context 1st argument");
token = expect(token, ')', "after context 3rd argument");
token = expect(token, ')', "after context 2nd argument");
token = expect(token, '(', "after attribute");
token = expect(token, '(', "after attribute");
token = expect(token, ')', "after attribute");
token = expect(token, ')', "after attribute");
token = expect(token, ')', "after _Alignas(...");
token = expect(token->next, '(', "after attribute");
token = expect(token, '(', "after attribute");
token = expect(token, ')', "after attribute");
token = expect(token, ')', "after attribute");
token = expect(token, ')', "in nested declarator");
token = expect(token, ')', "in function declarator");
token = expect(token, ']', "in abstract_array_declarator");
return expect(token, ';', "at end of statement");
token = expect(token, '(', "after asm");
token = expect(token, ')', "after asm");
return expect(token, ';', "at end of asm-statement");
token = expect(token, '(', "after asm");
token = expect(token, ')', "after asm");
token = expect(token->next, '(', "after _Static_assert");
token = expect(token, ',', "after conditional expression in _Static_assert");
token = expect(token, ')', "after diagnostic message in _Static_assert");
token = expect(token, ';', "after _Static_assert()");
token = expect(token->next, '(', "after 'for'");
token = expect(token, ';', "in 'for'");
token = expect(token, ';', "in 'for'");
token = expect(token, ')', "in 'for'");
return expect(token, ';', "after statement");
token = expect(token, ':', "after default/case");
return expect(token->next, ';', "at end of statement");
return expect(token, ';', "at end of statement");
token = expect(token, '(', "after __context__ statement");
token = expect(token, ')', "at end of __context__ statement");
return expect(token, ';', "at end of statement");
token = expect(token, '(', "after __range__ statement");
token = expect(token, ',', "after range expression");
token = expect(token, ',', "after low range");
token = expect(token, ')', "after range statement");
return expect(token, ';', "after range statement");
return expect(token, '}', "at end of compound statement");
return expect(token, ';', "at end of label declaration");
token = expect(token, ']', "at end of initializer index");
token = expect(token, '=', "at end of initializer index");
return expect(token, '}', "at end of initializer");
return expect(token, '}', "at end of function");
return expect(token, ';', "at the end of type declaration");
return expect(token, ';', "at end of declaration");
token = expect(token, '}', "at end of struct-union-enum-specifier");
token = expect(token, '}', "at end of specifier");
int expect;
expect = '>';
expect = 0;
expect = '>';
filename = token_name_sequence(token, expect, token);
path = expect ? angle_includepath : quote_includepath;
kb8042_send_and_expect(struct kb8042 *kb8042, uint8_t send, uint8_t expect,
rval = ((datab == expect) ? B_TRUE : B_FALSE);
const mac_ether_offload_info_t *expect = &mtp.mtp_results;
KT_ASSERT3UG(result.meoi_flags, ==, expect->meoi_flags, ctx, done);
KT_ASSERT3UG(result.meoi_l2hlen, ==, expect->meoi_l2hlen, ctx, done);
KT_ASSERT3UG(result.meoi_l3proto, ==, expect->meoi_l3proto, ctx, done);
KT_ASSERT3UG(result.meoi_l3hlen, ==, expect->meoi_l3hlen, ctx, done);
KT_ASSERT3UG(result.meoi_l4proto, ==, expect->meoi_l4proto, ctx, done);
KT_ASSERT3UG(result.meoi_l4hlen, ==, expect->meoi_l4hlen, ctx, done);
const mac_ether_offload_info_t *expect = &mtp.mtp_results;
KT_ASSERT3UG(result->meoi_flags, ==, expect->meoi_flags, ctx, done);
KT_ASSERT3UG(result->meoi_l2hlen, ==, expect->meoi_l2hlen, ctx, done);
KT_ASSERT3UG(result->meoi_l3proto, ==, expect->meoi_l3proto, ctx, done);
KT_ASSERT3UG(result->meoi_l3hlen, ==, expect->meoi_l3hlen, ctx, done);
KT_ASSERT3UG(result->meoi_l4proto, ==, expect->meoi_l4proto, ctx, done);
KT_ASSERT3UG(result->meoi_l4hlen, ==, expect->meoi_l4hlen, ctx, done);
x86pte_t expect = MAKEPTP(old->ht_pfn, old->ht_level);
found = x86pte_cas(higher, entry, expect, 0);
if (found != expect && found != 0)
if (found != expect)
found, expect);
x86pte_t expect,
if (expect != 0 && (oldpte & PT_PADDR) != (expect & PT_PADDR))
if (expect != 0 && (oldpte & PT_PADDR) != (expect & PT_PADDR))
x86pte_t expect,
found = CAS_PTE(ptep, expect, new);
if (found == expect) {
if ((expect & (PT_WRITABLE | PT_MOD)) == PT_WRITABLE &&