Home
last modified time | relevance | path

Searched refs:get_inheritable (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython3/Lib/
Dsocket.py445 def get_inheritable(self): member in socket
450 def get_inheritable(self): member in socket
451 return os.get_inheritable(self.fileno())
454 get_inheritable.__doc__ = "Get the inheritable flag of the socket"
/external/python/cpython3/Lib/test/
Dtest_devpoll.py118 self.assertEqual(os.get_inheritable(devpoll.fileno()), False)
Dtest_os.py1752 self.check(os.get_inheritable)
3193 self.assertEqual(os.get_inheritable(fd), False)
3196 self.assertEqual(os.get_inheritable(fd), True)
3202 self.assertEqual(os.get_inheritable(fd), False)
3209 self.assertEqual(os.get_inheritable(fd), True)
3225 self.assertEqual(os.get_inheritable(fd), False)
3232 self.assertEqual(os.get_inheritable(rfd), False)
3233 self.assertEqual(os.get_inheritable(wfd), False)
3241 self.assertEqual(os.get_inheritable(fd2), False)
3252 self.assertTrue(os.get_inheritable(fd2))
[all …]
Dtest_epoll.py260 self.assertEqual(os.get_inheritable(epoll.fileno()), False)
Dtest_kqueue.py259 self.assertEqual(os.get_inheritable(kqueue.fileno()), False)
Dtest_posix.py558 self.assertFalse(os.get_inheritable(fd))
862 self.assertFalse(os.get_inheritable(r))
863 self.assertFalse(os.get_inheritable(w))
Dtest_socket.py5278 self.assertFalse(s.get_inheritable())
5283 self.assertEqual(sock.get_inheritable(), False)
5291 self.assertEqual(newsock.get_inheritable(), False)
5297 self.assertEqual(sock.get_inheritable(), True)
5300 self.assertEqual(sock.get_inheritable(), False)
5307 self.assertEqual(sock.get_inheritable(), False)
5314 self.assertEqual(sock.get_inheritable(), True)
5333 self.assertEqual(s1.get_inheritable(), False)
5334 self.assertEqual(s2.get_inheritable(), False)
Dtest_asyncore.py732 self.assertFalse(s.socket.get_inheritable())
Dtest_subprocess.py1974 inheritable = os.get_inheritable(fd)
2529 self.assertEqual(os.get_inheritable(inheritable), True)
2530 self.assertEqual(os.get_inheritable(non_inheritable), False)
Dtest_tempfile.py460 self.assertEqual(os.get_inheritable(file.fd), False)
Dtest_builtin.py1048 self.assertFalse(os.get_inheritable(fileobj.fileno()))
/external/python/cpython3/Python/
Dfileutils.c948 get_inheritable(int fd, int raise) in get_inheritable() function
989 return get_inheritable(fd, 1); in _Py_get_inheritable()
1016 int isInheritable = get_inheritable(fd, raise); in set_inheritable()
/external/python/cpython3/Doc/whatsnew/
D3.4.rst273 * :func:`os.get_inheritable`, :func:`os.set_inheritable`
275 * :meth:`socket.socket.get_inheritable`, :meth:`socket.socket.set_inheritable`
1174 <fd_inheritance>` of a file descriptor (:func:`os.get_inheritable`,
1395 <fd_inheritance>`, :meth:`~socket.socket.get_inheritable` and
/external/python/cpython3/Doc/library/
Dsocket.rst1103 .. method:: socket.get_inheritable()
Dos.rst1424 .. function:: get_inheritable(fd)