/third_party/python/Modules/_io/ |
H A D | fileio.c | 66 unsigned int closefd : 1; member 92 if (self->fd >= 0 && self->closefd) { in fileio_dealloc_warn() 149 if (!self->closefd) { in _io_FileIO_close_impl() 186 self->closefd = 1; in fileio_new() 201 closefd: bool(accept={int}) = True 221 int closefd, PyObject *opener) 247 if (self->closefd) { 367 self->closefd = closefd; 370 self->closefd 220 _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode, int closefd, PyObject *opener) global() argument [all...] |
H A D | winconsoleio.c | 148 unsigned int closefd : 1; member 171 if (self->closefd) { in internal_close() 199 if (!self->closefd) { in _io__WindowsConsoleIO_close_impl() 226 self->closefd = 0; in winconsoleio_new() 238 closefd: bool(accept={int}) = True 250 const char *mode, int closefd, in _io__WindowsConsoleIO___init___impl() 265 if (self->closefd) { in _io__WindowsConsoleIO___init___impl() 335 self->closefd = 0; in _io__WindowsConsoleIO___init___impl() 339 self->closefd = 1; in _io__WindowsConsoleIO___init___impl() 340 if (!closefd) { in _io__WindowsConsoleIO___init___impl() 249 _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj, const char *mode, int closefd, PyObject *opener) _io__WindowsConsoleIO___init___impl() argument [all...] |
H A D | _iomodule.c | 78 closefd: bool(accept={int}) = True 87 returned I/O object is closed, unless closefd is set to False.) 171 If closefd is False, the underlying file descriptor will be kept open 199 const char *newline, int closefd, PyObject *opener) in _io_open_impl() 331 closefd ? Py_True : Py_False, in _io_open_impl() 196 _io_open_impl(PyObject *module, PyObject *file, const char *mode, int buffering, const char *encoding, const char *errors, const char *newline, int closefd, PyObject *opener) _io_open_impl() argument
|
/third_party/python/Modules/_io/clinic/ |
H A D | _iomodule.c.h | 7 " errors=None, newline=None, closefd=True, opener=None)\n" 16 "returned I/O object is closed, unless closefd is set to False.)\n" 100 "If closefd is False, the underlying file descriptor will be kept open\n" 130 const char *newline, int closefd, PyObject *opener); 136 static const char * const _keywords[] = {"file", "mode", "buffering", "encoding", "errors", "newline", "closefd", "opener", NULL}; in _io_open() 146 int closefd = 1; in _io_open() local 254 closefd = _PyLong_AsInt(args[6]); in _io_open() 255 if (closefd == -1 && PyErr_Occurred()) { in _io_open() 264 return_value = _io_open_impl(module, file, mode, buffering, encoding, errors, newline, closefd, opener); in _io_open()
|
H A D | winconsoleio.c.h | 33 "_WindowsConsoleIO(file, mode=\'r\', closefd=True, opener=None)\n" 44 const char *mode, int closefd, 51 static const char * const _keywords[] = {"file", "mode", "closefd", "opener", NULL}; in _io__WindowsConsoleIO___init__() 59 int closefd = 1; in _io__WindowsConsoleIO___init__() local 89 closefd = _PyLong_AsInt(fastargs[2]); in _io__WindowsConsoleIO___init__() 90 if (closefd == -1 && PyErr_Occurred()) { in _io__WindowsConsoleIO___init__() 99 return_value = _io__WindowsConsoleIO___init___impl((winconsoleio *)self, nameobj, mode, closefd, opener); in _io__WindowsConsoleIO___init__()
|
H A D | fileio.c.h | 27 "FileIO(file, mode=\'r\', closefd=True, opener=None)\n" 46 int closefd, PyObject *opener); 52 static const char * const _keywords[] = {"file", "mode", "closefd", "opener", NULL}; in _io_FileIO___init__() 60 int closefd = 1; in _io_FileIO___init__() local 90 closefd = _PyLong_AsInt(fastargs[2]); in _io_FileIO___init__() 91 if (closefd == -1 && PyErr_Occurred()) { in _io_FileIO___init__() 100 return_value = _io_FileIO___init___impl((fileio *)self, nameobj, mode, closefd, opener); in _io_FileIO___init__()
|
/third_party/libuv/test/ |
H A D | runner-unix.c | 49 static void closefd(int fd) { in closefd() function 69 closefd(fd); in notify_parent_process() 152 closefd(pipefd[0]); in process_start() 170 closefd(pipefd[1]); in process_start() 177 closefd(pipefd[0]); in process_start() 346 closefd(args.pipe[0]); in process_wait() 347 closefd(args.pipe[1]); in process_wait()
|
/third_party/elfutils/libdwfl/ |
H A D | offline.c | 281 const char *file_name, int fd, bool closefd, in __libdwfl_report_offline() 286 Dwfl_Error error = __libdw_open_file (&fd, &elf, closefd, true); in __libdwfl_report_offline() 296 if (closefd) in __libdwfl_report_offline() 309 bool closefd = false; in dwfl_report_offline() 312 closefd = true; in dwfl_report_offline() 321 return __libdwfl_report_offline (dwfl, name, file_name, fd, closefd, NULL); in dwfl_report_offline() 280 __libdwfl_report_offline(Dwfl *dwfl, const char *name, const char *file_name, int fd, bool closefd, int (*predicate) (const char *module, const char *file)) __libdwfl_report_offline() argument
|
H A D | dwfl_report_elf.c | 293 bool closefd = false; in dwfl_report_elf() local 296 closefd = true; in dwfl_report_elf() 306 Dwfl_Error error = __libdw_open_file (&fd, &elf, closefd, false); in dwfl_report_elf() 318 if (closefd) in dwfl_report_elf()
|
/third_party/libdrm/etnaviv/ |
H A D | etnaviv_device.c | 68 dev->closefd = 1; in etna_device_new_dup() 88 if (dev->closefd) in etna_device_del_impl()
|
H A D | etnaviv_priv.h | 78 int closefd; /* call close(fd) upon destruction */ member
|
/third_party/libdrm/freedreno/ |
H A D | freedreno_device.c | 98 dev->closefd = 1; in fd_device_new_dup() 112 int close_fd = dev->closefd ? dev->fd : -1; in fd_device_del_impl()
|
H A D | freedreno_priv.h | 103 int closefd; /* call close(fd) upon destruction */ member
|
/third_party/mesa3d/src/etnaviv/drm/ |
H A D | etnaviv_device.c | 91 dev->closefd = 1; in etna_device_new_dup() 117 if (dev->closefd) in etna_device_del_impl()
|
H A D | etnaviv_priv.h | 89 int closefd; /* call close(fd) upon destruction */ member
|
/third_party/mesa3d/src/freedreno/drm/ |
H A D | freedreno_device.c | 111 dev->closefd = 1; in fd_device_new_dup() 175 if (dev->closefd) in fd_device_del_impl()
|
H A D | freedreno_priv.h | 142 bool closefd; /* call close(fd) upon destruction */ member
|
/third_party/python/Lib/multiprocessing/ |
H A D | popen_forkserver.py | 57 with open(w, 'wb', closefd=True) as f:
|
H A D | popen_spawn_posix.py | 61 with open(parent_w, 'wb', closefd=False) as f:
|
H A D | popen_spawn_win32.py | 71 with open(wfd, 'wb', closefd=True) as to_child:
|
H A D | spawn.py | 125 with os.fdopen(fd, 'rb', closefd=True) as from_parent:
|
H A D | util.py | 422 sys.stdin = open(fd, encoding="utf-8", closefd=False)
|
/third_party/python/Objects/ |
H A D | fileobject.c | 33 const char *errors, const char *newline, int closefd) in PyFile_FromFd() 43 newline, closefd ? Py_True : Py_False); in PyFile_FromFd() 32 PyFile_FromFd(int fd, const char *name, const char *mode, int buffering, const char *encoding, const char *errors, const char *newline, int closefd) PyFile_FromFd() argument
|
/third_party/python/Lib/test/libregrtest/ |
H A D | setup.py | 131 closefd=False,
|
/third_party/python/Lib/ |
H A D | _pyio.py | 78 newline=None, closefd=True, opener=None): 86 returned I/O object is closed, unless closefd is set to False.) 169 closedfd is a bool. If closefd is False, the underlying file descriptor will 240 closefd, opener=opener) 1500 def __init__(self, file, mode='r', closefd=True, opener=None): 1573 if not closefd: 1574 raise ValueError('Cannot use closefd=False with file name') 1587 self._closefd = closefd 1639 return ('<%s fd=%d mode=%r closefd=%r>' % 1642 return ('<%s name=%r mode=%r closefd 1808 def closefd(self): global() member in FileIO [all...] |