@@ -1133,12 +1133,20 @@ extern "C" {
1133
1133
> ,
1134
1134
arg : * mut :: c_void ,
1135
1135
) ;
1136
+ #[ cfg_attr(
1137
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1138
+ link_name = "__sendmmsg64"
1139
+ ) ]
1136
1140
pub fn sendmmsg (
1137
1141
sockfd : :: c_int ,
1138
1142
msgvec : * mut :: mmsghdr ,
1139
1143
vlen : :: c_uint ,
1140
1144
flags : :: c_int ,
1141
1145
) -> :: c_int ;
1146
+ #[ cfg_attr(
1147
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1148
+ link_name = "__recvmmsg64"
1149
+ ) ]
1142
1150
pub fn recvmmsg (
1143
1151
sockfd : :: c_int ,
1144
1152
msgvec : * mut :: mmsghdr ,
@@ -1149,8 +1157,20 @@ extern "C" {
1149
1157
1150
1158
pub fn getrlimit64 ( resource : :: __rlimit_resource_t , rlim : * mut :: rlimit64 ) -> :: c_int ;
1151
1159
pub fn setrlimit64 ( resource : :: __rlimit_resource_t , rlim : * const :: rlimit64 ) -> :: c_int ;
1160
+ #[ cfg_attr(
1161
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1162
+ link_name = "getrlimit64"
1163
+ ) ]
1152
1164
pub fn getrlimit ( resource : :: __rlimit_resource_t , rlim : * mut :: rlimit ) -> :: c_int ;
1165
+ #[ cfg_attr(
1166
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1167
+ link_name = "setrlimit64"
1168
+ ) ]
1153
1169
pub fn setrlimit ( resource : :: __rlimit_resource_t , rlim : * const :: rlimit ) -> :: c_int ;
1170
+ #[ cfg_attr(
1171
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1172
+ link_name = "prlimit64"
1173
+ ) ]
1154
1174
pub fn prlimit (
1155
1175
pid : :: pid_t ,
1156
1176
resource : :: __rlimit_resource_t ,
@@ -1173,6 +1193,10 @@ extern "C" {
1173
1193
pub fn endutxent ( ) ;
1174
1194
pub fn getpt ( ) -> :: c_int ;
1175
1195
pub fn mallopt ( param : :: c_int , value : :: c_int ) -> :: c_int ;
1196
+ #[ cfg_attr(
1197
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1198
+ link_name = "__gettimeofday64"
1199
+ ) ]
1176
1200
pub fn gettimeofday ( tp : * mut :: timeval , tz : * mut :: timezone ) -> :: c_int ;
1177
1201
pub fn statx (
1178
1202
dirfd : :: c_int ,
@@ -1185,10 +1209,20 @@ extern "C" {
1185
1209
pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
1186
1210
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
1187
1211
1212
+ #[ cfg_attr(
1213
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1214
+ link_name = "___adjtimex64"
1215
+ ) ]
1188
1216
pub fn adjtimex ( buf : * mut timex ) -> :: c_int ;
1217
+ #[ cfg_attr(
1218
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1219
+ link_name = "___adjtimex64"
1220
+ ) ]
1189
1221
pub fn ntp_adjtime ( buf : * mut timex ) -> :: c_int ;
1190
- #[ link_name = "ntp_gettimex" ]
1191
- pub fn ntp_gettime ( buf : * mut ntptimeval ) -> :: c_int ;
1222
+ #[ cfg_attr(
1223
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1224
+ link_name = "__clock_adjtime64"
1225
+ ) ]
1192
1226
pub fn clock_adjtime ( clk_id : :: clockid_t , buf : * mut :: timex ) -> :: c_int ;
1193
1227
1194
1228
pub fn fanotify_mark (
@@ -1198,13 +1232,21 @@ extern "C" {
1198
1232
dirfd : :: c_int ,
1199
1233
path : * const :: c_char ,
1200
1234
) -> :: c_int ;
1235
+ #[ cfg_attr(
1236
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1237
+ link_name = "preadv64v2"
1238
+ ) ]
1201
1239
pub fn preadv2 (
1202
1240
fd : :: c_int ,
1203
1241
iov : * const :: iovec ,
1204
1242
iovcnt : :: c_int ,
1205
1243
offset : :: off_t ,
1206
1244
flags : :: c_int ,
1207
1245
) -> :: ssize_t ;
1246
+ #[ cfg_attr(
1247
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1248
+ link_name = "pwritev64v2"
1249
+ ) ]
1208
1250
pub fn pwritev2 (
1209
1251
fd : :: c_int ,
1210
1252
iov : * const :: iovec ,
@@ -1240,14 +1282,26 @@ extern "C" {
1240
1282
pub fn reallocarray ( ptr : * mut :: c_void , nmemb : :: size_t , size : :: size_t ) -> * mut :: c_void ;
1241
1283
1242
1284
pub fn ctermid ( s : * mut :: c_char ) -> * mut :: c_char ;
1285
+ #[ cfg_attr(
1286
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1287
+ link_name = "__ioctl_time64"
1288
+ ) ]
1243
1289
pub fn ioctl ( fd : :: c_int , request : :: c_ulong , ...) -> :: c_int ;
1244
1290
pub fn backtrace ( buf : * mut * mut :: c_void , sz : :: c_int ) -> :: c_int ;
1291
+ #[ cfg_attr(
1292
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1293
+ link_name = "__glob64_time64"
1294
+ ) ]
1245
1295
pub fn glob64 (
1246
1296
pattern : * const :: c_char ,
1247
1297
flags : :: c_int ,
1248
1298
errfunc : :: Option < extern "C" fn ( epath : * const :: c_char , errno : :: c_int ) -> :: c_int > ,
1249
1299
pglob : * mut glob64_t ,
1250
1300
) -> :: c_int ;
1301
+ #[ cfg_attr(
1302
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1303
+ link_name = "__globfree64_time64"
1304
+ ) ]
1251
1305
pub fn globfree64 ( pglob : * mut glob64_t ) ;
1252
1306
pub fn ptrace ( request : :: c_uint , ...) -> :: c_long ;
1253
1307
pub fn pthread_attr_getaffinity_np (
@@ -1311,6 +1365,10 @@ extern "C" {
1311
1365
pub fn eaccess ( pathname : * const :: c_char , mode : :: c_int ) -> :: c_int ;
1312
1366
1313
1367
pub fn asctime_r ( tm : * const :: tm , buf : * mut :: c_char ) -> * mut :: c_char ;
1368
+ #[ cfg_attr(
1369
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1370
+ link_name = "__ctime64_r"
1371
+ ) ]
1314
1372
pub fn ctime_r ( timep : * const time_t , buf : * mut :: c_char ) -> * mut :: c_char ;
1315
1373
1316
1374
pub fn strftime (
0 commit comments