diff options
author | bors <bors@rust-lang.org> | 2018-03-24 21:53:52 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2018-03-24 21:53:52 +0000 |
commit | 9d6556c9fa61da9a70d6bb747a137c6703cdc3ef (patch) | |
tree | d8963f325b08e0dd5c4f1259e2917c6d1a52e83f | |
parent | 6fd31ae451ee6fca2f2f5fd71cdeebf80753f4eb (diff) | |
parent | 8744ca11ae5e37168e43d528dfa0d84e91802503 (diff) | |
download | rust-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.rs | 3 |
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! { |