Home | History | Annotate | Download | only in _io

Lines Matching defs:whence

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

70 static PyObject *portable_lseek(int fd, PyObject *posobj, int whence);
704 portable_lseek(int fd, PyObject *posobj, int whence)
710 switch (whence) {
712 case 0: whence = SEEK_SET; break;
715 case 1: whence = SEEK_CUR; break;
718 case 2: whence = SEEK_END; break;
742 res = _lseeki64(fd, pos, whence);
744 res = lseek(fd, pos, whence);
763 int whence = 0;
768 if (!PyArg_ParseTuple(args, "O|i", &posobj, &whence))
771 return portable_lseek(self->fd, posobj, whence);
983 "seek(offset: int[, whence: int]) -> int. Move to new file position\n"
986 "Argument offset is a byte count. Optional argument whence defaults to\n"