Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 218) sorted by relevance

123456789

/illumos-gate/usr/src/lib/libbsm/common/
H A Dgetdevicerange.c49 blrange_t *range; in getdevicerange() local
55 free(range); in getdevicerange()
59 blabel_free(range->lower_bound); in getdevicerange()
60 free(range); in getdevicerange()
80 bsllow(range->lower_bound); in getdevicerange()
81 bslhigh(range->upper_bound); in getdevicerange()
85 bsllow(range->lower_bound); in getdevicerange()
90 free(range); in getdevicerange()
96 bslhigh(range->upper_bound); in getdevicerange()
101 free(range); in getdevicerange()
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/
H A Dfill_db_type_size.pl54 my %range;
59 $range{min} = $min;
60 $range{max} = $max;
68 if ($range{max} < $tmp->{min}) {
69 push @return_union, \%range;
91 push @return_union, \%range;
110 my $range = shift;
112 if ($range->{min} == $range->{max}) {
113 return print_num($range->{min});
115 return print_num($range->{min}) . "-" . print_num($range->{max});
[all …]
H A Dfill_db_type_value.pl53 my %range;
58 $range{min} = $min;
59 $range{max} = $max;
67 if ($range{max} < $tmp->{min}) {
68 push @return_union, \%range;
90 push @return_union, \%range;
109 my $range = shift;
111 if ($range->{min} == $range->{max}) {
112 return print_num($range->{min});
114 return print_num($range->{min}) . "-" . print_num($range->{max});
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dhist.c164 range[0] = flag; in b_hist()
168 if(range[0]<index2) in b_hist()
169 range[0] = index2; in b_hist()
172 range[1] = ((lflag && !edit)?hist_max(hp)-1:range[0]); in b_hist()
174 range[1] = flag; in b_hist()
176 if(range[1]<index2 || range[0]>=flag) in b_hist()
177 errormsg(SH_DICT,ERROR_exit(1),e_badrange,range[0],range[1]); in b_hist()
178 if(edit && *edit=='-' && range[0]!=range[1]) in b_hist()
183 if(range[1-flag] < range[flag]) in b_hist()
209 if(range[flag] == range[1-flag]) in b_hist()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_arg.c308 if (*range == '-') in proc_lwp_get_range()
311 *low = (id_t)strtol(range, &range, 10); in proc_lwp_get_range()
313 if (*range == '\0' || *range == ',') { in proc_lwp_get_range()
317 if (*range != '-') { in proc_lwp_get_range()
320 range++; in proc_lwp_get_range()
322 if (*range == '\0') in proc_lwp_get_range()
325 *high = (id_t)strtol(range, &range, 10); in proc_lwp_get_range()
327 if (*range != '\0' && *range != ',') { in proc_lwp_get_range()
381 range = NULL; in proc_lwp_in_set()
398 if (range == NULL || *range == '\0' || *range == ',') in proc_lwp_range_valid()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_016_pos.ksh105 range="1 2 3"
107 range="4 5"
114 range="2 3 4"
118 range="1 5"
125 range="1 2"
127 range="3 4 5"
134 range="2 4"
136 range="1 3 5"
143 range="1 2 3 5"
145 range=4
[all …]
/illumos-gate/usr/src/lib/libtsol/common/
H A Dmisc.c431 m_range_t *range; in getuserrange() local
442 free(range); in getuserrange()
445 def_min = range->lower_bound; in getuserrange()
447 m_label_free(range->lower_bound); in getuserrange()
448 free(range); in getuserrange()
451 def_clr = range->upper_bound; in getuserrange()
457 (void) str_to_label(kv_str, &range->lower_bound, in getuserrange()
472 m_label_free(range->lower_bound); in getuserrange()
473 m_label_free(range->upper_bound); in getuserrange()
474 free(range); in getuserrange()
[all …]
/illumos-gate/usr/src/lib/pam_modules/tsol_acct/
H A Dtsol_acct.c62 m_range_t *range; in pam_sm_acct_mgmt() local
101 if ((range = getuserrange(user)) == NULL) { in pam_sm_acct_mgmt()
109 free_labels(range, NULL); in pam_sm_acct_mgmt()
115 free_labels(range, plabel); in pam_sm_acct_mgmt()
118 if (!blinrange(plabel, range)) { in pam_sm_acct_mgmt()
119 free_labels(range, plabel); in pam_sm_acct_mgmt()
123 free_labels(range, plabel); in pam_sm_acct_mgmt()
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/
H A Dregexprange.awk2 range = "[a-dx-z]"
9 upper[i], range, (upper[i] ~ range) ? "true" : "false")
13 lower[i], range, (lower[i] ~ range) ? "true" : "false")
/illumos-gate/usr/src/uts/i86pc/io/acpi/acpidev/
H A Dacpidev_resource.c490 acpidev_ranges_t range; in acpidev_resource_address64() local
492 range.child_hi = high; in acpidev_resource_address64()
499 range.parent_hi = high; in acpidev_resource_address64()
561 acpidev_ranges_t range; in acpidev_resource_address64() local
563 range.child_hi = high; in acpidev_resource_address64()
650 acpidev_ranges_t range; in acpidev_resource_walk_producer() local
657 range.parent_hi = range.child_hi; in acpidev_resource_walk_producer()
658 range.parent_mid = range.child_mid = 0; in acpidev_resource_walk_producer()
659 range.parent_low = range.child_low = rscp->Data.Io.Minimum; in acpidev_resource_walk_producer()
660 range.size_hi = 0; in acpidev_resource_walk_producer()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Datexit.c198 _preexec_sig_unload(Lc_addr_range_t range[], uint_t count) in _preexec_sig_unload() argument
212 in_range((void *)handler, range, count)) { in _preexec_sig_unload()
256 in_range((void *)func, range, count)) || in _preexec_atfork_unload()
258 in_range((void *)func, range, count)) || in _preexec_atfork_unload()
260 in_range((void *)func, range, count))) { in _preexec_atfork_unload()
301 _preexec_tsd_unload(Lc_addr_range_t range[], uint_t count) in _preexec_tsd_unload() argument
311 in_range((void *)func, range, count)) in _preexec_tsd_unload()
350 if (in_range((void *)p->hdlr, range, count)) { in _preexec_exit_handlers()
368 _preexec_tsd_unload(range, count); in _preexec_exit_handlers()
369 _preexec_atfork_unload(range, count); in _preexec_exit_handlers()
[all …]
/illumos-gate/usr/src/tools/smatch/src/smatch_data/
H A Dkernel.parameter_implications.add6 * function "return range" parameter "implied value range list of parameter"
9 * value is a range list, but the return range is just a range and we only care
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DDistribution.java168 long[] range; // two element array: { min, max } in createBuckets() local
171 range = getBucketRange(i, len, base, constant); in createBuckets()
172 min = range[0]; in createBuckets()
173 max = range[1]; in createBuckets()
195 long[] range = getBucketRange(i, bucketCount, base, constant); in checkBucketRange() local
196 checkBucketRange(i, bucket, range); in checkBucketRange()
202 long[] range = getBucketRange(i, bucketCount); in checkBucketRange() local
203 checkBucketRange(i, bucket, range); in checkBucketRange()
207 checkBucketRange(int i, Distribution.Bucket bucket, long[] range) in checkBucketRange() argument
209 long min = range[0]; in checkBucketRange()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Ddist.c203 char range[40]; in dist_print_bucket() local
221 (void) mdb_snprintf(range, sizeof (range), "%d", bb); in dist_print_bucket()
223 (void) mdb_snprintf(range, sizeof (range), "%d-%d", bb, be); in dist_print_bucket()
224 mdb_printf("%*s |%s%s %lld\n", width, range, ats, spaces, count); in dist_print_bucket()
/illumos-gate/usr/src/common/tsol/
H A Dblabel.c149 blinrange(const m_label_t *label, const m_range_t *range) in blinrange() argument
151 return (BLDOMINATES((label), ((range)->lower_bound)) && in blinrange()
152 BLDOMINATES(((range)->upper_bound), (label))); in blinrange()
160 _blinrange(const m_label_t *label, const brange_t *range) in _blinrange() argument
162 return (BLINRANGE(label, range)); in _blinrange()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcut.c136 register int range = 0; in cutinit() local
171 if(range) in cutinit()
173 --range; in cutinit()
176 *lp++ = range; in cutinit()
193 if(lp[0] <= range) in cutinit()
202 range += c; in cutinit()
208 range = *dp++ = lp[0]; in cutinit()
214 range += (*dp++ = lp[1]); in cutinit()
228 n = range = 0; in cutinit()
232 if(range) in cutinit()
[all …]
/illumos-gate/usr/src/cmd/diff3/
H A Ddiff3prog.c52 struct range {int from, to; }; argument
59 struct diff {struct range old, new; };
108 static void change(int i, struct range *rold, int dup);
109 static void prange(struct range *rold);
110 static void keep(int i, struct range *rnew);
112 static int duplicate(struct range *r1, struct range *r2);
396 change(int i, struct range *rold, int dup) in change()
415 prange(struct range *rold) in prange()
434 keep(int i, struct range *rnew) in keep()
437 struct range trange; in keep()
[all …]
/illumos-gate/usr/src/lib/print/libpapi-common/common/
H A Dattribute.c174 result->range.lower = v->range.lower; in papiAttributeValueDup()
175 result->range.upper = v->range.upper; in papiAttributeValueDup()
248 (value->range.lower > value->range.upper)) in papiAttributeListAddValue()
330 v.range.lower = lower; in papiAttributeListAddRange()
331 v.range.upper = upper; in papiAttributeListAddRange()
538 *min = value->range.lower; in papiAttributeListGetRange()
539 *max = value->range.upper; in papiAttributeListGetRange()
709 value->range.lower = 1; in _add_attribute_value()
712 value->range.lower = value->range.upper in _add_attribute_value()
926 if (values[i]->range.lower == values[i]->range.upper) in papiAttributeToString()
[all …]
/illumos-gate/usr/src/uts/intel/io/hotplug/pcicfg/
H A Dpcicfg.c1125 range[1].child_high = range[1].parent_high |= in pcicfg_ntbridge_configure_done()
1129 range[0].child_high = range[0].parent_high |= in pcicfg_ntbridge_configure_done()
1133 range[2].child_high = range[2].parent_high |= in pcicfg_ntbridge_configure_done()
1135 range[2].child_low = range[2].parent_low = in pcicfg_ntbridge_configure_done()
1776 range[0].child_high = range[0].parent_high |= in pcicfg_bridge_assign()
1779 range[1].child_high = range[1].parent_high |= in pcicfg_bridge_assign()
1781 range[1].child_low = range[1].parent_low = in pcicfg_bridge_assign()
1783 range[2].child_high = range[2].parent_high |= in pcicfg_bridge_assign()
1785 range[2].child_low = range[2].parent_low = in pcicfg_bridge_assign()
4441 range[1].child_high = range[1].parent_high |= in pcicfg_probe_bridge()
[all …]
/illumos-gate/usr/src/common/lzma/
H A DLzmaDec.c24 #define NORMALIZE if (range < kTopValue) { range <<= 8; code = (code << 8) | (*buf++); }
57 #define UPDATE_0_CHECK range = bound;
167 UInt32 range = p->range; in LzmaDec_DecodeReal() local
344 range >>= 1; in LzmaDec_DecodeReal()
348 code -= range; in LzmaDec_DecodeReal()
351 code += range & t; in LzmaDec_DecodeReal()
433 p->range = range; in LzmaDec_DecodeReal()
508 UInt32 range = p->range; in LzmaDec_TryDummy() local
672 range >>= 1; in LzmaDec_TryDummy()
673 code -= range & (((code - range) >> 31) - 1); in LzmaDec_TryDummy()
[all …]
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c178 initialize_range(err_type_t type, int level, char *range, in initialize_range() argument
184 if (range == NULL) { in initialize_range()
196 record->zi_start = strtoull(range, &end, 10); in initialize_range()
207 range); in initialize_range()
223 if (range != NULL) { in initialize_range()
241 translate_record(err_type_t type, const char *object, const char *range, in translate_record() argument
307 if (initialize_range(type, level, (char *)range, record) != 0) in translate_record()
/illumos-gate/usr/src/lib/fm/topo/maps/Joyent,Joyent-Compute-Platform-1101/
H A DJoyent-Compute-Platform-1101-disk-hc-topology.xmlgenksh39 <range name='bay' min='0' max='15'>
91 <range name='disk' min='0' max='0'>
93 </range>
95 </range>
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Ditm_util.c625 if (ml->data_pair.range.size != in map_table()
632 &(ml->data_pair.range))); in map_table()
637 &((ml->data_pair.range)))) { in map_table()
643 &(ml->data_pair.range))); in map_table()
1754 (*(tpp + i))->range.size, in map_table_dense_encoding()
1916 if (j < ml->data_pair.range.size) j = ml->data_pair.range.size; in map_table_resultlen()
1922 ml->data_pair.range.size - 1; in map_table_resultlen()
1987 assert(0 < pair->range.size); in map_table_num_range()
1989 if (j < pair->range.size) in map_table_num_range()
1990 j = pair->range.size; in map_table_num_range()
[all …]
/illumos-gate/usr/src/lib/fm/topo/maps/SMCI,SSG-2028R-ACR24L/
H A DSSG-2028R-ACR24L-disk-hc-topology.xmlgenksh44 <range name='bay' min='0' max='23'>
102 <range name='disk' min='0' max='0'>
104 </range>
106 </range>
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dstrmatch.c348 char* range; in onematch() local
352 range = 0; in onematch()
431 else if (range) in onematch()
436 range = oldp; in onematch()
452 else if (range) in onematch()
457 x = mbgetchar(range); in onematch()
465 range = oldp; in onematch()
468 range = 0; in onematch()
474 range = oldp; in onematch()

123456789