/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astcopy.c | 55 off_t pos; in astcopy() local 67 if (!fstat(rfd, &st) && S_ISREG(st.st_mode) && (pos = lseek(rfd, (off_t)0, 1)) != ((off_t)-1)) in astcopy() 69 if (pos >= st.st_size) return(0); in astcopy() 70 mapsize = st.st_size - pos; in astcopy() 72 …if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos))… in astcopy()
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | subr.c | 183 int ch, pos; in smb_simplecrypt() local 188 pos = 27; in smb_simplecrypt() 194 ch ^= pos; in smb_simplecrypt() 195 pos += 13; in smb_simplecrypt() 206 int len, ch, pos; in smb_simpledecrypt() local 216 pos = 27; in smb_simpledecrypt() 223 ch ^= pos; in smb_simpledecrypt() 224 pos += 13; in smb_simpledecrypt()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioFile.cc | 427 Double& pos) // start position (updated) in ReadData() argument 437 err = AudioUnixfile::ReadData(buf, len, pos); in ReadData() 454 if (Undefined(pos) || (pos < 0.) || ((int)cnt < 0)) in ReadData() 458 offset = GetHeader().Time_to_Bytes(pos); in ReadData() 482 pos = GetHeader().Bytes_to_Time(offset + len); in ReadData() 499 Double& pos) // start position (updated) in WriteData() argument 514 Double pos, // position to seek to in seekread() argument 517 offset = GetHeader().Time_to_Bytes(pos); in seekread() 530 Double pos, // position to seek to in seekwrite() argument 538 if (pos > GetLength()) { in seekwrite() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | lib.c | 136 if (pos.type == TOKEN_BAD) in do_warn() 140 name = stream_name(pos.stream); in do_warn() 144 diag_prefix, name, pos.line, pos.pos, type, buffer); in do_warn() 157 do_warn("", pos, fmt, args); in info() 169 if (pos.type == TOKEN_BAD) in do_error() 192 do_error(pos, fmt, args); in warning() 216 do_error(pos, fmt, args); in sparse_error() 224 do_error(expr->pos, fmt, args); in expression_error() 1471 if (next->pos.whitespace) in sparse_tokenstream() 1473 if (next->pos.newline) { in sparse_tokenstream() [all …]
|
H A D | sparse.c | 62 warning(insn->pos, "context check failure"); in context_increase() 74 warning(bb->pos, "context imbalance in '%s' - %s", show_ident(sym->ident), why); in imbalance() 132 warning(insn->pos, "cast loses sign"); in check_cast_instruction() 136 warning(insn->pos, "cast drops bits"); in check_cast_instruction() 140 warning(insn->pos, "cast wasn't removed"); in check_cast_instruction() 143 warning(insn->pos, "cast changes sign"); in check_cast_instruction() 149 warning(insn->pos, "value out of range"); in check_range_instruction() 159 warning(insn->pos, "%s with byte count of %llu", in check_byte_count() 264 warning(sym->pos, "%s: possible uninitialized variable (%s)", in check_context() 303 info(sym->pos, "%s: compound size %u, alignment %lu", in list_compound_symbol()
|
H A D | dissect.c | 153 reporter->r_member(mode, pos, type, NULL); in report_implicit() 156 report_implicit(mode, pos, base_type(mem))); in report_implicit() 167 sym = alloc_symbol(expr->pos, SYM_BAD); in expr_symbol() 314 warning(expr->pos, "bad expr->type: %d", expr->type); in do_expression() 366 report_implicit(mode, &expr->pos, ret); in do_expression() 399 ret = alloc_symbol(unop->pos, SYM_PTR); in do_expression() 428 ret = report_member(mode, &expr->pos, p_type, in do_expression() 437 in = report_member(U_VOID, &expr->pos, in, in do_expression() 468 warning(stmt->pos, "bad stmt->type: %d", stmt->type); in do_statement() 566 report_implicit(U_W_VAL, &m_expr->pos, m_type); in do_initializer() [all …]
|
/illumos-gate/usr/src/cmd/audio/include/ |
H A D | Audio.h | 75 Double& pos, // position field to update 113 Double pos, // new position 118 Double pos, // new position 142 Double& pos) = 0; // start position (updated) 148 Double& pos) = 0; // start position (updated) 154 Double& pos); // start position (updated)
|
H A D | AudioUnixfile.h | 64 Double pos, // position to seek to 69 Double pos, // position to seek to 108 Double& pos); // start position (updated) 114 Double& pos); // start position (updated)
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | dist.c | 43 int pos; in dist_linear() local 46 for (pos = 0; pos < buckets; pos++) in dist_linear() 47 out[pos] = beg + (pos * dist)/buckets; in dist_linear()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | cmp.c | 158 Sfoff_t pos = 0; in cmp() local 208 pos += c1; in cmp() 231 …sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u\n", file1, file2, sizeof(pos), pos - (last … in cmp() 234 sfprintf(sfstdout, "%6I*d", sizeof(pos), pos - (last - p1)); in cmp() 240 sfprintf(sfstdout, "%6I*d", sizeof(pos), pos - (last - p1)); in cmp() 242 …sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u", file1, file2, sizeof(pos), pos - (last - … in cmp()
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | compare.c | 232 int pos, line_len; in parse_line() local 235 pos = 0; in parse_line() 237 get_token(line, &pos, line_len, fname, PATH_MAX); in parse_line() 238 get_token(line, &pos, line_len, type, TYPE_SIZE); in parse_line() 239 get_token(line, &pos, line_len, size, MISC_SIZE); in parse_line() 240 get_token(line, &pos, line_len, mode, MISC_SIZE); in parse_line() 241 get_token(line, &pos, line_len, acl, ACL_SIZE); in parse_line() 243 get_token(line, &pos, line_len, uid, MISC_SIZE); in parse_line() 244 get_token(line, &pos, line_len, gid, MISC_SIZE); in parse_line() 284 int line_len, pos; in extract_fname_ftype() local [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | sortctrl.c | 242 const char *pos = *s; in read_next_token() local 254 while ( ((c = *pos++) != '\0') && (state != 4) ) { in read_next_token() 265 attrdesc_source = pos - 1; in read_next_token() 274 attrdesc_size = (pos - attrdesc_source) - 1; in read_next_token() 285 matchrule_source = pos - 1; in read_next_token() 294 matchrule_size = (pos - matchrule_source) - 1; in read_next_token() 305 matchrule_size = (pos - matchrule_source) - 1; in read_next_token() 310 attrdesc_size = (pos - attrdesc_source) - 1; in read_next_token() 341 *s = pos - 1; in read_next_token()
|
/illumos-gate/usr/src/common/pnglite/ |
H A D | pnglite.c | 490 unsigned pos = 0; in png_unfilter() local 495 while (pos < png->png_datalen) { in png_unfilter() 496 uint8_t filter = filtered[pos]; in png_unfilter() 498 pos++; in png_unfilter() 502 *(short *)(filtered+pos+i) = in png_unfilter() 503 (filtered[pos+i] << 8) | filtered[pos+i+1]; in png_unfilter() 527 png_filter_average(stride, filtered+pos, in png_unfilter() 532 png_filter_average(stride, filtered+pos, in png_unfilter() 538 png_filter_paeth(stride, filtered+pos, in png_unfilter() 543 png_filter_paeth(stride, filtered+pos, in png_unfilter() [all …]
|
/illumos-gate/usr/src/cmd/dumpcs/ |
H A D | dumpcs.c | 179 prcode(len, pos, min, max, col) in prcode() argument 180 int len, pos, min, max, col; in prcode() 188 if (len - pos > 1) { 190 codestr[pos] = (unsigned char) byte; 191 nextpos = pos + 1; 197 codestr[pos] = (unsigned char) byte; 198 nextpos = pos + 1;
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | osspec.c | 132 int len, pos; in dsk_to_rdsk() local 148 pos = (uintptr_t)p - (uintptr_t)dsk; in dsk_to_rdsk() 150 strncpy (rdsk, dsk, pos + 1); in dsk_to_rdsk() 151 rdsk[pos + 1] = 'r'; in dsk_to_rdsk() 152 strcpy (rdsk + pos + 2, dsk + pos + 1); in dsk_to_rdsk()
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | regcomp.c | 182 #define INSERT(op, pos) doinsert(p, (sop)(op), HERE()-(pos)+1, pos) argument 183 #define AHEAD(pos) dofwd(p, pos, HERE()-(pos)) argument 184 #define ASTERN(sop, pos) EMIT(sop, HERE()-pos) argument 357 sopno pos; in p_ere_exp() local 367 pos = HERE(); in p_ere_exp() 465 INSERT(OPLUS_, pos); in p_ere_exp() 704 sopno pos; in p_simp_re() local 1478 assert(pos > 0); in doinsert() 1488 (void) memmove((char *)&p->strip[pos+1], (char *)&p->strip[pos], in doinsert() 1490 p->strip[pos] = s; in doinsert() [all …]
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_enclosure.c | 78 off_t pos; in enc_parse_help() local 86 pos = 0; in enc_parse_help() 88 pos < SCSI_READ16(&shpip->sspi_page_length); in enc_parse_help() 89 pos += SES2_SUBHELP_LEN(tip), in enc_parse_help() 90 tip = (ses2_subhelp_text_impl_t *)((uint8_t *)tip + pos)) { in enc_parse_help() 135 off_t pos; in enc_parse_string_in() local 144 pos = 0; in enc_parse_string_in() 146 pos < SCSI_READ16(&ssip->ssipi_page_length); in enc_parse_string_in() 147 pos += SES2_SUBSTR_LEN(dip), in enc_parse_string_in() 149 ((uint8_t *)dip + pos)) { in enc_parse_string_in()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | char_io.c | 416 int pos = xpos; in real_get_cmdline() local 429 pos = 0; in real_get_cmdline() 438 pos += plen; in real_get_cmdline() 444 pos++; in real_get_cmdline() 482 pos++; in real_get_cmdline() 489 pos++; in real_get_cmdline() 501 pos++; in real_get_cmdline() 590 int pos = 0; in real_get_cmdline() local 598 pos++; in real_get_cmdline() 599 while (buf[pos] && buf[pos] != '=' && buf[pos] != ' ') in real_get_cmdline() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_send.c | 479 ibt_send_wr_t *wr, unsigned int pos, in rdsv3_ib_xmit_populate_wr() argument 487 ic, wr, scat, pos, off, length, send_flags); in rdsv3_ib_xmit_populate_wr() 489 wr->wr_id = pos | RDSV3_IB_SEND_OP; in rdsv3_ib_xmit_populate_wr() 567 uint32_t pos; in rdsv3_ib_xmit() local 701 send = &ic->i_sends[pos]; in rdsv3_ib_xmit() 741 send = &ic->i_sends[pos]; in rdsv3_ib_xmit() 821 pos = (pos + 1) % ic->i_send_ring.w_nr; in rdsv3_ib_xmit() 991 uint32_t pos; in rdsv3_ib_xmit_rdma() local 1043 send = &ic->i_sends[pos]; in rdsv3_ib_xmit_rdma() 1051 wr->wr_id = pos | RDSV3_IB_SEND_OP; in rdsv3_ib_xmit_rdma() [all …]
|
/illumos-gate/usr/src/uts/i86pc/boot/ |
H A D | boot_fb.c | 156 fb_info.cursor.pos.x = xbi_fb->cursor.pos.x; in xbi_fb_init() 157 fb_info.cursor.pos.y = xbi_fb->cursor.pos.y; in xbi_fb_init() 439 if (fb_info.cursor.pos.x != 0 || fb_info.cursor.pos.y != 0) { in boot_fb_init() 448 if (fb_info.cursor.pos.x == 0 && fb_info.cursor.pos.y == 0) { in boot_fb_init() 464 fb_info.cursor.pos.x = 0; in boot_fb_init() 465 fb_info.cursor.pos.y = 0; in boot_fb_init() 470 if (fb_info.cursor.pos.x == 0 && fb_info.cursor.pos.y == 0) { in boot_fb_init() 793 fb_info.cursor.pos.x = col; in boot_fb_setpos() 794 fb_info.cursor.pos.y = row; in boot_fb_setpos() 807 rows = fb_info.cursor.pos.y; in boot_fb_putchar() [all …]
|
/illumos-gate/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_cmd.c | 394 const char *pos; in findroot() local 397 if ((pos = strchr(sign, ',')) == NULL || (sz = pos - sign) == 0) in findroot() 400 ++pos; in findroot() 401 if (!IS_PRTNUM_VALID(barg->gb_prtnum = pos[0] - '0')) in findroot() 404 ++pos; in findroot() 408 if (pos[0] != ')') { in findroot() 409 if (pos[0] != ',' || in findroot() 410 !IS_SLCNUM_VALID(barg->gb_slcnum = pos[1]) || in findroot() 411 pos[2] != ')') in findroot()
|
H A D | libgrub_fs.c | 60 const char *pos; in slice_match() local 66 return ((pos = strrchr(physpath, slice)) == NULL || in slice_match() 67 pos[1] != 0 || pos[-1] != ':'); in slice_match() 94 char *pos; in get_sol_prtnum() local 107 if ((pos = strrchr(rdev, ':')) == NULL) in get_sol_prtnum() 130 pos[1] = SLCNUM_WHOLE_DISK; in get_sol_prtnum() 557 const char *pos; in grub_fsd_mount_tmp() local 578 pos = strrchr(fsd->gfs_dev, '/'); in grub_fsd_mount_tmp() 579 pos = (pos == NULL) ? fsd->gfs_dev : pos + 1; in grub_fsd_mount_tmp() 582 tmp_mountp, pos); in grub_fsd_mount_tmp()
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | pci.c | 498 uint8_t pos, id; in pci_find_capability() local 510 pci_read_config_byte(dev, PCI_CAPABILITY_LIST, &pos); in pci_find_capability() 513 pci_read_config_byte(dev, PCI_CB_CAPABILITY_LIST, &pos); in pci_find_capability() 516 while (ttl-- && pos >= 0x40) { in pci_find_capability() 517 pos &= ~3; in pci_find_capability() 518 pci_read_config_byte(dev, pos + PCI_CAP_LIST_ID, &id); in pci_find_capability() 525 return pos; in pci_find_capability() 526 pci_read_config_byte(dev, pos + PCI_CAP_LIST_NEXT, &pos); in pci_find_capability()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | memrchr.c | 30 size_t pos = len - 1; in memrchr() local 32 if (data[pos] == val) { in memrchr() 33 return ((void *)&data[pos]); in memrchr()
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiovia823x/ |
H A D | audiovia823x.c | 272 uint32_t pos; in auvia_count() local 275 pos = INL(devc, portc->base + OFF_COUNT); in auvia_count() 276 pos &= 0xffffff; in auvia_count() 277 pos /= (sizeof (int16_t) * portc->nchan); in auvia_count() 279 if (pos >= portc->pos) { in auvia_count() 280 n = portc->nframes - (pos - portc->pos); in auvia_count() 282 n = portc->pos - pos; in auvia_count() 284 portc->pos = pos; in auvia_count() 299 portc->pos = 0; in auvia_reset_output() 347 portc->pos = 0; in auvia_reset_input()
|