]> git.proxmox.com Git - pve-common.git/blame - src/PVE/Syscall.pm
fix #1819: fork_worker: ensure sync'ed workers control terminal
[pve-common.git] / src / PVE / Syscall.pm
CommitLineData
c8e94d4b
TL
1package PVE::Syscall;
2
3my %syscalls;
4BEGIN {
5 die "syscall.ph can only be required once!\n" if $INC{'syscall.ph'};
6 require("syscall.ph");
7 %syscalls = (
8 unshare => &SYS_unshare,
9 setns => &SYS_setns,
10 syncfs => &SYS_syncfs,
11 openat => &SYS_openat,
12 close => &SYS_close,
13 mkdirat => &SYS_mkdirat,
14 faccessat => &SYS_faccessat,
15 );
16};
17
18use constant \%syscalls;
19
20use base 'Exporter';
21
22our @EXPORT_OK = keys(%syscalls);