From b97166f68fdde5f3e9aff74c2943968ffe322788 Mon Sep 17 00:00:00 2001 From: GrayJack Date: Sun, 13 Oct 2019 15:08:59 -0300 Subject: Add settimeofday for openbsd --- src/unix/bsd/netbsdlike/openbsd/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs index d82c3273e6..1e698b4713 100644 --- a/src/unix/bsd/netbsdlike/openbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs @@ -1374,6 +1374,7 @@ f! { extern "C" { pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int; + pub fn settimeofday(tp: *const ::timeval, tz: *const ::timezone) -> ::c_int; pub fn accept4( s: ::c_int, addr: *mut ::sockaddr, -- cgit v1.2.1 From f5ff9d9a718ea16a6293db4cccb3051b3324e697 Mon Sep 17 00:00:00 2001 From: GrayJack Date: Sun, 13 Oct 2019 16:10:47 -0300 Subject: Format settimeofday on openbsd --- src/unix/bsd/netbsdlike/openbsd/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs index 1e698b4713..6a4bec95ad 100644 --- a/src/unix/bsd/netbsdlike/openbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs @@ -1374,7 +1374,10 @@ f! { extern "C" { pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int; - pub fn settimeofday(tp: *const ::timeval, tz: *const ::timezone) -> ::c_int; + pub fn settimeofday( + tp: *const ::timeval, + tz: *const ::timezone + ) -> ::c_int; pub fn accept4( s: ::c_int, addr: *mut ::sockaddr, -- cgit v1.2.1 From f6d9f0230d8c6d7ce00c82a95cf5ac680337b98f Mon Sep 17 00:00:00 2001 From: GrayJack Date: Sun, 13 Oct 2019 17:13:06 -0300 Subject: Format settimeday on openbsd --- src/unix/bsd/netbsdlike/openbsd/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs index 6a4bec95ad..f70fddf59c 100644 --- a/src/unix/bsd/netbsdlike/openbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs @@ -1376,7 +1376,7 @@ extern "C" { pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int; pub fn settimeofday( tp: *const ::timeval, - tz: *const ::timezone + tz: *const ::timezone, ) -> ::c_int; pub fn accept4( s: ::c_int, -- cgit v1.2.1