Copy a regular file content using high-performance fcopyfile(3) syscall (macOS).
(source_fd, target_fd)
| 53 | |
| 54 | if posix and hasattr(posix, '_fcopyfile'): |
| 55 | def _fcopyfile(source_fd, target_fd): |
| 56 | """ |
| 57 | Copy a regular file content using high-performance fcopyfile(3) |
| 58 | syscall (macOS). |
| 59 | """ |
| 60 | posix._fcopyfile(source_fd, target_fd, posix._COPYFILE_DATA) |
| 61 | else: |
| 62 | _fcopyfile = None |
| 63 |
no outgoing calls
no test coverage detected
searching dependent graphs…