Skip to content

Commit 9d6556c

Browse files
committed
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.
2 parents 6fd31ae + 8744ca1 commit 9d6556c

File tree

1 file changed

+3
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsdlike/openbsd

1 file changed

+3
-0
lines changed

src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ extern {
5252
envp: *const *const ::c_char) -> ::c_int;
5353
pub fn pledge(promises: *const ::c_char,
5454
execpromises: *const ::c_char) -> ::c_int;
55+
pub fn strtonum(nptr: *const ::c_char, minval: ::c_longlong,
56+
maxval: ::c_longlong,
57+
errstr: *mut *const ::c_char) -> ::c_longlong;
5558
}
5659

5760
cfg_if! {

0 commit comments

Comments
 (0)