{"id":16884820,"url":"https://github.com/bradfitz/sys-syscall","last_synced_at":"2025-04-11T12:24:35.692Z","repository":{"id":875064,"uuid":"617040","full_name":"bradfitz/sys-syscall","owner":"bradfitz","description":"Sys::Syscall -- access system calls that Perl doesn't normally provide access to","archived":false,"fork":false,"pushed_at":"2015-12-07T00:12:15.000Z","size":20,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T08:42:48.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://search.cpan.org/dist/Sys-Syscall/lib/Sys/Syscall.pm","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradfitz.png","metadata":{"files":{"readme":"README.pod","changelog":"CHANGES","contributing":"CONTRIBUTING.txt","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-04-19T01:07:49.000Z","updated_at":"2023-07-25T13:41:51.000Z","dependencies_parsed_at":"2022-08-16T11:15:26.568Z","dependency_job_id":null,"html_url":"https://github.com/bradfitz/sys-syscall","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fsys-syscall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fsys-syscall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fsys-syscall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fsys-syscall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradfitz","download_url":"https://codeload.github.com/bradfitz/sys-syscall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401493,"owners_count":21097328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T16:31:07.703Z","updated_at":"2025-04-11T12:24:35.648Z","avatar_url":"https://github.com/bradfitz.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=head1 NAME\n\nSys::Syscall - access system calls that Perl doesn't normally provide access to\n\n=head1 SYNOPSIS\n\n  use Sys::Syscall;\n\n=head1 DESCRIPTION\n\nUse epoll, sendfile, from Perl.  Mostly Linux-only support now, but\nmore syscalls/OSes planned for future.\n\n=head1 Exports\n\nNothing by default.\n\nMay export: sendfile epoll_ctl epoll_create epoll_wait EPOLLIN EPOLLOUT EPOLLERR EPOLLHUP EPOLL_CTL_ADD  EPOLL_CTL_DEL EPOLL_CTL_MOD\n\nExport tags:  :epoll and :sendfile\n\n=head1 Functions\n\n=head2 epoll support\n\n=over 4\n\n=item $ok = epoll_defined()\n\nReturns true if epoll might be available.  (caller must still test with epoll_create)\n\n=item $epfd = epoll_create([ $start_size ])\n\nCreate a new epoll filedescriptor.  Returns -1 if epoll isn't available.\n\n=item $rv = epoll_ctl($epfd, $op, $fd, $events)\n\nSee manpage for epoll_ctl\n\n=item $count = epoll_wait($epfd, $max_events, $timeout, $arrayref)\n\nSee manpage for epoll_wait.  $arrayref is an arrayref to be modified\nwith the items returned.  The values put into $arrayref are arrayrefs\nof [$fd, $state].\n\n=back\n\n=head2 sendfile support\n\n=over 4\n\n=item $ok = sendfile_defined()\n\nReturns true if sendfile should work on this operating system.\n\n=item $sent = sendfile($sock_fd, $file_fd, $max_send)\n\nSends up to $max_send bytes from $file_fd to $sock_fd.  Returns bytes\nactually sent, or -1 on error.\n\n=back\n\n=head1 COPYRIGHT\n\nThis module is Copyright (c) 2005 Six Apart, Ltd.\n\nAll rights reserved.\n\nYou may distribute under the terms of either the GNU General Public\nLicense or the Artistic License, as specified in the Perl README file.\nIf you need more liberal licensing terms, please contact the\nmaintainer.\n\n=head1 Contributing\n\nWant to contribute?  See:\n\n  L\u003chttp://contributing.appspot.com/sys-syscall\u003e\n\n=head1 WARRANTY\n\nThis is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.\n\n=head1 AUTHORS\n\nBrad Fitzpatrick \u003cbrad@danga.com\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradfitz%2Fsys-syscall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradfitz%2Fsys-syscall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradfitz%2Fsys-syscall/lists"}