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