Home
last modified time | relevance | path

Searched refs:bufrem (Results 1 – 7 of 7) sorted by relevance

/netbsd/usr.bin/grep/
H A Dfile.c68 static size_t bufrem; variable
80 bufrem = 0; in grep_refill()
127 bufrem = nr; in grep_refill()
157 if (bufrem == 0 && grep_refill(f) != 0) in grep_fgetln()
160 if (bufrem == 0) { in grep_fgetln()
173 bufrem -= len; in grep_fgetln()
179 for (len = bufrem, off = 0; ; len += bufrem) { in grep_fgetln()
186 if (bufrem == 0) in grep_fgetln()
197 bufrem -= diff; in grep_fgetln()
231 memchr(bufpos, '\0', bufrem) != NULL) in grep_file_init()
[all …]
/netbsd/sbin/newfs_ext2fs/
H A Dnewfs_ext2fs.c338 off_t bufrem; in main() local
350 bufrem = fssize * sectorsize; in main()
354 special, bufrem, bufsize); in main()
355 while (bufrem > 0) { in main()
356 i = write(fso, buf, MIN(bufsize, bufrem)); in main()
359 bufrem -= i; in main()
/netbsd/sbin/newfs/
H A Dnewfs.c618 off_t bufrem; in main() local
631 bufrem = fssize * sectorsize; in main()
635 special, (long long)bufrem, bufsize); in main()
636 while (bufrem > 0) { in main()
637 i = write(fso, buf, MIN(bufsize, bufrem)); in main()
640 bufrem -= i; in main()
/netbsd/usr.sbin/makefs/
H A Dffs.c471 off_t bufrem; in ffs_create_image() local
497 bufrem = fsopts->size; in ffs_create_image()
500 if (ftruncate(fsopts->fd, bufrem) == -1) { in ffs_create_image()
504 bufrem = 0; /* File truncated at bufrem. Remaining is 0 */ in ffs_create_image()
518 image, (long long)bufrem, bufsize); in ffs_create_image()
519 if (bufrem > 0) in ffs_create_image()
521 while (bufrem > 0) { in ffs_create_image()
522 i = write(fsopts->fd, buf, MIN(bufsize, bufrem)); in ffs_create_image()
525 (long long)bufrem); in ffs_create_image()
529 bufrem -= i; in ffs_create_image()
/netbsd/libexec/ftpd/
H A Dftpd.c2112 if (*bufrem < c) in write_data()
2113 c = *bufrem; in write_data()
2129 *bufrem -= c; in write_data()
2130 if (*bufrem == 0) { in write_data()
2149 off_t bufrem; in send_data_with_read() local
2167 bufrem = readsize; in send_data_with_read()
2196 bufrem = 0; in send_data_with_mmap()
2230 bufrem = winsize; in send_data_with_mmap()
2423 off_t bufrem; in receive_data() local
2427 for (bufrem = curclass.rateput; bufrem > 0; ) { in receive_data()
[all …]
/netbsd/usr.bin/ftp/
H A Dfetch.c1757 volatile off_t bufrem; in fetch_url() local
1761 bufrem = rate_get ? rate_get : (off_t)bufsize; in fetch_url()
1763 bufrem = MIN(chunksize, bufrem); in fetch_url()
1764 while (bufrem > 0) { in fetch_url()
1765 size_t nr = MIN((off_t)bufsize, bufrem); in fetch_url()
1774 bufrem -= flen; in fetch_url()
H A Dftp.c616 off_t bufrem, bufchunk; in copy_bytes() local
632 bufrem = bufchunk; in copy_bytes()
633 while (bufrem > 0) { in copy_bytes()
634 inc = read(infd, buf, MIN((off_t)bufsize, bufrem)); in copy_bytes()
644 bufrem -= inc; in copy_bytes()