Lines Matching defs:offset

1498 PyLong_FromPy_off_t(Py_off_t offset)
1501 return PyLong_FromLongLong(offset);
1503 return PyLong_FromLong(offset);
9761 offset: Py_off_t
9764 Read a number of bytes from a file descriptor starting at a particular offset.
9766 Read length bytes from file descriptor fd, starting at offset bytes from
9767 the beginning of the file. The file offset remains unchanged.
9771 os_pread_impl(PyObject *module, int fd, Py_ssize_t length, Py_off_t offset)
9789 n = pread(fd, PyBytes_AS_STRING(buffer), length, offset);
9810 offset: Py_off_t
9819 specifies the file offset at which the input operation is to be performed. It
9832 os_preadv_impl(PyObject *module, int fd, PyObject *buffers, Py_off_t offset,
9866 n = preadv2(fd, iov, cnt, offset, flags);
9882 n = preadv(fd, iov, cnt, offset);
9930 offset: Py_off_t
9940 os_sendfile_impl(PyObject *module, int out_fd, int in_fd, Py_off_t offset,
9950 offset: Py_off_t
9960 os_sendfile_impl(PyObject *module, int out_fd, int in_fd, Py_off_t offset,
9970 offset as offobj: object
10056 ret = sendfile(in_fd, out_fd, offset, &sbytes, &sf, flags);
10058 ret = sendfile(in_fd, out_fd, offset, count, &sf, &sbytes, flags);
10105 off_t offset;
10106 if (!Py_off_t_converter(offobj, &offset))
10111 // when the offset is equal or bigger than the in_fd size.
10122 if (offset >= st.st_size) {
10129 // code to check if the offset parameter was modified by sendfile().
10132 off_t original_offset = offset;
10137 ret = sendfile(out_fd, in_fd, &offset, count);
10141 if (ret < 0 && offset != original_offset) {
10142 ret = offset - original_offset;
10413 offset: Py_off_t
10416 Write bytes to a file descriptor starting at a particular offset.
10418 Write buffer to fd, starting at offset bytes from the beginning of
10420 current file offset.
10424 os_pwrite_impl(PyObject *module, int fd, Py_buffer *buffer, Py_off_t offset)
10433 size = pwrite(fd, buffer->buf, (size_t)buffer->len, offset);
10450 offset: Py_off_t
10454 Writes the contents of bytes-like objects to a file descriptor at a given offset.
10473 os_pwritev_impl(PyObject *module, int fd, PyObject *buffers, Py_off_t offset,
10508 result = pwritev2(fd, iov, cnt, offset, flags);
10525 result = pwritev(fd, iov, cnt, offset);
10559 Starting offset in src.
10561 Starting offset in dst.
10628 Starting offset in src.
10630 Starting offset in dst.
10637 respectively for offset_dst. The offset associated to the file
10975 offset: Py_off_t
10982 starting at offset bytes from the beginning and continuing for length bytes.
10986 os_posix_fallocate_impl(PyObject *module, int fd, Py_off_t offset,
10995 result = posix_fallocate(fd, offset, length);
11016 offset: Py_off_t
11026 offset and continuing for length bytes.
11033 os_posix_fadvise_impl(PyObject *module, int fd, Py_off_t offset,
11042 result = posix_fadvise(fd, offset, length, advice);