Home
last modified time | relevance | path

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

12345678910>>...16

/titanic_50/usr/src/cmd/mandoc/
H A Dtbl_layout.c62 int ln, const char *p, int *pos) in mods() argument
67 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
68 (*pos)++; in mods()
72 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) in mods()
77 if ('(' == p[*pos]) { in mods()
78 (*pos)++; in mods()
79 while (p[*pos] && ')' != p[*pos]) in mods()
80 (*pos)++; in mods()
81 if (')' == p[*pos]) { in mods()
82 (*pos)++; in mods()
[all …]
H A Dtbl_opts.c65 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) in arg() argument
69 while (p[*pos] == ' ' || p[*pos] == '\t') in arg()
70 (*pos)++; in arg()
75 if (p[*pos] == '(') { in arg()
76 (*pos)++; in arg()
77 while (p[*pos + len] != ')') in arg()
84 ln, *pos, "%.*s", len, p + *pos); in arg()
90 tbl->opts.tab = p[*pos]; in arg()
98 tbl->opts.decimal = p[*pos]; in arg()
107 tbl->parse, ln, *pos, keys[key].name); in arg()
[all …]
H A Dtbl_data.c41 int ln, const char *p, int *pos) in getdata() argument
50 while (cp != NULL && cp->pos == TBL_CELL_SPAN) in getdata()
60 ln, *pos, p + *pos); in getdata()
62 while (p[*pos]) in getdata()
63 (*pos)++; in getdata()
69 dat->pos = TBL_DATA_NONE; in getdata()
72 if (cp->pos == TBL_CELL_SPAN) in getdata()
83 sv = *pos; in getdata()
84 while (p[*pos] && p[*pos] != tbl->opts.tab) in getdata()
85 (*pos)++; in getdata()
[all …]
H A Dmdoc_argv.c279 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 mdoc *mdoc, int line, int *pos, in mdoc_args() argument
426 return(args(mdoc, line, pos, buf, fl, v)); in mdoc_args()
442 return(args(mdoc, line, pos, buf, fl, v)); in mdoc_args()
446 args(struct mdoc *mdoc, int line, int *pos, in args() argument
453 if ('\0' == buf[*pos]) { in args()
463 mdoc->parse, line, *pos, NULL); in args()
[all …]
H A Dtbl.c35 tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_read() argument
49 for (cp = p + pos; *cp != '\0'; cp++) { in tbl_read()
67 tbl_option(tbl, ln, p, &pos); in tbl_read()
68 if (p[pos] == '\0') in tbl_read()
77 tbl_layout(tbl, ln, p, pos); in tbl_read()
80 return(tbl_cdata(tbl, ln, p, pos) ? ROFF_TBL : ROFF_IGN); in tbl_read()
85 tbl_data(tbl, ln, p, pos); in tbl_read()
90 tbl_alloc(int pos, int line, struct mparse *parse) in tbl_alloc() argument
96 tbl->pos = pos; in tbl_alloc()
137 tbl_restart(int line, int pos, struct tbl_node *tbl) in tbl_restart() argument
[all …]
H A Droff.c353 int pos, /* current pos in buffer */ \
907 roff_res(struct roff *r, struct buf *buf, int ln, int pos) in roff_res() argument
926 start = buf->buf + pos; in roff_res()
1094 start = nbuf + pos; in roff_res()
1108 roff_parsetext(struct buf *buf, int pos, int *offs) in roff_parsetext() argument
1116 start = p = buf->buf + pos; in roff_parsetext()
1163 int pos; /* parse point */ in roff_parseln() local
1168 ppos = pos = *offs; in roff_parseln()
1175 e = roff_eqndelim(r, buf, pos); in roff_parseln()
1183 e = roff_res(r, buf, ln, pos); in roff_parseln()
[all …]
/titanic_50/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_50/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 …]
/titanic_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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()

12345678910>>...16