/illumos-gate/usr/src/lib/libast/common/hash/ |
H A D | hashscan.c | 35 * Hash_position_t* pos; 37 * pos = hashscan(tab, flags); 38 * while (b = hashnext(&pos)) ...; 39 * hashdone(pos); 43 * return pos for scan on table 49 register Hash_position_t* pos; local 53 if (!(pos = newof(0, Hash_position_t, 1, 0))) return(0); 54 pos->tab = tab->root->last.table = tab; 55 pos->bucket = ∅ 56 pos 87 hashnext(register Hash_position_t* pos) argument 131 hashdone(register Hash_position_t* pos) argument [all...] |
H A D | hashwalk.c | 41 Hash_position_t* pos; local 43 if (!(pos = hashscan(tab, flags))) 46 while (b = hashnext(pos)) 49 hashdone(pos);
|
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | trie.h | 48 #define COMPUTE_BIT_POS(len, pos) \ 49 (((len - pos - 1) & 0xf8) | (pos & 0x7)) 53 * extracts a single bit at position pos from a given value, val, for an 56 #define EXTRACTBIT_CMN(val, pos) ((val >> pos) & 1) 58 #define EXTRACTBIT(val, pos, len) (EXTRACTBIT_CMN(val, pos)) 60 #define EXTRACTBIT(val, pos, len) \ 61 (EXTRACTBIT_CMN(val, (COMPUTE_BIT_POS(len, pos)))) [all...] |
H A D | trie.c | 63 buf->pos = 0; 73 * t_split(c_node, pos, key_len) 96 * * * bits = 4 pos = 5 val = 1011 mask = 00111100 102 * * bits = 1 pos = 5 val = 1 mask = 00100000 104 * bits = 2 pos = 3 val=11* * (to be inserted: (bits = 2 pos = 3 val = 00 115 * * * bits = 4 pos = 5 val = 1011 mask = 00111100 117 * * * (to be inserted: bits = 1 pos = 0 val = 1 mask = 00000001) 121 t_split(node_t **c_node, uint8_t pos, uint8_t key_len) argument 130 if (pos 220 uint8_t pos; local 334 uint8_t pos; local 399 t_traverse_delete(node_t **in_node, uint8_t pos, key_t id, uint32_t key, uint32_t mask, trie_id_t **tid) argument 631 uint8_t pos; local 705 uint8_t pos; local 782 uint8_t pos; local [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] : \ 34 getc(yyin)) == 10 ? (pos [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_opts.c | 65 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) argument 69 while (p[*pos] == ' ' || p[*pos] == '\t') 70 (*pos)++; 75 if (p[*pos] == '(') { 76 (*pos)++; 77 while (p[*pos + len] != ')') 84 ln, *pos, "%.*s", len, p + *pos); 90 tbl->opts.tab = p[*pos]; 125 int i, pos, len; local [all...] |
H A D | tbl_layout.c | 62 int ln, const char *p, int *pos) 67 while (p[*pos] == ' ' || p[*pos] == '\t') 68 (*pos)++; 72 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) 77 if ('(' == p[*pos]) { 78 (*pos)++; 79 while (p[*pos] && ')' != p[*pos]) 80 (*pos) 61 mods(struct tbl_node *tbl, struct tbl_cell *cp, int ln, const char *p, int *pos) argument 188 cell(struct tbl_node *tbl, struct tbl_row *rp, int ln, const char *p, int *pos) argument 249 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) argument 337 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) argument [all...] |
H A D | tbl_data.c | 41 int ln, const char *p, int *pos) 50 while (cp != NULL && cp->pos == TBL_CELL_SPAN) 60 ln, *pos, p + *pos); 62 while (p[*pos]) 63 (*pos)++; 69 dat->pos = TBL_DATA_NONE; 72 if (cp->pos == TBL_CELL_SPAN) 83 sv = *pos; 84 while (p[*pos] 40 getdata(struct tbl_node *tbl, struct tbl_span *dp, int ln, const char *p, int *pos) argument 123 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos) argument 185 tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos) argument [all...] |
H A D | tbl.c | 35 tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) argument 49 for (cp = p + pos; *cp != '\0'; cp++) { 67 tbl_option(tbl, ln, p, &pos); 68 if (p[pos] == '\0') 77 tbl_layout(tbl, ln, p, pos); 80 return tbl_cdata(tbl, ln, p, pos) ? ROFF_TBL : ROFF_IGN; 85 tbl_data(tbl, ln, p, pos); 90 tbl_alloc(int pos, int line, struct mparse *parse) argument 96 tbl->pos = pos; 137 tbl_restart(int line, int pos, struct tbl_node *tbl) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | fgetpos.c | 31 fgetpos(Sfio_t* f, fpos_t* pos) argument 33 STDIO_INT(f, "fgetpos", int, (Sfio_t*, fpos_t*), (f, pos)) 35 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1; 41 fgetpos64(Sfio_t* f, fpos64_t* pos) argument 43 STDIO_INT(f, "fgetpos64", int, (Sfio_t*, fpos64_t*), (f, pos)) 45 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1;
|
H A D | fsetpos.c | 31 fsetpos(Sfio_t* f, const fpos_t* pos) argument 33 STDIO_INT(f, "fsetpos", int, (Sfio_t*, const fpos_t*), (f, pos)) 35 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1; 41 fsetpos64(Sfio_t* f, const fpos64_t* pos) argument 43 STDIO_INT(f, "fsetpos64", int, (Sfio_t*, const fpos64_t*), (f, pos)) 45 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1;
|
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | resetlexer.c | 6 long pos = 0; variable 14 pos = 0;
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | fpos.c | 38 fgetpos(FILE *stream, fpos_t *pos) argument 40 if ((*pos = (fpos_t)ftello(stream)) == (fpos_t)-1) 46 fsetpos(FILE *stream, const fpos_t *pos) argument 48 if (fseeko(stream, (off_t)*pos, SEEK_SET) != 0)
|
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas_list.h | 87 * @pos: the &struct mlist_head to use as a loop counter. 90 #define mlist_for_each(pos, head) \ 91 for (pos = (head)->next, prefetch(pos->next); pos != (head); \ 92 pos = pos->next, prefetch(pos->next)) 97 * @pos: the &struct mlist_head to use as a loop counter. 101 #define mlist_for_each_safe(pos, [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | atomicio.c | 47 size_t pos = 0; local 53 while (n > pos) { 54 res = (f) (fd, s + pos, n - pos); 66 return (pos); 68 pos += (size_t)res; 71 return (pos);
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.aggpackbanner.ksh | 20 banner $3 | /bin/nawk -v line=$1 -v pos=$2 -v width=$width '{ \ 25 line, NR, i + (pos * width)); 32 let pos=0; 47 let pos=0 51 outputchar $line $pos $c 52 let pos=pos+1
|
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | acquire_iodevs.c | 59 struct iodev_snapshot *pos; local 62 for (pos = list; pos; pos = pos->is_next) { 63 if (strcmp(pos->is_name, name) == 0) 64 return (pos); 66 pos2 = find_iodev_by_name(pos->is_children, name); 101 struct iodev_snapshot *pos; local 112 for (pos 199 ix_insert_here(struct iodev_snapshot *pos, struct iodev_snapshot *elem, int ba) argument 211 list_del(struct iodev_snapshot **list, struct iodev_snapshot *pos) argument 225 insert_before(struct iodev_snapshot **list, struct iodev_snapshot *pos, struct iodev_snapshot *new) argument 247 insert_after(struct iodev_snapshot **list, struct iodev_snapshot *pos, struct iodev_snapshot *new) argument 404 struct iodev_snapshot *pos, *ppos, *tmp, *ptmp; local 503 struct iodev_snapshot *pos; local 880 struct iodev_snapshot *pos, *entry, *parent; local 944 struct iodev_snapshot *entry, *parent, *pos; local 1012 struct iodev_snapshot *pos; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fpos.c | 76 register off_t pos; local 119 pos = fp->f_lseekoff; 123 pos = (*fp->f_seek)(fp, (off_t) 0, SM_IO_SEEK_CUR); 124 if (pos == -1L) 135 pos -= fp->f_r; 137 pos -= fp->f_ur; 147 pos += fp->f_p - fp->f_bf.smb_base; 154 return pos;
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | twiddle.c | 50 static u_int callercnt, globalcnt, pos; local 60 putchar("|/-\\"[pos++ & 3]);
|
/illumos-gate/usr/src/uts/common/io/mega_sas/ |
H A D | list.h | 213 * @pos: the &struct mlist_head to use as a loop counter. 216 #define mlist_for_each(pos, head) \ 217 for (pos = (head)->next, prefetch(pos->next); pos != (head); \ 218 pos = pos->next, prefetch(pos->next)) 223 * @pos: the &struct mlist_head to use as a loop counter. 227 #define mlist_for_each_safe(pos, [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_ng.c | 277 char *pos, *gpos; local 297 pos = lp->l_line; 298 while (*pos != '\0') { 299 if (*pos == '(') { 308 pos++; 309 gpos = strsep(&pos, ")"); 334 spos = strsep(&pos, ", \t"); 340 if (pos == NULL) 342 while (*pos == ' ' || *pos 359 char *pos, *spos, *linep = NULL, *olinep; local [all...] |
/illumos-gate/usr/src/boot/sys/boot/common/linenoise/ |
H A D | linenoise.c | 129 size_t pos; /* Current cursor position. */ member in struct:linenoiseState 235 ls->len = ls->pos = strlen(lc.cvec[i]); 239 ls->pos = saved.pos; 265 ls->len = ls->pos = nwritten; 342 size_t pos = l->pos; local 345 while((plen+pos) >= l->cols) { 348 pos--; 365 snprintf(seq,64,"\r\x1b[%dC", (int)(pos [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | bitmap.c | 120 size_t pos; local 122 for (pos = *pos1; pos < end_pos; pos++) 123 if (BT_TEST(bitmap, pos)) 126 if (pos == end_pos) 129 *pos1 = pos; 131 for (; pos < end_pos; pos++) 132 if (!BT_TEST(bitmap, pos)) [all...] |
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_hash.c | 52 unsigned pos, unsigned datalen) 55 for (; datalen != 0; datalen--, pos++, input++) { 56 hash ^= cache[pos * (UINT8_MAX + 1) + *input]; 67 unsigned pos = 0; local 69 hash ^= toeplitz_hash(sp->s_toeplitz_cache, src_addr, pos, addr_size); 70 pos += addr_size; 71 hash ^= toeplitz_hash(sp->s_toeplitz_cache, dst_addr, pos, addr_size); 72 pos += addr_size; 75 (const uint8_t *)&src_port, pos, sizeof (src_port)); 76 pos 51 toeplitz_hash(const uint32_t *cache, const uint8_t *input, unsigned pos, unsigned datalen) argument [all...] |
/illumos-gate/usr/src/cmd/audio/include/ |
H A D | AudioList.h | 63 Double pos); // split at offset 73 Double& pos, // target position (updated) 86 virtual AudioHdr GetHeader(Double pos); // Get header at pos 92 Double& pos); // start position (updated) 98 Double& pos); // start position (updated) 110 Double pos); // insertion offset, in seconds
|