Sys::Syscall - access system calls that Perl doesn't normally provide access to
Use epoll, sendfile, from Perl. Mostly Linux-only support now, but more syscalls/OSes planned for future.
Nothing by default.
May export: sendfile epoll_ctl epoll_create epoll_wait EPOLLIN EPOLLOUT EPOLLERR EPOLLHUP EPOLL_CTL_ADD EPOLL_CTL_DEL EPOLL_CTL_MOD
Export tags: :epoll and :sendfile
Returns true if epoll might be available. (caller must still test with epoll_create)
Create a new epoll filedescriptor. Returns -1 if epoll isn't available.
See manpage for epoll_ctl
See manpage for epoll_wait. $arrayref is an arrayref to be modified with the items returned. The values put into $arrayref are arrayrefs of [$fd, $state].
Returns true if sendfile should work on this operating system.
Sends up to $max_send bytes from $file_fd to $sock_fd. Returns bytes actually sent, or -1 on error.
This module is Copyright (c) 2005 Six Apart, Ltd.
All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file. If you need more liberal licensing terms, please contact the maintainer.
Want to contribute? See:
This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
Brad Fitzpatrick <email@example.com>