/freebsd/sys/contrib/dev/acpica/compiler/ |
H A D | asltokens.y | 174 %token <i> PARSEOP_ACCESSAS 175 %token <i> PARSEOP_ACCESSATTRIB_BLOCK 176 %token <i> PARSEOP_ACCESSATTRIB_BLOCK_CALL 177 %token <i> PARSEOP_ACCESSATTRIB_BYTE 178 %token <i> PARSEOP_ACCESSATTRIB_BYTES 179 %token <i> PARSEOP_ACCESSATTRIB_QUICK 180 %token <i> PARSEOP_ACCESSATTRIB_RAW_BYTES 181 %token <i> PARSEOP_ACCESSATTRIB_RAW_PROCESS 182 %token <i> PARSEOP_ACCESSATTRIB_SND_RCV 183 %token <i> PARSEOP_ACCESSATTRIB_WORD [all …]
|
/freebsd/usr.bin/localedef/ |
H A D | parser.y | 45 char *token; member 50 %token T_CODE_SET 51 %token T_MB_CUR_MAX 52 %token T_MB_CUR_MIN 53 %token T_COM_CHAR 54 %token T_ESC_CHAR 55 %token T_LT 56 %token T_GT 57 %token T_NL 58 %token T_SEMI [all …]
|
/freebsd/sbin/dhclient/ |
H A D | parse.c | 68 int brace_count = 0, token; in skip_to_semi() local 72 token = peek_token(&val, cfile); in skip_to_semi() 73 if (token == RBRACE) { in skip_to_semi() 75 token = next_token(&val, cfile); in skip_to_semi() 80 } else if (token == LBRACE) { in skip_to_semi() 82 } else if (token == SEMI && !brace_count) { in skip_to_semi() 83 token = next_token(&val, cfile); in skip_to_semi() 85 } else if (token == '\n') { in skip_to_semi() 92 token = next_token(&val, cfile); in skip_to_semi() 95 token = next_token(&val, cfile); in skip_to_semi() [all …]
|
H A D | clparse.c | 65 int token; in read_client_conf() local 110 token = peek_token(&val, cfile); in read_client_conf() 111 if (token == EOF) in read_client_conf() 115 token = next_token(&val, cfile); /* Clear the peek buffer */ in read_client_conf() 154 int token; in read_client_leases() local 163 token = next_token(&val, cfile); in read_client_leases() 164 if (token == EOF) in read_client_leases() 166 if (token != LEASE) { in read_client_leases() 304 int token; in parse_X() local 308 token = peek_token(&val, cfile); in parse_X() [all …]
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | asn1parse.y | 86 %token kw_ABSENT 87 %token kw_ABSTRACT_SYNTAX 88 %token kw_ALL 89 %token kw_APPLICATION 90 %token kw_AUTOMATIC 91 %token kw_BEGIN 92 %token kw_BIT 93 %token kw_BMPString 94 %token kw_BOOLEAN 95 %token kw_B [all...] |
/freebsd/contrib/wpa/src/utils/ |
H A D | json.c | 191 static int json_check_tree_state(struct json_token *token) in json_check_tree_state() argument 193 if (!token) in json_check_tree_state() 195 if (json_check_tree_state(token->child) < 0 || in json_check_tree_state() 196 json_check_tree_state(token->sibling) < 0) in json_check_tree_state() 198 if (token->state != JSON_COMPLETED) { in json_check_tree_state() 201 token->state, token->name ? token->name : "N/A", in json_check_tree_state() 202 token->type); in json_check_tree_state() 222 struct json_token *root = NULL, *curr_token = NULL, *token = NULL; in json_parse() local 237 token = json_alloc_token(&tokens); in json_parse() 238 if (!token) in json_parse() [all …]
|
/freebsd/contrib/ntp/libjsmn/ |
H A D | jsmn.c | 26 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type, in jsmn_fill_token() argument 28 token->type = type; in jsmn_fill_token() 29 token->start = start; in jsmn_fill_token() 30 token->end = end; in jsmn_fill_token() 31 token->size = 0; in jsmn_fill_token() 39 jsmntok_t *token; in jsmn_parse_primitive() local 70 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive() 71 if (token == NULL) { in jsmn_parse_primitive() 75 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive() 77 token->parent = parser->toksuper; in jsmn_parse_primitive() [all …]
|
/freebsd/libexec/nuageinit/ |
H A D | yaml.lua | 147 local token 166 token = table_clone(tokens[i]) 167 token[2] = captures 169 token.raw = str:sub(1, #str - #str2) 172 if token[1] == "{" or token[1] == "[" then 174 elseif token.const then 176 str = token[2][2] .. str 177 token.raw = token.raw:sub(1, #token.raw - #token[2][2]) 178 elseif token[1] == "id" then 180 str = token[2][2] .. str [all …]
|
/freebsd/crypto/heimdal/lib/gssapi/krb5/ |
H A D | cfx.c | 291 gss_cfx_wrap_token token; 422 token = (gss_cfx_wrap_token)header->buffer.value; 424 token->TOK_ID[0] = 0x05; 425 token->TOK_ID[1] = 0x04; 426 token->Flags = 0; 427 token->Filler = 0xFF; 430 token->Flags |= CFXSentByAcceptor; 433 token->Flags |= CFXAcceptorSubkey; 445 token->Flags |= CFXSealed; 446 token->EC[0] = (ec >> 8) & 0xFF; [all …]
|
/freebsd/contrib/ntp/scripts/deprecated/ |
H A D | html2man.in | 97 while (my $token = $p->get_token) { 98 if($token->[0] eq "T") { 99 my $text = $token->[1]; 116 if($token->[0] eq "S") { 117 if($token->[1] eq "h4") { 132 if($token->[1] eq "tt") { 136 if($token->[1] eq "i") { 140 if($token->[1] eq "address") { 144 if($token->[1] eq "dt" || $token->[1] eq "br" && $deflevel > 0) { 148 if($token->[1] eq "dd") { [all …]
|
/freebsd/lib/libpmc/pmu-events/ |
H A D | jsmn.c | 49 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type, in jsmn_fill_token() argument 52 token->type = type; in jsmn_fill_token() 53 token->start = start; in jsmn_fill_token() 54 token->end = end; in jsmn_fill_token() 55 token->size = 0; in jsmn_fill_token() 65 jsmntok_t *token; in jsmn_parse_primitive() local 105 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive() 106 if (token == NULL) { in jsmn_parse_primitive() 110 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive() 122 jsmntok_t *token; in jsmn_parse_string() local [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_grammar.y | 50 %token DT_TOK_COMMA DT_TOK_ELLIPSIS 51 %token DT_TOK_ASGN DT_TOK_ADD_EQ DT_TOK_SUB_EQ DT_TOK_MUL_EQ 52 %token DT_TOK_DIV_EQ DT_TOK_MOD_EQ DT_TOK_AND_EQ DT_TOK_XOR_EQ DT_TOK_OR_EQ 53 %token DT_TOK_LSH_EQ DT_TOK_RSH_EQ DT_TOK_QUESTION DT_TOK_COLON 54 %token DT_TOK_LOR DT_TOK_LXOR DT_TOK_LAND 55 %token DT_TOK_BOR DT_TOK_XOR DT_TOK_BAND DT_TOK_EQU DT_TOK_NEQ 56 %token DT_TOK_LT DT_TOK_LE DT_TOK_GT DT_TOK_GE DT_TOK_LSH DT_TOK_RSH 57 %token DT_TOK_ADD DT_TOK_SUB DT_TOK_MUL DT_TOK_DIV DT_TOK_MOD 58 %token DT_TOK_LNEG DT_TOK_BNEG DT_TOK_ADDADD DT_TOK_SUBSUB 59 %token DT_TOK_PREINC DT_TOK_POSTINC DT_TOK_PREDEC DT_TOK_POSTDEC [all …]
|
/freebsd/contrib/ldns/ |
H A D | parse.c | 25 ldns_fget_token(FILE *f, char *token, const char *delim, size_t limit) in ldns_fget_token() argument 27 return ldns_fget_token_l(f, token, delim, limit, NULL); in ldns_fget_token() 35 ldns_fget_token_l_st_file_type(FILE *f, char **token, size_t *limit, in ldns_fget_token_l_st_file_type() argument 54 if (!token || !limit) in ldns_fget_token_l_st_file_type() 58 if (*token == NULL || *limit == 0) in ldns_fget_token_l_st_file_type() 61 } else if (*token == NULL) { in ldns_fget_token_l_st_file_type() 63 if (!(*token = LDNS_XMALLOC(char, *limit + 1))) in ldns_fget_token_l_st_file_type() 73 t = *token; in ldns_fget_token_l_st_file_type() 138 if (c == '\n' && p != 0 && t > *token) { in ldns_fget_token_l_st_file_type() 144 && (i >= *limit || (size_t)(t - *token) >= *limit)) { in ldns_fget_token_l_st_file_type() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | context2.sh | 56 * Pass a token thru pipes to NTHREADS+1 threads in a circular list. 80 int token; 84 if (read(fds[i][0], &token, sizeof(token)) != sizeof(token)) 86 token++; 87 if (write(fds[i+1][1], &token, sizeof(token)) != sizeof(token)) 99 int i, r, token; 115 token = 0; 116 if (write(fds[0][1], &token, sizeof(token)) != sizeof(token)) 118 if (read(fds[NTHREADS][0], &token, sizeof(token)) != 119 sizeof(token))
|
H A D | context.sh | 58 * Pass a token thru pipes to CHILDREN+1 processes in a circular list 88 int token; 106 if (read(fds[i][0], &token, sizeof(token)) 107 != sizeof(token)) 109 if (write(fds[i+1][1], &token, sizeof(token)) 110 != sizeof(token)) 118 token = j; 119 if (write(fds[0][1], &token, sizeof(token)) != sizeof(token)) 121 if (read(fds[CHILDREN][0], &token, sizeof(token)) 122 != sizeof(token))
|
H A D | pipe2.sh | 88 int token; 97 token = 0; 98 write(fds[1], &token, sizeof(token)); 104 if (read(fds[0], &token, sizeof(token)) != sizeof(token)) 109 token++; 110 if (write(fds[1], &token, sizeof(token)) != sizeof(token)) 121 if (read(fds[0], &token, sizeof(token)) != sizeof(token)) 123 fprintf(stderr, "FINAL read %d from %d\n", token, fds[0]);
|
/freebsd/sys/powerpc/powernv/ |
H A D | opal_async.c | 78 vmem_addr_t token; in opal_alloc_async_token() local 80 vmem_alloc(async_token_pool, 1, M_FIRSTFIT | M_WAITOK, &token); in opal_alloc_async_token() 81 completions[token].completed = false; in opal_alloc_async_token() 83 return (token); in opal_alloc_async_token() 87 opal_free_async_token(int token) in opal_free_async_token() argument 90 vmem_free(async_token_pool, token, 1); in opal_free_async_token() 98 opal_wait_completion(void *buf, uint64_t size, int token) in opal_wait_completion() argument 104 vtophys(buf), size, token); in opal_wait_completion() 106 if (completions[token].completed) { in opal_wait_completion() 108 memcpy(buf, &completions[token].msg, size); in opal_wait_completion() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_getdate.c | 54 struct token { int token; time_t value; }; 60 struct token *tokenp; /* Pointer to next token. */ 103 if (gds->tokenp[0].token == tUNUMBER 104 && gds->tokenp[1].token == ':' 105 && gds->tokenp[2].token == tUNUMBER in timephrase() 106 && gds->tokenp[3].token == ':' in timephrase() 107 && gds->tokenp[4].token == tUNUMBER) { in timephrase() 115 else if (gds->tokenp[0].token in timephrase() 58 valuetoken global() argument [all...] |
/freebsd/sys/powerpc/pseries/ |
H A D | rtas_dev.c | 106 cell_t token; in rtas_gettime() local 109 token = rtas_token_lookup("get-time-of-day"); in rtas_gettime() 110 if (token == -1) in rtas_gettime() 112 error = rtas_call_method(token, 0, 8, &tod[0], &tod[1], &tod[2], in rtas_gettime() 134 cell_t token, status; in rtas_settime() local 137 token = rtas_token_lookup("set-time-of-day"); in rtas_settime() 138 if (token == -1) in rtas_settime() 142 error = rtas_call_method(token, 7, 1, ct.year, ct.mon, ct.day, ct.hour, in rtas_settime() 155 cell_t token, status; in rtas_shutdown() local 158 token = rtas_token_lookup("power-off"); in rtas_shutdown() [all …]
|
/freebsd/contrib/byacc/test/ |
H A D | ok_syntax1.y | 25 %token DIGIT LETTER 27 %token OCT1 '\177' 28 %token HEX1 '\xff' 29 %token HEX2 '\xFF' 30 %token HEX3 '\x7f' 31 %token STR1 "\x7f\177\\\n" 32 %token STR2 "\x7f\ 35 %token BELL '\a' 36 %token BS '\b' 37 %token NL '\n' [all …]
|
/freebsd/usr.sbin/config/ |
H A D | config.y | 7 %token ARCH 8 %token COMMA 9 %token CONFIG 10 %token CPU 11 %token NOCPU 12 %token DEVICE 13 %token NODEVICE 14 %token ENV 15 %token ENVVAR 16 %token EQUALS [all …]
|
/freebsd/sbin/ipf/iplang/ |
H A D | iplang_y.y | 46 extern int state, state, lineNum, token; 159 %token <num> IL_NUMBER 161 %token <str> IL_TOKEN 162 %type <str> token optoken 163 %token IL_HEXDIGIT IL_COLON IL_DOT IL_EOF IL_COMMENT 164 %token IL_INTERFACE IL_IFNAME IL_MTU IL_EADDR 165 %token IL_IPV4 IL_V4PROTO IL_V4SRC IL_V4DST IL_V4OFF IL_V4V IL_V4HL IL_V4TTL 166 %token IL_V4TOS IL_V4SUM IL_V4LEN IL_V4OPT IL_V4ID 167 %token IL_TCP IL_SPORT IL_DPORT IL_TCPFL IL_TCPSEQ IL_TCPACK IL_TCPOFF 168 %token IL_TCPWIN IL_TCPSUM IL_TCPURP IL_TCPOPT IL_TCPO_NOP IL_TCPO_EOL [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | keyword-gen.c | 30 /* Define a structure to hold a (keyword, token) pair */ 33 u_short token; /* Associated Token */ 34 follby followedby; /* nonzero indicates the next token(s) member 267 char followedby; /* Forces next token(s) to T_String */ 277 * array with one entry per token, and shrinking the char value to 287 char * symb[1024]; /* map token ID to symbolic name */ 361 u_short token; in generate_fsm() local 373 * token number for its terminal state, so the token identifier in generate_fsm() 380 token in generate_fsm() 522 create_scan_states(char * text,u_short token,follby followedby,u_short prev_state) create_scan_states() argument 735 int token; populate_symb() local 763 symbname(u_short token) symbname() argument [all...] |
/freebsd/sys/contrib/rdma/krping/ |
H A D | getopt.c | 33 char *token; in krping_getopt() local 37 if ((token = strsep(options, ",")) == NULL) in krping_getopt() 39 } while (*token == '\0'); in krping_getopt() 41 *optopt = token; in krping_getopt() 43 if ((val = strchr (token, '=')) != NULL) { in krping_getopt() 48 if (!strcmp(opts->name, token)) { in krping_getopt() 54 "an argument\n", caller, token); in krping_getopt() 65 "in %s=%s\n", caller, token, val); in krping_getopt() 72 "%s option\n", caller, val, token); in krping_getopt() 76 printk(KERN_INFO "%s: Unrecognized option %s\n", caller, token); in krping_getopt()
|
/freebsd/usr.bin/rpcgen/ |
H A D | rpc_scan.h | 115 struct token { struct 119 typedef struct token token; argument 125 void scan(tok_kind expect, token *tokp); 126 void scan2(tok_kind expect1, tok_kind expect2, token *tokp); 127 void scan3(tok_kind expect1, tok_kind expect2, tok_kind expect3, token *tokp); 128 void scan_num(token *tokp); 129 void peek(token *tokp); 130 int peekscan(tok_kind expect, token *tokp); 131 void get_token(token *tokp);
|