Sys::Syscall(3)
π NAME π
Okay so Sys::Syscall β access system calls that Perl doesn't normally provide access to. Periodt. And yes, bestie, this is the Sys::Syscall(3) page from the User Contributed Perl Documentation. π
β¨ SYNOPSIS β¨
use Sys::Syscall;
πΈ DESCRIPTION πΈ
Use epoll, sendfile, from Perl. Highkey mostly Linux-only support now, but more syscalls/OSes planned for future. Slay.
π Exports π
Nothing by default. Not me handing out exports for free.
- May export:
sendfile,epoll_ctl,epoll_create,epoll_wait,EPOLLIN,EPOLLOUT,EPOLLERR,EPOLLHUP,EPOLL_CTL_ADD,EPOLL_CTL_DEL,EPOLL_CTL_MOD - Export tags:
:epolland:sendfile
π§ Functions π§
Function time, bestie β here's the whole roster, no skips. π«Ά
π₯ epoll support π₯
$ok = epoll_defined()β returns true if epoll might be available. (Caller must still test withepoll_create.) Don't skip the vibe check.$epfd = epoll_create([ $start_size ])β creates a new epoll filedescriptor. Returns-1if epoll isn't available.$rv = epoll_ctl($epfd, $op, $fd, $events)β see manpage forepoll_ctl.$count = epoll_wait($epfd, $max_events, $timeout, $arrayref)β see manpage forepoll_wait.$arrayrefis an arrayref to be modified with the items returned. The values put into$arrayrefare arrayrefs of[$fd, $state].
π sendfile support π
$ok = sendfile_defined()β returns true ifsendfileshould work on this operating system.$sent = sendfile($sock_fd, $file_fd, $max_send)β sends up to$max_sendbytes from$file_fdto$sock_fd. Returns bytes actually sent, or-1on error.
π COPYRIGHT π
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.
π¦ Contributing π¦
Want to contribute? See:
L<http://contributing.appspot.com/sys-syscall>
π WARRANTY π
This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND. No cap. π
π AUTHORS π
Brad Fitzpatrick <brad@danga.com> β iconic author behavior, fr fr. π
Mwah π β this Sys::Syscall(3) page is from perl v5.42.2, dated 2026-02-15, in the User Contributed Perl Documentation. Bye bestie! π«Ά
π¦ where this page comes from
- alpine 3.24: perl-sys-syscall-doc 0.25-r11 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms