Home
last modified time | relevance | path

Searched refs:fromfd (Results 1 – 13 of 13) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dsplice.c38 int fromfd = open(fromfile, O_RDWR | O_CREAT, TEST_MODE); in splice_0100() local
39 if (fromfd < 0) { in splice_0100()
40 t_error("%s failed: fromfd = %d\n", __func__, fromfd); in splice_0100()
53 ssize_t result = splice(fromfd, &off, tofd, &off, len, flags); in splice_0100()
83 int fromfd = open(path, O_RDONLY); in splice_0200() local
84 if (fromfd < 0) { in splice_0200()
85 t_error("%s failed: fromfd = %d\n", __func__, fromfd); in splice_0200()
98 ssize_t bytes = splice(fromfd, NULL, pipe1[1], NULL, len, flags); in splice_0200()
Dsendfile.c44 int fromfd = open(fromfile, O_RDONLY); in sendfile_0100() local
45 if (fromfd < 0) { in sendfile_0100()
46 t_error("%s failed: open. fromfd = %d\n", __func__, fromfd); in sendfile_0100()
55 int result = sendfile(tofd, fromfd, &off, 1); in sendfile_0100()
60 close(fromfd); in sendfile_0100()
83 int fromfd = -1; in sendfile_0200() local
87 int result = sendfile(tofd, fromfd, &off, 1); in sendfile_0200()
/third_party/python/Lib/multiprocessing/
Dreduction.py183 with socket.fromfd(conn.fileno(), socket.AF_UNIX, socket.SOCK_STREAM) as s:
188 with socket.fromfd(conn.fileno(), socket.AF_UNIX, socket.SOCK_STREAM) as s:
Dconnection.py947 with socket.fromfd(handle, socket.AF_INET, socket.SOCK_STREAM) as s:
/third_party/python/Lib/test/
Dtest_epoll.py145 ep2 = select.epoll.fromfd(ep.fileno())
Dtest_kqueue.py126 kq2 = select.kqueue.fromfd(kq.fileno())
D_test_multiprocessing.py5037 s = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
Dtest_socket.py2479 sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)
/third_party/python/Doc/library/
Dselect.rst339 .. method:: epoll.fromfd(fd)
481 .. method:: kqueue.fromfd(fd)
Dsocket.rst582 :func:`socket.fromfd`, *fileno* will return the same socket and not a
712 .. function:: fromfd(fd, family, type, proto=0)
/third_party/python/Lib/
Dsocket.py539 def fromfd(fd, family, type, proto=0): function
/third_party/rust/crates/libc/src/unix/bsd/apple/
Dmod.rs5466 fromfd: ::c_int, in renameatx_np()
/third_party/python/Misc/
DHISTORY33965 module. And there's a new function fromfd() which creates a socket