Searched refs:num (Results 1 - 25 of 838) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_errno.h38 #define grub_errno_start(num) num,
39 #define grub_errno_def(num, desc) num,
40 #define grub_errno_end(num) num
/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 in typeref:enum:num
5 num v = 0;
7 extern num w;
11 num foo(void) { return ZERO; }
13 num bar(void);
17 void baz(num a) { }
19 void qux(num a);
/illumos-gate/usr/src/cmd/sgs/tsort/common/
H A Derrtag.c43 errtag(char *str, int num) argument
46 Err.tagnum = num;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddiv.c49 div(num, denom)
50 int num, denom;
54 r.quot = num / denom;
55 r.rem = num % denom;
66 * sign of num; if both are negative and r.quot has been
68 * have the opposite sign of num). These are considered
71 * If both are num and denom are positive, r will always
75 * if num >= 0, but r.rem < 0, we got the wrong answer.
79 if (num >= 0 && r.rem < 0) {
87 ldiv(num, deno
[all...]
H A Dcalloc.c41 calloc(size_t num, size_t size) argument
46 if (num == 0 || size == 0)
49 total = num * size;
52 if (total / num != size) {
H A Dcfree.c42 cfree(void *p, size_t num, size_t size) argument
/illumos-gate/usr/src/lib/krb5/dyn/
H A Ddyn_append.c22 int DynAppend(obj, els, num)
25 int num;
27 return DynInsert(obj, DynSize(obj), els, num);
H A Ddyn_insert.c19 int DynInsert(obj, idx, els_in, num)
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...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_log2.c49 __kdb2_log2(num)
50 u_int32_t num;
55 for (i = 0; limit < num; limit = limit << 1, i++);
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_nicenum.c49 zfs_nicenum_format(uint64_t num, char *buf, size_t buflen, argument
52 uint64_t n = num;
72 (void) snprintf(buf, buflen, "%llu", (u_longlong_t)num);
74 } else if (format == ZFS_NICENUM_RAWTIME && num > 0) {
75 (void) snprintf(buf, buflen, "%llu", (u_longlong_t)num);
77 } else if (format == ZFS_NICENUM_RAWTIME && num == 0) {
90 if ((format == ZFS_NICENUM_TIME) && (num == 0)) {
92 } else if ((index == 0) || ((num %
112 val = (double)num /
119 * example, if "num" i
141 zfs_nicenum(uint64_t num, char *buf, size_t buflen) argument
151 zfs_nicetime(uint64_t num, char *buf, size_t buflen) argument
160 zfs_niceraw(uint64_t num, char *buf, size_t buflen) argument
169 zfs_nicebytes(uint64_t num, char *buf, size_t buflen) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_log2.c60 __db_log2(num)
61 u_int32_t num;
66 for (i = 0; limit < num; limit = limit << 1, i++)
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dtrie.h64 /* sets the bit at position pos of num to 1 if val == 1 */
65 #define SETBIT_CMN(num, pos, val) (num |= (val << pos))
67 #define SETBIT(num, pos, val, len) (SETBIT_CMN(num, pos, val))
69 #define SETBIT(num, pos, val, len) \
70 (SETBIT_CMN(num, (COMPUTE_BIT_POS(len, pos)), val))
73 /* sets the bit at position pos of num to 0 */
74 #define UNSETBIT_CMN(num, pos) (num
[all...]
/illumos-gate/usr/src/lib/libcommputil/common/
H A Dcommp_util.c84 commp_atoi(const char *begin, const char *end, int *num) argument
88 *num = 0;
91 *num = (*num * 10) + (*begin - '0');
107 commp_strtoull(const char *begin, const char *end, uint64_t *num) argument
111 *num = 0;
114 *num = (*num * 10) + (*begin - '0');
130 commp_strtoub(const char *begin, const char *end, uint8_t *num) argument
134 *num
153 commp_atoui(const char *begin, const char *end, uint_t *num) argument
192 commp_time_to_secs(const char *begin, const char *end, uint64_t *num) argument
[all...]
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dcalloc.c36 calloc(size_t num, size_t size) argument
41 if (num == 0 || size == 0) {
44 total = num * size;
47 if ((total / num) != size) {
62 cfree(void *p, size_t num, size_t size) argument
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dgetargs.c87 int num; local
104 for (num = 0, cp = str;
107 num <<= 3;
108 num += *cp - '0';
112 if (num == 0) {
116 *to++ = (char)num;
/illumos-gate/usr/src/test/zfs-tests/tests/functional/reservation/
H A Dreservation_008_pos.sh91 # hence num=1 rather than zero below.
93 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
[all...]
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Dutil.h47 #define STRNCPY(dst,src,num) \
48 (dst = (char *) malloc((unsigned)(num) + 1),\
49 (void)strncpy(dst,src,num),(dst)[num] = EOS)
/illumos-gate/usr/src/compat/freebsd/
H A Derr.h19 #define errc(code, num, ...) err(code, __VA_ARGS__)
/illumos-gate/usr/src/lib/libast/common/port/
H A Dmc.c277 mc->num = sfgetu(ip);
288 if (!(mc->set = vmnewof(vm, 0, Mcset_t, mc->num + 1, 0)))
292 if (!(mp = vmnewof(vm, 0, char*, mc->nmsgs + mc->num + 1, 0)))
303 if (i > mc->num)
306 mc->set[i].num = n;
315 for (i = 1; i <= mc->num; i++)
316 for (j = 1; j <= mc->set[i].num; j++)
341 * return the <set,num> message in mc
347 mcget(register Mc_t* mc, int set, int num, const char* msg) argument
353 if (!mc || set < 0 || set > mc->num || nu
375 mcput(register Mc_t* mc, int set, int num, const char* msg) argument
[all...]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dlink_addr.c69 unsigned char cval, num = 0; local
117 num = (num << 4) | (cval - '0');
119 num = (num << 4) |
122 netaddr[idx++] = num;
123 num = 0;
129 netaddr[idx++] = num;
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Dhash.h67 itm_num_t num; local
69 num = (*byte_seq - *byte_seq_min);
78 num *= (*byte_seq_max - *byte_seq_min + 1);
79 num += (*byte_seq - *byte_seq_min);
81 return (num);
/illumos-gate/usr/src/lib/libcmd/common/
H A Dexpr.c172 long num; member in struct:Node_s
207 np->num = (ep = strpbrk(cp, ep)) ? (ep - cp + 1) : 0;
217 np->num = strlen(cp);
278 np->num = strtol(np->str,&ep,10);
309 sfsprintf(cp=state->buf,sizeof(state->buf),"%d",np->num);
310 np->num = 0;
323 np->num = strtol(np->str,&cp,10);
331 np->num = match[0].rm_eo - match[0].rm_so;
356 if (op && rp.num==0)
361 np->num *
[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, argument
55 for (i = 0; i < num; i++) {
78 rseq_undo_common(rseq_t *rseq, int num, uintptr_t arg, int flags, int fail_err, argument
85 for (i = num - 1; i >= 0; i--) {
104 rseq_do(rseq_t *rseq, int num, uintptr_t arg, int flags) argument
106 return (rseq_do_common(rseq, num, arg, flags, 0, -1));
111 rseq_undo(rseq_t *rseq, int num, uintptr_t arg, int flags) argument
113 return (rseq_undo_common(rseq, num, arg, flags, 0, -1));
121 rseq_debug(rseq_t *rseq, int num, uintptr_t arg, int flags, int scenario, argument
129 rval = func(rseq, num, ar
156 rseq_do_debug(rseq_t *rseq, int num, uintptr_t arg, int flags, int scenario, uintptr_t sarg1, uintptr_t sarg2) argument
165 rseq_undo_debug(rseq_t *rseq, int num, uintptr_t arg, int flags, int scenario, uintptr_t sarg1, uintptr_t sarg2) argument
[all...]
/illumos-gate/usr/src/common/mc/mc-amd/
H A Dmcamd_rowcol_impl.h48 #define BIT(val, num) ((val) & 1ULL << num)
53 #define SETBIT(var, num) (var |= (1ULL << (num)))
55 #define BITVAL(var, num) ((BIT(var, num) >> (num)) & 1ULL)
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_biggest.c43 ret[0].num = n - 1;
53 if (n < 1 || table[1].num > n) {
57 size = table[0].num;
58 if (table[size].num < n) /* biggest so far */
65 if (table[guess].num == n)
67 if (table[guess].num > n)
80 table[guess].num = n;

Completed in 77 milliseconds

1234567891011>>