Skip to content

Commit 6fcc954

Browse files
xbjfktgross35
authored andcommitted
musl: time64: set link names for symbols
This corresponds to upstream commit bminor/musl@1febd21 (most symbols) and bminor/musl@22daaea (only dlsym)
1 parent fa7e710 commit 6fcc954

File tree

7 files changed

+67
-34
lines changed

7 files changed

+67
-34
lines changed

src/new/common/posix/pthread.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ extern "C" {
195195

196196
#[cfg(any(target_os = "android", target_os = "l4re", target_os = "linux"))]
197197
#[cfg_attr(gnu_time_bits64, link_name = "__pthread_mutex_timedlock64")]
198+
#[cfg_attr(musl32_time64, link_name = "__pthread_mutex_timedlock_time64")]
198199
pub fn pthread_mutex_timedlock(
199200
lock: *mut crate::pthread_mutex_t,
200201
abstime: *const crate::timespec,

src/new/musl/sys/socket.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ extern "C" {
4141
vlen: c_uint,
4242
flags: c_uint,
4343
) -> c_int;
44+
#[cfg_attr(musl32_time64, link_name = "__recvmmsg_time64")]
4445
pub fn recvmmsg(
4546
sockfd: c_int,
4647
msgvec: *mut crate::mmsghdr,

src/unix/linux_like/linux/mod.rs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4135,7 +4135,10 @@ cfg_if! {
41354135
msg_len: size_t,
41364136
msg_prio: *mut c_uint,
41374137
) -> ssize_t;
4138-
#[cfg_attr(gnu_time_bits64, link_name = "__mq_timedreceive_time64")]
4138+
#[cfg_attr(
4139+
any(gnu_time_bits64, musl32_time64),
4140+
link_name = "__mq_timedreceive_time64"
4141+
)]
41394142
pub fn mq_timedreceive(
41404143
mqd: mqd_t,
41414144
msg_ptr: *mut c_char,
@@ -4149,7 +4152,10 @@ cfg_if! {
41494152
msg_len: size_t,
41504153
msg_prio: c_uint,
41514154
) -> c_int;
4152-
#[cfg_attr(gnu_time_bits64, link_name = "__mq_timedsend_time64")]
4155+
#[cfg_attr(
4156+
any(gnu_time_bits64, musl32_time64),
4157+
link_name = "__mq_timedsend_time64"
4158+
)]
41534159
pub fn mq_timedsend(
41544160
mqd: mqd_t,
41554161
msg_ptr: *const c_char,
@@ -4173,6 +4179,7 @@ extern "C" {
41734179
pub fn lcong48(p: *mut c_ushort);
41744180

41754181
#[cfg_attr(gnu_time_bits64, link_name = "__lutimes64")]
4182+
#[cfg_attr(musl32_time64, link_name = "__lutimes_time64")]
41764183
pub fn lutimes(file: *const c_char, times: *const crate::timeval) -> c_int;
41774184

41784185
pub fn shm_open(name: *const c_char, oflag: c_int, mode: mode_t) -> c_int;
@@ -4248,9 +4255,9 @@ extern "C" {
42484255
pub fn fremovexattr(filedes: c_int, name: *const c_char) -> c_int;
42494256
pub fn signalfd(fd: c_int, mask: *const crate::sigset_t, flags: c_int) -> c_int;
42504257
pub fn timerfd_create(clockid: crate::clockid_t, flags: c_int) -> c_int;
4251-
#[cfg_attr(gnu_time_bits64, link_name = "__timerfd_gettime64")]
4258+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__timerfd_gettime64")]
42524259
pub fn timerfd_gettime(fd: c_int, curr_value: *mut crate::itimerspec) -> c_int;
4253-
#[cfg_attr(gnu_time_bits64, link_name = "__timerfd_settime64")]
4260+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__timerfd_settime64")]
42544261
pub fn timerfd_settime(
42554262
fd: c_int,
42564263
flags: c_int,
@@ -4267,6 +4274,7 @@ extern "C" {
42674274
) -> c_int;
42684275
pub fn dup3(oldfd: c_int, newfd: c_int, flags: c_int) -> c_int;
42694276
#[cfg_attr(gnu_time_bits64, link_name = "__sigtimedwait64")]
4277+
#[cfg_attr(musl32_time64, link_name = "__sigtimedwait_time64")]
42704278
pub fn sigtimedwait(
42714279
set: *const sigset_t,
42724280
info: *mut siginfo_t,
@@ -4329,6 +4337,7 @@ extern "C" {
43294337
pub fn eventfd_write(fd: c_int, value: eventfd_t) -> c_int;
43304338

43314339
#[cfg_attr(gnu_time_bits64, link_name = "__sched_rr_get_interval64")]
4340+
#[cfg_attr(musl32_time64, link_name = "__sched_rr_get_interval_time64")]
43324341
pub fn sched_rr_get_interval(pid: crate::pid_t, tp: *mut crate::timespec) -> c_int;
43334342
pub fn sched_setparam(pid: crate::pid_t, param: *const crate::sched_param) -> c_int;
43344343
pub fn setns(fd: c_int, nstype: c_int) -> c_int;
@@ -4345,7 +4354,10 @@ extern "C" {
43454354
...
43464355
) -> c_int;
43474356
pub fn sched_getscheduler(pid: crate::pid_t) -> c_int;
4348-
#[cfg_attr(gnu_time_bits64, link_name = "__clock_nanosleep_time64")]
4357+
#[cfg_attr(
4358+
any(gnu_time_bits64, musl32_time64),
4359+
link_name = "__clock_nanosleep_time64"
4360+
)]
43494361
pub fn clock_nanosleep(
43504362
clk_id: crate::clockid_t,
43514363
flags: c_int,

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@ extern "C" {
750750
new_limit: *const crate::rlimit,
751751
old_limit: *mut crate::rlimit,
752752
) -> c_int;
753+
#[cfg_attr(musl32_time64, link_name = "__gettimeofday_time64")]
753754
pub fn gettimeofday(tp: *mut crate::timeval, tz: *mut c_void) -> c_int;
754755
pub fn ptrace(request: c_int, ...) -> c_long;
755756
pub fn getpriority(which: c_int, who: crate::id_t) -> c_int;
@@ -785,7 +786,9 @@ extern "C" {
785786
// Added in `musl` 1.2.2
786787
pub fn reallocarray(ptr: *mut c_void, nmemb: size_t, size: size_t) -> *mut c_void;
787788

789+
#[cfg_attr(musl32_time64, link_name = "__adjtimex_time64")]
788790
pub fn adjtimex(buf: *mut crate::timex) -> c_int;
791+
#[cfg_attr(musl32_time64, link_name = "__clock_adjtime64")]
789792
pub fn clock_adjtime(clk_id: crate::clockid_t, buf: *mut crate::timex) -> c_int;
790793

791794
pub fn ctermid(s: *mut c_char) -> *mut c_char;

src/unix/linux_like/linux_l4re_shared.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,10 @@ cfg_if! {
16481648
pub fn aio_error(aiocbp: *const crate::aiocb) -> c_int;
16491649
#[cfg_attr(gnu_file_offset_bits64, link_name = "aio_return64")]
16501650
pub fn aio_return(aiocbp: *mut crate::aiocb) -> ssize_t;
1651-
#[cfg_attr(gnu_time_bits64, link_name = "__aio_suspend_time64")]
1651+
#[cfg_attr(
1652+
any(musl32_time64, gnu_time_bits64),
1653+
link_name = "__aio_suspend_time64"
1654+
)]
16521655
pub fn aio_suspend(
16531656
aiocb_list: *const *const crate::aiocb,
16541657
nitems: c_int,
@@ -1711,6 +1714,7 @@ cfg_if! {
17111714
flags: c_ulong,
17121715
) -> isize;
17131716
#[cfg_attr(gnu_time_bits64, link_name = "__futimes64")]
1717+
#[cfg_attr(musl32_time64, link_name = "__futimes_time64")]
17141718
pub fn futimes(fd: c_int, times: *const crate::timeval) -> c_int;
17151719
}
17161720
}
@@ -1812,8 +1816,10 @@ extern "C" {
18121816
) -> c_int;
18131817
pub fn sched_get_priority_max(policy: c_int) -> c_int;
18141818
#[cfg_attr(gnu_time_bits64, link_name = "__settimeofday64")]
1819+
#[cfg_attr(musl32_time64, link_name = "__settimeofday_time64")]
18151820
pub fn settimeofday(tv: *const crate::timeval, tz: *const crate::timezone) -> c_int;
18161821
#[cfg_attr(gnu_time_bits64, link_name = "__sem_timedwait64")]
1822+
#[cfg_attr(musl32_time64, link_name = "__sem_timedwait_time64")]
18171823
pub fn sem_timedwait(sem: *mut crate::sem_t, abstime: *const crate::timespec) -> c_int;
18181824
pub fn sem_getvalue(sem: *mut crate::sem_t, sval: *mut c_int) -> c_int;
18191825
pub fn mount(
@@ -1826,6 +1832,7 @@ extern "C" {
18261832
#[cfg_attr(gnu_time_bits64, link_name = "__prctl_time64")]
18271833
pub fn prctl(option: c_int, ...) -> c_int;
18281834
#[cfg_attr(gnu_time_bits64, link_name = "__ppoll64")]
1835+
#[cfg_attr(musl32_time64, link_name = "__ppoll_time64")]
18291836
pub fn ppoll(
18301837
fds: *mut crate::pollfd,
18311838
nfds: crate::nfds_t,
@@ -1916,9 +1923,9 @@ extern "C" {
19161923
pub fn timer_delete(timerid: crate::timer_t) -> c_int;
19171924
#[cfg(not(target_os = "l4re"))]
19181925
pub fn timer_getoverrun(timerid: crate::timer_t) -> c_int;
1919-
#[cfg_attr(gnu_time_bits64, link_name = "__timer_gettime64")]
1926+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__timer_gettime64")]
19201927
pub fn timer_gettime(timerid: crate::timer_t, curr_value: *mut crate::itimerspec) -> c_int;
1921-
#[cfg_attr(gnu_time_bits64, link_name = "__timer_settime64")]
1928+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__timer_settime64")]
19221929
pub fn timer_settime(
19231930
timerid: crate::timer_t,
19241931
flags: c_int,

src/unix/linux_like/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,10 +1928,11 @@ extern "C" {
19281928
pub fn mincore(addr: *mut c_void, len: size_t, vec: *mut c_uchar) -> c_int;
19291929

19301930
#[cfg_attr(gnu_time_bits64, link_name = "__clock_getres64")]
1931+
#[cfg_attr(musl32_time64, link_name = "__clock_getres_time64")]
19311932
pub fn clock_getres(clk_id: crate::clockid_t, tp: *mut crate::timespec) -> c_int;
1932-
#[cfg_attr(gnu_time_bits64, link_name = "__clock_gettime64")]
1933+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__clock_gettime64")]
19331934
pub fn clock_gettime(clk_id: crate::clockid_t, tp: *mut crate::timespec) -> c_int;
1934-
#[cfg_attr(gnu_time_bits64, link_name = "__clock_settime64")]
1935+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__clock_settime64")]
19351936
pub fn clock_settime(clk_id: crate::clockid_t, tp: *const crate::timespec) -> c_int;
19361937
#[cfg(not(target_os = "l4re"))]
19371938
pub fn clock_getcpuclockid(pid: crate::pid_t, clk_id: *mut crate::clockid_t) -> c_int;
@@ -1950,9 +1951,11 @@ extern "C" {
19501951
#[cfg_attr(gnu_file_offset_bits64, link_name = "posix_fadvise64")]
19511952
pub fn posix_fadvise(fd: c_int, offset: off_t, len: off_t, advise: c_int) -> c_int;
19521953
#[cfg_attr(gnu_time_bits64, link_name = "__futimens64")]
1954+
#[cfg_attr(musl32_time64, link_name = "__futimens_time64")]
19531955
#[cfg(not(target_os = "l4re"))]
19541956
pub fn futimens(fd: c_int, times: *const crate::timespec) -> c_int;
19551957
#[cfg_attr(gnu_time_bits64, link_name = "__utimensat64")]
1958+
#[cfg_attr(musl32_time64, link_name = "__utimensat_time64")]
19561959
pub fn utimensat(
19571960
dirfd: c_int,
19581961
path: *const c_char,
@@ -1999,7 +2002,7 @@ extern "C" {
19992002
pub fn setresgid(rgid: crate::gid_t, egid: crate::gid_t, sgid: crate::gid_t) -> c_int;
20002003
#[cfg(not(target_os = "l4re"))]
20012004
pub fn setresuid(ruid: crate::uid_t, euid: crate::uid_t, suid: crate::uid_t) -> c_int;
2002-
#[cfg_attr(gnu_time_bits64, link_name = "__wait4_time64")]
2005+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__wait4_time64")]
20032006
#[cfg(not(target_os = "l4re"))]
20042007
pub fn wait4(
20052008
pid: crate::pid_t,

src/unix/mod.rs

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ extern "C" {
905905
all(not(gnu_time_bits64), gnu_file_offset_bits64),
906906
link_name = "fstat64"
907907
)]
908+
#[cfg_attr(musl32_time64, link_name = "__fstat_time64")]
908909
pub fn fstat(fildes: c_int, buf: *mut stat) -> c_int;
909910

910911
pub fn mkdir(path: *const c_char, mode: mode_t) -> c_int;
@@ -923,6 +924,7 @@ extern "C" {
923924
all(not(gnu_time_bits64), gnu_file_offset_bits64),
924925
link_name = "stat64"
925926
)]
927+
#[cfg_attr(musl32_time64, link_name = "__stat_time64")]
926928
pub fn stat(path: *const c_char, buf: *mut stat) -> c_int;
927929

928930
pub fn pclose(stream: *mut crate::FILE) -> c_int;
@@ -1017,6 +1019,7 @@ extern "C" {
10171019
link_name = "fstatat64"
10181020
)]
10191021
#[cfg(not(target_os = "l4re"))]
1022+
#[cfg_attr(musl32_time64, link_name = "__fstatat_time64")]
10201023
pub fn fstatat(dirfd: c_int, pathname: *const c_char, buf: *mut stat, flags: c_int) -> c_int;
10211024
#[cfg(not(target_os = "l4re"))]
10221025
pub fn linkat(
@@ -1121,6 +1124,7 @@ extern "C" {
11211124
)]
11221125
#[cfg_attr(target_os = "netbsd", link_name = "__nanosleep50")]
11231126
#[cfg_attr(gnu_time_bits64, link_name = "__nanosleep64")]
1127+
#[cfg_attr(musl32_time64, link_name = "__nanosleep_time64")]
11241128
pub fn nanosleep(rqtp: *const timespec, rmtp: *mut timespec) -> c_int;
11251129
pub fn tcgetpgrp(fd: c_int) -> pid_t;
11261130
pub fn tcsetpgrp(fd: c_int, pgrp: crate::pid_t) -> c_int;
@@ -1165,7 +1169,7 @@ extern "C" {
11651169
pub fn umask(mask: mode_t) -> mode_t;
11661170

11671171
#[cfg_attr(target_os = "netbsd", link_name = "__utime50")]
1168-
#[cfg_attr(gnu_time_bits64, link_name = "__utime64")]
1172+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__utime64")]
11691173
pub fn utime(file: *const c_char, buf: *const utimbuf) -> c_int;
11701174

11711175
#[cfg_attr(
@@ -1220,6 +1224,7 @@ extern "C" {
12201224
all(not(gnu_time_bits64), gnu_file_offset_bits64),
12211225
link_name = "lstat64"
12221226
)]
1227+
#[cfg_attr(musl32_time64, link_name = "__lstat_time64")]
12231228
pub fn lstat(path: *const c_char, buf: *mut stat) -> c_int;
12241229

12251230
#[cfg_attr(
@@ -1251,6 +1256,7 @@ extern "C" {
12511256

12521257
#[cfg_attr(target_os = "netbsd", link_name = "__getrusage50")]
12531258
#[cfg_attr(gnu_time_bits64, link_name = "__getrusage64")]
1259+
#[cfg_attr(musl32_time64, link_name = "__getrusage_time64")]
12541260
pub fn getrusage(resource: c_int, usage: *mut rusage) -> c_int;
12551261

12561262
#[cfg_attr(
@@ -1333,6 +1339,7 @@ extern "C" {
13331339
link_name = "pthread_cond_timedwait$UNIX2003"
13341340
)]
13351341
#[cfg_attr(gnu_time_bits64, link_name = "__pthread_cond_timedwait64")]
1342+
#[cfg_attr(musl32_time64, link_name = "__pthread_cond_timedwait_time64")]
13361343
pub fn pthread_cond_timedwait(
13371344
cond: *mut crate::pthread_cond_t,
13381345
lock: *mut crate::pthread_mutex_t,
@@ -1401,9 +1408,11 @@ extern "C" {
14011408

14021409
#[cfg_attr(target_os = "netbsd", link_name = "__utimes50")]
14031410
#[cfg_attr(gnu_time_bits64, link_name = "__utimes64")]
1411+
#[cfg_attr(musl32_time64, link_name = "__utimes_time64")]
14041412
pub fn utimes(filename: *const c_char, times: *const crate::timeval) -> c_int;
14051413
pub fn dlopen(filename: *const c_char, flag: c_int) -> *mut c_void;
14061414
pub fn dlerror() -> *mut c_char;
1415+
#[cfg_attr(musl32_time64, link_name = "__dlsym_time64")]
14071416
pub fn dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void;
14081417
pub fn dlclose(handle: *mut c_void) -> c_int;
14091418

@@ -1452,49 +1461,44 @@ extern "C" {
14521461
pub fn res_init() -> c_int;
14531462

14541463
#[cfg_attr(target_os = "netbsd", link_name = "__gmtime_r50")]
1455-
#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
1456-
// FIXME(time): for `time_t`
14571464
#[cfg_attr(gnu_time_bits64, link_name = "__gmtime64_r")]
1465+
#[cfg_attr(not(musl32_time64), allow(deprecated))]
1466+
#[cfg_attr(musl32_time64, link_name = "__gmtime64_r")]
14581467
pub fn gmtime_r(time_p: *const time_t, result: *mut tm) -> *mut tm;
14591468
#[cfg_attr(target_os = "netbsd", link_name = "__localtime_r50")]
1460-
#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
1461-
// FIXME(time): for `time_t`
14621469
#[cfg_attr(gnu_time_bits64, link_name = "__localtime64_r")]
1470+
#[cfg_attr(not(musl32_time64), allow(deprecated))]
1471+
#[cfg_attr(musl32_time64, link_name = "__localtime64_r")]
14631472
pub fn localtime_r(time_p: *const time_t, result: *mut tm) -> *mut tm;
14641473
#[cfg_attr(
14651474
all(target_os = "macos", target_arch = "x86"),
14661475
link_name = "mktime$UNIX2003"
14671476
)]
14681477
#[cfg_attr(target_os = "netbsd", link_name = "__mktime50")]
1469-
#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
1470-
// FIXME: for `time_t`
1471-
#[cfg_attr(gnu_time_bits64, link_name = "__mktime64")]
1478+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__mktime64")]
1479+
#[cfg_attr(not(musl32_time64), allow(deprecated))]
14721480
pub fn mktime(tm: *mut tm) -> time_t;
14731481
#[cfg_attr(target_os = "netbsd", link_name = "__time50")]
1474-
#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
1475-
// FIXME: for `time_t`
1476-
#[cfg_attr(gnu_time_bits64, link_name = "__time64")]
1482+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__time64")]
1483+
#[cfg_attr(not(musl32_time64), allow(deprecated))]
14771484
pub fn time(time: *mut time_t) -> time_t;
14781485
#[cfg_attr(target_os = "netbsd", link_name = "__gmtime50")]
1479-
#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
1480-
// FIXME(time): for `time_t`
1481-
#[cfg_attr(gnu_time_bits64, link_name = "__gmtime64")]
1486+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__gmtime64")]
1487+
#[cfg_attr(not(musl32_time64), allow(deprecated))]
14821488
pub fn gmtime(time_p: *const time_t) -> *mut tm;
14831489
#[cfg_attr(target_os = "netbsd", link_name = "__locatime50")]
1484-
#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
1485-
// FIXME(time): for `time_t`
1486-
#[cfg_attr(gnu_time_bits64, link_name = "__localtime64")]
1490+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__localtime64")]
1491+
#[cfg_attr(not(musl32_time64), allow(deprecated))]
14871492
pub fn localtime(time_p: *const time_t) -> *mut tm;
14881493
#[cfg_attr(target_os = "netbsd", link_name = "__difftime50")]
1489-
#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
1490-
// FIXME(time): for `time_t`
1491-
#[cfg_attr(gnu_time_bits64, link_name = "__difftime64")]
1494+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__difftime64")]
1495+
#[cfg_attr(not(musl32_time64), allow(deprecated))]
14921496
pub fn difftime(time1: time_t, time0: time_t) -> c_double;
14931497
#[cfg(not(target_os = "aix"))]
14941498
#[cfg_attr(target_os = "netbsd", link_name = "__timegm50")]
1495-
#[cfg_attr(any(target_env = "musl", target_env = "ohos"), allow(deprecated))]
1496-
// FIXME(time): for `time_t`
14971499
#[cfg_attr(gnu_time_bits64, link_name = "__timegm64")]
1500+
#[cfg_attr(not(musl32_time64), allow(deprecated))]
1501+
#[cfg_attr(musl32_time64, link_name = "__timegm_time64")]
14981502
pub fn timegm(tm: *mut crate::tm) -> time_t;
14991503

15001504
#[cfg_attr(target_os = "netbsd", link_name = "__mknod50")]
@@ -1555,6 +1559,7 @@ extern "C" {
15551559
#[cfg_attr(target_os = "netbsd", link_name = "__select50")]
15561560
#[cfg_attr(target_os = "aix", link_name = "__fd_select")]
15571561
#[cfg_attr(gnu_time_bits64, link_name = "__select64")]
1562+
#[cfg_attr(musl32_time64, link_name = "__select_time64")]
15581563
pub fn select(
15591564
nfds: c_int,
15601565
readfds: *mut fd_set,
@@ -1683,7 +1688,7 @@ cfg_if! {
16831688
)))] {
16841689
extern "C" {
16851690
#[cfg_attr(target_os = "netbsd", link_name = "__adjtime50")]
1686-
#[cfg_attr(gnu_time_bits64, link_name = "__adjtime64")]
1691+
#[cfg_attr(any(gnu_time_bits64, musl32_time64), link_name = "__adjtime64")]
16871692
pub fn adjtime(delta: *const timeval, olddelta: *mut timeval) -> c_int;
16881693
}
16891694
} else if #[cfg(target_os = "solaris")] {
@@ -1861,6 +1866,7 @@ cfg_if! {
18611866
)]
18621867
#[cfg_attr(target_os = "netbsd", link_name = "__pselect50")]
18631868
#[cfg_attr(gnu_time_bits64, link_name = "__pselect64")]
1869+
#[cfg_attr(musl32_time64, link_name = "__pselect_time64")]
18641870
pub fn pselect(
18651871
nfds: c_int,
18661872
readfds: *mut fd_set,

0 commit comments

Comments
 (0)