@@ -1150,12 +1150,20 @@ extern "C" {
1150
1150
> ,
1151
1151
arg : * mut :: c_void ,
1152
1152
) ;
1153
+ #[ cfg_attr(
1154
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1155
+ link_name = "__sendmmsg64"
1156
+ ) ]
1153
1157
pub fn sendmmsg (
1154
1158
sockfd : :: c_int ,
1155
1159
msgvec : * mut :: mmsghdr ,
1156
1160
vlen : :: c_uint ,
1157
1161
flags : :: c_int ,
1158
1162
) -> :: c_int ;
1163
+ #[ cfg_attr(
1164
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1165
+ link_name = "__recvmmsg64"
1166
+ ) ]
1159
1167
pub fn recvmmsg (
1160
1168
sockfd : :: c_int ,
1161
1169
msgvec : * mut :: mmsghdr ,
@@ -1166,8 +1174,20 @@ extern "C" {
1166
1174
1167
1175
pub fn getrlimit64 ( resource : :: __rlimit_resource_t , rlim : * mut :: rlimit64 ) -> :: c_int ;
1168
1176
pub fn setrlimit64 ( resource : :: __rlimit_resource_t , rlim : * const :: rlimit64 ) -> :: c_int ;
1177
+ #[ cfg_attr(
1178
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1179
+ link_name = "getrlimit64"
1180
+ ) ]
1169
1181
pub fn getrlimit ( resource : :: __rlimit_resource_t , rlim : * mut :: rlimit ) -> :: c_int ;
1182
+ #[ cfg_attr(
1183
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1184
+ link_name = "setrlimit64"
1185
+ ) ]
1170
1186
pub fn setrlimit ( resource : :: __rlimit_resource_t , rlim : * const :: rlimit ) -> :: c_int ;
1187
+ #[ cfg_attr(
1188
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1189
+ link_name = "prlimit64"
1190
+ ) ]
1171
1191
pub fn prlimit (
1172
1192
pid : :: pid_t ,
1173
1193
resource : :: __rlimit_resource_t ,
@@ -1190,6 +1210,10 @@ extern "C" {
1190
1210
pub fn endutxent ( ) ;
1191
1211
pub fn getpt ( ) -> :: c_int ;
1192
1212
pub fn mallopt ( param : :: c_int , value : :: c_int ) -> :: c_int ;
1213
+ #[ cfg_attr(
1214
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1215
+ link_name = "__gettimeofday64"
1216
+ ) ]
1193
1217
pub fn gettimeofday ( tp : * mut :: timeval , tz : * mut :: timezone ) -> :: c_int ;
1194
1218
pub fn statx (
1195
1219
dirfd : :: c_int ,
@@ -1202,10 +1226,20 @@ extern "C" {
1202
1226
pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
1203
1227
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
1204
1228
1229
+ #[ cfg_attr(
1230
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1231
+ link_name = "___adjtimex64"
1232
+ ) ]
1205
1233
pub fn adjtimex ( buf : * mut timex ) -> :: c_int ;
1234
+ #[ cfg_attr(
1235
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1236
+ link_name = "___adjtimex64"
1237
+ ) ]
1206
1238
pub fn ntp_adjtime ( buf : * mut timex ) -> :: c_int ;
1207
- #[ link_name = "ntp_gettimex" ]
1208
- pub fn ntp_gettime ( buf : * mut ntptimeval ) -> :: c_int ;
1239
+ #[ cfg_attr(
1240
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1241
+ link_name = "__clock_adjtime64"
1242
+ ) ]
1209
1243
pub fn clock_adjtime ( clk_id : :: clockid_t , buf : * mut :: timex ) -> :: c_int ;
1210
1244
1211
1245
pub fn fanotify_mark (
@@ -1215,13 +1249,21 @@ extern "C" {
1215
1249
dirfd : :: c_int ,
1216
1250
path : * const :: c_char ,
1217
1251
) -> :: c_int ;
1252
+ #[ cfg_attr(
1253
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1254
+ link_name = "preadv64v2"
1255
+ ) ]
1218
1256
pub fn preadv2 (
1219
1257
fd : :: c_int ,
1220
1258
iov : * const :: iovec ,
1221
1259
iovcnt : :: c_int ,
1222
1260
offset : :: off_t ,
1223
1261
flags : :: c_int ,
1224
1262
) -> :: ssize_t ;
1263
+ #[ cfg_attr(
1264
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1265
+ link_name = "pwritev64v2"
1266
+ ) ]
1225
1267
pub fn pwritev2 (
1226
1268
fd : :: c_int ,
1227
1269
iov : * const :: iovec ,
@@ -1257,14 +1299,26 @@ extern "C" {
1257
1299
pub fn reallocarray ( ptr : * mut :: c_void , nmemb : :: size_t , size : :: size_t ) -> * mut :: c_void ;
1258
1300
1259
1301
pub fn ctermid ( s : * mut :: c_char ) -> * mut :: c_char ;
1302
+ #[ cfg_attr(
1303
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1304
+ link_name = "__ioctl_time64"
1305
+ ) ]
1260
1306
pub fn ioctl ( fd : :: c_int , request : :: c_ulong , ...) -> :: c_int ;
1261
1307
pub fn backtrace ( buf : * mut * mut :: c_void , sz : :: c_int ) -> :: c_int ;
1308
+ #[ cfg_attr(
1309
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1310
+ link_name = "__glob64_time64"
1311
+ ) ]
1262
1312
pub fn glob64 (
1263
1313
pattern : * const :: c_char ,
1264
1314
flags : :: c_int ,
1265
1315
errfunc : :: Option < extern "C" fn ( epath : * const :: c_char , errno : :: c_int ) -> :: c_int > ,
1266
1316
pglob : * mut glob64_t ,
1267
1317
) -> :: c_int ;
1318
+ #[ cfg_attr(
1319
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1320
+ link_name = "__globfree64_time64"
1321
+ ) ]
1268
1322
pub fn globfree64 ( pglob : * mut glob64_t ) ;
1269
1323
pub fn ptrace ( request : :: c_uint , ...) -> :: c_long ;
1270
1324
pub fn pthread_attr_getaffinity_np (
@@ -1331,6 +1385,10 @@ extern "C" {
1331
1385
pub fn eaccess ( pathname : * const :: c_char , mode : :: c_int ) -> :: c_int ;
1332
1386
1333
1387
pub fn asctime_r ( tm : * const :: tm , buf : * mut :: c_char ) -> * mut :: c_char ;
1388
+ #[ cfg_attr(
1389
+ all( target_pointer_width = "32" , not( target_arch = "x86_64" ) ) ,
1390
+ link_name = "__ctime64_r"
1391
+ ) ]
1334
1392
pub fn ctime_r ( timep : * const time_t , buf : * mut :: c_char ) -> * mut :: c_char ;
1335
1393
1336
1394
pub fn strftime (
0 commit comments