Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 854) sorted by relevance

12345678910>>...35

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dstreval.c205 num = (num!=0); in arith_exec()
217 num = num+1; in arith_exec()
222 num = num-1; in arith_exec()
329 num = !num; in arith_exec()
332 num = -num; in arith_exec()
341 num = sp[-1] - num; in arith_exec()
360 num = sp[-1]/num; in arith_exec()
405 num = (sp[-1]==num); in arith_exec()
409 num = (sp[-1]!=num); in arith_exec()
421 num = (sp[-1]>num); in arith_exec()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dmc.c351 …if (!mc || set < 0 || set > mc->num || num < 1 || num > mc->set[set].num || !(s = mc->set[set].msg… in mcget()
393 if (set <= mc->num && num <= mc->set[set].num && (s = mc->set[set].msg[num])) in mcput()
401 if (mc->set[set].num == num) in mcput()
408 while (num && !mp[--num]); in mcput()
409 mc->nmsgs -= mc->set[set].num - num; in mcput()
410 if (!(mc->set[set].num = num) && mc->num == set) in mcput()
416 while (num && !mc->set[--num].num); in mcput()
417 mc->num = num; in mcput()
448 if (num > sp->num) in mcput()
477 mc->nmsgs += num - sp->num; in mcput()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dexpr.c361 np->num *= rp.num; in expr_mult()
364 np->num /= rp.num; in expr_mult()
367 np->num %= rp.num; in expr_mult()
386 np->num -= rp.num; in expr_add()
388 np->num += rp.num; in expr_add()
439 np->num = (np->num==rp.num); in expr_cmp()
442 np->num = (np->num>rp.num); in expr_cmp()
445 np->num = (np->num<rp.num); in expr_cmp()
448 np->num = (np->num>=rp.num); in expr_cmp()
451 np->num = (np->num<=rp.num); in expr_cmp()
[all …]
/illumos-gate/usr/src/lib/libcommputil/common/
H A Dcommp_util.c84 commp_atoi(const char *begin, const char *end, int *num) in commp_atoi() argument
88 *num = 0; in commp_atoi()
91 *num = (*num * 10) + (*begin - '0'); in commp_atoi()
111 *num = 0; in commp_strtoull()
114 *num = (*num * 10) + (*begin - '0'); in commp_strtoull()
134 *num = 0; in commp_strtoub()
137 *num = (*num * 10) + (*begin - '0'); in commp_strtoub()
157 *num = 0; in commp_atoui()
160 *num = (*num * 10) + (*begin - '0'); in commp_atoui()
215 if (commp_strtoull(begin, end, num) != 0) in commp_time_to_secs()
[all …]
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_nicenum.c49 zfs_nicenum_format(uint64_t num, char *buf, size_t buflen, in zfs_nicenum_format() argument
52 uint64_t n = num; in zfs_nicenum_format()
74 } else if (format == ZFS_NICENUM_RAWTIME && num > 0) { in zfs_nicenum_format()
77 } else if (format == ZFS_NICENUM_RAWTIME && num == 0) { in zfs_nicenum_format()
90 if ((format == ZFS_NICENUM_TIME) && (num == 0)) { in zfs_nicenum_format()
92 } else if ((index == 0) || ((num % in zfs_nicenum_format()
112 val = (double)num / in zfs_nicenum_format()
141 zfs_nicenum(uint64_t num, char *buf, size_t buflen) in zfs_nicenum() argument
151 zfs_nicetime(uint64_t num, char *buf, size_t buflen) in zfs_nicetime() argument
160 zfs_niceraw(uint64_t num, char *buf, size_t buflen) in zfs_niceraw() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsggen.c216 int num; in main() local
279 if (mc->set[set].num) in main()
282 for (num = 1; num <= mc->set[set].num; num++) in main()
297 if (mc->set[set].num) in main()
300 for (num = 1; num <= mc->set[set].num; num++) in main()
392 if (num < mc->num && mc->set[num].num) in main()
393 for (i = 1; i <= mc->set[num].num; i++) in main()
394 mcput(mc, num, i, NiL); in main()
402 num = (int)strtol(s, &e, 0); in main()
404 set = num; in main()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser_rseq.c55 for (i = 0; i < num; i++) { in rseq_do_common()
85 for (i = num - 1; i >= 0; i--) { in rseq_undo_common()
104 rseq_do(rseq_t *rseq, int num, uintptr_t arg, int flags) in rseq_do() argument
106 return (rseq_do_common(rseq, num, arg, flags, 0, -1)); in rseq_do()
111 rseq_undo(rseq_t *rseq, int num, uintptr_t arg, int flags) in rseq_undo() argument
113 return (rseq_undo_common(rseq, num, arg, flags, 0, -1)); in rseq_undo()
129 rval = func(rseq, num, arg, flags, sarg1, sarg2); in rseq_debug()
132 rnd = random() % num; in rseq_debug()
133 rval = func(rseq, num, arg, flags, sarg1, rnd); in rseq_debug()
136 for (i = 0; i < num; i++) { in rseq_debug()
[all …]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_door_legacy.c103 DWORD num = 0; in smb_dr_get_dword() local
112 return (num); in smb_dr_get_dword()
118 int32_t num = 0; in smb_dr_get_int32() local
127 return (num); in smb_dr_get_int32()
199 smb_dr_put_int32(ctx, (int32_t)num); in smb_dr_put_uint32()
236 int64_t num = 0; in smb_dr_get_int64() local
245 return (num); in smb_dr_get_int64()
290 short num = 0; in smb_dr_get_short() local
299 return (num); in smb_dr_get_short()
305 smb_dr_put_short(ctx, (short)num); in smb_dr_put_ushort()
[all …]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dprintf.c206 c = hex2ascii(num % base); in ksprintn()
208 } while (num /= base); in ksprintn()
260 uintmax_t num; in kvprintf() local
267 num = 0; in kvprintf()
343 if (num == 0) in kvprintf()
506 num = va_arg(ap, size_t); in kvprintf()
512 num = va_arg(ap, uint_t); in kvprintf()
518 num = va_arg(ap, quad_t); in kvprintf()
522 num = va_arg(ap, long); in kvprintf()
530 num = va_arg(ap, int); in kvprintf()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddiv.c49 div(num, denom) in div() argument
50 int num, denom; in div()
54 r.quot = num / denom;
55 r.rem = num % denom;
79 if (num >= 0 && r.rem < 0) {
87 ldiv(num, denom) in ldiv() argument
88 long num, denom; in ldiv()
94 r.quot = num / denom;
95 r.rem = num % denom;
96 if (num >= 0 && r.rem < 0) {
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dtrie.h65 #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))
74 #define UNSETBIT_CMN(num, pos) (num &= (~(1 << pos))) argument
76 #define UNSETBIT(num, pos, len) (UNSETBIT_CMN(num, pos)) argument
78 #define UNSETBIT(num, pos, len) \
79 (UNSETBIT_CMN(num, (COMPUTE_BIT_POS(len, pos))))
/illumos-gate/usr/src/test/zfs-tests/tests/functional/reservation/
H A Dreservation_008_pos.sh93 typeset -i num=1
94 while (($num < $RESV_NUM_FS)); do
95 log_must zfs set reservation=$resv_size_set $TESTPOOL/$TESTFS$num
96 ((num = num + 1))
106 num=0
107 log_note "Writing to $TESTDIR$num/$TESTFILE1"
109 file_write -o create -f $TESTDIR$num/$TESTFILE1 -b $BLOCK_SIZE \
118 num=1
119 log_must zfs set reservation=none $TESTPOOL/${TESTFS}$num
120 num=0
[all …]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_door_data.c103 int32_t num = 0; in ndmp_door_get_int32() local
112 return (num); in ndmp_door_get_int32()
167 ndmp_door_put_int32(ctx, (int32_t)num); in ndmp_door_put_uint32()
203 int64_t num = 0; in ndmp_door_get_int64() local
212 return (num); in ndmp_door_get_int64()
238 ndmp_door_put_int64(ctx, (int64_t)num); in ndmp_door_put_uint64()
246 (void) memcpy(ctx->ptr, &num, sizeof (short)); in ndmp_door_put_short()
257 short num = 0; in ndmp_door_get_short() local
260 (void) memcpy(&num, ctx->ptr, sizeof (short)); in ndmp_door_get_short()
266 return (num); in ndmp_door_get_short()
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/clients/rds/
H A Drds_kstat.h71 #define RDS_SET_NPORT(num) \ argument
72 rds_set_kstat(&rds_kstat.rds_nports, B_TRUE, num)
85 #define RDS_INCR_TXBYTES(num) \ argument
88 #define RDS_INCR_TXPKTS(num) \ argument
89 rds_increment_kstat(&rds_kstat.rds_tx_pkts, B_FALSE, num)
94 #define RDS_INCR_RXBYTES(num) \ argument
97 #define RDS_INCR_RXPKTS(num) \ argument
100 #define RDS_INCR_RXPKTS_PEND(num) \ argument
102 #define RDS_DECR_RXPKTS_PEND(num) \ argument
146 #define RDS_SET_PORT_QUOTA(num) \ argument
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dtypediff-enum.c1 enum num { ZERO, ONE, MANY, }; enum
2 typedef enum num num; typedef
5 num v = 0;
7 extern num w;
11 num foo(void) { return ZERO; } in foo()
13 num bar(void);
17 void baz(num a) { } in baz()
19 void qux(num a);
/illumos-gate/usr/src/lib/krb5/dyn/
H A Ddyn_insert.c19 int DynInsert(obj, idx, els_in, num) in DynInsert() argument
22 int idx, num;
34 if (num < 1) {
37 num);
44 obj->el_size*idx, obj->el_size*(idx+num));
46 if ((ret = _DynResize(obj, obj->num_el + num)) != DYN_OK)
49 memmove(obj->array + obj->el_size*(idx + num),
54 obj->array + obj->el_size*(idx + num),
60 obj->el_size*num, els, obj->array, obj->el_size*idx);
65 bcopy(els, obj->array + obj->el_size*idx, obj->el_size*num);
[all …]
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_po.y37 int num; member
42 %token <num> DOMAIN
43 %token <num> MSGID
46 %token <num> NUM
79 och1.num = $1;
85 och2.num = $3;
116 och1.num = $1;
185 tmp[no - 1].num = $2.num;
194 $$.num = $1.num;
214 pos->num = $1;
[all …]
/illumos-gate/usr/src/cmd/vi/port/
H A Dprintf.c73 long int mask2, num; in viprintf() local
198 num = va_arg(ap,long); in viprintf()
200 num = (unsigned)va_arg(ap,int); in viprintf()
211 n = (num!=0); in viprintf()
215 if (((int) num & mask1) < 10) in viprintf()
219 while (num = (num >> nbits) & mask2); in viprintf()
247 num = va_arg(ap,long); in viprintf()
251 num = (unsigned) n; in viprintf()
253 num = (long) n; in viprintf()
256 num = -num; in viprintf()
[all …]
/illumos-gate/usr/src/cmd/file/
H A Dmagicutils.c88 uint64_t num; member
633 (uint8_t)(ep->e_value.num)) in f_ckmtab()
650 if (u64_val != ep->e_value.num) in f_ckmtab()
662 (int8_t)(ep->e_value.num)) in f_ckmtab()
669 (uint8_t)(ep->e_value.num)) in f_ckmtab()
707 if (u64_val <= ep->e_value.num) in f_ckmtab()
719 (int8_t)(ep->e_value.num)) in f_ckmtab()
726 (uint8_t)(ep->e_value.num)) in f_ckmtab()
764 if (u64_val >= ep->e_value.num) in f_ckmtab()
797 ep->e_value.num) in f_ckmtab()
[all …]
/illumos-gate/usr/src/cmd/dtrace/demo/ip/
H A Dtcprst.d171 num[self->conn_id]--;
180 num[self->conn_id]--;
189 num[self->conn_id]--;
198 num[self->conn_id]--;
207 num[self->conn_id]--;
216 num[self->conn_id]--;
225 num[self->conn_id]--;
234 num[self->conn_id]--;
243 num[self->conn_id]--;
252 num[self->conn_id]--;
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/
H A Dsgfrutypes.h306 #define SG_SET_FRU_NAME_NODE(str, num) \ argument
309 (void) sprintf(tmp_str, "/N%d", num); \
320 #define SG_SET_FRU_NAME_IO_BOARD(str, num) \ argument
327 #define SG_SET_FRU_NAME_MODULE(str, num) \ argument
330 (void) sprintf(tmp_str, "/P%d", num); \
334 #define SG_SET_FRU_NAME_CORE(str, num) \ argument
337 (void) sprintf(tmp_str, "/C%d", num); \
341 #define SG_SET_FRU_NAME_BANK(str, num) \ argument
344 (void) sprintf(tmp_str, "/B%d", num); \
348 #define SG_SET_FRU_NAME_DIMM(str, num) \ argument
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Ddelete.c127 num++; in pk_destroy_keys()
147 num++; in pk_delete_keys()
175 num++; in pk_delete_keys()
198 num++; in pk_delete_certs()
269 num++; in delete_nss_keys()
284 num++; in delete_nss_keys()
299 num++; in delete_nss_keys()
476 num++; in delete_pk11_keys()
491 num++; in delete_pk11_keys()
507 num++; in delete_pk11_keys()
[all …]
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_subr.c157 u_longlong_t num = 0; in tmp_convnum() local
182 if (ddi_strtoull(str, &c, 10, &num) != 0) { in tmp_convnum()
198 if (num > 100) in tmp_convnum()
213 num = ptob(cap * num / 100); in tmp_convnum()
233 if (num > max_bytes / convchars[i].cc_factor) { in tmp_convnum()
237 num *= convchars[i].cc_factor; in tmp_convnum()
258 if ((*maxpg = (pgcnt_t)btopr(num)) == 0 && num != 0) in tmp_convnum()
270 ulong_t num; in tmp_convmode() local
277 if (ddi_strtoul(str, &c, 8, &num) != 0) { in tmp_convmode()
281 if ((num & ~VALIDMODEBITS) != 0) { in tmp_convmode()
[all …]
/illumos-gate/usr/src/cmd/infocmp/
H A Dinfocmp.c582 if (((num[i].val = tgetnum(num[i].capname)) > -1) && in initfirstterm()
584 pr_number(num[i].infoname, num[i].capname, in initfirstterm()
585 num[i].fullname, num[i].val); in initfirstterm()
590 num[i].val); in initfirstterm()
738 num[i].capname, num[i].secondname, in check_nth_terminal()
756 pr_number(num[i].infoname, num[i].capname, in check_nth_terminal()
771 num[i].infoname, num[i].val, numval); in check_nth_terminal()
777 num[i].infoname, num[i].val, numval, in check_nth_terminal()
778 num[i].changed, num[i].seenagain); in check_nth_terminal()
896 if (num[i].val < 0 && num[i].changed) { in dorelative()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ssldap/
H A Derrormap.c168 PRErrorCode num; in SECU_Strerror() local
177 num = errStrings[i].errNum; in SECU_Strerror()
178 if (num <= lastNum) { in SECU_Strerror()
207 lastNum = num; in SECU_Strerror()
215 num = errStrings[i].errNum; in SECU_Strerror()
216 if (errNum == num) in SECU_Strerror()
218 if (errNum < num) in SECU_Strerror()
272 PRErrorCode num; in SECU_Strerror() local
281 num = errStrings[i].errNum; in SECU_Strerror()
282 if (errNum == num) in SECU_Strerror()
[all …]

12345678910>>...35