summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-03-24 21:53:52 +0000
committerbors <bors@rust-lang.org>2018-03-24 21:53:52 +0000
commit9d6556c9fa61da9a70d6bb747a137c6703cdc3ef (patch)
treed8963f325b08e0dd5c4f1259e2917c6d1a52e83f
parent6fd31ae451ee6fca2f2f5fd71cdeebf80753f4eb (diff)
parent8744ca11ae5e37168e43d528dfa0d84e91802503 (diff)
downloadrust-libc-9d6556c9fa61da9a70d6bb747a137c6703cdc3ef.tar.gz
Auto merge of #954 - cphrn:master, r=alexcrichton
Add strtonum to OpenBSD OpenBSD provides [strtonum](http://man.openbsd.org/strtonum) but it is not in libc, yet.
-rw-r--r--src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs
index 0761a18841..c4a60800a6 100644
--- a/src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs
@@ -52,6 +52,9 @@ extern {
envp: *const *const ::c_char) -> ::c_int;
pub fn pledge(promises: *const ::c_char,
execpromises: *const ::c_char) -> ::c_int;
+ pub fn strtonum(nptr: *const ::c_char, minval: ::c_longlong,
+ maxval: ::c_longlong,
+ errstr: *mut *const ::c_char) -> ::c_longlong;
}
cfg_if! {