Home
last modified time | relevance | path

Searched refs:closefd (Results 1 – 25 of 47) sorted by relevance

12

/third_party/libuv/test/
Drunner-unix.c45 static void closefd(int fd) { in closefd() function
65 closefd(fd); in notify_parent_process()
144 closefd(pipefd[0]); in process_start()
158 closefd(pipefd[1]); in process_start()
165 closefd(pipefd[0]); in process_start()
334 closefd(args.pipe[0]); in process_wait()
335 closefd(args.pipe[1]); in process_wait()
/third_party/python/Modules/_io/
Dfileio.c65 unsigned int closefd : 1; member
93 if (self->fd >= 0 && self->closefd) { in fileio_dealloc_warn()
151 if (!self->closefd) { in _io_FileIO_close_impl()
188 self->closefd = 1; in fileio_new()
223 int closefd, PyObject *opener) argument
249 if (self->closefd) {
369 self->closefd = closefd;
372 self->closefd = 1;
373 if (!closefd) {
1093 self->fd, mode_string(self), self->closefd ? "True" : "False");
[all …]
Dwinconsoleio.c147 unsigned int closefd : 1; member
172 if (self->closefd) { in internal_close()
201 if (!self->closefd) { in _io__WindowsConsoleIO_close_impl()
228 self->closefd = 0; in winconsoleio_new()
252 const char *mode, int closefd, in _io__WindowsConsoleIO___init___impl() argument
267 if (self->closefd) { in _io__WindowsConsoleIO___init___impl()
337 self->closefd = 0; in _io__WindowsConsoleIO___init___impl()
341 self->closefd = 1; in _io__WindowsConsoleIO___init___impl()
342 if (!closefd) { in _io__WindowsConsoleIO___init___impl()
1038 self->closefd ? "True" : "False"); in winconsoleio_repr()
[all …]
D_iomodule.c235 const char *newline, int closefd, PyObject *opener) in _io_open_impl() argument
388 closefd ? Py_True : Py_False, in _io_open_impl()
/third_party/python/Modules/_io/clinic/
D_iomodule.c.h135 const char *newline, int closefd, PyObject *opener);
151 int closefd = 1; in _io_open() local
259 closefd = _PyLong_AsInt(args[6]); in _io_open()
260 if (closefd == -1 && PyErr_Occurred()) { in _io_open()
269 …return_value = _io_open_impl(module, file, mode, buffering, encoding, errors, newline, closefd, op… in _io_open()
Dwinconsoleio.c.h44 const char *mode, int closefd,
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, o… in _io__WindowsConsoleIO___init__()
Dfileio.c.h46 int closefd, PyObject *opener);
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/elfutils/libdwfl/
Doffline.c281 const char *file_name, int fd, bool closefd, in __libdwfl_report_offline() argument
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() local
312 closefd = true; in dwfl_report_offline()
321 return __libdwfl_report_offline (dwfl, name, file_name, fd, closefd, NULL); in dwfl_report_offline()
Ddwfl_report_elf.c293 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/
Detnaviv_device.c68 dev->closefd = 1; in etna_device_new_dup()
88 if (dev->closefd) in etna_device_del_impl()
Detnaviv_priv.h78 int closefd; /* call close(fd) upon destruction */ member
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_device.c91 dev->closefd = 1; in etna_device_new_dup()
117 if (dev->closefd) in etna_device_del_impl()
Detnaviv_priv.h89 int closefd; /* call close(fd) upon destruction */ member
/third_party/libdrm/freedreno/
Dfreedreno_device.c98 dev->closefd = 1; in fd_device_new_dup()
112 int close_fd = dev->closefd ? dev->fd : -1; in fd_device_del_impl()
Dfreedreno_priv.h103 int closefd; /* call close(fd) upon destruction */ member
/third_party/mesa3d/src/freedreno/drm/
Dfreedreno_device.c111 dev->closefd = 1; in fd_device_new_dup()
175 if (dev->closefd) in fd_device_del_impl()
Dfreedreno_priv.h142 bool closefd; /* call close(fd) upon destruction */ member
/third_party/python/Lib/multiprocessing/
Dpopen_spawn_posix.py61 with open(parent_w, 'wb', closefd=False) as f:
Dpopen_forkserver.py57 with open(w, 'wb', closefd=True) as f:
Dpopen_spawn_win32.py70 with open(wfd, 'wb', closefd=True) as to_child:
Dspawn.py121 with os.fdopen(fd, 'rb', closefd=True) as from_parent:
/third_party/python/Objects/
Dfileobject.c34 const char *errors, const char *newline, int closefd) in PyFile_FromFd() argument
44 newline, closefd ? Py_True : Py_False); in PyFile_FromFd()
/third_party/python/Lib/test/libregrtest/
Dsetup.py131 closefd=False,
/third_party/python/Lib/
D_pyio.py74 newline=None, closefd=True, opener=None): argument
248 closefd, opener=opener)
1509 def __init__(self, file, mode='r', closefd=True, opener=None): argument
1582 if not closefd:
1596 self._closefd = closefd
1817 def closefd(self): member in FileIO
/third_party/python/Lib/test/
Dtest_io.py739 encoding="utf-8", closefd=False)
745 file = self.open(f.fileno(), "r", encoding="utf-8", closefd=False)
751 file = self.open(f.fileno(), "rb", closefd=False)
759 encoding="utf-8", closefd=False)
765 self.assertEqual(f.buffer.raw.closefd, True)
766 file = self.open(f.fileno(), "r", encoding="utf-8", closefd=False)
767 self.assertEqual(file.buffer.raw.closefd, False)
821 self.check_flush_error_on_close(fd, 'wb', buffering=0, closefd=False)
828 self.check_flush_error_on_close(fd, 'wb', closefd=False)
835 self.check_flush_error_on_close(fd, 'w', encoding="utf-8", closefd=False)
[all …]

12