Home
last modified time | relevance | path

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

12345678910>>...20

/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl_layout.c66 int ln, const char *p, int *pos) in mods() argument
75 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
76 (*pos)++; in mods()
80 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) in mods()
85 if ('(' == p[*pos]) { in mods()
86 (*pos)++; in mods()
87 while (p[*pos] && ')' != p[*pos]) in mods()
88 (*pos)++; in mods()
89 if (')' == p[*pos]) { in mods()
90 (*pos)++; in mods()
[all …]
H A Dtbl_opts.c66 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) in arg() argument
70 while (p[*pos] == ' ' || p[*pos] == '\t') in arg()
71 (*pos)++; in arg()
76 if (p[*pos] == '(') { in arg()
77 (*pos)++; in arg()
78 while (p[*pos + len] != ')') in arg()
85 ln, *pos, "%.*s", len, p + *pos); in arg()
91 tbl->opts.tab = p[*pos]; in arg()
99 tbl->opts.decimal = p[*pos]; in arg()
106 mandoc_msg(MANDOCERR_TBLOPT_NOARG, ln, *pos, in arg()
[all …]
H A Dtbl_data.c44 int ln, const char *p, int *pos) in getdata() argument
57 startpos = *pos; in getdata()
62 *pos = ccp - p; in getdata()
67 while (cp != NULL && cp->pos == TBL_CELL_SPAN) in getdata()
80 cp->pos = TBL_CELL_LEFT; in getdata()
89 while (p[*pos] != '\0') in getdata()
90 (*pos)++; in getdata()
102 dat->pos = TBL_DATA_NONE; in getdata()
112 if (cp->pos == TBL_CELL_DOWN || in getdata()
113 (*pos - startpos == 2 && in getdata()
[all …]
H A Ddba_write.c59 long pos; in dba_tell() local
61 if ((pos = ftell(ofp)) == -1) in dba_tell()
63 if (pos >= INT32_MAX) { in dba_tell()
65 err(1, "ftell = %ld", pos); in dba_tell()
67 return pos; in dba_tell()
71 dba_seek(int32_t pos) in dba_seek() argument
73 if (fseek(ofp, pos, SEEK_SET) == -1) in dba_seek()
74 err(1, "fseek(%d)", pos); in dba_seek()
80 int32_t pos; in dba_align() local
82 pos = dba_tell(); in dba_align()
[all …]
H A Dmdoc_argv.c278 struct mdoc_arg **reta, int *pos, char *buf) in mdoc_argv() argument
298 ipos = *pos; in mdoc_argv()
342 tmpv.pos = *pos; in mdoc_argv()
369 *pos = ipos; in mdoc_argv()
415 mdoc_args(struct roff_man *mdoc, int line, int *pos, in mdoc_args() argument
440 return args(mdoc, line, pos, buf, fl, v); in mdoc_args()
444 args(struct roff_man *mdoc, int line, int *pos, in args() argument
451 if (buf[*pos] == '\0') { in args()
454 mandoc_msg(MANDOCERR_ARG_QUOTE, line, *pos, NULL); in args()
463 *v = buf + *pos; in args()
[all …]
H A Dtbl.c37 tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_read() argument
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
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dtoken_store.c33 struct position pos; member
54 static void find_line(struct position pos) in find_line() argument
58 if (pos.line == cursor->pos.line) in find_line()
60 if (pos.line < cursor->pos.line) { in find_line()
64 find_line(pos); in find_line()
69 if (pos.line < cursor->next->pos.line) in find_line()
72 find_line(pos); 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()
98 find_line(token->pos); in store_token()
[all …]
H A Dcheck_indenting.c29 macro = get_macro_name(stmt->pos); in in_ignored_macro()
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()
56 inside_pos = __prev_stmt->iterator_statement->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()
77 pos.line--; in prev_lines_say_endif()
78 token = pos_get_token(pos); in prev_lines_say_endif()
144 __next_stmt->pos.line == stmt->case_statement->pos.line) 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()
39 static void match_one_side(struct expression *expr, struct position pos, int op) in match_one_side() argument
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()
[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.c49 register Hash_position_t* pos; in hashscan() local
53 if (!(pos = newof(0, Hash_position_t, 1, 0))) return(0); in hashscan()
54 pos->tab = tab->root->last.table = tab; in hashscan()
55 pos->bucket = &empty; in hashscan()
56 pos->slot = tab->table - 1; in hashscan()
57 pos->limit = tab->table + tab->size; in hashscan()
60 pos->flags = HASH_SCOPE; in hashscan()
75 tab = pos->tab; in hashscan()
77 else pos->flags = 0; in hashscan()
79 return(pos); in hashscan()
[all …]
/illumos-gate/usr/src/cmd/stat/common/
H A Dacquire_iodevs.c59 struct iodev_snapshot *pos; in find_iodev_by_name() local
62 for (pos = list; pos; pos = pos->is_next) { in find_iodev_by_name()
63 if (strcmp(pos->is_name, name) == 0) in find_iodev_by_name()
64 return (pos); in find_iodev_by_name()
66 pos2 = find_iodev_by_name(pos->is_children, name); in find_iodev_by_name()
101 struct iodev_snapshot *pos; in find_parent() local
112 for (pos = ss->s_iodevs; pos; pos = pos->is_next) { in find_parent()
113 if (pos->is_type != IODEV_CONTROLLER) in find_parent()
115 if (pos->is_id.id != iodev->is_parent_id.id) in find_parent()
117 return (pos); in find_parent()
[all …]
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dtrie.c61 buf->pos = 0; in create_node()
119 t_split(node_t **c_node, uint8_t pos, uint8_t key_len) in t_split() argument
128 if (pos == (nodep->pos - nodep->bits)) { in t_split()
137 nodep->bits = nodep->pos - pos; in t_split()
139 bit = EXTRACTBIT(nodep->val, pos, key_len); in t_split()
152 nodep->zero->pos = pos - 1; /* link is one bit */ in t_split()
158 (nodep->zero->pos - i), in t_split()
160 (nodep->zero->pos - i), key_len), in t_split()
163 (nodep->zero->pos - i), 1, key_len); in t_split()
179 nodep->one->pos = pos - 1; /* link is one bit */ in t_split()
[all …]
H A Dtrie.h46 #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) \
59 (EXTRACTBIT_CMN(val, (COMPUTE_BIT_POS(len, pos))))
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) \
68 (SETBIT_CMN(num, (COMPUTE_BIT_POS(len, pos)), val))
[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] : \
34 getc(yyin)) == 10 ? (pos++, yylineno++, yytchar) : \
35 yytchar) == EOF ? (pos++, 0) : (pos++, yytchar))
40 # define lex_input() (((pos >= string_start) && (pos < string_end)) ? \
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa.c149 int pos = len - 1; in inc_byte_array() local
150 while (pos >= 0) { in inc_byte_array()
151 counter[pos]++; in inc_byte_array()
152 if (counter[pos] != 0) in inc_byte_array()
154 pos--; in inc_byte_array()
293 char *pos = buf; in pmksa_cache_list() local
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()
[all …]
/illumos-gate/usr/src/boot/common/linenoise/
H A Dlinenoise.c129 size_t pos; /* Current cursor position. */ member
235 ls->len = ls->pos = strlen(lc.cvec[i]); in completeLine()
239 ls->pos = saved.pos; in completeLine()
265 ls->len = ls->pos = nwritten; in completeLine()
342 size_t pos = l->pos; in refreshSingleLine() local
345 while((plen+pos) >= l->cols) { in refreshSingleLine()
348 pos--; in refreshSingleLine()
365 snprintf(seq,64,"\r\x1b[%dC", (int)(pos+plen)); in refreshSingleLine()
414 if (l->pos && in refreshMultiLine()
415 l->pos == l->len && in refreshMultiLine()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_display.c241 int pos; char val; in showxdr_char() local
243 pos = getxdr_pos(); in showxdr_char()
245 (void) sprintf(get_line(pos, getxdr_pos()), fmt, val); in showxdr_char()
263 int pos; in showxdr_u_char() local
266 pos = getxdr_pos(); in showxdr_u_char()
268 (void) sprintf(get_line(pos, getxdr_pos()), fmt, val); in showxdr_u_char()
286 int pos; short val; in showxdr_short() local
288 pos = getxdr_pos(); in showxdr_short()
290 (void) sprintf(get_line(pos, getxdr_pos()), fmt, val); in showxdr_short()
308 int pos; in showxdr_u_short() local
[all …]
H A Dsnoop_rpcsec.c91 int pos; in print_rpcsec_gss_cred() local
93 pos = getxdr_pos(); in print_rpcsec_gss_cred()
107 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred()
110 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred()
115 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred()
118 (void) sprintf(get_line(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
345 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpc_gss_init_arg()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb3_kdf.c110 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()
125 bcopy(label, &kdfbuf[pos], label_len); in smb3_kdf()
126 pos += label_len; in smb3_kdf()
128 kdfbuf[pos++] = 0; in smb3_kdf()
130 bcopy(context, &kdfbuf[pos], context_len); in smb3_kdf()
131 pos += context_len; in smb3_kdf()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c273 char *pos, *gpos; in parse_netgrp() local
293 pos = lp->l_line; in parse_netgrp()
294 while (*pos != '\0') { in parse_netgrp()
295 if (*pos == '(') { in parse_netgrp()
304 pos++; in parse_netgrp()
305 gpos = strsep(&pos, ")"); in parse_netgrp()
330 spos = strsep(&pos, ", \t"); in parse_netgrp()
336 if (pos == NULL) in parse_netgrp()
338 while (*pos == ' ' || *pos == ',' || *pos == '\t') in parse_netgrp()
339 pos++; in parse_netgrp()
[all …]
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Didmap.c211 cmd_pos_t *pos[1]; member
236 static int do_show_mapping(flag_t *f, int argc, char **argv, cmd_pos_t *pos);
237 static int do_dump(flag_t *f, int argc, char **argv, cmd_pos_t *pos);
238 static int do_import(flag_t *f, int argc, char **argv, cmd_pos_t *pos);
240 cmd_pos_t *pos);
242 cmd_pos_t *pos);
244 cmd_pos_t *pos);
245 static int do_flush(flag_t *f, int argc, char **argv, cmd_pos_t *pos);
246 static int do_exit(flag_t *f, int argc, char **argv, cmd_pos_t *pos);
247 static int do_export(flag_t *f, int argc, char **argv, cmd_pos_t *pos);
[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/audio/utilities/
H A DAudioList.cc86 Double pos) // split offset in split() argument
93 e1 = new AudioExtent(aptr, 0., pos); in split()
94 e2 = new AudioExtent(aptr, pos, AUDIO_UNKNOWN_TIME); in split()
131 Double& pos, // target position (updated) in getposition() 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
202 if (!getposition(pos, ep)) { in GetHeader()
205 if (pos != 0.) { in GetHeader()
[all …]

12345678910>>...20