/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_layout.c | 75 while (p[*pos] == ' ' || p[*pos] == '\t') in mods() 87 while (p[*pos] && ')' != p[*pos]) in mods() 129 if (p[*pos] == '-' || p[*pos] == '+') in mods() 172 ln, *pos - 1, "%c", p[*pos - 1]); in mods() 176 while (p[*pos] == ' ' || p[*pos] == '\t') in mods() 196 ln, *pos, "TS %s", p + *pos - 1); in mods() 215 while (p[*pos] == ' ' || p[*pos] == '\t' || p[*pos] == '|') { in cell() 230 if (p[*pos] == '.' || p[*pos] == '\0') in cell() 241 ln, *pos, "%c", p[*pos]); in cell() 274 while (p[pos] == ' ' || p[pos] == '\t') in tbl_layout() [all …]
|
H A D | tbl_opts.c | 70 while (p[*pos] == ' ' || p[*pos] == '\t') in arg() 71 (*pos)++; in arg() 77 (*pos)++; in arg() 85 ln, *pos, "%.*s", len, p + *pos); in arg() 112 *pos += len; in arg() 114 (*pos)++; in arg() 129 while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',') in tbl_option() 130 pos++; in tbl_option() 145 ln, pos, "%c", p[pos]); in tbl_option() 146 pos++; in tbl_option() [all …]
|
H A D | tbl_data.c | 57 startpos = *pos; in getdata() 62 *pos = ccp - p; in getdata() 90 (*pos)++; in getdata() 152 endpos = *pos; in getdata() 174 if (p[*pos] != '\0') in getdata() 175 (*pos)++; in getdata() 204 if (p[pos] == 'T' && p[pos + 1] == '}') { in tbl_cdata() 205 pos += 2; in tbl_cdata() 208 pos++; in tbl_cdata() 211 pos++; in tbl_cdata() [all …]
|
H A D | dba_write.c | 59 long pos; in dba_tell() local 67 return pos; in dba_tell() 71 dba_seek(int32_t pos) in dba_seek() argument 80 int32_t pos; in dba_align() local 82 pos = dba_tell(); in dba_align() 83 while (pos & 3) { in dba_align() 85 pos++; in dba_align() 87 return pos; in dba_align() 94 int32_t i, pos; in dba_skip() local 99 pos = dba_tell(); in dba_skip() [all …]
|
H A D | mdoc_argv.c | 298 ipos = *pos; in mdoc_argv() 342 tmpv.pos = *pos; in mdoc_argv() 369 *pos = ipos; in mdoc_argv() 494 while (buf[*pos] == ' ' && buf[*pos + 1] == ' ') in args() 495 (*pos)++; in args() 502 if (buf[*pos] == '\0' || buf[*pos + 1] == '\0') in args() 536 for ( ; buf[*pos]; (*pos)++) { in args() 539 buf[*pos - pairs] = buf[*pos]; in args() 547 (*pos)++; in args() 566 (*pos)++; in args() [all …]
|
H A D | tbl.c | 51 for (cp = p + pos; *cp != '\0'; cp++) { in tbl_read() 69 tbl_option(tbl, ln, p, &pos); in tbl_read() 70 if (p[pos] == '\0') in tbl_read() 79 tbl_layout(tbl, ln, p, pos); in tbl_read() 82 tbl_cdata(tbl, ln, p, pos); in tbl_read() 85 tbl_data(tbl, ln, p, pos); in tbl_read() 91 tbl_alloc(int pos, int line, struct tbl_node *last_tbl) in tbl_alloc() argument 99 tbl->pos = pos; in tbl_alloc() 143 tbl_restart(int line, int pos, struct tbl_node *tbl) in tbl_restart() argument 146 mandoc_msg(MANDOCERR_TBLDATA_BLK, line, pos, "T&"); in tbl_restart() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | token_store.c | 58 if (pos.line == cursor->pos.line) in find_line() 60 if (pos.line < cursor->pos.line) { in find_line() 69 if (pos.line < cursor->next->pos.line) in find_line() 82 if (new->pos.pos < (*current)->pos.pos) { in insert_into_line() 88 if (new->pos.pos == (*current)->pos.pos) in insert_into_line() 102 cursor->pos = token->pos; in store_token() 111 cursor->pos = token->pos; in store_token() 124 cursor->pos = token->pos; in store_token() 145 if (cursor->pos.line != pos.line) in first_token_from_line() 157 if (pos.pos == token->pos.pos) in pos_get_token() [all …]
|
H A D | check_indenting.c | 44 if (stmt->pos.pos == __prev_stmt->pos.pos) in missing_curly_braces() 50 inside_pos = __prev_stmt->if_true->pos.pos; in missing_curly_braces() 61 if (stmt->pos.pos != inside_pos) in missing_curly_braces() 71 struct position pos = stmt->pos; in prev_lines_say_endif() local 74 pos.pos = 2; in prev_lines_say_endif() 158 if (stmt->pos.line == __prev_stmt->pos.line) { in match_stmt() 165 if (stmt->pos.pos == __prev_stmt->pos.pos) in match_stmt() 173 (stmt->pos.line == __next_stmt->pos.line || in match_stmt() 174 stmt->pos.pos == __next_stmt->pos.pos)) in match_stmt() 192 if (stmt->pos.pos == orig_pos) { in match_stmt() [all …]
|
H A D | check_macros.c | 22 static void match_inside(struct expression *expr, struct position pos) in match_inside() argument 27 if (positions_eq(expr->pos, pos)) in match_inside() 29 if (positions_eq(expr->unop->pos, pos)) in match_inside() 33 name = get_macro_name(pos); in match_inside() 46 if (positions_eq(expr->right->pos, pos)) in match_one_side() 48 if (positions_eq(expr->left->pos, pos)) in match_one_side() 52 name = get_macro_name(pos); in match_one_side() 63 match_inside(expr->left, expr->pos); in match_join() 65 match_inside(expr->right, expr->pos); in match_join() 68 match_one_side(expr->left, expr->pos, expr->op); in match_join() [all …]
|
H A D | macro_table.c | 39 struct position *pos = _pos; in position_hash() local 41 return pos->line | (pos->pos << 22) | (pos->stream << 18); in position_hash() 49 return pos1->line == pos2->line && pos1->pos == pos2->pos && in equalkeys() 65 list = do_search_macro(macro_table, &token->pos); in store_macro_pos() 68 do_insert_macro(macro_table, &token->pos, list); in store_macro_pos() 71 char *get_macro_name(struct position pos) in get_macro_name() argument 77 list = do_search_macro(macro_table, &pos); in get_macro_name() 81 char *get_inner_macro(struct position pos) in get_inner_macro() argument 87 list = do_search_macro(macro_table, &pos); in get_inner_macro() 91 struct string_list *get_all_macros(struct position pos) in get_all_macros() argument [all …]
|
H A D | check_no_if_block.c | 30 if (get_macro_name(stmt->pos)) in match_if_stmt() 32 if (stmt->pos.pos != stmt->if_true->pos.pos) in match_if_stmt() 45 if (get_macro_name(stmt->pos)) in match_for_stmt() 47 if (stmt->pos.pos != stmt->iterator_statement->pos.pos) in match_for_stmt()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/ |
H A D | hashscan.c | 75 tab = pos->tab; in hashscan() 79 return(pos); in hashscan() 92 b = pos->bucket; in hashnext() 99 if (++pos->slot >= pos->limit) in hashnext() 102 if (!pos->flags || !pos->tab->scope) return(0); in hashnext() 103 pos->tab = pos->tab->scope; in hashnext() 104 pos->tab->root->last.table = pos->tab; in hashnext() 105 pos->limit = (pos->slot = pos->tab->table) + pos->tab->size; in hashnext() 123 return(pos->tab->root->last.bucket = pos->bucket = b); in hashnext() 133 if (pos) in hashdone() [all …]
|
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | acquire_iodevs.c | 62 for (pos = list; pos; pos = pos->is_next) { in find_iodev_by_name() 112 for (pos = ss->s_iodevs; pos; pos = pos->is_next) { in find_parent() 129 for (pos = ss->s_iodevs; pos; pos = pos->is_next) { in find_parent() 218 pos->is_next->is_prev = pos->is_prev; in list_del() 221 pos->is_prev = pos->is_next = NULL; in list_del() 418 pos = pos->is_next; in choose_iodevs() 459 pos = pos->is_next; in choose_iodevs() 476 pos = pos->is_next; in choose_iodevs() 506 for (pos = list; pos; pos = pos->is_next) { in acquire_iodev_stats() 898 for (; pos; pos = pos->is_next) { in create_li_delete_lti() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | trie.h | 46 #define COMPUTE_BIT_POS(len, pos) \ argument 47 (((len - pos - 1) & 0xf8) | (pos & 0x7)) 54 #define EXTRACTBIT_CMN(val, pos) ((val >> pos) & 1) argument 56 #define EXTRACTBIT(val, pos, len) (EXTRACTBIT_CMN(val, pos)) argument 58 #define EXTRACTBIT(val, pos, len) \ 63 #define SETBIT_CMN(num, pos, val) (num |= (val << pos)) argument 65 #define SETBIT(num, pos, val, len) (SETBIT_CMN(num, pos, val)) argument 67 #define SETBIT(num, pos, val, len) \ 72 #define UNSETBIT_CMN(num, pos) (num &= (~(1 << pos))) argument 74 #define UNSETBIT(num, pos, len) (UNSETBIT_CMN(num, pos)) argument [all …]
|
H A D | trie.c | 128 if (pos == (nodep->pos - nodep->bits)) { in t_split() 137 nodep->bits = nodep->pos - pos; in t_split() 179 nodep->one->pos = pos - 1; /* link is one bit */ in t_split() 231 for (pos = key_len; pos > 0; --pos) { in t_insert() 280 c_node->pos = (pos - 1); in t_insert() 294 c_node->pos = (pos - 1); in t_insert() 351 for (pos = type_len; pos > 0; --pos) { in t_insert6() 449 pos = (c_node->pos - c_node->bits) + 1; in t_traverse_delete() 648 for (pos = type_len; pos > 0; --pos) { in t_remove6() 720 for (pos = (uint8_t)tid->key_len; pos > 0; --pos) { in t_retrieve() [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | lex_var.h | 5 extern long pos; 8 if (pos >= string_start && pos <= string_end) { \ 9 buf[0] = string_val[pos - string_start]; \ 10 pos++; \ 23 pos++; \ 31 # define input() (((pos >= string_start) && (pos < string_end)) ? \ 32 yysptr = yysbuf, string_val[pos++ - string_start] : \ 35 yytchar) == EOF ? (pos++, 0) : (pos++, yytchar)) 40 # define lex_input() (((pos >= string_start) && (pos < string_end)) ? \ 44 yytchar) == EOF ? (pos++, 0) : (pos++, yytchar)) [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa.c | 298 pos += snprintf(pos, buf + len - pos, in pmksa_cache_list() 304 pos += snprintf(pos, buf + len - pos, "%d " MACSTR " ", in pmksa_cache_list() 307 pos += snprintf(pos, buf + len - pos, "%02x", in pmksa_cache_list() 309 pos += snprintf(pos, buf + len - pos, " %d\n", in pmksa_cache_list() 383 count = pos[0] | (pos[1] << 8); in wpa_parse_wpa_ie_wpa() 907 pos[0], pos[1]); in wpa_supplicant_process_1_of_4() 921 pos += 2 + pos[1]; in wpa_supplicant_process_1_of_4() 1129 pos[0], pos[1]); in wpa_supplicant_process_3_of_4() 1150 pos += 2 + pos[1]; in wpa_supplicant_process_3_of_4() 1325 pos[0], pos[1]); in wpa_supplicant_process_1_of_2() [all …]
|
/illumos-gate/usr/src/boot/common/linenoise/ |
H A D | linenoise.c | 239 ls->pos = saved.pos; in completeLine() 342 size_t pos = l->pos; in refreshSingleLine() local 348 pos--; in refreshSingleLine() 476 memmove(l->buf+l->pos+1,l->buf+l->pos,l->len-l->pos); in linenoiseEditInsert() 555 memmove(l->buf+l->pos,l->buf+l->pos+1,l->len-l->pos-1); in linenoiseEditDelete() 566 memmove(l->buf+l->pos-1,l->buf+l->pos,l->len-l->pos); in linenoiseEditBackspace() 581 while (l->pos > 0 && l->buf[l->pos-1] == ' ') in linenoiseEditDeletePrevWord() 583 while (l->pos > 0 && l->buf[l->pos-1] != ' ') in linenoiseEditDeletePrevWord() 664 if (l.pos > 0 && l.pos < l.len) { in linenoiseEdit() 666 buf[l.pos-1] = buf[l.pos]; in linenoiseEdit() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_display.c | 263 int pos; in showxdr_u_char() local 308 int pos; in showxdr_u_short() local 353 int pos; in showxdr_u_long() local 454 int pos; in showxdr_string() local 506 int pos; in showxdr_context() local 533 uint_t pos; in xdr_skip() local 538 if ((pos + delta) < pos) in xdr_skip() 600 int pos; in showxdr_date() local 658 int pos; in showxdr_date_ns() local 693 int pos; in showxdr_time() local [all …]
|
H A D | snoop_rpcsec.c | 91 int pos; in print_rpcsec_gss_cred() local 93 pos = getxdr_pos(); in print_rpcsec_gss_cred() 121 pos = getxdr_pos(); in print_rpcsec_gss_cred() 124 line = get_line(pos, getxdr_pos()); in print_rpcsec_gss_cred() 331 int pos = 0; in print_rpc_gss_init_arg() local 348 pos = getxdr_pos(); in print_rpc_gss_init_arg() 351 line = get_line(pos, getxdr_pos()); in print_rpc_gss_init_arg() 369 int pos = 0; in print_rpc_gss_init_res() local 376 pos = getxdr_pos(); in print_rpc_gss_init_res() 382 pos = getxdr_pos(); in print_rpc_gss_init_res() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb3_kdf.c | 110 int pos = 0; in smb3_kdf() local 120 kdfbuf[pos++] = 0; in smb3_kdf() 121 kdfbuf[pos++] = 0; in smb3_kdf() 122 kdfbuf[pos++] = 0; in smb3_kdf() 123 kdfbuf[pos++] = 1; in smb3_kdf() 126 pos += label_len; in smb3_kdf() 128 kdfbuf[pos++] = 0; in smb3_kdf() 131 pos += context_len; in smb3_kdf() 134 kdfbuf[pos++] = 0; in smb3_kdf() 135 kdfbuf[pos++] = 0; in smb3_kdf() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_ng.c | 304 pos++; in parse_netgrp() 338 while (*pos == ' ' || *pos == ',' || *pos == '\t') in parse_netgrp() 339 pos++; in parse_netgrp() 361 pos = line; in read_for_group() 364 while (*pos == ' ' || *pos == '\t') in read_for_group() 365 pos++; in read_for_group() 367 while (*pos != ' ' && *pos != '\t' && *pos != '\n' && in read_for_group() 369 pos++; in read_for_group() 371 while (*pos == ' ' || *pos == '\t') in read_for_group() 372 pos++; in read_for_group() [all …]
|
/illumos-gate/usr/src/cmd/idmap/idmap/ |
H A D | idmap.c | 211 cmd_pos_t *pos[1]; member 240 cmd_pos_t *pos); 242 cmd_pos_t *pos); 244 cmd_pos_t *pos); 336 if (pos != NULL) { in print_error() 345 pos->linenum, in print_error() 347 pos->line); in print_error() 405 if (pos == NULL) in positions_add() 413 *positions->pos[positions->last] = *pos; in positions_add() 414 positions->pos[positions->last]->line = strdup(pos->line); in positions_add() [all …]
|
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas_list.h | 90 #define mlist_for_each(pos, head) \ argument 91 for (pos = (head)->next, prefetch(pos->next); pos != (head); \ 92 pos = pos->next, prefetch(pos->next)) 101 #define mlist_for_each_safe(pos, n, head) \ argument 102 for (pos = (head)->next, n = pos->next; pos != (head); \ 103 pos = n, n = pos->next)
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioList.cc | 86 Double pos) // split offset in split() argument 137 if (Undefined(pos)) in getposition() 150 if (length > pos) in getposition() 154 pos -= length; in getposition() 197 Double pos) // position in GetHeader() argument 205 if (pos != 0.) { in GetHeader() 241 if (Undefined(pos) || (pos < 0.) || ((int)cnt < 0)) in ReadData() 249 off = pos; in ReadData() 312 if (pos == 0.) { in Insert() 318 } else if (pos != 0.) { in Insert() [all …]
|