summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/net/socketpair.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/net/socketpair.rs')
-rw-r--r--vendor/rustix/src/net/socketpair.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/rustix/src/net/socketpair.rs b/vendor/rustix/src/net/socketpair.rs
index b2d46060e..7228e716b 100644
--- a/vendor/rustix/src/net/socketpair.rs
+++ b/vendor/rustix/src/net/socketpair.rs
@@ -2,7 +2,8 @@ use crate::fd::OwnedFd;
use crate::net::{AddressFamily, Protocol, SocketFlags, SocketType};
use crate::{backend, io};
-/// `socketpair(domain, type_ | accept_flags, protocol)`
+/// `socketpair(domain, type_ | accept_flags, protocol)`—Create a pair of
+/// sockets that are connected to each other.
///
/// # References
/// - [POSIX]
@@ -29,7 +30,7 @@ pub fn socketpair(
domain: AddressFamily,
type_: SocketType,
flags: SocketFlags,
- protocol: Protocol,
+ protocol: Option<Protocol>,
) -> io::Result<(OwnedFd, OwnedFd)> {
backend::net::syscalls::socketpair(domain, type_, flags, protocol)
}