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

12345

/freebsd-10-stable/contrib/ncurses/ncurses/tinfo/
H A Dlib_napms.c61 struct timespec request, remaining; local
64 while (nanosleep(&request, &remaining) == -1
66 request = remaining;
/freebsd-10-stable/contrib/subversion/subversion/libsvn_ra_serf/
H A Deagain_bucket.c35 apr_size_t remaining; member in struct:eagain_baton_t
46 if (eab->remaining > 0)
49 if (requested > eab->remaining || requested == SERF_READ_ALL_AVAIL)
51 *len = eab->remaining;
53 eab->remaining = 0;
59 eab->remaining -= requested;
62 if (eab->remaining)
92 *len = eab->remaining;
119 eab->remaining = len;
/freebsd-10-stable/contrib/serf/buckets/
H A Dlimit_buckets.c24 apr_uint64_t remaining; member in struct:__anon4428
35 ctx->remaining = len;
47 if (!ctx->remaining) {
52 if (requested == SERF_READ_ALL_AVAIL || requested > ctx->remaining) {
53 if (ctx->remaining <= REQUESTED_MAX) {
54 requested = (apr_size_t) ctx->remaining;
63 ctx->remaining -= *len;
67 if (!ctx->remaining && !status) {
81 if (!ctx->remaining) {
89 ctx->remaining
[all...]
H A Dresponse_body_buckets.c31 apr_uint64_t remaining; member in struct:__anon4431
41 ctx->remaining = len;
54 if (!ctx->remaining) {
59 if (requested == SERF_READ_ALL_AVAIL || requested > ctx->remaining) {
60 if (ctx->remaining <= REQUESTED_MAX) {
61 requested = (apr_size_t) ctx->remaining;
70 ctx->remaining -= *len;
73 if (APR_STATUS_IS_EOF(status) && ctx->remaining > 0) {
89 if (!ctx->remaining) {
97 ctx->remaining
[all...]
H A Dmmap_buckets.c28 apr_off_t remaining; member in struct:__anon4429
42 ctx->remaining = ctx->mmap->size;
53 if (requested == SERF_READ_ALL_AVAIL || requested > ctx->remaining) {
54 *len = ctx->remaining;
65 ctx->remaining -= *len;
67 if (ctx->remaining == 0) {
84 /* XXX An overflow is generated if we pass &ctx->remaining to readline.
87 *len = ctx->remaining;
94 ctx->remaining -= *len;
96 if (ctx->remaining
[all...]
H A Dsimple_buckets.c25 apr_size_t remaining; member in struct:__anon4434
49 ctx->remaining = len;
67 ctx->remaining = len;
84 ctx->remaining = len;
97 if (requested == SERF_READ_ALL_AVAIL || requested > ctx->remaining)
98 requested = ctx->remaining;
104 ctx->remaining -= requested;
106 return ctx->remaining ? APR_SUCCESS : APR_EOF;
117 serf_util_readline(&ctx->current, &ctx->remaining, acceptable, found);
122 return ctx->remaining
[all...]
H A Diovec_buckets.c76 apr_size_t remaining; local
84 remaining = vec.iov_len - ctx->offset;
86 /* Less bytes requested than remaining in the current buffer. */
87 if (requested != SERF_READ_ALL_AVAIL && requested < remaining) {
95 vecs[*vecs_used].iov_len = remaining;
98 requested -= remaining;
141 remaining data. */
/freebsd-10-stable/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-10-stable/contrib/xz/src/xz/
H A Dmytime.c87 const uint64_t remaining = next_flush - now; local
88 return remaining > INT_MAX ? INT_MAX : (int)remaining;
H A Dmessage.c60 /// and estimate remaining time.
417 /// Return a string containing estimated remaining time when
422 // Don't show the estimated remaining time when it wouldn't
437 uint32_t remaining = (double)(expected_in_size - in_pos)
439 if (remaining < 1)
440 remaining = 1;
444 // Select appropriate precision for the estimated remaining time.
445 if (remaining <= 10) {
446 // A maximum of 10 seconds remaining.
448 snprintf(buf, sizeof(buf), "%" PRIu32 " s", remaining);
[all...]
/freebsd-10-stable/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-10-stable/contrib/openpam/lib/libpam/
H A Dopenpam_ttyconv.c89 struct timeval now, target, remaining; local
130 remaining.tv_sec = openpam_ttyconv_timeout;
131 remaining.tv_usec = 0;
132 timeradd(&now, &remaining, &target);
136 remaining.tv_sec = remaining.tv_usec = 0;
152 timersub(&target, &now, &remaining);
153 remaining_ms = remaining.tv_sec * 1000 +
154 remaining.tv_usec / 1000;
218 struct timeval now, target, remaining; local
[all...]
/freebsd-10-stable/contrib/ntp/lib/isc/win32/
H A Dentropy.c86 unsigned int remaining; local
151 remaining = needed;
167 if (remaining == 0)
173 got = get_from_filesource(source, remaining);
177 remaining -= ISC_MIN(remaining, got);
190 if (blocking && remaining != 0) {
196 * Here, if there are bits remaining to be had and we can block,
200 while ((remaining != 0) && (source != NULL)) {
206 got = get_from_callback(source, remaining, blockin
[all...]
/freebsd-10-stable/sys/amd64/vmm/io/
H A Diommu.c259 uint64_t mapped, remaining; local
261 remaining = len;
263 while (remaining > 0) {
264 mapped = IOMMU_CREATE_MAPPING(dom, gpa, hpa, remaining);
267 remaining -= mapped;
274 uint64_t unmapped, remaining; local
276 remaining = len;
278 while (remaining > 0) {
279 unmapped = IOMMU_REMOVE_MAPPING(dom, gpa, remaining);
281 remaining
[all...]
/freebsd-10-stable/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-10-stable/sys/dev/drm2/radeon/
H A Datombios_i2c.c101 int i, remaining, current_count, buffer_offset, max_bytes, ret; local
118 remaining = p->len;
128 while (remaining) {
129 if (remaining > max_bytes)
132 current_count = remaining;
138 remaining -= current_count;
/freebsd-10-stable/tools/tools/dmardump/
H A Ddmardump.c205 acpi_handle_dmar_remapping_structure(void *addr, int remaining) argument
209 if (remaining < (int)sizeof(ACPI_DMAR_HEADER))
212 if (remaining < hdr->Length)
227 int remaining, consumed; local
231 remaining = sdp->Length - sizeof(ACPI_TABLE_DMAR);
232 while (remaining > 0) {
233 cp = (char *)sdp + sdp->Length - remaining;
234 consumed = acpi_handle_dmar_remapping_structure(cp, remaining);
238 remaining -= consumed;
/freebsd-10-stable/contrib/gperf/src/
H A Dpositions.h121 /* Returns the number of remaining positions, i.e. how often next() will
123 unsigned int remaining () const;
151 /* Returns the number of remaining positions, i.e. how often next() will
153 unsigned int remaining () const;
/freebsd-10-stable/lib/libstdthreads/
H A Dthrd.c117 thrd_sleep(const struct timespec *duration, struct timespec *remaining) argument
120 return (nanosleep(duration, remaining));
/freebsd-10-stable/contrib/ntp/lib/isc/unix/
H A Dentropy.c252 unsigned int remaining; local
316 remaining = needed;
327 if (remaining == 0)
334 got = get_from_filesource(source, remaining);
338 got = get_from_usocketsource(source, remaining);
344 remaining -= ISC_MIN(remaining, got);
352 if (blocking && remaining != 0) {
361 * Here, if there are bits remaining to be had and we can block,
365 while ((remaining !
[all...]
/freebsd-10-stable/usr.sbin/acpi/acpidump/
H A Dacpi.c784 acpi_handle_dmar_devscope(void *addr, int remaining) argument
791 if (remaining < (int)sizeof(ACPI_DMAR_DEVICE_SCOPE))
794 if (remaining < devscope->Length)
824 int remaining, consumed; local
841 remaining = drhd->Header.Length - sizeof(ACPI_DMAR_HARDWARE_UNIT);
842 if (remaining > 0)
844 while (remaining > 0) {
845 cp = (char *)drhd + drhd->Header.Length - remaining;
846 consumed = acpi_handle_dmar_devscope(cp, remaining);
850 remaining
858 int remaining, consumed; local
884 int remaining, consumed; local
925 acpi_handle_dmar_remapping_structure(void *addr, int remaining) argument
965 int remaining, consumed; local
[all...]
/freebsd-10-stable/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-10-stable/contrib/tcpdump/
H A Dprint-rip.c129 rip_entry_print_v2(register const struct rip_netinfo *ni, const unsigned remaining) argument
152 print_unknown_data((u_int8_t *)&ni->rip_dest,"\n\t ",remaining);
153 return remaining; /* AT spans till the packet end */
157 print_unknown_data((u_int8_t *)&ni->rip_dest,"\n\t ",remaining);
/freebsd-10-stable/contrib/unbound/sldns/
H A Dsbuffer.c115 size_t remaining; local
121 remaining = sldns_buffer_remaining(buffer);
123 written = vsnprintf((char *) sldns_buffer_current(buffer), remaining,
129 } else if ((size_t) written >= remaining) {
/freebsd-10-stable/contrib/ntp/sntp/libevent/
H A Dbuffer_iocp.c101 size_t remaining, len; local
113 remaining = nBytes;
114 for (i = 0; remaining > 0 && i < (unsigned)buf->n_buffers; ++i) {
117 if (remaining < len)
118 len = remaining;
121 remaining -= len;

Completed in 302 milliseconds

12345