Skip to content

Commit c902338

Browse files
committed
netbsd libutil update
1 parent 2da7608 commit c902338

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
@@ -1224,6 +1224,7 @@ regexec
12241224
regfree
12251225
regmatch_t
12261226
regoff_t
1227+
secure_path
12271228
seekdir
12281229
sem
12291230
sem_close
@@ -1261,6 +1262,8 @@ siginfo_t
12611262
sigtimedwait
12621263
sigwait
12631264
sigwaitinfo
1265+
snprintb
1266+
snprintb_m
12641267
sockaddr_dl
12651268
sockcred
12661269
srand

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,6 +2210,20 @@ extern "C" {
22102210
pub fn esetfunc(
22112211
cb: ::Option<unsafe extern "C" fn(::c_int, *const ::c_char, ...)>,
22122212
) -> ::Option<unsafe extern "C" fn(::c_int, *const ::c_char, ...)>;
2213+
pub fn secure_path(path: *const ::c_char) -> ::c_int;
2214+
pub fn snprintb(
2215+
buf: *mut ::c_char,
2216+
buflen: ::size_t,
2217+
fmt: *const ::c_char,
2218+
val: u64,
2219+
) -> ::c_int;
2220+
pub fn snprintb_m(
2221+
buf: *mut ::c_char,
2222+
buflen: ::size_t,
2223+
fmt: *const ::c_char,
2224+
val: u64,
2225+
max: ::size_t,
2226+
) -> ::c_int;
22132227
}
22142228

22152229
cfg_if! {

0 commit comments

Comments
 (0)