--- Linux-Clone/Clone.pm 2016/08/24 03:34:24 1.2 +++ Linux-Clone/Clone.pm 2017/11/02 07:31:16 1.3 @@ -1,6 +1,6 @@ =head1 NAME -Linux::Clone - an interface to the linux clone(2) and unshare(2) syscalls +Linux::Clone - an interface to the linux clone, unshare, setns, pivot_root and kcmp syscalls =head1 SYNOPSIS @@ -145,10 +145,26 @@ Calls setns(2) on the file descriptor (or file handle) C<$fh_or_fd>. If C<$nstype> is missing, then C<0> is used. -At the time of this writing, C<$nstype> can be C<0>, C, +The argument C<$nstype> can be C<0>, C, C, C, C, C, C or C. +=item Linux::Clone::pivot_root $new_root, $old_root + +Calls pivot_root(2) - refer to its manpage for details. + +=item Linux::Clone::kcmp $pid1, $pid2, $type[, $idx1, $idx2] + +Calls kcmp(2) - refer to its manpage for details on operations. + +The following C<$type> constants are available if the kcmp syscall number +was available during compilation: + +C, C, C, +C, C, C and +C. + + =back =cut @@ -158,7 +174,7 @@ # use common::sense; BEGIN { - our $VERSION = '1.0'; + our $VERSION = '1.1'; require XSLoader; XSLoader::load (__PACKAGE__, $VERSION);