ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.xs
(Generate patch)

Comparing IO-AIO/AIO.xs (file contents):
Revision 1.275 by root, Mon Mar 18 23:52:09 2019 UTC vs.
Revision 1.276 by root, Wed Apr 3 03:03:53 2019 UTC

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
2636void
2637memfd_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
2632UV 2650UV
2633get_fdlimit () 2651get_fdlimit ()
2634 CODE: 2652 CODE:
2635#if HAVE_RLIMITS 2653#if HAVE_RLIMITS
2636 struct rlimit rl; 2654 struct rlimit rl;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines