Skip to content

netbsd libutil update #2512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1134,11 +1134,14 @@ easprintf
efopen
emalloc
erealloc
ereallocarr
esetfunc
estrdup
estrndup
estrlcat
estrlcpy
estrtoi
estrtou
evasprintf
endgrent
endpwent
Expand Down
13 changes: 13 additions & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2536,10 +2536,23 @@ extern "C" {
pub fn emalloc(n: ::size_t) -> *mut ::c_void;
pub fn ecalloc(n: ::size_t, c: ::size_t) -> *mut ::c_void;
pub fn erealloc(p: *mut ::c_void, n: ::size_t) -> *mut ::c_void;
pub fn ereallocarr(p: *mut ::c_void, n: ::size_t, s: ::size_t);
pub fn estrdup(s: *const ::c_char) -> *mut ::c_char;
pub fn estrndup(s: *const ::c_char, len: ::size_t) -> *mut ::c_char;
pub fn estrlcpy(dst: *mut ::c_char, src: *const ::c_char, len: ::size_t) -> ::size_t;
pub fn estrlcat(dst: *mut ::c_char, src: *const ::c_char, len: ::size_t) -> ::size_t;
pub fn estrtoi(
nptr: *const ::c_char,
base: ::c_int,
lo: ::intmax_t,
hi: ::intmax_t,
) -> ::intmax_t;
pub fn estrtou(
nptr: *const ::c_char,
base: ::c_int,
lo: ::uintmax_t,
hi: ::uintmax_t,
) -> ::uintmax_t;
pub fn easprintf(string: *mut *mut ::c_char, fmt: *const ::c_char, ...) -> ::c_int;
pub fn evasprintf(string: *mut *mut ::c_char, fmt: *const ::c_char, ...) -> ::c_int;
pub fn esetfunc(
Expand Down