POSIX::At ========= POSIX::At is a thin FFI::Platypus wrapper around the POSIX "at" family of filesystem syscalls (openat, fstatat, unlinkat, mkdirat, linkat, etc.). It exposes: - constants like AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR, ... - direct bindings to the underlying libc functions - openat() as a Perl-friendly wrapper returning IO::File or IO::Dir objects while still accepting those objects as dirfd arguments Typical usage: use POSIX::At qw(openat AT_FDCWD); use Fcntl qw(O_RDONLY O_DIRECTORY); my $dir = openat(AT_FDCWD, "subdir", O_RDONLY | O_DIRECTORY, 0) or die "openat subdir: $!"; my $fh = openat($dir, "file.txt", O_RDONLY, 0) or die "openat file.txt: $!"; See eg/rsync_at.pl for a more complete example of walking directory handles and copying files with the *at() calls. ----