(fd: crt_fd::Borrowed<'_>, length: crt_fd::Offset)
| 2029 | |
| 2030 | #[pyfunction] |
| 2031 | pub fn ftruncate(fd: crt_fd::Borrowed<'_>, length: crt_fd::Offset) -> io::Result<()> { |
| 2032 | crt_fd::ftruncate(fd, length) |
| 2033 | } |
| 2034 | |
| 2035 | #[pyfunction] |
| 2036 | fn truncate(path: PyObjectRef, length: crt_fd::Offset, vm: &VirtualMachine) -> PyResult<()> { |