Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 259) sorted by relevance

1234567891011

/illumos-gate/usr/src/test/util-tests/tests/awk/examples/out/
H A Dp.524 total 0
8 total 0
12 total 0
16 total 0
20 total 0
24 total 0
28 total 0
32 total 0
36 total 0
40 total 0
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Drecfmt.c43 recfmt(const void* buf, size_t size, off_t total) in recfmt() argument
81 …hr((void*)s, k = terminators[i], size / 2)) && (n = t - s + 1) > 1 && (total <= 0 || !(total % n))) in recfmt()
117 if ((total <= 0 || !(total % i)) && q->rep[i] > q->rep[n]) in recfmt()
133 if (m <= 1 && n <= 2 && total > 1 && total < 256) in recfmt()
140 n = n ? 0 : total; in recfmt()
152 off_t total; in main() local
160 total = sfsize(sfstdin); in main()
161 sfprintf(sfstdout, "%d\n", recfmt(s, size, total)); in main()
/illumos-gate/usr/src/cmd/bhyve/
H A Daudio.c226 size_t total; in audio_playback() local
236 for (total = 0; total < count; total += len) { in audio_playback()
237 len = write(audio_fd, buf + total, count - total); in audio_playback()
260 size_t total; in audio_record() local
270 for (total = 0; total < count; total += len) { in audio_record()
271 len = read(audio_fd, buf + total, count - total); in audio_record()
H A Diov.c74 size_t total = 0; in count_iov() local
78 total += iov[i].iov_len; in count_iov()
80 return (total); in count_iov()
104 size_t ptr, total; in iov_to_buf() local
107 total = count_iov(iov, niov); in iov_to_buf()
108 *buf = realloc(*buf, total); in iov_to_buf()
117 return (total); in iov_to_buf()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dcalloc.c42 size_t total; in calloc() local
45 total = 0; in calloc()
47 total = num * size; in calloc()
50 if (total / num != size) { in calloc()
55 return ((mp = malloc(total)) ? memset(mp, 0, total) : mp); in calloc()
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dcalloc.c39 size_t total; in calloc() local
42 total = 0; in calloc()
44 total = num * size; in calloc()
47 if ((total / num) != size) { in calloc()
53 mp = malloc(total); in calloc()
56 (void) memset(mp, 0, total); in calloc()
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Dpictures.c211 long total; /* and sizes - from *fp_pic */ in picopen() local
230 while ( fscanf(fp_pic, "%s %ld\n", name, &total) != EOF ) { in picopen()
238 piccopy(fp_pic, fp, total); in picopen()
242 fseek(fp_pic, total, 1); in picopen()
261 long total; /* and size - both from *buf */ in inlinepic() local
283 if ( sscanf(buf, "%s %ld", name, &total) != 2 ) in inlinepic()
287 fprintf(fp_pic, "%s %ld\n", name, total); in inlinepic()
290 piccopy(fp, fp_pic, total); in inlinepic()
300 piccopy(FILE *fp_in, FILE *fp_out, long total) in piccopy() argument
317 for ( i = 0; i < total; i++ ) in piccopy()
/illumos-gate/usr/src/cmd/cdrw/
H A Dutil.c196 uint64_t total = (uint64_t)arg; in progress() local
203 if (total == 0) { in progress()
212 total = (((uint64_t)completed) * 100)/total; in progress()
213 if (total == last_total) in progress()
215 last_total = total; in progress()
216 if (total > 100) { in progress()
222 if (total == 100) { in progress()
226 (void) snprintf(s, BUFSIZE, "%d %%", (uint_t)total); in progress()
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_rsearch.c79 db_recno_t i, recno, total; local
146 total = RE_NREC(h);
149 *recnop = recno = total + 1;
152 if (recno <= total)
156 if (!LF_ISSET(S_PAST_EOF) || recno > total + 1) {
170 for (total = 0;;) {
173 recno -= total;
206 if (++indx == top || total + bi->nrecs >= recno)
208 total += bi->nrecs;
213 recno -= total;
[all …]
/illumos-gate/usr/src/lib/libumem/amd64/
H A Dumem_genasm.c460 size_t total; in genasm_malloc() local
463 total = sizeof (malinit) + sizeof (malfini) + sizeof (fincache); in genasm_malloc()
466 total += sizeof (inicache) + sizeof (gencache) * (nents - 2); in genasm_malloc()
468 if (total > len) in genasm_malloc()
471 erroff = total - sizeof (malfini) + PTC_MALFINI_JMLABEL; in genasm_malloc()
472 allocoff = total - sizeof (malfini) + PTC_MALFINI_ALLABEL; in genasm_malloc()
499 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_malloc()
509 size_t total; in genasm_free() local
513 total = sizeof (freeinit) + sizeof (freefini) + sizeof (fincache); in genasm_free()
515 total += sizeof (inicache) + sizeof (gencache) * (nents - 2); in genasm_free()
[all …]
/illumos-gate/usr/src/lib/libumem/i386/
H A Dumem_genasm.c450 size_t total; in genasm_malloc() local
453 total = sizeof (malinit) + sizeof (malfini) + sizeof (fincache); in genasm_malloc()
456 total += sizeof (inicache) + sizeof (gencache) * (nents - 2); in genasm_malloc()
458 if (total > len) in genasm_malloc()
461 erroff = total - sizeof (malfini) + PTC_MALFINI_JMLABEL; in genasm_malloc()
462 allocoff = total - sizeof (malfini) + PTC_MALFINI_ALLABEL; in genasm_malloc()
489 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_malloc()
499 size_t total; in genasm_free() local
503 total = sizeof (freeinit) + sizeof (freefini) + sizeof (fincache); in genasm_free()
505 total += sizeof (inicache) + sizeof (gencache) * (nents - 2); in genasm_free()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dstatus.c92 total; in load_pstatus() local
111 total = 0; in load_pstatus()
157 total += len; in load_pstatus()
160 total+1 in load_pstatus()
165 total = len; in load_pstatus()
176 total += len; in load_pstatus()
179 total+1 in load_pstatus()
184 total = len; in load_pstatus()
281 total; in load_fault_status() local
294 total = 0; in load_fault_status()
[all …]
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DAvgValue.java45 private final long total; field in AvgValue
77 total = averagedTotal; in AvgValue()
96 if (average != (total / count)) { in validate()
99 "average of total " + total + " and count " + in validate()
128 return total; in getTotal()
H A DStddevValue.java46 private final long total; field in StddevValue
141 total = stddevTotal; in StddevValue()
175 total = stddevTotal; in StddevValue()
195 if (stddev != standardDeviation(count, total, totalSquares)) { in validate()
198 "standard deviation of total " + total + ", count " + in validate()
226 return total; in getTotal()
H A DDrop.java129 private final long total; field in Drop
157 total = totalDrops; in Drop()
168 if (total < 0) { in validate()
220 return total; in getTotal()
271 buf.append(total); in toString()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dwcstombs.c42 int total = 0; in _curs_wcstombs() local
53 if ((total += val) > n) { in _curs_wcstombs()
54 total -= val; in _curs_wcstombs()
60 return (total); in _curs_wcstombs()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpem_encode.c143 unsigned int total = 0; in PEM_EncodeUpdate() local
163 total = j+1; in PEM_EncodeUpdate()
173 total += j+1; in PEM_EncodeUpdate()
179 *outl = total; in PEM_EncodeUpdate()
490 int total = 0; in Pem2Der() local
497 while (total < inlen) { in Pem2Der()
502 i = get_line(in + total, inlen - total, buf, sizeof (buf)); in Pem2Der()
513 total += i + 1; in Pem2Der()
540 while (total < inlen) { in Pem2Der()
542 i = get_line(in+total, inlen - total, buf, sizeof (buf)); in Pem2Der()
[all …]
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/
H A DStatistic.java288 double total = 0; in getSnapshotForInterval() local
305 total += s.getDoubleValue().doubleValue(); in getSnapshotForInterval()
311 return (new DoubleStatistic(new Double(total / count), first, in getSnapshotForInterval()
376 long total = 0; in getSnapshotForInterval() local
392 total += s.getLongValue().longValue(); in getSnapshotForInterval()
398 return (new LongStatistic(new Long(total / count), first, in getSnapshotForInterval()
463 BigInteger total = new BigInteger("0"); in getSnapshotForInterval() local
481 total = total.add(s.getUnsignedInt64Value()); in getSnapshotForInterval()
488 new UnsignedInt64(total.divide(new BigInteger( in getSnapshotForInterval()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/buffering/
H A Dtst.cputime.ksh35 uint64_t total;
53 total += vtimestamp - self->on;
63 /((total * 100) / (timestamp - start)) > thresh/
66 \$\$1, ((total * 100) / (timestamp - start)));
/illumos-gate/usr/src/test/zfs-tests/tests/functional/projectquota/
H A Dprojectspace_004_pos.ksh68 total=$(df -b $PRJDIR | tail -n 1 | awk '{ print $2 }')
69 [[ $total -ge 9590000 && $total -le 9598900 ]] || \
70 log_fail "expect '9590000-9598900' resource, but got '$total'"
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_search.c75 recno_t total; local
79 for (pg = P_ROOT, total = 0;;) {
84 t->bt_cur.index = recno - total;
89 if (++idx == top || total + r->nrecs > recno)
91 total += r->nrecs;
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_update.c67 struct timeval total; in yp_update() local
127 total.tv_sec = TOTAL_TIMEOUT; in yp_update()
128 total.tv_usec = 0; in yp_update()
129 clnt_control(client, CLSET_TIMEOUT, (char *)&total); in yp_update()
132 xdr_u_int, (char *)&rslt, total); in yp_update()
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dspaceanal.tcl277 the total number of pages in the file.
283 divided by the total number of pages in the file.
289 divided by the total number of pages in the file.
298 The total number of indices in the database.
311 The total amount of disk space used by the entire database files.
315 The total number of bytes of payload stored in the database. Payload
318 the payload divided by the total file size.
322 The total number of bytes of data stored in the database, not counting
324 percentage at the right is the user data size divided by the total file
327 Percentage of total database
[all …]
/illumos-gate/usr/src/cmd/sa/
H A Dtimex.c213 longlong_t total = ticks; in printt() local
215 tk = total % hz; /* ticks % hz */ in printt()
216 total /= hz; in printt()
217 ss = total % 60; /* ticks / hz % 60 */ in printt()
218 total /= 60; in printt()
219 mm = total % 60; /* ticks / hz / 60 % 60 */ in printt()
220 hh = total / 60; /* ticks / hz / 60 / 60 */ in printt()
/illumos-gate/usr/src/lib/libidmap/common/
H A Dsized_array.c58 size_t total; in sized_array() local
60 total = sizeof (struct sized_array) + n*sz; in sized_array()
62 sa = malloc(total); in sized_array()
67 (void) memset(sa, 0, total); in sized_array()

1234567891011