Home
last modified time | relevance | path

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

12345678910>>...16

/titanic_41/usr/src/lib/libast/common/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 = ∅ 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 …]
/titanic_41/usr/src/cmd/mandoc/
H A Dtbl_layout.c68 int ln, const char *p, int *pos) in mods() argument
75 switch (cp->pos) { in mods()
93 switch (p[*pos]) { in mods()
110 if ('(' == p[*pos]) { in mods()
111 (*pos)++; in mods()
112 while (p[*pos] && ')' != p[*pos]) in mods()
113 (*pos)++; in mods()
114 if (')' == p[*pos]) { in mods()
115 (*pos)++; in mods()
119 tbl->parse, ln, *pos, NULL); in mods()
[all …]
H A Dtbl_data.c39 int ln, const char *p, int *pos) in data() argument
56 while (cp && TBL_CELL_SPAN == cp->pos) in data()
66 tbl->parse, ln, *pos, NULL); in data()
68 while (p[*pos]) in data()
69 (*pos)++; in data()
75 dat->pos = TBL_DATA_NONE; in data()
77 assert(TBL_CELL_SPAN != cp->pos); in data()
80 if (TBL_CELL_SPAN == cp->pos) in data()
93 sv = *pos; in data()
94 while (p[*pos] && p[*pos] != tbl->opts.tab) in data()
[all …]
H A Dtbl_opts.c85 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, enum tbl_ident key) in arg() argument
90 while (isspace((unsigned char)p[*pos])) in arg()
91 (*pos)++; in arg()
95 if ('(' != p[*pos]) { in arg()
97 ln, *pos, NULL); in arg()
101 (*pos)++; in arg()
111 if ('\0' == p[(*pos)++]) { in arg()
113 ln, *pos - 1, NULL); in arg()
117 if ('\0' == p[(*pos)++]) { in arg()
119 ln, *pos - 1, NULL); in arg()
[all …]
H A Dmdoc_argv.c279 struct mdoc_arg **v, int *pos, char *buf) in mdoc_argv() argument
286 if ('\0' == buf[*pos]) in mdoc_argv()
290 else if ('-' != buf[*pos]) in mdoc_argv()
295 p = &buf[++(*pos)]; in mdoc_argv()
297 assert(*pos > 0); in mdoc_argv()
299 for ( ; buf[*pos] ; (*pos)++) in mdoc_argv()
300 if (' ' == buf[*pos] && '\\' != buf[*pos - 1]) in mdoc_argv()
310 if ('\0' != (sv = buf[*pos])) in mdoc_argv()
311 buf[(*pos)++] = '\0'; in mdoc_argv()
321 tmp.pos = *pos; in mdoc_argv()
[all …]
H A Droff.c146 int pos, /* current pos in buffer */ \
495 roff_res(struct roff *r, char **bufp, size_t *szp, int ln, int pos) in roff_res() argument
511 cp = *bufp + pos; in roff_res()
599 pos = stesc - *bufp; in roff_res()
617 mandoc_msg(MANDOCERR_ROFFLOOP, r->parse, ln, pos, NULL); in roff_res()
629 roff_parsetext(char **bufp, size_t *szp, int pos, int *offs) in roff_parsetext() argument
637 start = p = *bufp + pos; in roff_parsetext()
685 size_t *szp, int pos, int *offs) in roff_parseln() argument
696 e = roff_res(r, bufp, szp, ln, pos); in roff_parseln()
701 ppos = pos; in roff_parseln()
[all …]
/titanic_41/usr/src/cmd/stat/common/
H A Dacquire_iodevs.c58 struct iodev_snapshot *pos; in find_iodev_by_name() local
61 for (pos = list; pos; pos = pos->is_next) { in find_iodev_by_name()
62 if (strcmp(pos->is_name, name) == 0) in find_iodev_by_name()
63 return (pos); in find_iodev_by_name()
65 pos2 = find_iodev_by_name(pos->is_children, name); in find_iodev_by_name()
100 struct iodev_snapshot *pos; in find_parent() local
111 for (pos = ss->s_iodevs; pos; pos = pos->is_next) { in find_parent()
112 if (pos->is_type != IODEV_CONTROLLER) in find_parent()
114 if (pos->is_id.id != iodev->is_parent_id.id) in find_parent()
116 return (pos); in find_parent()
[all …]
/titanic_41/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) \
61 (EXTRACTBIT_CMN(val, (COMPUTE_BIT_POS(len, pos))))
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) \
70 (SETBIT_CMN(num, (COMPUTE_BIT_POS(len, pos)), val))
[all …]
H A Dtrie.c63 buf->pos = 0; in create_node()
121 t_split(node_t **c_node, uint8_t pos, uint8_t key_len) in t_split() argument
130 if (pos == (nodep->pos - nodep->bits)) { in t_split()
139 nodep->bits = nodep->pos - pos; in t_split()
141 bit = EXTRACTBIT(nodep->val, pos, key_len); in t_split()
154 nodep->zero->pos = pos - 1; /* link is one bit */ in t_split()
160 (nodep->zero->pos - i), in t_split()
162 (nodep->zero->pos - i), key_len), in t_split()
165 (nodep->zero->pos - i), 1, key_len); in t_split()
181 nodep->one->pos = pos - 1; /* link is one bit */ in t_split()
[all …]
/titanic_41/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 …]
/titanic_41/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 …]
/titanic_41/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.c90 int pos; in print_rpcsec_gss_cred() local
92 pos = getxdr_pos(); in print_rpcsec_gss_cred()
106 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred()
109 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred()
114 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred()
117 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred()
120 pos = getxdr_pos(); in print_rpcsec_gss_cred()
123 line = get_line(pos, getxdr_pos()); in print_rpcsec_gss_cred()
332 int pos = 0; in print_rpc_gss_init_arg() local
346 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpc_gss_init_arg()
[all …]
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c277 char *pos, *gpos; in parse_netgrp() local
297 pos = lp->l_line; in parse_netgrp()
298 while (*pos != '\0') { in parse_netgrp()
299 if (*pos == '(') { in parse_netgrp()
308 pos++; in parse_netgrp()
309 gpos = strsep(&pos, ")"); in parse_netgrp()
334 spos = strsep(&pos, ", \t"); in parse_netgrp()
340 if (pos == NULL) in parse_netgrp()
342 while (*pos == ' ' || *pos == ',' || *pos == '\t') in parse_netgrp()
343 pos++; in parse_netgrp()
[all …]
/titanic_41/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)
/titanic_41/usr/src/cmd/audio/utilities/
H A DAudioList.cc88 Double pos) // split offset in split() argument
95 e1 = new AudioExtent(aptr, 0., pos); in split()
96 e2 = new AudioExtent(aptr, pos, AUDIO_UNKNOWN_TIME); in split()
133 Double& pos, // target position (updated) in getposition() 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
204 if (!getposition(pos, ep)) { in GetHeader()
207 if (pos != 0.) { in GetHeader()
[all …]
/titanic_41/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 …]
/titanic_41/usr/src/lib/libtnfprobe/
H A Dtnf_buf.c310 static void release_block_from_pos(TNFW_B_POS * pos) in release_block_from_pos() argument
312 if (pos->tnfw_w_block == NULL) in release_block_from_pos()
314 if (pos->tnfw_w_uncommitted != NULL) in release_block_from_pos()
316 tnfw_b_clear_lock(&pos->tnfw_w_block->A_lock); 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
468 pos = (istag) ? &wcb->tnfw_w_tag_pos : &wcb->tnfw_w_pos; in tnfw_b_alloc()
469 block = pos->tnfw_w_block; in tnfw_b_alloc()
476 offset = pos->tnfw_w_write_off; in tnfw_b_alloc()
501 wcb, new_block, block, pos->tnfw_w_uncommitted); in tnfw_b_alloc()
[all …]
/titanic_41/usr/src/uts/common/io/mega_sas/
H A Dlist.h216 #define mlist_for_each(pos, head) \ argument
217 for (pos = (head)->next, prefetch(pos->next); pos != (head); \
218 pos = pos->next, prefetch(pos->next))
227 #define mlist_for_each_safe(pos, n, head) \ argument
228 for (pos = (head)->next, n = pos->next; pos != (head); \
229 pos = n, n = pos->next)
/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dkmem.c102 int kvm_read(kvm, pos, buffer, size) in kvm_read() argument
104 u_long pos;
111 if (lseek(*kvm, pos, 0) == -1) {
148 int kmemcpy(buf, pos, n) in kmemcpy() argument
150 long pos;
162 while ((r = kvm_read(kvm_f, pos, buf, n)) < n)
165 fprintf(stderr, "pos=0x%lx ", (u_long)pos);
172 pos += r;
178 int kstrncpy(buf, pos, n) in kstrncpy() argument
180 long pos;
[all …]
/titanic_41/usr/src/lib/libast/common/stdio/
H A Dfsetpos.c31 fsetpos(Sfio_t* f, const fpos_t* pos) in fsetpos() argument
33 STDIO_INT(f, "fsetpos", int, (Sfio_t*, const fpos_t*), (f, pos)) in fsetpos()
35 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1; in fsetpos()
41 fsetpos64(Sfio_t* f, const fpos64_t* pos) in fsetpos64() argument
43 STDIO_INT(f, "fsetpos64", int, (Sfio_t*, const fpos64_t*), (f, pos)) in fsetpos64()
45 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1; in fsetpos64()
/titanic_41/usr/src/uts/common/os/
H A Dbitset.c125 uint_t pos = (elt << b->bs_fanout); in bitset_add() local
127 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_add()
128 BT_SET(b->bs_set, pos); in bitset_add()
137 uint_t pos = (elt << b->bs_fanout); in bitset_atomic_add() local
139 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_atomic_add()
140 BT_ATOMIC_SET(b->bs_set, pos); in bitset_atomic_add()
150 uint_t pos = (elt << b->bs_fanout); in bitset_atomic_test_and_add() local
153 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_atomic_test_and_add()
154 BT_ATOMIC_SET_EXCL(b->bs_set, pos, ret); in bitset_atomic_test_and_add()
165 uint_t pos = (elt << b->bs_fanout); in bitset_del() local
[all …]
H A Dbitmap.c120 size_t pos; in bt_range() local
122 for (pos = *pos1; pos < end_pos; pos++) in bt_range()
123 if (BT_TEST(bitmap, pos)) in bt_range()
126 if (pos == end_pos) in bt_range()
129 *pos1 = pos; in bt_range()
131 for (; pos < end_pos; pos++) in bt_range()
132 if (!BT_TEST(bitmap, pos)) in bt_range()
134 *pos2 = pos; in bt_range()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Datomicio.c46 ssize_t res, pos = 0; variable
48 while (n > pos) {
49 res = (f) (fd, s + pos, n - pos);
62 pos += res;
65 return (pos);
75 size_t pos = 0, rem; in atomiciov() local
95 return pos; in atomiciov()
98 pos += rem; in atomiciov()
117 return pos; in atomiciov()
/titanic_41/usr/src/lib/libsasl/lib/
H A Dseterror.c120 int pos=0; /* current position in format string */ in sasl_seterror() local
196 while(pos<formatlen) in sasl_seterror()
198 if (fmt[pos]!='%') /* regular character */ in sasl_seterror()
201 char_len = mbrlen(fmt + pos, formatlen - pos, NULL); in sasl_seterror()
206 (*error_buf)[outlen]=fmt[pos]; in sasl_seterror()
208 pos++; in sasl_seterror()
214 (*error_buf)[outlen]=fmt[pos]; in sasl_seterror()
216 pos++; in sasl_seterror()
224 pos++; in sasl_seterror()
228 switch(fmt[pos]) in sasl_seterror()
[all …]

12345678910>>...16