/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/ |
D | fileio.c | 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) in portable_lseek() argument 711 if (posobj == NULL) in portable_lseek() 714 if(PyFloat_Check(posobj)) { in portable_lseek() 719 pos = PyLong_AsLongLong(posobj); in portable_lseek() 721 pos = PyLong_AsLong(posobj); in portable_lseek() 750 PyObject *posobj; in fileio_seek() local 756 if (!PyArg_ParseTuple(args, "O|i", &posobj, &whence)) in fileio_seek() 759 return portable_lseek(self->fd, posobj, whence); in fileio_seek() [all …]
|
D | textio.c | 1956 PyObject *cookieObj, *posobj; in textiowrapper_seek() local 2060 posobj = PyLong_FromOff_t(cookie.start_pos); in textiowrapper_seek() 2061 if (posobj == NULL) in textiowrapper_seek() 2064 _PyIO_str_seek, posobj, NULL); in textiowrapper_seek() 2065 Py_DECREF(posobj); in textiowrapper_seek() 2133 PyObject *posobj = NULL; in textiowrapper_tell() local 2161 posobj = PyObject_CallMethod(self->buffer, "tell", NULL); in textiowrapper_tell() 2162 if (posobj == NULL) in textiowrapper_tell() 2167 return posobj; in textiowrapper_tell() 2171 cookie.start_pos = PyLong_AsLongLong(posobj); in textiowrapper_tell() [all …]
|
D | bytesio.c | 494 PyObject *posobj; in bytesio_seek() local 500 if (!PyArg_ParseTuple(args, "O|i:seek", &posobj, &mode)) in bytesio_seek() 503 pos = PyNumber_AsSsize_t(posobj, PyExc_OverflowError); in bytesio_seek()
|
D | stringio.c | 409 PyObject *posobj; in stringio_seek() local 414 if (!PyArg_ParseTuple(args, "O|i:seek", &posobj, &mode)) in stringio_seek() 417 pos = PyNumber_AsSsize_t(posobj, PyExc_OverflowError); in stringio_seek()
|
D | bufferedio.c | 617 PyObject *res, *posobj, *whenceobj; in _buffered_raw_seek() local 620 posobj = PyLong_FromOff_t(target); in _buffered_raw_seek() 621 if (posobj == NULL) in _buffered_raw_seek() 625 Py_DECREF(posobj); in _buffered_raw_seek() 629 posobj, whenceobj, NULL); in _buffered_raw_seek() 630 Py_DECREF(posobj); in _buffered_raw_seek()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/ |
D | fileio.c | 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) in portable_lseek() argument 723 if (posobj == NULL) in portable_lseek() 726 if(PyFloat_Check(posobj)) { in portable_lseek() 731 pos = PyLong_AsLongLong(posobj); in portable_lseek() 733 pos = PyLong_AsLong(posobj); in portable_lseek() 762 PyObject *posobj; in fileio_seek() local 768 if (!PyArg_ParseTuple(args, "O|i", &posobj, &whence)) in fileio_seek() 771 return portable_lseek(self->fd, posobj, whence); in fileio_seek() [all …]
|
D | textio.c | 2002 PyObject *cookieObj, *posobj; in textiowrapper_seek() local 2106 posobj = PyLong_FromOff_t(cookie.start_pos); in textiowrapper_seek() 2107 if (posobj == NULL) in textiowrapper_seek() 2110 _PyIO_str_seek, posobj, NULL); in textiowrapper_seek() 2111 Py_DECREF(posobj); in textiowrapper_seek() 2186 PyObject *posobj = NULL; in textiowrapper_tell() local 2214 posobj = PyObject_CallMethod(self->buffer, "tell", NULL); in textiowrapper_tell() 2215 if (posobj == NULL) in textiowrapper_tell() 2220 return posobj; in textiowrapper_tell() 2224 cookie.start_pos = PyLong_AsLongLong(posobj); in textiowrapper_tell() [all …]
|
D | bytesio.c | 504 PyObject *posobj; in bytesio_seek() local 510 if (!PyArg_ParseTuple(args, "O|i:seek", &posobj, &mode)) in bytesio_seek() 513 pos = PyNumber_AsSsize_t(posobj, PyExc_OverflowError); in bytesio_seek()
|
D | stringio.c | 409 PyObject *posobj; in stringio_seek() local 414 if (!PyArg_ParseTuple(args, "O|i:seek", &posobj, &mode)) in stringio_seek() 417 pos = PyNumber_AsSsize_t(posobj, PyExc_OverflowError); in stringio_seek()
|
D | bufferedio.c | 645 PyObject *res, *posobj, *whenceobj; in _buffered_raw_seek() local 648 posobj = PyLong_FromOff_t(target); in _buffered_raw_seek() 649 if (posobj == NULL) in _buffered_raw_seek() 653 Py_DECREF(posobj); in _buffered_raw_seek() 657 posobj, whenceobj, NULL); in _buffered_raw_seek() 658 Py_DECREF(posobj); in _buffered_raw_seek()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/ |
D | edk2module.c | 2893 PyObject *posobj; in edk2_lseek() local 2894 if (!PyArg_ParseTuple(args, "iOi:lseek", &fd, &posobj, &how)) in edk2_lseek() 2906 pos = PyInt_AsLong(posobj); in edk2_lseek() 2908 pos = PyLong_Check(posobj) ? in edk2_lseek() 2909 PyLong_AsLongLong(posobj) : PyInt_AsLong(posobj); in edk2_lseek()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Efi/ |
D | edk2module.c | 4887 PyObject *posobj; in posix_lseek() local 4888 if (!PyArg_ParseTuple(args, "iOi:lseek", &fd, &posobj, &how)) in posix_lseek() 4900 pos = PyInt_AsLong(posobj); in posix_lseek() 4902 pos = PyLong_Check(posobj) ? in posix_lseek() 4903 PyLong_AsLongLong(posobj) : PyInt_AsLong(posobj); in posix_lseek()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | posixmodule.c | 6528 PyObject *posobj; in posix_lseek() local 6529 if (!PyArg_ParseTuple(args, "iOi:lseek", &fd, &posobj, &how)) in posix_lseek() 6541 pos = PyInt_AsLong(posobj); in posix_lseek() 6543 pos = PyLong_Check(posobj) ? in posix_lseek() 6544 PyLong_AsLongLong(posobj) : PyInt_AsLong(posobj); in posix_lseek()
|