Home
last modified time | relevance | path

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

12345678910>>...34

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dstreval.c157 register Sfdouble_t num=0,*dp,*sp; in arith_exec() local
199 if((c==A_JMPZ && num) || (c==A_JMPNZ &&!num)) in arith_exec()
205 num = (num!=0); in arith_exec()
210 (*ep->fun)(&ptr,&node,ASSIGN,num+1); in arith_exec()
214 (*ep->fun)(&ptr,&node,ASSIGN,num-1); in arith_exec()
217 num = num+1; in arith_exec()
219 num = (*ep->fun)(&ptr,&node,ASSIGN,num); in arith_exec()
222 num = num-1; in arith_exec()
224 num = (*ep->fun)(&ptr,&node,ASSIGN,num); in arith_exec()
227 num = sp[-1]; in arith_exec()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dmc.c275 mc->num = sfgetu(ip); in mcopen()
286 if (!(mc->set = vmnewof(vm, 0, Mcset_t, mc->num + 1, 0))) in mcopen()
290 if (!(mp = vmnewof(vm, 0, char*, mc->nmsgs + mc->num + 1, 0))) in mcopen()
301 if (i > mc->num) in mcopen()
304 mc->set[i].num = n; in mcopen()
313 for (i = 1; i <= mc->num; i++) in mcopen()
314 for (j = 1; j <= mc->set[i].num; j++) in mcopen()
345 mcget(register Mc_t* mc, int set, int num, const char* msg) in mcget() argument
351 …if (!mc || set < 0 || set > mc->num || num < 1 || num > mc->set[set].num || !(s = mc->set[set].msg… in mcget()
373 mcput(register Mc_t* mc, int set, int num, const char* msg) in mcput() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dexpr.c172 long num; member
207 np->num = (ep = strpbrk(cp, ep)) ? (ep - cp + 1) : 0; in getnode()
217 np->num = strlen(cp); in getnode()
278 np->num = strtol(np->str,&ep,10); in getnode()
309 sfsprintf(cp=state->buf,sizeof(state->buf),"%d",np->num); in expr_cond()
310 np->num = 0; in expr_cond()
323 np->num = strtol(np->str,&cp,10); in expr_cond()
331 np->num = match[0].rm_eo - match[0].rm_so; in expr_cond()
356 if (op && rp.num==0) in expr_mult()
361 np->num *= rp.num; in expr_mult()
[all …]
/illumos-gate/usr/src/lib/libcommputil/common/
H A Dcommp_util.c82 commp_atoi(const char *begin, const char *end, int *num) in commp_atoi() argument
86 *num = 0; in commp_atoi()
89 *num = (*num * 10) + (*begin - '0'); in commp_atoi()
105 commp_strtoull(const char *begin, const char *end, uint64_t *num) in commp_strtoull() argument
109 *num = 0; in commp_strtoull()
112 *num = (*num * 10) + (*begin - '0'); in commp_strtoull()
128 commp_strtoub(const char *begin, const char *end, uint8_t *num) in commp_strtoub() argument
132 *num = 0; in commp_strtoub()
135 *num = (*num * 10) + (*begin - '0'); in commp_strtoub()
151 commp_atoui(const char *begin, const char *end, uint_t *num) in commp_atoui() argument
[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()
72 (void) snprintf(buf, buflen, "%llu", (u_longlong_t)num); in zfs_nicenum_format()
74 } else if (format == ZFS_NICENUM_RAWTIME && num > 0) { in zfs_nicenum_format()
75 (void) snprintf(buf, buflen, "%llu", (u_longlong_t)num); 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
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsggen.c216 int num; in main() local
278 for (set = 1; set <= mc->num; set++) in main()
279 if (mc->set[set].num) in main()
282 for (num = 1; num <= mc->set[set].num; num++) in main()
283 if (s = mc->set[set].msg[num]) in main()
284 sfprintf(sfstdout, "%d \"%s\"\n", num, fmtfmt(s)); in main()
296 for (set = 1; set <= mc->num; set++) in main()
297 if (mc->set[set].num) in main()
300 for (num = 1; num <= mc->set[set].num; num++) in main()
301 if (s = mc->set[set].msg[num]) in main()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser_rseq.c48 rseq_do_common(rseq_t *rseq, int num, uintptr_t arg, int flags, int fail_err, in rseq_do_common() argument
55 for (i = 0; i < num; i++) { in rseq_do_common()
78 rseq_undo_common(rseq_t *rseq, int num, uintptr_t arg, int flags, int fail_err, in rseq_undo_common() argument
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()
121 rseq_debug(rseq_t *rseq, int num, uintptr_t arg, int flags, int scenario, in rseq_debug() argument
129 rval = func(rseq, num, arg, flags, sarg1, sarg2); 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
106 (void) memcpy(&num, ctx->ptr, sizeof (DWORD)); in smb_dr_get_dword()
112 return (num); in smb_dr_get_dword()
118 int32_t num = 0; in smb_dr_get_int32() local
121 (void) memcpy(&num, ctx->ptr, sizeof (int32_t)); in smb_dr_get_int32()
127 return (num); in smb_dr_get_int32()
171 smb_dr_put_dword(smb_dr_ctx_t *ctx, DWORD num) in smb_dr_put_dword() argument
175 (void) memcpy(ctx->ptr, &num, sizeof (DWORD)); in smb_dr_put_dword()
184 smb_dr_put_int32(smb_dr_ctx_t *ctx, int32_t num) in smb_dr_put_int32() argument
188 (void) memcpy(ctx->ptr, &num, sizeof (int32_t)); in smb_dr_put_int32()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Dprintf.c199 ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper) in ksprintn() argument
206 c = hex2ascii(num % base); in ksprintn()
208 } while (num /= base); in ksprintn()
260 uintmax_t num; in kvprintf() local
267 num = 0; in kvprintf()
338 num = (uint_t)va_arg(ap, int); in kvprintf()
340 for (q = ksprintn(nbuf, num, *p++, NULL, 0); *q; ) in kvprintf()
343 if (num == 0) in kvprintf()
348 if (num & (1 << (n - 1))) { in kvprintf()
422 num = (uintptr_t)va_arg(ap, void *); in kvprintf()
[all …]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_door_data.c103 int32_t num = 0; in ndmp_door_get_int32() local
106 (void) memcpy(&num, ctx->ptr, sizeof (int32_t)); in ndmp_door_get_int32()
112 return (num); in ndmp_door_get_int32()
152 ndmp_door_put_int32(ndmp_door_ctx_t *ctx, int32_t num) in ndmp_door_put_int32() argument
156 (void) memcpy(ctx->ptr, &num, sizeof (int32_t)); in ndmp_door_put_int32()
165 ndmp_door_put_uint32(ndmp_door_ctx_t *ctx, uint32_t num) in ndmp_door_put_uint32() argument
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
206 (void) memcpy(&num, ctx->ptr, sizeof (int64_t)); in ndmp_door_get_int64()
212 return (num); in ndmp_door_get_int64()
[all …]
/illumos-gate/usr/src/uts/common/sys/ib/clients/rds/
H A Drds_kstat.h69 #define RDS_SET_NPORT(num) \ argument
70 rds_set_kstat(&rds_kstat.rds_nports, B_TRUE, num)
83 #define RDS_INCR_TXBYTES(num) \ argument
84 rds_increment_kstat(&rds_kstat.rds_tx_bytes, B_FALSE, num)
86 #define RDS_INCR_TXPKTS(num) \ argument
87 rds_increment_kstat(&rds_kstat.rds_tx_pkts, B_FALSE, num)
92 #define RDS_INCR_RXBYTES(num) \ argument
93 rds_increment_kstat(&rds_kstat.rds_rx_bytes, B_FALSE, num)
95 #define RDS_INCR_RXPKTS(num) \ argument
96 rds_increment_kstat(&rds_kstat.rds_rx_pkts, B_FALSE, num)
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddiv.c47 div(num, denom) in div() argument
48 int num, denom; in div()
52 r.quot = num / denom;
53 r.rem = num % denom;
77 if (num >= 0 && r.rem < 0) {
85 ldiv(num, denom) in ldiv() argument
86 long num, denom; in ldiv()
92 r.quot = num / denom;
93 r.rem = num % denom;
94 if (num >= 0 && r.rem < 0) {
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dtrie.h63 #define SETBIT_CMN(num, pos, val) (num |= (val << pos)) argument
65 #define SETBIT(num, pos, val, len) (SETBIT_CMN(num, pos, val)) argument
67 #define SETBIT(num, pos, val, len) \
68 (SETBIT_CMN(num, (COMPUTE_BIT_POS(len, pos)), val))
72 #define UNSETBIT_CMN(num, pos) (num &= (~(1 << pos))) argument
74 #define UNSETBIT(num, pos, len) (UNSETBIT_CMN(num, pos)) argument
76 #define UNSETBIT(num, pos, len) \
77 (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/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.c17 int DynInsert(obj, idx, els_in, num) in DynInsert() argument
20 int idx, num;
32 if (num < 1) {
35 num);
42 obj->el_size*idx, obj->el_size*(idx+num));
44 if ((ret = _DynResize(obj, obj->num_el + num)) != DYN_OK)
47 memmove(obj->array + obj->el_size*(idx + num),
52 obj->array + obj->el_size*(idx + num),
58 obj->el_size*num, els, obj->array, obj->el_size*idx);
61 memmove(obj->array + obj->el_size*idx, els, obj->el_size*num);
[all …]
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_po.y36 int num; member
41 %token <num> DOMAIN
42 %token <num> MSGID
43 %token <num> MSGID_PLURAL
44 %token <num> MSGSTR
45 %token <num> NUM
78 och1.num = $1;
84 och2.num = $3;
110 pos1[0].num = $1;
113 pos1[1].num = $3;
[all …]
/illumos-gate/usr/src/cmd/file/
H A Dmagicutils.c88 uint64_t num; member
486 ep->e_value.num = strtoull((const char *)p, in f_mkmtab()
633 (uint8_t)(ep->e_value.num)) in f_ckmtab()
639 (uint16_t)(ep->e_value.num)) in f_ckmtab()
645 (uint32_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()
675 (int16_t)(ep->e_value.num)) in f_ckmtab()
682 (uint16_t)(ep->e_value.num)) in f_ckmtab()
[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()
216 *--bptr = ((int) num & mask1) + 060; in viprintf()
218 *--bptr = ((int) num & mask1) + 0127; in viprintf()
219 while (num = (num >> nbits) & mask2); in viprintf()
247 num = va_arg(ap,long); in viprintf()
251 num = (unsigned) n; in viprintf()
[all …]
/illumos-gate/usr/src/cmd/dtrace/demo/ip/
H A Dtcprst.d106 num[self->conn_id] = 0;
128 num[self->conn_id] = (rollover[self->conn_id]?
161 self->i = (end_ptr[self->conn_id] + MAX_RECORDS - num[self->conn_id]
166 /(self->flags & TH_RST) && (num[self->conn_id] >= 10)/
171 num[self->conn_id]--;
175 /(self->flags & TH_RST) && (num[self->conn_id] >= 9)/
180 num[self->conn_id]--;
184 /(self->flags & TH_RST) && (num[self->conn_id] >= 8)/
189 num[self->conn_id]--;
193 /(self->flags & TH_RST) && (num[self->conn_id] >= 7)/
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Ddelete.c123 int num = del_num; in pk_destroy_keys() local
125 kmf_set_attr_at_index(delete_attlist, num, in pk_destroy_keys()
127 num++; in pk_destroy_keys()
129 rv = kmf_delete_key_from_keystore(handle, num, delete_attlist); in pk_destroy_keys()
140 int num = numattr; in pk_delete_keys() local
145 kmf_set_attr_at_index(attlist, num, in pk_delete_keys()
147 num++; in pk_delete_keys()
149 rv = kmf_find_key(kmfhandle, num, attlist); in pk_delete_keys()
173 kmf_set_attr_at_index(attlist, num, in pk_delete_keys()
175 num++; in pk_delete_keys()
[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); \
313 #define SG_SET_FRU_NAME_CPU_BOARD(str, num) \ argument
316 (void) sprintf(tmp_str, "/%s%d", SG_HPU_TYPE_CPU_BOARD_ID, num); \
320 #define SG_SET_FRU_NAME_IO_BOARD(str, num) \ argument
323 (void) sprintf(tmp_str, "/%s%d", SG_HPU_TYPE_PCI_IO_BOARD_ID, num); \
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); \
[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.c111 static struct numstruct *num; /* array of number information */ variable
182 num = (struct numstruct *) malloc((unsigned) numnums * in allocvariables()
193 if ((ibool == NULL) || (num == NULL) || (str == NULL) || in allocvariables()
215 num[i].infoname = numnames[i]; in allocvariables()
216 num[i].capname = numcodes[i]; in allocvariables()
221 num[i].fullname = numfnames[i]; in allocvariables()
223 num[i].changed = FALSE; in allocvariables()
224 num[i].seenagain = FALSE; in allocvariables()
315 qsort((char *) num, (unsigned) numnums, in sortnames()
582 if (((num[i].val = tgetnum(num[i].capname)) > -1) && in initfirstterm()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ssldap/
H A Derrormap.c166 PRErrorCode num; in SECU_Strerror() local
175 num = errStrings[i].errNum; in SECU_Strerror()
176 if (num <= lastNum) { in SECU_Strerror()
193 num, errStrings[i].errString, 0 ); in SECU_Strerror()
201 num, errStrings[i].errString); in SECU_Strerror()
205 lastNum = num; in SECU_Strerror()
213 num = errStrings[i].errNum; in SECU_Strerror()
214 if (errNum == num) in SECU_Strerror()
216 if (errNum < num) in SECU_Strerror()
270 PRErrorCode num; in SECU_Strerror() local
[all …]

12345678910>>...34