Skip to content

Commit

Permalink
Rollup merge of #85738 - 370417:opensbd, r=m-ou-se
Browse files Browse the repository at this point in the history
Rename opensbd to openbsd

OpenBsd was sometimes spelled "opensbd" in the standard library.
  • Loading branch information
GuillaumeGomez authored May 27, 2021
2 parents e30192a + 3cafe2a commit 48706ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/std/src/sys/unix/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()))?;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 48706ed

Please sign in to comment.