- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for rc (0.12 sec)
-
tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc
int bytes_transferred = 0; int rc = 1; // When `sendfile` returns 0 we stop copying and let callers handle this. while (offset < size && rc > 0) { size_t chunk = size - offset; if (chunk > kPosixCopyFileBufferSize) chunk = kPosixCopyFileBufferSize; rc = read(src_fd, buffer.get(), chunk); if (rc < 0) return -1; int total_write = 0; int total_read = rc; while (total_write < total_read && rc > 0) {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Nov 22 21:23:55 GMT 2019 - 1.9K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/copy_file_linux.cc
off_t offset = 0; int bytes_transferred = 0; int rc = 1; // When `sendfile` returns 0 we stop copying and let callers handle this. while (offset < size && rc > 0) { // Use uint64 for safe compare SSIZE_MAX uint64_t chunk = size - offset; if (chunk > SSIZE_MAX) chunk = SSIZE_MAX; rc = sendfile(dst_fd, src_fd, &offset, static_cast<size_t>(chunk)); if (rc < 0) return -1; bytes_transferred += rc; }
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Nov 22 21:23:55 GMT 2019 - 1.5K bytes - Viewed (0)