about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-27 20:08:24 +0200
committerGitHub <noreply@github.com>2021-05-27 20:08:24 +0200
commit48706edc56eb842cf9e9de629a2c30a4472e9b5e (patch)
treef6c5f8af7bb4a28d5b3e58c9ced277f33a1f42be
parente30192ac5c3ea61d30e2d8070289524975ea7315 (diff)
parent3cafe2a43f56395307a4ccce3b8615a4fabe3368 (diff)
downloadrust-48706edc56eb842cf9e9de629a2c30a4472e9b5e.tar.gz
rust-48706edc56eb842cf9e9de629a2c30a4472e9b5e.zip
Rollup merge of #85738 - 370417:opensbd, r=m-ou-se
Rename opensbd to openbsd

OpenBsd was sometimes spelled "opensbd" in the standard library.
-rw-r--r--library/std/src/sys/unix/net.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/unix/net.rs b/library/std/src/sys/unix/net.rs
index e6b61062d15..d5a15964c08 100644
--- a/library/std/src/sys/unix/net.rs
+++ b/library/std/src/sys/unix/net.rs
@@ -62,7 +62,7 @@ impl 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 @@ impl 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 @@ impl Socket {
                 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)