Searched refs:remaining (Results 1 - 25 of 155) sorted by relevance

1234567

/freebsd-current/crypto/heimdal/appl/telnet/telnetd/
H A Dglobal.c96 int remaining, ret; local
99 remaining = BUFSIZ - (nfrontp - netobuf);
101 remaining,
104 nfrontp += min(ret, remaining-1);
/freebsd-current/contrib/xz/src/xz/
H A Dmessage.c65 /// and estimate remaining time.
420 /// Return a string containing estimated remaining time when
425 // Don't show the estimated remaining time when it wouldn't
440 uint32_t remaining = (uint32_t)((double)(expected_in_size - in_pos)
442 if (remaining < 1)
443 remaining = 1;
447 // Select appropriate precision for the estimated remaining time.
448 if (remaining <= 10) {
449 // A maximum of 10 seconds remaining.
451 snprintf(buf, sizeof(buf), "%" PRIu32 " s", remaining);
[all...]
H A Dmytime.c84 const uint64_t remaining = next_flush - now; local
85 return remaining > INT_MAX ? INT_MAX : (int)remaining;
/freebsd-current/contrib/ncurses/ncurses/tinfo/
H A Dlib_napms.c70 struct timespec request, remaining; local
73 while (nanosleep(&request, &remaining) == -1
75 request = remaining;
/freebsd-current/contrib/tnftp/src/
H A Dprogressbar.c141 int ratio, i, remaining, barlength; local
275 remaining = (int)
278 if (remaining >= 100 * SECSPERHOUR)
282 i = remaining / SECSPERHOUR;
289 i = remaining % SECSPERHOUR;
317 int remaining, hh, i; local
337 remaining = (int)elapsed;
338 if (remaining > SECSPERDAY) {
341 days = remaining / SECSPERDAY;
342 remaining
[all...]
/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_ttyconv.c87 struct timeval now, target, remaining; local
128 remaining.tv_sec = openpam_ttyconv_timeout;
129 remaining.tv_usec = 0;
130 timeradd(&now, &remaining, &target);
134 remaining.tv_sec = remaining.tv_usec = 0;
150 timersub(&target, &now, &remaining);
151 remaining_ms = remaining.tv_sec * 1000 +
152 remaining.tv_usec / 1000;
216 struct timeval now, target, remaining; local
[all...]
/freebsd-current/sys/contrib/zstd/examples/
H A Dstreaming_memory_usage.c92 size_t const remaining = ZSTD_endStream(cctx, &outBuff); local
93 CHECK_ZSTD(remaining);
94 CHECK(remaining == 0, "Frame not flushed!");
110 size_t const remaining = ZSTD_decompressStream(dctx, &outBuff, &inBuff); local
111 CHECK_ZSTD(remaining);
112 CHECK(remaining == 0, "Frame not complete!");
H A Dstreaming_compression.c72 size_t const remaining = ZSTD_compressStream2(cctx, &output , &input, mode); local
73 CHECK_ZSTD(remaining);
79 finished = lastChunk ? (remaining == 0) : (input.pos == input.size);
H A Dmultiple_streaming_compression.c82 size_t const remaining = ZSTD_compressStream2(ress.cctx, &output, &input, mode); local
83 CHECK_ZSTD(remaining);
85 finished = lastChunk ? (remaining == 0) : (input.pos == input.size);
/freebsd-current/contrib/tcpdump/
H A Dprint-rip.c181 unsigned remaining)
188 if (remaining < RIP_ROUTELEN)
220 unsigned remaining)
226 if (remaining < sizeof(*eh))
234 remaining -= sizeof(*eh);
243 if (remaining < sizeof(*ch))
256 print_unknown_data(ndo, p, "\n\t ", remaining);
257 return (sizeof(*eh) + remaining); /* AT spans till the packet end */
261 print_unknown_data(ndo, p, "\n\t ", remaining);
262 return (sizeof(*eh) + remaining); /* w
180 rip_entry_print_v1(netdissect_options *ndo, const u_char *p, unsigned remaining) argument
219 rip_entry_print_v2(netdissect_options *ndo, const u_char *p, unsigned remaining) argument
[all...]
/freebsd-current/sys/amd64/vmm/io/
H A Diommu.c286 uint64_t mapped, remaining; local
288 remaining = len;
290 while (remaining > 0) {
291 mapped = IOMMU_CREATE_MAPPING(dom, gpa, hpa, remaining);
294 remaining -= mapped;
301 uint64_t unmapped, remaining; local
303 remaining = len;
305 while (remaining > 0) {
306 unmapped = IOMMU_REMOVE_MAPPING(dom, gpa, remaining);
308 remaining
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp48 StringRef remaining() const { return StringRef(Ptr, End - Ptr); } function in class:__anon1888::Cursor
131 Str.reserve(C.remaining().size());
180 Token.reset(MIToken::Error, Range.remaining());
303 bool IsReference = C.remaining().starts_with("%bb.");
304 if (!IsReference && !C.remaining().starts_with("bb."))
310 Token.reset(MIToken::Error, C.remaining());
338 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size())))
351 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size())))
391 if (!C.remaining().starts_with(Rule))
400 if (!C.remaining()
[all...]
/freebsd-current/sys/contrib/xz-embedded/linux/lib/xz/
H A Dxz_dec_test.c105 size_t remaining; local
119 remaining = size;
120 while ((remaining > 0 || buffers.out_pos == buffers.out_size)
124 buffers.in_size = min(remaining, sizeof(buffer_in));
129 remaining -= buffers.in_size;
145 return size - remaining - (buffers.in_size - buffers.in_pos);
/freebsd-current/tools/tools/dmardump/
H A Ddmardump.c202 acpi_handle_dmar_remapping_structure(void *addr, int remaining) argument
206 if (remaining < (int)sizeof(ACPI_DMAR_HEADER))
209 if (remaining < hdr->Length)
224 int remaining, consumed; local
228 remaining = sdp->Length - sizeof(ACPI_TABLE_DMAR);
229 while (remaining > 0) {
230 cp = (char *)sdp + sdp->Length - remaining;
231 consumed = acpi_handle_dmar_remapping_structure(cp, remaining);
235 remaining -= consumed;
/freebsd-current/lib/libstdthreads/
H A Dthrd.c115 thrd_sleep(const struct timespec *duration, struct timespec *remaining) argument
118 return (nanosleep(duration, remaining));
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/common/
H A Dentropy_common.c48 int remaining; local
76 remaining = (1<<nbBits)+1;
80 while ((remaining>1) & (charnum<=*maxSVPtr)) {
109 { int const max = (2*threshold-1) - remaining;
122 remaining -= count < 0 ? -count : count; /* -1 means +1 */
125 while (remaining < threshold) {
138 } } /* while ((remaining>1) & (charnum<=*maxSVPtr)) */
139 if (remaining != 1) return ERROR(corruption_detected);
/freebsd-current/sys/contrib/zstd/lib/common/
H A Dentropy_common.c77 int remaining; local
105 remaining = (1<<nbBits)+1;
160 int const max = (2*threshold-1) - remaining;
177 remaining -= count;
180 remaining += count;
186 if (remaining < threshold) {
191 if (remaining <= 1) break;
192 nbBits = BIT_highbit32(remaining) + 1;
207 if (remaining != 1) return ERROR(corruption_detected);
/freebsd-current/contrib/processor-trace/libipt/src/
H A Dpt_insn.c220 * Try to read the remaining bytes and decode the instruction again. If we
232 uint8_t isize, remaining; local
238 remaining = sizeof(insn->raw) - isize;
243 if (!remaining)
246 /* Read the remaining bytes from the image. */
247 size = pt_image_read(image, &isid, &insn->raw[isize], remaining, asid,
/freebsd-current/contrib/ldns/
H A Dbuffer.c103 size_t remaining; local
109 remaining = ldns_buffer_remaining(buffer);
111 written = vsnprintf((char *) ldns_buffer_current(buffer), remaining,
117 } else if ((size_t) written >= remaining) {
/freebsd-current/sys/contrib/dev/iwlwifi/fw/
H A Dpaging.c174 int remaining = image->sec[sec_idx].len - offset; local
178 * For the last block, we copy all that is remaining,
182 len = remaining;
183 if (remaining !=
187 remaining);
191 } else if (block->fw_paging_size > remaining) {
194 idx, remaining);
/freebsd-current/contrib/ntp/sntp/libevent/
H A Dbuffer_iocp.c102 size_t remaining, len; local
114 remaining = nBytes;
115 for (i = 0; remaining > 0 && i < (unsigned)buf->n_buffers; ++i) {
118 if (remaining < len)
119 len = remaining;
122 remaining -= len;
/freebsd-current/contrib/libevent/
H A Dbuffer_iocp.c102 size_t remaining, len; local
114 remaining = nBytes;
115 for (i = 0; remaining > 0 && i < (unsigned)buf->n_buffers; ++i) {
118 if (remaining < len)
119 len = remaining;
122 remaining -= len;
/freebsd-current/stand/libsa/
H A Dcd9660read.c318 size_t size, remaining, n; local
338 remaining = nbytes;
341 while (remaining > 0) {
350 if (remaining < ISO_DEFAULT_BLOCK_SIZE - byte_off) {
351 n = remaining;
356 remaining -= n;
/freebsd-current/contrib/libpcap/
H A Dsockutils.c134 static int fuzz_recv(char *bufp, int remaining) { argument
135 if (remaining > fuzzSize - fuzzPos) {
136 remaining = fuzzSize - fuzzPos;
139 memcpy(bufp, fuzzBuffer + fuzzPos, remaining);
141 fuzzPos += remaining;
142 return remaining;
1212 int remaining; local
1225 remaining = (int)size;
1229 if (ssl) return ssl_send(ssl, buffer, remaining, errbuf, errbuflen);
1233 nsent = remaining;
1418 int remaining; local
[all...]
/freebsd-current/crypto/openssl/include/internal/
H A Dpacket.h25 /* Number of bytes remaining */
26 size_t remaining; member in struct:__anon4057
33 pkt->remaining -= len;
37 * Returns the number of bytes remaining to be read in the PACKET
41 return pkt->remaining;
52 return pkt->curr + pkt->remaining;
78 pkt->remaining = len;
86 pkt->remaining = 0;
435 *len = pkt->remaining;
436 memcpy(dest, pkt->curr, pkt->remaining);
[all...]

Completed in 487 milliseconds

1234567