… | |
… | |
1285 | |
1285 | |
1286 | const_iv (EFD_CLOEXEC) |
1286 | const_iv (EFD_CLOEXEC) |
1287 | const_iv (EFD_NONBLOCK) |
1287 | const_iv (EFD_NONBLOCK) |
1288 | const_iv (EFD_SEMAPHORE) |
1288 | const_iv (EFD_SEMAPHORE) |
1289 | |
1289 | |
|
|
1290 | const_iv (MFD_CLOEXEC) |
|
|
1291 | const_iv (MFD_ALLOW_SEALING) |
|
|
1292 | const_iv (MFD_HUGETLB) |
|
|
1293 | |
1290 | const_iv (CLOCK_REALTIME) |
1294 | const_iv (CLOCK_REALTIME) |
1291 | const_iv (CLOCK_MONOTONIC) |
1295 | const_iv (CLOCK_MONOTONIC) |
1292 | const_iv (CLOCK_BOOTTIME) |
1296 | const_iv (CLOCK_BOOTTIME) |
1293 | const_iv (CLOCK_REALTIME_ALARM) |
1297 | const_iv (CLOCK_REALTIME_ALARM) |
1294 | const_iv (CLOCK_BOOTTIME_ALARM) |
1298 | const_iv (CLOCK_BOOTTIME_ALARM) |
… | |
… | |
2627 | #else |
2631 | #else |
2628 | errno = ENOSYS; |
2632 | errno = ENOSYS; |
2629 | #endif |
2633 | #endif |
2630 | } |
2634 | } |
2631 | |
2635 | |
|
|
2636 | void |
|
|
2637 | memfd_create (SV8 *pathname, int flags = 0) |
|
|
2638 | PPCODE: |
|
|
2639 | { |
|
|
2640 | int fd; |
|
|
2641 | #if HAVE_MEMFD_CREATE |
|
|
2642 | fd = memfd_create (SvPVbyte_nolen (pathname), flags); |
|
|
2643 | #else |
|
|
2644 | fd = (errno = ENOSYS, -1); |
|
|
2645 | #endif |
|
|
2646 | |
|
|
2647 | XPUSHs (newmortalFH (fd, O_RDWR)); |
|
|
2648 | } |
|
|
2649 | |
2632 | UV |
2650 | UV |
2633 | get_fdlimit () |
2651 | get_fdlimit () |
2634 | CODE: |
2652 | CODE: |
2635 | #if HAVE_RLIMITS |
2653 | #if HAVE_RLIMITS |
2636 | struct rlimit rl; |
2654 | struct rlimit rl; |