- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for do (0.11 sec)
-
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc
// If file exists, truncate its size to 0. int dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, open_mode); if (dst_fd < 0) { close(src_fd); return -1; } // Both files have been opened, do the transfer. // Since errno would be overridden by `close` below, save it here. int error_code = 0; if (CopyFileContents(dst_fd, src_fd, size) < 0) error_code = errno; close(src_fd); close(dst_fd);
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jan 16 05:36:52 GMT 2020 - 2.1K bytes - Viewed (1)