Skip to content

Commit d92e1be

Browse files
committed
Auto merge of #2261 - devnexen:netbsd_libutil_update, r=JohnTitor
netbsd libutil update
2 parents 303e524 + c902338 commit d92e1be

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

libc-test/semver/netbsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,7 @@ regexec
12321232
regfree
12331233
regmatch_t
12341234
regoff_t
1235+
secure_path
12351236
seekdir
12361237
sem
12371238
sem_close
@@ -1269,6 +1270,8 @@ siginfo_t
12691270
sigtimedwait
12701271
sigwait
12711272
sigwaitinfo
1273+
snprintb
1274+
snprintb_m
12721275
sockaddr_dl
12731276
sockcred
12741277
srand

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,20 @@ extern "C" {
22202220
pub fn esetfunc(
22212221
cb: ::Option<unsafe extern "C" fn(::c_int, *const ::c_char, ...)>,
22222222
) -> ::Option<unsafe extern "C" fn(::c_int, *const ::c_char, ...)>;
2223+
pub fn secure_path(path: *const ::c_char) -> ::c_int;
2224+
pub fn snprintb(
2225+
buf: *mut ::c_char,
2226+
buflen: ::size_t,
2227+
fmt: *const ::c_char,
2228+
val: u64,
2229+
) -> ::c_int;
2230+
pub fn snprintb_m(
2231+
buf: *mut ::c_char,
2232+
buflen: ::size_t,
2233+
fmt: *const ::c_char,
2234+
val: u64,
2235+
max: ::size_t,
2236+
) -> ::c_int;
22232237
}
22242238

22252239
cfg_if! {

0 commit comments

Comments
 (0)