/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kgrep.c | 82 uintptr_t *pos; in kgrep_range_basic() local 98 for (pos = page; pos < page_end; pos++) { in kgrep_range_basic() 99 if (*pos != pattern) in kgrep_range_basic() 102 offset = (caddr_t)pos - (caddr_t)page; in kgrep_range_basic() 134 uintbits_t *pos; \ 156 for (pos = page; pos < page_end; pos++) { \ 157 cur = *pos; \ 170 offset = (caddr_t)pos - (caddr_t)page; \
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | util.c | 82 str_print(char *str, int pos) in str_print() argument 84 if ((pos > 0) && (pos < 80)) { in str_print() 85 (void) memset(strbuf, 8, pos); in str_print() 86 strbuf[pos] = 0; in str_print() 88 (void) memset(strbuf, ' ', pos); in str_print() 89 strbuf[pos] = 0; in str_print() 91 (void) memset(strbuf, 8, pos); in str_print() 92 strbuf[pos] = 0; in str_print()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_macro_side_effects.c | 56 if (positions_eq(macro_pos, sym->scope->token->pos)) in defined_inside_macro() 77 if (positions_eq(old_mod->pos, expr->pos)) in affected_inside_macro_before() 102 macro = get_macro_name(raw_expr->pos); in match_unop() 108 if (defined_inside_macro(expr->pos, expr)) in match_unop() 116 old_pos = expr->pos; in match_unop() 120 if (!positions_eq(old_pos, expr->pos)) in match_unop() 131 if (!positions_eq(old_pos, stmt->pos)) in match_stmt()
|
H A D | ir.c | 36 sparse_error(insn->pos, "bad number of phi operands in:\n\t%s", in check_phi_node() 38 info(insn->pos, "parents: %d", bb_list_size(insn->bb->parents)); in check_phi_node() 39 info(insn->pos, "phisrcs: %d", nbr_phi_operands(insn)); in check_phi_node() 51 sparse_error(src->pos, "wrong BB for %s:", show_instruction(src)); in check_phi_node() 52 info(src->pos, "expected: %s", show_label(par)); in check_phi_node() 53 info(src->pos, " got: %s", show_label(src->bb)); in check_phi_node() 68 sparse_error(insn->pos, "null pseudo in %s", show_instruction(insn)); in check_user() 78 sparse_error(insn->pos, "wrong usage for %s in %s", show_pseudo(pseudo), in check_user() 92 sparse_error(insn->pos, "branch to dead BB: %s", show_instruction(insn)); in check_branch() 115 sparse_error(insn->pos, "return without value"); in check_return()
|
H A D | check_unreachable.c | 69 name = get_macro_name(stmt->pos); in is_ignored_macro() 84 struct position pos = stmt->pos; in prev_line_was_endif() local 86 pos.line--; in prev_line_was_endif() 87 pos.pos = 2; in prev_line_was_endif() 89 token = pos_get_token(pos); in prev_line_was_endif() 94 pos.line--; in prev_line_was_endif() 95 token = pos_get_token(pos); in prev_line_was_endif() 212 name = get_macro_name(stmt->pos); in turn_off_unreachable()
|
H A D | expression.h | 150 struct position pos; member 291 static inline struct expression *alloc_expression(struct position pos, int type) in alloc_expression() argument 295 expr->pos = pos; in alloc_expression() 300 static inline struct expression *alloc_const_expression(struct position pos, int value) in alloc_const_expression() argument 304 expr->pos = pos; in alloc_const_expression() 316 if (token->pos.type == TOKEN_IDENT) { in lookup_type() 324 struct statement *alloc_statement(struct position pos, int type);
|
H A D | char.c | 9 …st char *parse_escape(const char *p, unsigned *val, const char *end, int bits, struct position pos) in parse_escape() argument 36 warning(pos, in parse_escape() 52 warning(pos, in parse_escape() 57 warning(pos, "unknown escape sequence: '\\%c'", c); in parse_escape() 87 type < TOKEN_WIDE_CHAR ? bits_in_char : wchar_ctype->bit_size, token->pos); in get_char_constant() 89 warning(token->pos, in get_char_constant() 124 p = parse_escape(p, &v, end, bits, token->pos); in get_string_constant() 132 warning(token->pos, "trying to concatenate %d-character string (%d bytes max)", len, MAX_STRING); in get_string_constant()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioExtent.cc | 154 Double pos) // position in GetHeader() argument 156 return (ref->GetDHeader(pos + start)); in GetHeader() 169 Double& pos) // start position (updated) in ReadData() argument 182 if (Undefined(pos) || (pos < 0.) || ((int)cnt < 0)) in ReadData() 186 off = pos + start; in ReadData() 197 buflen = GetHeader(pos).Time_to_Bytes((Double)(newpos - off)); in ReadData() 217 pos = (newpos - start); // XXX - calculate bytes and convert? in ReadData()
|
H A D | AudioPipe.cc | 102 Double& pos) // start position (updated) in ReadData() argument 116 err = AudioUnixfile::ReadData((void*)tbuf, remain, pos); in ReadData() 120 (void) SetReadPosition(pos, Absolute); in ReadData() 141 Double& pos) // start position (updated) in WriteData() argument 146 err = AudioUnixfile::WriteData(buf, len, pos); in WriteData() 150 (void) SetWritePosition(pos, Absolute); in WriteData()
|
H A D | Audio.cc | 154 Double& pos, // field to update in setpos() argument 159 newpos += pos; in setpos() 170 pos = newpos; in setpos() 171 return (pos); in setpos() 177 Double pos, // new position or offset in SetReadPosition() argument 180 return (setpos(readpos, pos, w)); in SetReadPosition() 186 Double pos, // new position or offset in SetWritePosition() argument 189 return (setpos(writepos, pos, w)); in SetWritePosition() 217 Double& pos) // write position (updated) in AppendData() argument 222 return (WriteData(buf, len, pos)); in AppendData()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | eqn_term.c | 62 (bp->parent != NULL && (bp->parent->pos == EQNPOS_SQRT || in eqn_box() 66 bp->parent->pos != EQNPOS_OVER && bp->next != NULL) || in eqn_box() 68 (bp->type == EQN_SUBEXPR && bp->pos != EQNPOS_SQRT && in eqn_box() 71 bp->pos != EQNPOS_SQRT)))))) { in eqn_box() 108 if (bp->pos == EQNPOS_SQRT) { in eqn_box() 118 term_word(p, bp->pos == EQNPOS_OVER ? "/" : in eqn_box() 119 (bp->pos == EQNPOS_SUP || in eqn_box() 120 bp->pos == EQNPOS_TO) ? "^" : "_"); in eqn_box() 125 if (bp->pos == EQNPOS_FROMTO || in eqn_box() 126 bp->pos == EQNPOS_SUBSUP) { in eqn_box()
|
H A D | eqn.c | 843 if (cur->pos == EQNPOS_SUB || in eqn_parse() 844 cur->pos == EQNPOS_SUP || in eqn_parse() 847 cur->pos == EQNPOS_OVER) in eqn_parse() 854 parent->pos = EQNPOS_SUBSUP; in eqn_parse() 859 parent->pos = EQNPOS_FROMTO; in eqn_parse() 865 parent->pos = EQNPOS_FROM; in eqn_parse() 868 parent->pos = EQNPOS_TO; in eqn_parse() 871 parent->pos = EQNPOS_SUP; in eqn_parse() 874 parent->pos = EQNPOS_SUB; in eqn_parse() 890 parent->pos = EQNPOS_SQRT; in eqn_parse() [all …]
|
H A D | read.c | 170 pos = 0; in mparse_buf_r() 184 spos = pos; in mparse_buf_r() 208 if (pos + 12 > ln.sz) in mparse_buf_r() 221 ln.buf[pos++] = '?'; in mparse_buf_r() 238 ln.buf[pos++] = '?'; in mparse_buf_r() 244 ln.buf[pos] = '\0'; in mparse_buf_r() 267 if (pos + 2 > ln.sz) in mparse_buf_r() 269 ln.buf[pos++] = '\n'; in mparse_buf_r() 270 ln.buf[pos] = '\0'; in mparse_buf_r() 312 curp->line, pos, NULL); in mparse_buf_r() [all …]
|
H A D | man_validate.c | 282 n->line, n->pos + (int)(p - cp), NULL); in check_text() 308 n->line, n->pos, "OP ... %s", n->string); in post_OP() 364 nc->line, nc->pos, "%s at the end of %s", in post_SH() 374 mandoc_msg(MANDOCERR_UR_NOHEAD, n->line, n->pos, in post_UR() 384 mandoc_msg(MANDOCERR_BLK_EMPTY, n->line, n->pos, in check_part() 401 n->child->line, n->child->pos, in check_par() 407 mandoc_msg(MANDOCERR_PAR_SKIP, n->line, n->pos, in check_par() 413 n->line, n->pos, "%s %s%s", in check_par() 435 mandoc_msg(MANDOCERR_PAR_SKIP, n->line, n->pos, in post_IP() 500 n->pos + (int)(p - n->string), in post_TH() [all …]
|
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | suggestions.c | 68 sugg_t *new, *n, *pos = NULL; in pt_sugg_add() local 102 if (weight > n->weight && pos == NULL) in pt_sugg_add() 103 pos = n; in pt_sugg_add() 121 if (pos == NULL) { in pt_sugg_add() 132 if (pos == sugg) { in pt_sugg_add() 145 new->next = pos; in pt_sugg_add() 146 new->prev = pos->prev; in pt_sugg_add() 147 pos->prev->next = new; in pt_sugg_add() 148 pos->prev = new; in pt_sugg_add()
|
/illumos-gate/usr/src/cmd/troff/troff.d/ |
H A D | t6.c | 685 int pos, f; in setfp() 708 kerntab[pos] = (char *) fontab[pos] + (fontbase[pos]->nwfont & BYTEMASK); 710 fitab[pos] = (char *) fontab[pos] + 3 * (fontbase[pos]->nwfont & BYTEMASK); 713 pos); 718 if (pos == smnt) { 722 if ((fontlab[pos] = f) == 'S') 723 smnt = pos; 724 bdtab[pos] = cstab[pos] = ccstab[pos] = 0; 734 ptfpcmd(pos, shortname); 735 if (pos == 0) [all …]
|
/illumos-gate/usr/src/cmd/audio/include/ |
H A D | AudioList.h | 61 Double pos); // split at offset 71 Double& pos, // target position (updated) 84 virtual AudioHdr GetHeader(Double pos); // Get header at pos 90 Double& pos); // start position (updated) 96 Double& pos); // start position (updated) 108 Double pos); // insertion offset, in seconds
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | whois.c | 191 char *pos, *retval; in choose_server() local 197 for (pos = strchr(domain, '\0'); pos > domain && *--pos == '.'; ) in choose_server() 198 *pos = '\0'; in choose_server() 207 while (pos > domain && *pos != '.') in choose_server() 208 --pos; in choose_server() 209 if (pos <= domain) in choose_server() 211 if (isdigit((unsigned char)*++pos)) in choose_server() 214 s_asprintf(&retval, "%s%s", pos, QNICHOST_TAIL); in choose_server()
|
/illumos-gate/usr/src/uts/i86pc/boot/ |
H A D | boot_vga.c | 120 if (fb_info.cursor.pos.x == 0 && fb_info.cursor.pos.y == 0) in boot_vga_init() 122 vga_setpos(fb_info.cursor.pos.y, fb_info.cursor.pos.x); in boot_vga_init() 202 x = fb_info.cursor.pos.x; in vga_eraseline() 203 y = fb_info.cursor.pos.y; in vga_eraseline() 213 x = fb_info.cursor.pos.x; in vga_shiftline() 214 y = fb_info.cursor.pos.y; in vga_shiftline() 304 fb_info.cursor.pos.y = row; in vga_setpos() 305 fb_info.cursor.pos.x = col; in vga_setpos()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | nfs.c | 251 int len, pos; in nfs_lookupfh() local 284 args->fhplusname[pos++] = htonl(len); in nfs_lookupfh() 285 bcopy(name, &args->fhplusname[pos], len); in nfs_lookupfh() 307 if (repl->fhplusattr[pos++] == 0) { in nfs_lookupfh() 412 int hlen, rlen, pos; in nfs_readdata() local 420 args->fhoffcnt[pos++] = 0; in nfs_readdata() 765 int pos, rc; in nfs_readdir() local 786 pos = roundup(fp->fhsize, in nfs_readdir() 830 ntohl(rent->nameplus[pos + 1]); in nfs_readdir() 831 pos += 2; in nfs_readdir() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/ |
H A D | arrayind3.awk | 3 pos[0] = 0 6 pos[f[1]] = 1 # subscripts must be strings! 7 for (x in pos) { 14 posout[x] = pos[x]
|
/illumos-gate/usr/src/cmd/pools/poolstat/ |
H A D | poolstat.c | 577 used = snprintf(str + pos, left, "%*.*f", in bigno_f() 624 used = snprintf(str + pos, left, "%-*s", in header_f() 627 used = snprintf(str + pos, left, "%*s", in header_f() 662 pos += used; in prt_stat_line() 665 line[pos++] = ' '; in prt_stat_line() 715 pos += used; in prt_stat_hd() 718 line[pos++] = ' '; in prt_stat_hd() 725 pos = 0; in prt_stat_hd() 726 while (*(line + pos) != '\n') { in prt_stat_hd() 727 if (!isspace(*(line + pos))) { in prt_stat_hd() [all …]
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | fpos.c | 36 fgetpos(FILE *stream, fpos_t *pos) in fgetpos() argument 38 if ((*pos = (fpos_t)ftello(stream)) == (fpos_t)-1) in fgetpos() 44 fsetpos(FILE *stream, const fpos_t *pos) in fsetpos() argument 46 if (fseeko(stream, (off_t)*pos, SEEK_SET) != 0) in fsetpos()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pragma/ |
H A D | tst.libdepfullyconnected.ksh | 75 \$pos = length \$_; 77 \$pos = rindex(\$_, "/", \$pos); 78 \$pos--; 81 push(@new, substr(\$_, \$pos+2, 4));
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/ |
H A D | hashwalk.c | 41 Hash_position_t* pos; in hashwalk() local 43 if (!(pos = hashscan(tab, flags))) in hashwalk() 46 while (b = hashnext(pos)) in hashwalk() 49 hashdone(pos); in hashwalk()
|