Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl_layout.c71 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
83 while (p[*pos] && ')' != p[*pos]) in mods()
121 if (p[*pos] == '-' || p[*pos] == '+') in mods()
164 ln, *pos - 1, "%c", p[*pos - 1]); in mods()
175 if (p[*pos] == '\0' || (p[*pos + 1] != ' ' && p[*pos + 1] != '.')) { in mods()
177 ln, *pos, "TS %s", p + *pos - 1); in mods()
213 while (p[*pos] == ' ' || p[*pos] == '\t' || p[*pos] == '|') { in cell()
228 if (p[*pos] == '.' || p[*pos] == '\0') in cell()
239 ln, *pos, "%c", p[*pos]); in cell()
272 while (p[pos] == ' ' || p[pos] == '\t') in tbl_layout()
[all …]
H A Dtbl_opts.c70 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 Dtbl_data.c55 sv = *pos; in getdata()
56 while (p[*pos] != '\0' && p[*pos] != tbl->opts.tab) in getdata()
57 (*pos)++; in getdata()
82 while (p[*pos] != '\0') in getdata()
83 (*pos)++; in getdata()
155 if (p[*pos] != '\0') in getdata()
156 (*pos)++; in getdata()
185 if (p[pos] == 'T' && p[pos + 1] == '}') { in tbl_cdata()
186 pos += 2; in tbl_cdata()
189 pos++; in tbl_cdata()
[all …]
H A Ddba_write.c59 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 Dmdoc_argv.c298 ipos = *pos; in mdoc_argv()
342 tmpv.pos = *pos; in mdoc_argv()
369 *pos = ipos; in mdoc_argv()
493 while (buf[*pos] == ' ' && buf[*pos + 1] == ' ') in args()
494 (*pos)++; in args()
501 if (buf[*pos] == '\0' || buf[*pos + 1] == '\0') in args()
535 for ( ; buf[*pos]; (*pos)++) { in args()
538 buf[*pos - pairs] = buf[*pos]; in args()
546 (*pos)++; in args()
565 (*pos)++; in args()
[all …]
H A Dtbl.c51 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 Dtoken_store.c58 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 Dcheck_indenting.c44 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 Dcheck_macros.c22 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 Dmacro_table.c39 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 Dcheck_no_if_block.c30 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 Dhashscan.c75 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 Dacquire_iodevs.c62 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 Dtrie.h48 #define COMPUTE_BIT_POS(len, pos) \ argument
49 (((len - pos - 1) & 0xf8) | (pos & 0x7))
56 #define EXTRACTBIT_CMN(val, pos) ((val >> pos) & 1) argument
58 #define EXTRACTBIT(val, pos, len) (EXTRACTBIT_CMN(val, pos)) argument
60 #define EXTRACTBIT(val, pos, len) \
65 #define SETBIT_CMN(num, pos, val) (num |= (val << pos)) argument
67 #define SETBIT(num, pos, val, len) (SETBIT_CMN(num, pos, val)) argument
69 #define SETBIT(num, pos, val, len) \
74 #define UNSETBIT_CMN(num, pos) (num &= (~(1 << pos))) argument
76 #define UNSETBIT(num, pos, len) (UNSETBIT_CMN(num, pos)) argument
[all …]
H A Dtrie.c130 if (pos == (nodep->pos - nodep->bits)) { in t_split()
139 nodep->bits = nodep->pos - pos; in t_split()
181 nodep->one->pos = pos - 1; /* link is one bit */ in t_split()
233 for (pos = key_len; pos > 0; --pos) { in t_insert()
282 c_node->pos = (pos - 1); in t_insert()
296 c_node->pos = (pos - 1); in t_insert()
353 for (pos = type_len; pos > 0; --pos) { in t_insert6()
451 pos = (c_node->pos - c_node->bits) + 1; in t_traverse_delete()
650 for (pos = type_len; pos > 0; --pos) { in t_remove6()
722 for (pos = (uint8_t)tid->key_len; pos > 0; --pos) { in t_retrieve()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dlex_var.h5 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/boot/sys/boot/common/linenoise/
H A Dlinenoise.c239 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.lib/wpad/
H A Dwpa.c298 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/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_display.c263 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 Dsnoop_rpcsec.c91 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/lib/libresolv2/common/irs/
H A Dlcl_ng.c304 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/uts/common/io/mr_sas/
H A Dmr_sas_list.h90 #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/idmap/idmap/
H A Didmap.c211 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/cmd/audio/utilities/
H A DAudioList.cc88 Double pos) // split offset in split() argument
139 if (Undefined(pos)) in getposition()
152 if (length > pos) in getposition()
156 pos -= length; in getposition()
199 Double pos) // position in GetHeader() argument
207 if (pos != 0.) { in GetHeader()
243 if (Undefined(pos) || (pos < 0.) || ((int)cnt < 0)) in ReadData()
251 off = pos; in ReadData()
314 if (pos == 0.) { in Insert()
320 } else if (pos != 0.) { in Insert()
[all …]
/illumos-gate/usr/src/lib/libtnfprobe/
H A Dtnf_buf.c312 if (pos->tnfw_w_block == NULL) in release_block_from_pos()
317 pos->tnfw_w_block = NULL; in release_block_from_pos()
439 TNFW_B_POS *pos; in tnfw_b_alloc() local
469 block = pos->tnfw_w_block; in tnfw_b_alloc()
535 destp = (char *)pos->tnfw_w_block + pos->tnfw_w_write_off; in tnfw_b_alloc()
536 pos->tnfw_w_write_off += size; in tnfw_b_alloc()
558 TNFW_B_POS *pos; in tnfw_b_xcommit() local
572 pos = &wcb->tnfw_w_pos; in tnfw_b_xcommit()
604 pos = &wcb->tnfw_w_tag_pos; in tnfw_b_xcommit()
633 block = pos->tnfw_w_block = pos->tnfw_w_uncommitted; in tnfw_b_xabort()
[all …]

12345678910>>...21