Lines Matching refs:posobj
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
772 if (posobj == NULL) in portable_lseek()
775 if(PyFloat_Check(posobj)) { in portable_lseek()
780 pos = PyLong_AsLongLong(posobj); in portable_lseek()
782 pos = PyLong_AsLong(posobj); in portable_lseek()
811 PyObject *posobj; 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()
836 PyObject *posobj = NULL; /* the new size wanted by the user */ in fileio_truncate() local
849 if (!PyArg_ParseTuple(args, "|O", &posobj)) in fileio_truncate()
852 if (posobj == Py_None || posobj == NULL) { in fileio_truncate()
854 posobj = portable_lseek(fd, NULL, 1); in fileio_truncate()
855 if (posobj == NULL) in fileio_truncate()
859 Py_INCREF(posobj); in fileio_truncate()
872 Py_DECREF(posobj); in fileio_truncate()
877 tempposobj = portable_lseek(fd, posobj, 0); in fileio_truncate()
880 Py_DECREF(posobj); in fileio_truncate()
901 Py_DECREF(posobj); in fileio_truncate()
909 pos = PyLong_AsLongLong(posobj); in fileio_truncate()
911 pos = PyLong_AsLong(posobj); in fileio_truncate()
914 Py_DECREF(posobj); in fileio_truncate()
926 Py_DECREF(posobj); in fileio_truncate()
931 return posobj; in fileio_truncate()