]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys/unix/net.rs
Auto merge of #85746 - m-ou-se:io-error-other, r=joshtriplett
[rust.git] / library / std / src / sys / unix / net.rs
index 50c225ae2c1d91d0b8d294fb0a2f10d7e61b7daa..753cad55ce74546805385f7e48e9adbe3890580d 100644 (file)
@@ -62,7 +62,7 @@ pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> {
                     target_os = "illumos",
                     target_os = "linux",
                     target_os = "netbsd",
-                    target_os = "opensbd",
+                    target_os = "openbsd",
                 ))] {
                     // On platforms that support it we pass the SOCK_CLOEXEC
                     // flag to atomically create the socket and set it as
@@ -99,7 +99,7 @@ pub fn new_pair(fam: c_int, ty: c_int) -> io::Result<(Socket, Socket)> {
                     target_os = "illumos",
                     target_os = "linux",
                     target_os = "netbsd",
-                    target_os = "opensbd",
+                    target_os = "openbsd",
                 ))] {
                     // Like above, set cloexec atomically
                     cvt(libc::socketpair(fam, ty | libc::SOCK_CLOEXEC, 0, fds.as_mut_ptr()))?;
@@ -204,7 +204,7 @@ pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<
                 target_os = "illumos",
                 target_os = "linux",
                 target_os = "netbsd",
-                target_os = "opensbd",
+                target_os = "openbsd",
             ))] {
                 let fd = cvt_r(|| unsafe {
                     libc::accept4(self.0.raw(), storage, len, libc::SOCK_CLOEXEC)