Skip to content

Commit b6e0cbe

Browse files
committed
Auto merge of #2296 - devnexen:netbsd_strspct, r=JohnTitor
netbsd add strpct api.
2 parents 805bb23 + 1163228 commit b6e0cbe

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

libc-test/semver/netbsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,9 @@ strcasecmp
12911291
strcasestr
12921292
strncasecmp
12931293
strndup
1294+
strpct
12941295
strsignal
1296+
strspct
12951297
sync
12961298
syscall
12971299
sysctl

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,6 +2279,21 @@ extern "C" {
22792279
buflen: ::size_t,
22802280
spec: *const ::c_char,
22812281
) -> *const ::c_char;
2282+
2283+
pub fn strpct(
2284+
buf: *mut ::c_char,
2285+
bufsiz: ::size_t,
2286+
numerator: ::uintmax_t,
2287+
denominator: ::uintmax_t,
2288+
precision: ::size_t,
2289+
) -> *mut ::c_char;
2290+
pub fn strspct(
2291+
buf: *mut ::c_char,
2292+
bufsiz: ::size_t,
2293+
numerator: ::intmax_t,
2294+
denominator: ::intmax_t,
2295+
precision: ::size_t,
2296+
) -> *mut ::c_char;
22822297
}
22832298

22842299
cfg_if! {

0 commit comments

Comments
 (0)