Skip to content

Commit 237d749

Browse files
committed
1 parent 151c3a9 commit 237d749

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

libc-test/semver/solarish.txt

+2
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ posix_spawnattr_setsigmask
7878
posix_spawnp
7979
recvmsg
8080
sendmsg
81+
strftime
82+
strftime_l

src/unix/solarish/mod.rs

+15
Original file line numberDiff line numberDiff line change
@@ -3202,6 +3202,21 @@ extern "C" {
32023202
pub fn arc4random_uniform(upper_bound: u32) -> u32;
32033203

32043204
pub fn secure_getenv(name: *const c_char) -> *mut c_char;
3205+
3206+
#[cfg_attr(target_os = "solaris", link(name = "__strftime_xpg7"))]
3207+
pub fn strftime(
3208+
s: *mut c_char,
3209+
maxsize: size_t,
3210+
format: *const c_char,
3211+
timeptr: *const crate::tm,
3212+
) -> size_t;
3213+
pub fn strftime_l(
3214+
s: *mut c_char,
3215+
maxsize: size_t,
3216+
format: *const c_char,
3217+
timeptr: *const crate::tm,
3218+
loc: crate::locale_t,
3219+
) -> size_t;
32053220
}
32063221

32073222
#[link(name = "sendfile")]

0 commit comments

Comments
 (0)