Lines Matching refs:whence
71 portable_lseek(int fd, PyObject *posobj, int whence);
73 static PyObject *portable_lseek(int fd, PyObject *posobj, int whence);
753 portable_lseek(int fd, PyObject *posobj, int whence) in portable_lseek() argument
759 switch (whence) { in portable_lseek()
761 case 0: whence = SEEK_SET; break; in portable_lseek()
764 case 1: whence = SEEK_CUR; break; in portable_lseek()
767 case 2: whence = SEEK_END; break; in portable_lseek()
791 res = _lseeki64(fd, pos, whence); in portable_lseek()
793 res = lseek(fd, pos, whence); in portable_lseek()
812 int whence = 0; in fileio_seek() local
817 if (!PyArg_ParseTuple(args, "O|i", &posobj, &whence)) in fileio_seek()
820 return portable_lseek(self->fd, posobj, whence); in fileio_seek()