aboutsummaryrefslogtreecommitdiff
path: root/vendor/rustix/src/net/socketpair.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/rustix/src/net/socketpair.rs
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/rustix/src/net/socketpair.rs')
-rw-r--r--vendor/rustix/src/net/socketpair.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/rustix/src/net/socketpair.rs b/vendor/rustix/src/net/socketpair.rs
deleted file mode 100644
index 7228e71..0000000
--- a/vendor/rustix/src/net/socketpair.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-use crate::fd::OwnedFd;
-use crate::net::{AddressFamily, Protocol, SocketFlags, SocketType};
-use crate::{backend, io};
-
-/// `socketpair(domain, type_ | accept_flags, protocol)`—Create a pair of
-/// sockets that are connected to each other.
-///
-/// # References
-/// - [POSIX]
-/// - [Linux]
-/// - [Apple]
-/// - [FreeBSD]
-/// - [NetBSD]
-/// - [OpenBSD]
-/// - [DragonFly BSD]
-/// - [illumos]
-/// - [glibc]
-///
-/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/socketpair.html
-/// [Linux]: https://man7.org/linux/man-pages/man2/socketpair.2.html
-/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/socketpair.2.html
-/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=socketpair&sektion=2
-/// [NetBSD]: https://man.netbsd.org/socketpair.2
-/// [OpenBSD]: https://man.openbsd.org/socketpair.2
-/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=socketpair&section=2
-/// [illumos]: https://illumos.org/man/3SOCKET/socketpair
-/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Socket-Pairs.html
-#[inline]
-pub fn socketpair(
- domain: AddressFamily,
- type_: SocketType,
- flags: SocketFlags,
- protocol: Option<Protocol>,
-) -> io::Result<(OwnedFd, OwnedFd)> {
- backend::net::syscalls::socketpair(domain, type_, flags, protocol)
-}