@@ -1074,20 +1074,14 @@ extern "C" {
1074
1074
> ,
1075
1075
arg : * mut :: c_void ,
1076
1076
) ;
1077
- #[ cfg_attr(
1078
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1079
- link_name = "__sendmmsg64"
1080
- ) ]
1077
+ #[ cfg_attr( gnu_time64_abi, link_name = "__sendmmsg64" ) ]
1081
1078
pub fn sendmmsg (
1082
1079
sockfd : :: c_int ,
1083
1080
msgvec : * mut :: mmsghdr ,
1084
1081
vlen : :: c_uint ,
1085
1082
flags : :: c_int ,
1086
1083
) -> :: c_int ;
1087
- #[ cfg_attr(
1088
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1089
- link_name = "__recvmmsg64"
1090
- ) ]
1084
+ #[ cfg_attr( gnu_time64_abi, link_name = "__recvmmsg64" ) ]
1091
1085
pub fn recvmmsg (
1092
1086
sockfd : :: c_int ,
1093
1087
msgvec : * mut :: mmsghdr ,
@@ -1098,20 +1092,11 @@ extern "C" {
1098
1092
1099
1093
pub fn getrlimit64 ( resource : :: __rlimit_resource_t , rlim : * mut :: rlimit64 ) -> :: c_int ;
1100
1094
pub fn setrlimit64 ( resource : :: __rlimit_resource_t , rlim : * const :: rlimit64 ) -> :: c_int ;
1101
- #[ cfg_attr(
1102
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1103
- link_name = "getrlimit64"
1104
- ) ]
1095
+ #[ cfg_attr( gnu_time64_abi, link_name = "getrlimit64" ) ]
1105
1096
pub fn getrlimit ( resource : :: __rlimit_resource_t , rlim : * mut :: rlimit ) -> :: c_int ;
1106
- #[ cfg_attr(
1107
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1108
- link_name = "setrlimit64"
1109
- ) ]
1097
+ #[ cfg_attr( gnu_time64_abi, link_name = "setrlimit64" ) ]
1110
1098
pub fn setrlimit ( resource : :: __rlimit_resource_t , rlim : * const :: rlimit ) -> :: c_int ;
1111
- #[ cfg_attr(
1112
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1113
- link_name = "prlimit64"
1114
- ) ]
1099
+ #[ cfg_attr( gnu_time64_abi, link_name = "prlimit64" ) ]
1115
1100
pub fn prlimit (
1116
1101
pid : :: pid_t ,
1117
1102
resource : :: __rlimit_resource_t ,
@@ -1134,10 +1119,7 @@ extern "C" {
1134
1119
pub fn endutxent ( ) ;
1135
1120
pub fn getpt ( ) -> :: c_int ;
1136
1121
pub fn mallopt ( param : :: c_int , value : :: c_int ) -> :: c_int ;
1137
- #[ cfg_attr(
1138
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1139
- link_name = "__gettimeofday64"
1140
- ) ]
1122
+ #[ cfg_attr( gnu_time64_abi, link_name = "__gettimeofday64" ) ]
1141
1123
pub fn gettimeofday ( tp : * mut :: timeval , tz : * mut :: timezone ) -> :: c_int ;
1142
1124
pub fn statx (
1143
1125
dirfd : :: c_int ,
@@ -1150,20 +1132,11 @@ extern "C" {
1150
1132
pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
1151
1133
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
1152
1134
1153
- #[ cfg_attr(
1154
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1155
- link_name = "___adjtimex64"
1156
- ) ]
1135
+ #[ cfg_attr( gnu_time64_abi, link_name = "___adjtimex64" ) ]
1157
1136
pub fn adjtimex ( buf : * mut timex ) -> :: c_int ;
1158
- #[ cfg_attr(
1159
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1160
- link_name = "___adjtimex64"
1161
- ) ]
1137
+ #[ cfg_attr( gnu_time64_abi, link_name = "___adjtimex64" ) ]
1162
1138
pub fn ntp_adjtime ( buf : * mut timex ) -> :: c_int ;
1163
- #[ cfg_attr(
1164
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1165
- link_name = "__clock_adjtime64"
1166
- ) ]
1139
+ #[ cfg_attr( gnu_time64_abi, link_name = "__clock_adjtime64" ) ]
1167
1140
pub fn clock_adjtime ( clk_id : :: clockid_t , buf : * mut :: timex ) -> :: c_int ;
1168
1141
1169
1142
pub fn fanotify_mark (
@@ -1173,21 +1146,15 @@ extern "C" {
1173
1146
dirfd : :: c_int ,
1174
1147
path : * const :: c_char ,
1175
1148
) -> :: c_int ;
1176
- #[ cfg_attr(
1177
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1178
- link_name = "preadv64v2"
1179
- ) ]
1149
+ #[ cfg_attr( gnu_time64_abi, link_name = "preadv64v2" ) ]
1180
1150
pub fn preadv2 (
1181
1151
fd : :: c_int ,
1182
1152
iov : * const :: iovec ,
1183
1153
iovcnt : :: c_int ,
1184
1154
offset : :: off_t ,
1185
1155
flags : :: c_int ,
1186
1156
) -> :: ssize_t ;
1187
- #[ cfg_attr(
1188
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1189
- link_name = "pwritev64v2"
1190
- ) ]
1157
+ #[ cfg_attr( gnu_time64_abi, link_name = "pwritev64v2" ) ]
1191
1158
pub fn pwritev2 (
1192
1159
fd : :: c_int ,
1193
1160
iov : * const :: iovec ,
@@ -1223,26 +1190,17 @@ extern "C" {
1223
1190
pub fn reallocarray ( ptr : * mut :: c_void , nmemb : :: size_t , size : :: size_t ) -> * mut :: c_void ;
1224
1191
1225
1192
pub fn ctermid ( s : * mut :: c_char ) -> * mut :: c_char ;
1226
- #[ cfg_attr(
1227
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1228
- link_name = "__ioctl_time64"
1229
- ) ]
1193
+ #[ cfg_attr( gnu_time64_abi, link_name = "__ioctl_time64" ) ]
1230
1194
pub fn ioctl ( fd : :: c_int , request : :: c_ulong , ...) -> :: c_int ;
1231
1195
pub fn backtrace ( buf : * mut * mut :: c_void , sz : :: c_int ) -> :: c_int ;
1232
- #[ cfg_attr(
1233
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1234
- link_name = "__glob64_time64"
1235
- ) ]
1196
+ #[ cfg_attr( gnu_time64_abi, link_name = "__glob64_time64" ) ]
1236
1197
pub fn glob64 (
1237
1198
pattern : * const :: c_char ,
1238
1199
flags : :: c_int ,
1239
1200
errfunc : :: Option < extern "C" fn ( epath : * const :: c_char , errno : :: c_int ) -> :: c_int > ,
1240
1201
pglob : * mut glob64_t ,
1241
1202
) -> :: c_int ;
1242
- #[ cfg_attr(
1243
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1244
- link_name = "__globfree64_time64"
1245
- ) ]
1203
+ #[ cfg_attr( gnu_time64_abi, link_name = "__globfree64_time64" ) ]
1246
1204
pub fn globfree64 ( pglob : * mut glob64_t ) ;
1247
1205
pub fn ptrace ( request : :: c_uint , ...) -> :: c_long ;
1248
1206
pub fn pthread_attr_getaffinity_np (
@@ -1309,10 +1267,7 @@ extern "C" {
1309
1267
pub fn eaccess ( pathname : * const :: c_char , mode : :: c_int ) -> :: c_int ;
1310
1268
1311
1269
pub fn asctime_r ( tm : * const :: tm , buf : * mut :: c_char ) -> * mut :: c_char ;
1312
- #[ cfg_attr(
1313
- all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1314
- link_name = "__ctime64_r"
1315
- ) ]
1270
+ #[ cfg_attr( gnu_time64_abi, link_name = "__ctime64_r" ) ]
1316
1271
pub fn ctime_r ( timep : * const time_t , buf : * mut :: c_char ) -> * mut :: c_char ;
1317
1272
1318
1273
pub fn strftime (
0 commit comments