Skip to content

Commit 845d79f

Browse files
committed
Fix rust-langGH-4449: adding strftime* for illumos.
[ref](https://smartos.org/man/3C/strftime)
1 parent 181b043 commit 845d79f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

libc-test/semver/illumos.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ pthread_attr_get_np
2626
pthread_attr_getstackaddr
2727
pthread_attr_setstack
2828
ptsname_r
29+
strftime
30+
strftime_l
2931
syncfs
3032
timerfd_create
3133
timerfd_gettime

src/unix/solarish/illumos.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,18 @@ extern "C" {
368368
new_value: *const crate::itimerspec,
369369
old_value: *mut crate::itimerspec,
370370
) -> c_int;
371+
372+
pub fn strftime(
373+
s: *mut c_char,
374+
maxsize: size_t,
375+
format: *const c_char,
376+
timeptr: *const crate::tm,
377+
) -> size_t;
378+
pub fn strftime_l(
379+
s: *mut c_char,
380+
maxsize: size_t,
381+
format: *const c_char,
382+
timeptr: *const crate::tm,
383+
loc: crate::locale_t,
384+
) -> size_t;
371385
}

0 commit comments

Comments
 (0)