Compare commits
5
Commits
master
..
7020d7d088
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7020d7d088 | ||
|
|
88611514c9 | ||
|
|
413e58f93c | ||
|
|
79f1f68fad | ||
|
|
1744696b5a |
@@ -5,7 +5,7 @@
|
|||||||
#define BLOCK_SIZE 65536
|
#define BLOCK_SIZE 65536
|
||||||
|
|
||||||
exit_code_t pass(uint64_t fd) {
|
exit_code_t pass(uint64_t fd) {
|
||||||
static char buffer[BLOCK_SIZE];
|
char buffer[BLOCK_SIZE];
|
||||||
uint64_t bytes;
|
uint64_t bytes;
|
||||||
while ((bytes = read(fd, BLOCK_SIZE, buffer))) {
|
while ((bytes = read(fd, BLOCK_SIZE, buffer))) {
|
||||||
if (bytes == (uint64_t)-1) {
|
if (bytes == (uint64_t)-1) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#define BLOCK_SIZE 65536
|
#define BLOCK_SIZE 65536
|
||||||
|
|
||||||
exit_code_t pass(uint64_t fd) {
|
exit_code_t pass(uint64_t fd) {
|
||||||
static char buffer[BLOCK_SIZE];
|
char buffer[BLOCK_SIZE];
|
||||||
uint64_t bytes;
|
uint64_t bytes;
|
||||||
uint64_t total = 0;
|
uint64_t total = 0;
|
||||||
while ((bytes = read(fd, BLOCK_SIZE, buffer))) {
|
while ((bytes = read(fd, BLOCK_SIZE, buffer))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user