@@ -1133,12 +1133,14 @@ extern "C" {
1133
1133
> ,
1134
1134
arg : * mut :: c_void ,
1135
1135
) ;
1136
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "__sendmmsg64" ) ]
1136
1137
pub fn sendmmsg (
1137
1138
sockfd : :: c_int ,
1138
1139
msgvec : * mut :: mmsghdr ,
1139
1140
vlen : :: c_uint ,
1140
1141
flags : :: c_int ,
1141
1142
) -> :: c_int ;
1143
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "__recvmmsg64" ) ]
1142
1144
pub fn recvmmsg (
1143
1145
sockfd : :: c_int ,
1144
1146
msgvec : * mut :: mmsghdr ,
@@ -1149,8 +1151,11 @@ extern "C" {
1149
1151
1150
1152
pub fn getrlimit64 ( resource : :: __rlimit_resource_t , rlim : * mut :: rlimit64 ) -> :: c_int ;
1151
1153
pub fn setrlimit64 ( resource : :: __rlimit_resource_t , rlim : * const :: rlimit64 ) -> :: c_int ;
1154
+ #[ cfg_attr( all( target_pointer_width = "32" ) , link_name = "getrlimit64" ) ]
1152
1155
pub fn getrlimit ( resource : :: __rlimit_resource_t , rlim : * mut :: rlimit ) -> :: c_int ;
1156
+ #[ cfg_attr( all( target_pointer_width = "32" ) , link_name = "setrlimit64" ) ]
1153
1157
pub fn setrlimit ( resource : :: __rlimit_resource_t , rlim : * const :: rlimit ) -> :: c_int ;
1158
+ #[ cfg_attr( all( target_pointer_width = "32" ) , link_name = "prlimit64" ) ]
1154
1159
pub fn prlimit (
1155
1160
pid : :: pid_t ,
1156
1161
resource : :: __rlimit_resource_t ,
@@ -1173,6 +1178,7 @@ extern "C" {
1173
1178
pub fn endutxent ( ) ;
1174
1179
pub fn getpt ( ) -> :: c_int ;
1175
1180
pub fn mallopt ( param : :: c_int , value : :: c_int ) -> :: c_int ;
1181
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "__gettimeofday64" ) ]
1176
1182
pub fn gettimeofday ( tp : * mut :: timeval , tz : * mut :: timezone ) -> :: c_int ;
1177
1183
pub fn statx (
1178
1184
dirfd : :: c_int ,
@@ -1185,10 +1191,11 @@ extern "C" {
1185
1191
pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
1186
1192
pub fn getauxval ( type_ : :: c_ulong ) -> :: c_ulong ;
1187
1193
1194
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "___adjtimex64" ) ]
1188
1195
pub fn adjtimex ( buf : * mut timex ) -> :: c_int ;
1196
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "___adjtimex64" ) ]
1189
1197
pub fn ntp_adjtime ( buf : * mut timex ) -> :: c_int ;
1190
- #[ link_name = "ntp_gettimex" ]
1191
- pub fn ntp_gettime ( buf : * mut ntptimeval ) -> :: c_int ;
1198
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "__clock_adjtime64" ) ]
1192
1199
pub fn clock_adjtime ( clk_id : :: clockid_t , buf : * mut :: timex ) -> :: c_int ;
1193
1200
1194
1201
pub fn fanotify_mark (
@@ -1198,13 +1205,15 @@ extern "C" {
1198
1205
dirfd : :: c_int ,
1199
1206
path : * const :: c_char ,
1200
1207
) -> :: c_int ;
1208
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "preadv64v2" ) ]
1201
1209
pub fn preadv2 (
1202
1210
fd : :: c_int ,
1203
1211
iov : * const :: iovec ,
1204
1212
iovcnt : :: c_int ,
1205
1213
offset : :: off_t ,
1206
1214
flags : :: c_int ,
1207
1215
) -> :: ssize_t ;
1216
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "pwritev64v2" ) ]
1208
1217
pub fn pwritev2 (
1209
1218
fd : :: c_int ,
1210
1219
iov : * const :: iovec ,
@@ -1243,14 +1252,17 @@ extern "C" {
1243
1252
}
1244
1253
1245
1254
extern "C" {
1255
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "__ioctl_time64" ) ]
1246
1256
pub fn ioctl ( fd : :: c_int , request : :: c_ulong , ...) -> :: c_int ;
1247
1257
pub fn backtrace ( buf : * mut * mut :: c_void , sz : :: c_int ) -> :: c_int ;
1258
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "__glob64_time64" ) ]
1248
1259
pub fn glob64 (
1249
1260
pattern : * const :: c_char ,
1250
1261
flags : :: c_int ,
1251
1262
errfunc : :: Option < extern "C" fn ( epath : * const :: c_char , errno : :: c_int ) -> :: c_int > ,
1252
1263
pglob : * mut glob64_t ,
1253
1264
) -> :: c_int ;
1265
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "__globfree64_time64" ) ]
1254
1266
pub fn globfree64 ( pglob : * mut glob64_t ) ;
1255
1267
pub fn ptrace ( request : :: c_uint , ...) -> :: c_long ;
1256
1268
pub fn pthread_attr_getaffinity_np (
@@ -1314,6 +1326,7 @@ extern "C" {
1314
1326
pub fn eaccess ( pathname : * const :: c_char , mode : :: c_int ) -> :: c_int ;
1315
1327
1316
1328
pub fn asctime_r ( tm : * const :: tm , buf : * mut :: c_char ) -> * mut :: c_char ;
1329
+ #[ cfg_attr( target_pointer_width = "32" , link_name = "__ctime64_r" ) ]
1317
1330
pub fn ctime_r ( timep : * const time_t , buf : * mut :: c_char ) -> * mut :: c_char ;
1318
1331
1319
1332
pub fn strftime (
0 commit comments