summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-09-02 13:31:54 +0900
committerGitHub <noreply@github.com>2020-09-02 13:31:54 +0900
commit75ab4a0124b5f79a3b49450b2ef461a31da6bc01 (patch)
tree0d4817a313e919d969397c91eec588e951ceaa12
parenteb079df8827132a7e161d67ac94282bcba62d6f6 (diff)
parent2e3748a53caa337842e2226c9ed040973d033a0b (diff)
downloadrust-libc-75ab4a0124b5f79a3b49450b2ef461a31da6bc01.tar.gz
Merge pull request #1875 from cmusser/master
-rw-r--r--src/unix/bsd/freebsdlike/dragonfly/errno.rs1
-rw-r--r--src/unix/bsd/freebsdlike/dragonfly/mod.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/dragonfly/errno.rs b/src/unix/bsd/freebsdlike/dragonfly/errno.rs
index e9ad63b86b..434ac63a3c 100644
--- a/src/unix/bsd/freebsdlike/dragonfly/errno.rs
+++ b/src/unix/bsd/freebsdlike/dragonfly/errno.rs
@@ -1,6 +1,7 @@
// DragonFlyBSD's __error function is declared with "static inline", so it must
// be implemented in the libc crate, as a pointer to a static thread_local.
f! {
+ #[deprecated(since = "0.2.77", "Use `__errno_location()` instead")]
pub fn __error() -> *mut ::c_int {
&mut errno
}
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs
index 4a15c3b89a..47e3b7c152 100644
--- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs
+++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs
@@ -1044,6 +1044,7 @@ f! {
}
extern "C" {
+ pub fn __errno_location() -> *mut ::c_int;
pub fn setgrent();
pub fn mprotect(
addr: *mut ::c_void,