Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/asyncio/
Dtrsock.py70 def get_inheritable(self): member in TransportSocket
71 return self._sock.get_inheritable()
/external/python/cpython3/Lib/
Dsocket.py527 def get_inheritable(self): member in socket
532 def get_inheritable(self): member in socket
533 return os.get_inheritable(self.fileno())
536 get_inheritable.__doc__ = "Get the inheritable flag of the socket"
/external/python/cpython3/Lib/test/
Dtest_os.py2189 self.check(os.get_inheritable)
3658 self.assertFalse(os.get_inheritable(fd))
3665 self.assertFalse(os.get_inheritable(fd2))
3681 self.assertFalse(os.get_inheritable(fd))
3858 self.assertEqual(os.get_inheritable(fd), False)
3861 self.assertEqual(os.get_inheritable(fd), True)
3867 self.assertEqual(os.get_inheritable(fd), False)
3874 self.assertEqual(os.get_inheritable(fd), True)
3891 self.assertEqual(os.get_inheritable(fd), False)
3894 self.assertEqual(os.get_inheritable(fd), True)
[all …]
Dtest_devpoll.py118 self.assertEqual(os.get_inheritable(devpoll.fileno()), False)
Dtest_epoll.py258 self.assertEqual(os.get_inheritable(epoll.fileno()), False)
Dtest_kqueue.py257 self.assertEqual(os.get_inheritable(kqueue.fileno()), False)
Dtest_socket.py5718 self.assertFalse(s.get_inheritable())
5723 self.assertEqual(sock.get_inheritable(), False)
5731 self.assertEqual(newsock.get_inheritable(), False)
5737 self.assertEqual(sock.get_inheritable(), True)
5740 self.assertEqual(sock.get_inheritable(), False)
5747 self.assertEqual(sock.get_inheritable(), False)
5754 self.assertEqual(sock.get_inheritable(), True)
5773 self.assertEqual(s1.get_inheritable(), False)
5774 self.assertEqual(s2.get_inheritable(), False)
Dtest_posix.py578 self.assertFalse(os.get_inheritable(fd))
887 self.assertFalse(os.get_inheritable(r))
888 self.assertFalse(os.get_inheritable(w))
Dtest_asyncore.py739 self.assertFalse(s.socket.get_inheritable())
Dtest_subprocess.py2349 inheritable = os.get_inheritable(fd)
2905 self.assertEqual(os.get_inheritable(inheritable), True)
2906 self.assertEqual(os.get_inheritable(non_inheritable), False)
Dtest_tempfile.py478 self.assertEqual(os.get_inheritable(file.fd), False)
Dtest_builtin.py1212 self.assertFalse(os.get_inheritable(fileobj.fileno()))
/external/python/cpython3/Python/
Dfileutils.c1260 get_inheritable(int fd, int raise) in get_inheritable() function
1299 return get_inheritable(fd, 1); in _Py_get_inheritable()
1326 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.rst1305 .. method:: socket.get_inheritable()
Dos.rst1605 .. function:: get_inheritable(fd)