Source
1372
1372
(compat_size_t __user *)(sig+sizeof(up))))
1373
1373
return -EFAULT;
1374
1374
}
1375
1375
1376
1376
return do_compat_pselect(n, inp, outp, exp, tsp, compat_ptr(up),
1377
1377
sigsetsize, PT_TIMESPEC);
1378
1378
}
1379
1379
1380
1380
#if defined(CONFIG_COMPAT_32BIT_TIME)
1381
1381
1382
-
COMPAT_SYSCALL_DEFINE6(pselect6, int, n, compat_ulong_t __user *, inp,
1382
+
COMPAT_SYSCALL_DEFINE6(pselect6_time32, int, n, compat_ulong_t __user *, inp,
1383
1383
compat_ulong_t __user *, outp, compat_ulong_t __user *, exp,
1384
1384
struct old_timespec32 __user *, tsp, void __user *, sig)
1385
1385
{
1386
1386
compat_size_t sigsetsize = 0;
1387
1387
compat_uptr_t up = 0;
1388
1388
1389
1389
if (sig) {
1390
1390
if (!access_ok(sig,
1391
1391
sizeof(compat_uptr_t)+sizeof(compat_size_t)) ||
1392
1392
__get_user(up, (compat_uptr_t __user *)sig) ||
1395
1395
return -EFAULT;
1396
1396
}
1397
1397
1398
1398
return do_compat_pselect(n, inp, outp, exp, tsp, compat_ptr(up),
1399
1399
sigsetsize, PT_OLD_TIMESPEC);
1400
1400
}
1401
1401
1402
1402
#endif
1403
1403
1404
1404
#if defined(CONFIG_COMPAT_32BIT_TIME)
1405
-
COMPAT_SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds,
1405
+
COMPAT_SYSCALL_DEFINE5(ppoll_time32, struct pollfd __user *, ufds,
1406
1406
unsigned int, nfds, struct old_timespec32 __user *, tsp,
1407
1407
const compat_sigset_t __user *, sigmask, compat_size_t, sigsetsize)
1408
1408
{
1409
1409
sigset_t ksigmask, sigsaved;
1410
1410
struct timespec64 ts, end_time, *to = NULL;
1411
1411
int ret;
1412
1412
1413
1413
if (tsp) {
1414
1414
if (get_old_timespec32(&ts, tsp))
1415
1415
return -EFAULT;