Home
last modified time | relevance | path

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

12345678910>>...34

/titanic_41/usr/src/lib/libast/common/port/
H A Dmc.c277 mc->num = sfgetu(ip); in mcopen()
288 if (!(mc->set = vmnewof(vm, 0, Mcset_t, mc->num + 1, 0))) in mcopen()
292 if (!(mp = vmnewof(vm, 0, char*, mc->nmsgs + mc->num + 1, 0))) in mcopen()
303 if (i > mc->num) in mcopen()
306 mc->set[i].num = n; in mcopen()
315 for (i = 1; i <= mc->num; i++) in mcopen()
316 for (j = 1; j <= mc->set[i].num; j++) in mcopen()
347 mcget(register Mc_t* mc, int set, int num, const char* msg) in mcget() argument
353 …if (!mc || set < 0 || set > mc->num || num < 1 || num > mc->set[set].num || !(s = mc->set[set].msg… in mcget()
375 mcput(register Mc_t* mc, int set, int num, const char* msg) in mcput() argument
[all …]
/titanic_41/usr/src/lib/libcmd/common/
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 …]
/titanic_41/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()
107 commp_strtoull(const char *begin, const char *end, uint64_t *num) in commp_strtoull() argument
111 *num = 0; in commp_strtoull()
114 *num = (*num * 10) + (*begin - '0'); in commp_strtoull()
130 commp_strtoub(const char *begin, const char *end, uint8_t *num) in commp_strtoub() argument
134 *num = 0; in commp_strtoub()
137 *num = (*num * 10) + (*begin - '0'); in commp_strtoub()
153 commp_atoui(const char *begin, const char *end, uint_t *num) in commp_atoui() argument
[all …]
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dstreval.c155 register Sfdouble_t num=0,*dp,*sp; in arith_exec() local
191 if((c==A_JMPZ && num) || (c==A_JMPNZ &&!num)) in arith_exec()
197 num = (num!=0); in arith_exec()
202 (*ep->fun)(&ptr,&node,ASSIGN,num+1); in arith_exec()
206 (*ep->fun)(&ptr,&node,ASSIGN,num-1); in arith_exec()
209 num = num+1; in arith_exec()
211 num = (*ep->fun)(&ptr,&node,ASSIGN,num); in arith_exec()
214 num = num-1; in arith_exec()
216 num = (*ep->fun)(&ptr,&node,ASSIGN,num); in arith_exec()
219 num = sp[-1]; in arith_exec()
[all …]
/titanic_41/usr/src/cmd/ast/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 …]
/titanic_41/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser_rseq.c49 rseq_do_common(rseq_t *rseq, int num, uintptr_t arg, int flags, int fail_err, in rseq_do_common() argument
56 for (i = 0; i < num; i++) { in rseq_do_common()
79 rseq_undo_common(rseq_t *rseq, int num, uintptr_t arg, int flags, int fail_err, in rseq_undo_common() argument
86 for (i = num - 1; i >= 0; i--) { in rseq_undo_common()
105 rseq_do(rseq_t *rseq, int num, uintptr_t arg, int flags) in rseq_do() argument
107 return (rseq_do_common(rseq, num, arg, flags, 0, -1)); in rseq_do()
112 rseq_undo(rseq_t *rseq, int num, uintptr_t arg, int flags) in rseq_undo() argument
114 return (rseq_undo_common(rseq, num, arg, flags, 0, -1)); in rseq_undo()
122 rseq_debug(rseq_t *rseq, int num, uintptr_t arg, int flags, int scenario, in rseq_debug() argument
130 rval = func(rseq, num, arg, flags, sarg1, sarg2); in rseq_debug()
[all …]
/titanic_41/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) {
/titanic_41/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 …]
/titanic_41/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 …]
/titanic_41/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))))
/titanic_41/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
86 rds_increment_kstat(&rds_kstat.rds_tx_bytes, B_FALSE, num)
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
95 rds_increment_kstat(&rds_kstat.rds_rx_bytes, B_FALSE, num)
97 #define RDS_INCR_RXPKTS(num) \ argument
98 rds_increment_kstat(&rds_kstat.rds_rx_pkts, B_FALSE, num)
[all …]
/titanic_41/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 …]
/titanic_41/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);
63 memmove(obj->array + obj->el_size*idx, els, obj->el_size*num);
[all …]
/titanic_41/usr/src/cmd/vi/port/
H A Dprintf.c79 long int mask2, num; in viprintf() local
204 num = va_arg(ap,long); in viprintf()
206 num = (unsigned)va_arg(ap,int); in viprintf()
217 n = (num!=0); in viprintf()
221 if (((int) num & mask1) < 10) in viprintf()
222 *--bptr = ((int) num & mask1) + 060; in viprintf()
224 *--bptr = ((int) num & mask1) + 0127; in viprintf()
225 while (num = (num >> nbits) & mask2); in viprintf()
253 num = va_arg(ap,long); in viprintf()
257 num = (unsigned) n; in viprintf()
[all …]
/titanic_41/usr/src/cmd/msgfmt/
H A Dgnu_po.y37 int num; member
42 %token <num> DOMAIN
43 %token <num> MSGID
44 %token <num> MSGID_PLURAL
45 %token <num> MSGSTR
46 %token <num> NUM
79 och1.num = $1;
85 och2.num = $3;
111 pos1[0].num = $1;
114 pos1[1].num = $3;
[all …]
/titanic_41/usr/src/cmd/file/
H A Dmagicutils.c90 uint64_t num; member
488 ep->e_value.num = strtoull((const char *)p, in f_mkmtab()
635 (uint8_t)(ep->e_value.num)) in f_ckmtab()
641 (uint16_t)(ep->e_value.num)) in f_ckmtab()
647 (uint32_t)(ep->e_value.num)) in f_ckmtab()
652 if (u64_val != ep->e_value.num) in f_ckmtab()
664 (int8_t)(ep->e_value.num)) in f_ckmtab()
671 (uint8_t)(ep->e_value.num)) in f_ckmtab()
677 (int16_t)(ep->e_value.num)) in f_ckmtab()
684 (uint16_t)(ep->e_value.num)) in f_ckmtab()
[all …]
/titanic_41/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 …]
/titanic_41/usr/src/uts/common/fs/tmpfs/
H A Dtmp_subr.c144 uint64_t num = 0, oldnum; in tmp_convnum() local
160 oldnum = num; in tmp_convnum()
161 num = num * 10 + (*c++ - '0'); in tmp_convnum()
162 if (oldnum > num) /* overflow */ in tmp_convnum()
177 if (num > max_bytes / 1024) /* will overflow */ in tmp_convnum()
179 num *= 1024; in tmp_convnum()
187 if (num > max_bytes / (1024 * 1024)) /* will overflow */ in tmp_convnum()
189 num *= 1024 * 1024; in tmp_convnum()
203 if ((*maxpg = (pgcnt_t)btopr(num)) == 0 && num != 0) in tmp_convnum()
/titanic_41/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 …]
/titanic_41/usr/src/cmd/cmd-crypto/pktool/
H A Ddelete.c122 int num = del_num; in pk_destroy_keys() local
124 kmf_set_attr_at_index(delete_attlist, num, in pk_destroy_keys()
126 num++; in pk_destroy_keys()
128 rv = kmf_delete_key_from_keystore(handle, num, delete_attlist); in pk_destroy_keys()
139 int num = numattr; in pk_delete_keys() local
144 kmf_set_attr_at_index(attlist, num, in pk_delete_keys()
146 num++; in pk_delete_keys()
148 rv = kmf_find_key(kmfhandle, num, attlist); in pk_delete_keys()
172 kmf_set_attr_at_index(attlist, num, in pk_delete_keys()
174 num++; in pk_delete_keys()
[all …]
/titanic_41/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()
195 num, errStrings[i].errString, 0 ); in SECU_Strerror()
203 num, errStrings[i].errString); 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
[all …]
/titanic_41/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()
192 if ((ibool == NULL) || (num == NULL) || (str == NULL) || in allocvariables()
213 num[i].infoname = numnames[i]; in allocvariables()
214 num[i].capname = numcodes[i]; in allocvariables()
219 num[i].fullname = numfnames[i]; in allocvariables()
220 num[i].changed = FALSE; in allocvariables()
221 num[i].seenagain = FALSE; in allocvariables()
311 qsort((char *) num, (unsigned) numnums, in sortnames()
573 if (((num[i].val = tgetnum(num[i].capname)) > -1) && in initfirstterm()
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/include/
H A DgssapiP_generic.h72 #define TWRITE_INT(ptr, num, bigend) \ argument
73 (ptr)[0] = (char) ((bigend)?((num)>>24):((num)&0xff)); \
74 (ptr)[1] = (char) ((bigend)?(((num)>>16)&0xff):(((num)>>8)&0xff)); \
75 (ptr)[2] = (char) ((bigend)?(((num)>>8)&0xff):(((num)>>16)&0xff)); \
76 (ptr)[3] = (char) ((bigend)?((num)&0xff):((num)>>24)); \
79 #define TWRITE_INT16(ptr, num, bigend) \ argument
80 (ptr)[0] = (char) ((bigend)?((num)>>24):((num)&0xff)); \
81 (ptr)[1] = (char) ((bigend)?(((num)>>16)&0xff):(((num)>>8)&0xff)); \
84 #define TREAD_INT(ptr, num, bigend) \ argument
85 (num) = (((ptr)[0]<<((bigend)?24: 0)) | \
[all …]
/titanic_41/usr/src/lib/libilb/common/
H A Dilb_nat.c61 ilb_show_nat(ilb_handle_t h, ilb_nat_info_t buf[], size_t *num, in ilb_show_nat() argument
64 return (ilb_show_info(h, (char *)buf, num, end, show_nat)); in ilb_show_nat()
83 ilb_show_persist(ilb_handle_t h, ilb_persist_info_t buf[], size_t *num, in ilb_show_persist() argument
86 return (ilb_show_info(h, (char *)buf, num, end, show_persist)); in ilb_show_persist()
94 ilb_show_info(ilb_handle_t h, char *buf, size_t *num, boolean_t *end, in ilb_show_info() argument
103 if (*num == 0) in ilb_show_info()
122 rbufsz = *num * entry_sz + sizeof (ilb_comm_t) + in ilb_show_info()
134 req_si->sn_num = *num; in ilb_show_info()
157 if (cur_num == *num) in ilb_show_info()
160 req_si->sn_num = *num - cur_num; in ilb_show_info()
[all …]
/titanic_41/usr/src/cmd/format/
H A Dpartition.c115 change_partition(int num) in change_partition() argument
138 if (num > cur_parts->etoc->efi_nparts - 1) { in change_partition()
142 print_efi_partition(cur_parts->etoc, num, 1); in change_partition()
147 deflt = cur_parts->etoc->efi_parts[num].p_tag; in change_partition()
155 deflt = cur_parts->etoc->efi_parts[num].p_flag; in change_partition()
164 if ((cur_parts->etoc->efi_parts[num].p_start != 0) && in change_partition()
165 (cur_parts->etoc->efi_parts[num].p_size != 0)) { in change_partition()
167 cur_parts->etoc->efi_parts[num].p_start; in change_partition()
176 efi_deflt.end_sector = cur_parts->etoc->efi_parts[num].p_size; in change_partition()
190 cur_parts->etoc->efi_parts[num].p_tag = tag; in change_partition()
[all …]

12345678910>>...34