Home
last modified time | relevance | path

Searched refs:is_socket (Results 1 – 9 of 9) sorted by relevance

/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_socket/
Dis_socket.pass.cpp35 ASSERT_NOEXCEPT(is_socket(s)); in TEST_CASE()
36 ASSERT_NOEXCEPT(is_socket(p, ec)); in TEST_CASE()
37 ASSERT_NOT_NOEXCEPT(is_socket(p)); in TEST_CASE()
60 TEST_CHECK(is_socket(s) == TC.expect); in TEST_CASE()
67 TEST_CHECK(is_socket(p) == false); in TEST_CASE()
78 TEST_CHECK(is_socket(file, ec) == false); in TEST_CASE()
81 TEST_CHECK_THROW(filesystem_error, is_socket(file)); in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/
Dfile_type_obs.pass.cpp52 TEST_FUNC(is_socket); in TEST_CASE()
83 TEST_CHECK(e.is_socket() == is_socket(st)); in TEST_CASE()
138 TEST_CHECK(e.is_socket(ec) == is_socket(st)); in TEST_CASE()
187 TEST_CHECK(e.is_socket(ec) == is_socket(st)); in TEST_CASE()
250 TEST_CHECK(e.is_socket(ec) == is_socket(st)); in TEST_CASE()
/external/libcxx/include/experimental/
Dfilesystem168 bool is_socket(file_status s) noexcept;
169 bool is_socket(const path& p);
170 bool is_socket(const path& p, error_code& ec) noexcept;
/external/python/cpython3/Modules/
Dsignalmodule.c548 int is_socket; in signal_set_wakeup_fd() local
572 is_socket = 0; in signal_set_wakeup_fd()
603 is_socket = 1; in signal_set_wakeup_fd()
613 wakeup.use_send = is_socket; in signal_set_wakeup_fd()
/external/python/cpython3/Lib/asyncio/
Dunix_events.py564 is_socket = stat.S_ISSOCK(mode)
565 if not (is_char or is_fifo or is_socket):
578 if is_socket or (is_fifo and not sys.platform.startswith("aix")):
/external/libcxx/include/
Dfilesystem168 bool is_socket(file_status s) noexcept;
169 bool is_socket(const path& p);
170 bool is_socket(const path& p, error_code& ec) noexcept;
1725 inline _LIBCPP_INLINE_VISIBILITY bool is_socket(file_status __s) noexcept {
1729 inline _LIBCPP_INLINE_VISIBILITY bool is_socket(const path& __p) {
1730 return is_socket(__status(__p));
1733 inline _LIBCPP_INLINE_VISIBILITY bool is_socket(const path& __p,
1735 return is_socket(__status(__p, &__ec));
2063 bool is_socket() const { return __get_ft() == file_type::socket; }
2066 bool is_socket(error_code& __ec) const noexcept {
/external/python/cpython3/Lib/test/
Dtest_pathlib.py1920 self.assertFalse(P.is_socket())
1925 self.assertFalse((P / 'fileA').is_socket())
1926 self.assertFalse((P / 'dirA').is_socket())
1927 self.assertFalse((P / 'non-existing').is_socket())
1928 self.assertFalse((P / 'fileA' / 'bah').is_socket())
1941 self.assertTrue(P.is_socket())
2197 f.is_socket()
/external/python/cpython3/Lib/
Dpathlib.py1445 def is_socket(self): member in Path
/external/python/cpython3/Doc/library/
Dpathlib.rst788 .. method:: Path.is_socket()