tools: add AT_FDCWD and extend exports

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-11-08 11:06:11 +01:00 committed by Thomas Lamprecht
parent 34fe939242
commit 1b0bc6c0ab

View File

@ -50,6 +50,14 @@ file_copy
get_host_arch
O_PATH
O_TMPFILE
AT_EMPTY_PATH
AT_FDCWD
CLONE_NEWNS
CLONE_NEWUTS
CLONE_NEWIPC
CLONE_NEWUSER
CLONE_NEWPID
CLONE_NEWNET
);
my $pvelogdir = "/var/log/pve";
@ -86,7 +94,8 @@ use constant {CLONE_NEWNS => 0x00020000,
use constant {O_PATH => 0x00200000,
O_TMPFILE => 0x00410000}; # This includes O_DIRECTORY
use constant {AT_EMPTY_PATH => 0x1000};
use constant {AT_EMPTY_PATH => 0x1000,
AT_FDCWD => -100};
sub run_with_timeout {
my ($timeout, $code, @param) = @_;