Skip to content

Commit 59e0b57

Browse files
committed
Auto merge of #2512 - devnexen:netbsd_eapi_upd, r=Amanieu
netbsd libutil update
2 parents 4634afd + 6ff2d74 commit 59e0b57

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

libc-test/semver/netbsd.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1134,11 +1134,14 @@ easprintf
11341134
efopen
11351135
emalloc
11361136
erealloc
1137+
ereallocarr
11371138
esetfunc
11381139
estrdup
11391140
estrndup
11401141
estrlcat
11411142
estrlcpy
1143+
estrtoi
1144+
estrtou
11421145
evasprintf
11431146
endgrent
11441147
endpwent

src/unix/bsd/netbsdlike/netbsd/mod.rs

+13
Original file line numberDiff line numberDiff line change
@@ -2536,10 +2536,23 @@ extern "C" {
25362536
pub fn emalloc(n: ::size_t) -> *mut ::c_void;
25372537
pub fn ecalloc(n: ::size_t, c: ::size_t) -> *mut ::c_void;
25382538
pub fn erealloc(p: *mut ::c_void, n: ::size_t) -> *mut ::c_void;
2539+
pub fn ereallocarr(p: *mut ::c_void, n: ::size_t, s: ::size_t);
25392540
pub fn estrdup(s: *const ::c_char) -> *mut ::c_char;
25402541
pub fn estrndup(s: *const ::c_char, len: ::size_t) -> *mut ::c_char;
25412542
pub fn estrlcpy(dst: *mut ::c_char, src: *const ::c_char, len: ::size_t) -> ::size_t;
25422543
pub fn estrlcat(dst: *mut ::c_char, src: *const ::c_char, len: ::size_t) -> ::size_t;
2544+
pub fn estrtoi(
2545+
nptr: *const ::c_char,
2546+
base: ::c_int,
2547+
lo: ::intmax_t,
2548+
hi: ::intmax_t,
2549+
) -> ::intmax_t;
2550+
pub fn estrtou(
2551+
nptr: *const ::c_char,
2552+
base: ::c_int,
2553+
lo: ::uintmax_t,
2554+
hi: ::uintmax_t,
2555+
) -> ::uintmax_t;
25432556
pub fn easprintf(string: *mut *mut ::c_char, fmt: *const ::c_char, ...) -> ::c_int;
25442557
pub fn evasprintf(string: *mut *mut ::c_char, fmt: *const ::c_char, ...) -> ::c_int;
25452558
pub fn esetfunc(

0 commit comments

Comments
 (0)