Home
last modified time | relevance | path

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

1234567891011

/titanic_51/usr/src/lib/libast/common/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()
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/
H A Drecfmt.c26 * total is the total file size, <=0 if not available
43 recfmt(const void* buf, size_t size, off_t total) in recfmt() argument
81 if ((t = (unsigned char*)memchr((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; main() local
[all...]
/titanic_51/usr/src/lib/libc/port/gen/
H A Dcalloc.c44 size_t total; in calloc() local
47 total = 0; in calloc()
49 total = num * size; in calloc()
52 if (total / num != size) { in calloc()
57 return ((mp = malloc(total)) ? memset(mp, 0, total) : mp); in calloc()
/titanic_51/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()
/titanic_51/usr/src/cmd/lp/filter/postscript/dpost/
H A Dpictures.c214 long total; /* and sizes - from *fp_pic */ in picopen() local
233 while ( fscanf(fp_pic, "%s %ld\n", name, &total) != EOF ) { in picopen()
241 piccopy(fp_pic, fp, total); in picopen()
245 fseek(fp_pic, total, 1); in picopen()
264 long total; /* and size - both from *buf */ in inlinepic() local
286 if ( sscanf(buf, "%s %ld", name, &total) != 2 ) in inlinepic()
290 fprintf(fp_pic, "%s %ld\n", name, total); in inlinepic()
293 piccopy(fp, fp_pic, total); in inlinepic()
303 piccopy(FILE *fp_in, FILE *fp_out, long total) in piccopy() argument
306 /* total in piccopy()
[all...]
/titanic_51/usr/src/cmd/cdrw/
H A Dutil.c198 uint64_t total = (uint64_t)arg; in progress() local
205 if (total == 0) { in progress()
214 total = (((uint64_t)completed) * 100)/total; in progress()
215 if (total == last_total) in progress()
217 last_total = total; in progress()
218 if (total > 100) { in progress()
224 if (total == 100) { in progress()
228 (void) snprintf(s, BUFSIZE, "%d %%", (uint_t)total); in progress()
/titanic_51/usr/src/lib/libumem/i386/
H A Dumem_genasm.c58 * total amount cached by the thread.
445 size_t total; in genasm_malloc() local
448 total = sizeof (malinit) + sizeof (malfini) + sizeof (fincache); in genasm_malloc()
451 total += sizeof (inicache) + sizeof (gencache) * (nents - 2); in genasm_malloc()
453 if (total > len) in genasm_malloc()
456 erroff = total - sizeof (malfini) + PTC_MALFINI_JMLABEL; in genasm_malloc()
457 allocoff = total - sizeof (malfini) + PTC_MALFINI_ALLABEL; in genasm_malloc()
484 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_malloc()
494 size_t total; in genasm_free() local
498 total in genasm_free()
[all...]
/titanic_51/usr/src/lib/libumem/amd64/
H A Dumem_genasm.c454 size_t total; in genasm_malloc() local
457 total = sizeof (malinit) + sizeof (malfini) + sizeof (fincache); in genasm_malloc()
460 total += sizeof (inicache) + sizeof (gencache) * (nents - 2); in genasm_malloc()
462 if (total > len) in genasm_malloc()
465 erroff = total - sizeof (malfini) + PTC_MALFINI_JMLABEL; in genasm_malloc()
466 allocoff = total - sizeof (malfini) + PTC_MALFINI_ALLABEL; in genasm_malloc()
493 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_malloc()
503 size_t total; in genasm_free() local
507 total = sizeof (freeinit) + sizeof (freefini) + sizeof (fincache); in genasm_free()
509 total in genasm_free()
[all...]
/titanic_51/usr/src/tools/chk4ubin/
H A Dchk4ubin.c135 int64_t total; in chk4ubin() local
181 total = symtab_size + strtab_size; in chk4ubin()
182 off = total & pagemask; in chk4ubin()
188 total, toxic_start, toxic_end); in chk4ubin()
196 total, toxic_start, toxic_end); in chk4ubin()
204 (void) printf("total: 0x%llx " in chk4ubin()
205 "(0x%llx, 0x%llx)\n", total, (total & ~pagemask), in chk4ubin()
206 (total & pagemask)); in chk4ubin()
/titanic_51/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...]
/titanic_51/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 in load_fault_status()
347 total; load_cstatus() local
[all...]
/titanic_51/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DAvgValue.java45 private final long total; field in AvgValue
54 new String[] {"value", "total", "count"});
67 * @param averagedTotal sum total of all values averaged
71 * total and count
77 total = averagedTotal; in AvgValue()
96 if (average != (total / count)) { in validate()
99 "average of total " + total + " and count " + in validate()
121 * Gets the sum total of the aggregated values.
123 * @return the sum total o
[all...]
H A DStddevValue.java46 private final long total; field in StddevValue
57 new String[] {"value", "total", "count", "totalSquares"})
141 total = stddevTotal; in StddevValue()
157 * @param stddevTotal sum total of all values included in the standard
162 * the 128-bit sum total of the squares of all values included in
166 * the given total, total of squares, and count
167 * @throws NumberFormatException if the given total squares is not a
175 total = stddevTotal; in StddevValue()
195 if (stddev != standardDeviation(count, total, totalSquare in validate()
[all...]
H A DDrop.java53 new String[] {"CPU", "kind", "count", "total",
129 private final long total; field in Drop
141 * @param totalDrops total number of drops since the source {@link
157 total = totalDrops; in Drop()
168 if (total < 0) { in validate()
169 throw new IllegalArgumentException("total is negative"); in validate()
212 * Gets the total number of drops since the source {@link Consumer}
215 * @return non-negative drop total since tracing started
220 return total; in getTotal()
270 buf.append(", total in toString()
[all...]
/titanic_51/usr/src/lib/libcurses/screen/
H A Dwcstombs.c44 int total = 0; in _curs_wcstombs() local
55 if ((total += val) > n) { in _curs_wcstombs()
56 total -= val; in _curs_wcstombs()
62 return (total); in _curs_wcstombs()
/titanic_51/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)));
/titanic_51/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_search.c77 recno_t total; local
81 for (pg = P_ROOT, total = 0;;) {
86 t->bt_cur.index = recno - total;
91 if (++idx == top || total + r->nrecs > recno)
93 total += r->nrecs;
/titanic_51/usr/src/lib/libnsl/yp/
H A Dyp_update.c69 struct timeval total; in yp_update() local
129 total.tv_sec = TOTAL_TIMEOUT; in yp_update()
130 total.tv_usec = 0; in yp_update()
131 clnt_control(client, CLSET_TIMEOUT, (char *)&total); in yp_update()
134 xdr_u_int, (char *)&rslt, total); in yp_update()
/titanic_51/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 in getSnapshotForInterval()
[all...]
/titanic_51/usr/src/lib/libkmf/libkmf/common/
H A Dpem_encode.c145 unsigned int total = 0; in PEM_EncodeUpdate() local
165 total = j+1; in PEM_EncodeUpdate()
175 total += j+1; in PEM_EncodeUpdate()
181 *outl = total; in PEM_EncodeUpdate()
492 int total = 0; in Pem2Der() local
499 while (total < inlen) { in Pem2Der()
504 i = get_line(in + total, inlen - total, buf, sizeof (buf)); in Pem2Der()
515 total += i + 1; in Pem2Der()
542 while (total < inle in Pem2Der()
[all...]
/titanic_51/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dview.c165 int error, entries, total; in enum_shares() local
171 error = smb_netshareenum(ctx, &entries, &total, &share_info); in enum_shares()
177 print_shares(entries, total, share_info); in enum_shares()
182 print_shares(int entries, int total, in print_shares() argument
202 entries, total); in print_shares()
/titanic_51/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()
/titanic_51/usr/src/lib/libsqlite/tool/
H A Dspaceanal.tcl164 statline "Percentage of total database" \
280 the total number of pages in the file.
286 divided by the total number of pages in the file.
292 divided by the total number of pages in the file.
301 The total number of indices in the database.
314 The total amount of disk space used by the entire database files.
318 The total number of bytes of payload stored in the database. Payload
321 the payload divided by the total file size.
325 The total number of bytes of data stored in the database, not counting
327 percentage at the right is the user data size divided by the total fil
[all...]
/titanic_51/usr/src/cmd/sa/
H A Dtimex.c215 longlong_t total = ticks; in printt() local
217 tk = total % hz; /* ticks % hz */ in printt()
218 total /= hz; in printt()
219 ss = total % 60; /* ticks / hz % 60 */ in printt()
220 total /= 60; in printt()
221 mm = total % 60; /* ticks / hz / 60 % 60 */ in printt()
222 hh = total / 60; /* ticks / hz / 60 / 60 */ in printt()
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_property/
H A Dzfs_written_property_001_pos.ksh62 typeset -l total=0
83 ((total = total + blocks))
101 snap1_size=$total
102 ((snap2_size = total-50))
103 ((snap3_size = total-100))
109 ((expected_writtenat = total * mb_block))
112 ((total = total - blocks))

1234567891011