Home
last modified time | relevance | path

Searched refs:_PyVerify_fd (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Include/
Dfileobject.h79 int _PyVerify_fd(int fd);
82 #define _PyVerify_fd(fd) (_get_osfhandle(fd) >= 0) macro
84 #define _PyVerify_fd(A) (1) /* dummy */ macro
/external/python/cpython2/Modules/_io/
Dfileio.c82 if (_PyVerify_fd(fd)) { in internal_close()
162 if (!_PyVerify_fd(fd) || (fstat(fd, &buf) < 0 && errno == EBADF)) { in check_fd()
488 if (_PyVerify_fd(self->fd)) { in fileio_readinto()
547 if (!_PyVerify_fd(self->fd)) in fileio_readall()
644 if (_PyVerify_fd(self->fd)) { in fileio_read()
686 if (_PyVerify_fd(self->fd)) { in fileio_write()
752 if (_PyVerify_fd(fd)) { in portable_lseek()
/external/python/cpython2/PC/
Dmsvcrtmodule.c144 if (!_PyVerify_fd(fd)) in msvcrt_get_osfhandle()
/external/python/cpython2/Modules/
Dposixmodule.c571 _PyVerify_fd(int fd) in _PyVerify_fd() function
611 if (!_PyVerify_fd(fd1)) in _PyVerify_fd_dup2()
861 if (!_PyVerify_fd(fd)) in posix_fildes()
6629 if (!_PyVerify_fd(fd)) in posix_close_()
6653 if (_PyVerify_fd(i)) in posix_closerange()
6670 if (!_PyVerify_fd(fd)) in posix_dup()
6738 if (!_PyVerify_fd(fd)) in posix_lseek()
6776 if (!_PyVerify_fd(fd)) { in posix_read()
6806 if (!_PyVerify_fd(fd)) { in posix_write()
6843 if (!_PyVerify_fd(fd)) in posix_fstat()
[all …]
Dsignalmodule.c418 if (fd != -1 && (!_PyVerify_fd(fd) || fstat(fd, &buf) != 0)) { in signal_set_wakeup_fd()
Dmmapmodule.c1323 if (_PyVerify_fd(fileno) == 0) { in new_mmap_object()