Home | History | Annotate | Download | only in _io

Lines Matching defs:whence

73 portable_lseek(int fd, PyObject *posobj, int whence);

75 static PyObject *portable_lseek(int fd, PyObject *posobj, int whence);
692 portable_lseek(int fd, PyObject *posobj, int whence)
698 switch (whence) {
700 case 0: whence = SEEK_SET; break;
703 case 1: whence = SEEK_CUR; break;
706 case 2: whence = SEEK_END; break;
730 res = _lseeki64(fd, pos, whence);
732 res = lseek(fd, pos, whence);
751 int whence = 0;
756 if (!PyArg_ParseTuple(args, "O|i", &posobj, &whence))
759 return portable_lseek(self->fd, posobj, whence);
965 "seek(offset: int[, whence: int]) -> None. Move to new file position.\n"
967 "Argument offset is a byte count. Optional argument whence defaults to\n"