| /onnv-gate/usr/src/lib/libast/common/hash/ |
| H A D | hashscan.c | 49 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 …]
|
| /onnv-gate/usr/src/cmd/stat/common/ |
| H A D | acquire_iodevs.c | 58 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 …]
|
| /onnv-gate/usr/src/uts/common/ipp/ipgpc/ |
| H A D | trie.h | 48 #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 D | trie.c | 63 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 …]
|
| /onnv-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++, yylineno++, yytchar) : \ 35 yytchar) == EOF ? (pos++, 0) : (pos++, yytchar)) 40 # define lex_input() (((pos >= string_start) && (pos < string_end)) ? \ [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/ |
| H A D | Switch.pm | 100 my @pos = Text::Balanced::_match_quotelike(\$source,qr/\s*/,1,0); 101 if (defined $pos[0]) 103 my $pre = substr($source,$pos[0],$pos[1]); # matched prefix 104 $text .= $pre . substr($source,$pos[2],$pos[18]-$pos[2]); 110 @pos = Text::Balanced::_match_variable(\$source,qr/\s*/); 111 if (defined $pos[0]) 113 $text .= " " if $pos[0] < $pos[2]; 114 $text .= substr($source,$pos[0],$pos[4]-$pos[0]); 126 …@pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\(/,qr/\)/,qr/[[{(<]/,qr/[]})>]/,undef… 130 …$arg = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)… [all …]
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
| H A D | wpa.c | 149 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 …]
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
| H A D | snoop_display.c | 230 int pos; char val; in showxdr_char() local 232 pos = getxdr_pos(); in showxdr_char() 234 (void) sprintf(get_line(pos, getxdr_pos()), fmt, val); in showxdr_char() 252 int pos; in showxdr_u_char() local 255 pos = getxdr_pos(); in showxdr_u_char() 257 (void) sprintf(get_line(pos, getxdr_pos()), fmt, val); in showxdr_u_char() 275 int pos; short val; in showxdr_short() local 277 pos = getxdr_pos(); in showxdr_short() 279 (void) sprintf(get_line(pos, getxdr_pos()), fmt, val); in showxdr_short() 297 int pos; in showxdr_u_short() local [all …]
|
| H A D | snoop_rpcsec.c | 91 int pos; in print_rpcsec_gss_cred() local 93 pos = getxdr_pos(); in print_rpcsec_gss_cred() 107 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred() 110 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred() 115 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred() 118 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred() 121 pos = getxdr_pos(); in print_rpcsec_gss_cred() 124 line = get_line(pos, getxdr_pos()); in print_rpcsec_gss_cred() 333 int pos; in print_rpc_gss_init_arg() local 347 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpc_gss_init_arg() [all …]
|
| /onnv-gate/usr/src/lib/libresolv2/common/irs/ |
| H A D | lcl_ng.c | 277 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 …]
|
| /onnv-gate/usr/src/cmd/audio/utilities/ |
| H A D | AudioList.cc | 88 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 …]
|
| /onnv-gate/usr/src/cmd/idmap/idmap/ |
| H A D | idmap.c | 211 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 …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Search/ |
| H A D | Dict.t | 47 my $pos = look *DICT, "Ababa"; 49 print "not " if $pos < 0 || $word ne "Ababa"; 54 $pos = look *DICT, "foo"; 57 print "not " if $pos != length($DICT); # will search to end of file 60 my $pos = look *DICT, "abash"; 62 print "not " if $pos < 0 || $word ne "abash"; 68 $pos = look *DICT, "FOO"; 71 print "not " if $pos != length($DICT); # will search to end of file 74 my $pos = look *DICT, "Abba"; 76 print "not " if $pos < 0 || $word ne "Abba"; [all …]
|
| /onnv-gate/usr/src/lib/libtnfprobe/ |
| H A D | tnf_buf.c | 310 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 …]
|
| /onnv-gate/usr/src/uts/common/io/mr_sas/ |
| H A D | mr_sas_list.h | 193 #define mlist_for_each(pos, head) \ argument 194 for (pos = (head)->next, prefetch(pos->next); pos != (head); \ 195 pos = pos->next, prefetch(pos->next)) 204 #define mlist_for_each_safe(pos, n, head) \ argument 205 for (pos = (head)->next, n = pos->next; pos != (head); \ 206 pos = n, n = pos->next)
|
| /onnv-gate/usr/src/uts/common/io/mega_sas/ |
| H A D | list.h | 216 #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)
|
| /onnv-gate/usr/src/cmd/ipf/lib/common/ |
| H A D | kmem.c | 102 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 …]
|
| /onnv-gate/usr/src/cmd/man/src/util/nsgmls.src/lib/ |
| H A D | Recognizer.cxx | 41 register const Trie *pos = trie_.pointer(); in recognize() local 43 pos = pos->next(map_[in->tokenChar(mgr)]); in recognize() 44 } while (pos->hasNext()); in recognize() 45 if (!pos->blank()) { in recognize() 46 in->endToken(pos->tokenLength()); in recognize() 47 return pos->token(); in recognize() 49 const BlankTrie *b = pos->blank(); in recognize() 68 in->endToken(pos->tokenLength() + (pos->includeBlanks() ? nBlanks : 0)); in recognize() 69 return pos->token(); in recognize()
|
| /onnv-gate/usr/src/lib/libast/common/stdio/ |
| H A D | fsetpos.c | 31 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()
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Text/Balanced/t/ |
| H A D | extmul.t | 78 expect [ pos $text], [ 4 ]; 86 expect [ pos $text], [ 0 ]; 95 expect [ pos $text], [ 10 ]; 103 expect [ pos $text], [ 0 ]; 112 expect [ pos $text], [ 26 ]; 120 expect [ pos $text], [ 0 ]; 129 expect [ pos $text], [ 27 ]; 137 expect [ pos $text], [ 0 ]; 146 expect [ pos $text], [ 27 ]; 155 expect [ pos $text], [ 0 ]; [all …]
|
| /onnv-gate/usr/src/cmd/ssh/libssh/common/ |
| H A D | atomicio.c | 46 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()
|
| /onnv-gate/usr/src/uts/common/os/ |
| H A D | bitset.c | 125 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 …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Unicode/Collate/t/ |
| H A D | index.t | 47 if (my($pos,$len) = $Collator->index($str, $sub)) { 48 substr($str, $pos, $len, $rep); 56 if (my($pos,$len) = $Collator->index($str, $sub)) { 57 substr($str, $pos, $len, $rep); 72 if (my($pos, $len) = $Collator->index($str, $sub)) { 73 $match = substr($str, $pos, $len); 81 if (my($pos, $len) = $Collator->index($str, $sub)) { 82 $match = substr($str, $pos, $len); 92 if (my($pos, $len) = $Collator->index($str, $sub)) { 93 $match = substr($str, $pos, $len); [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/ |
| H A D | subst_amp.t | 20 pos = 1; 27 pos = 1; 34 pos = 1; 41 pos = 1; 48 pos ($a) = 1; 55 pos ($a) = 1; 62 pos ($a) = 1; 69 pos ($a) = 1; 79 pos ($a) = 1; 86 pos ($a) = 1; [all …]
|
| /onnv-gate/usr/src/lib/libntfs/common/include/ntfs/ |
| H A D | list.h | 178 #define list_for_each(pos, head) \ argument 179 for (pos = (head)->next; pos != (head); pos = pos->next) 187 #define list_for_each_safe(pos, n, head) \ argument 188 for (pos = (head)->next, n = pos->next; pos != (head); \ 189 pos = n, n = pos->next)
|