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);
717 portable_lseek(int fd, PyObject *posobj, int whence)
723 switch (whence) {
725 case 0: whence = SEEK_SET; break;
728 case 1: whence = SEEK_CUR; break;
731 case 2: whence = SEEK_END; break;
755 res = _lseeki64(fd, pos, whence);
757 res = lseek(fd, pos, whence);
776 int whence = 0;
781 if (!PyArg_ParseTuple(args, "O|i", &posobj, &whence))
784 return portable_lseek(self->fd, posobj, whence);
996 "seek(offset: int[, whence: int]) -> int. Move to new file position\n"
999 "Argument offset is a byte count. Optional argument whence defaults to\n"