summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-12 14:03:00 +0000
committerbors <bors@rust-lang.org>2022-02-12 14:03:00 +0000
commitf0a06e2e6d5e89019c6262ddb92c5dc241923b2a (patch)
tree4fb07be2eec48698c30a62d15b7c00d7f92e9433 /src
parent31519972537602d9192e3f3eea239556c53a6d1d (diff)
parent59da5c9247a286f710eaa926c413f9ea0f2bc10f (diff)
downloadrust-libc-f0a06e2e6d5e89019c6262ddb92c5dc241923b2a.tar.gz
Auto merge of #2679 - devnexen:fbsd_flopenapi, r=Amanieu
flopen from libutil on freebsd
Diffstat (limited to 'src')
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs
index a2b4f7be36..94f79ddc6d 100644
--- a/src/unix/bsd/freebsdlike/freebsd/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs
@@ -4311,6 +4311,9 @@ extern "C" {
scale: ::c_int,
flags: ::c_int,
) -> ::c_int;
+
+ pub fn flopen(path: *const ::c_char, flags: ::c_int, ...) -> ::c_int;
+ pub fn flopenat(fd: ::c_int, path: *const ::c_char, flags: ::c_int, ...) -> ::c_int;
}
#[link(name = "procstat")]