eserte / Linux-TempFile

Creates a temporary file using O_TMPFILE

Home Page:https://metacpan.org/pod/Linux::TempFile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NAME

Linux::TempFile - Creates a temporary file using O_TMPFILE

SYNOPSIS

use Linux::TempFile;
my $file = Linux::TempFile->new;
# do something with $file (eg: print, chmod)
$file->link('/path/to/file');

DESCRIPTION

Linux::TempFile is a module to create a temporary file using O_TMPFILE.

This module is only available on GNU/Linux 3.11 or higher.

METHODS

  • Linux::TempFile->new([$dir])

    Creates a temporary file using O_TMPFILE.

    Returns an instance of this class (inherits IO::Handle).

  • $self->link($path)

    Creates a new filename linked to the temporary file by calling linkat(2).

SEE ALSO

File::Temp, IO::Handle, open(2), linkat(2)

LICENSE

Copyright (C) Jiro Nishiguchi.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Jiro Nishiguchi <jiro@cpan.org>

About

Creates a temporary file using O_TMPFILE

https://metacpan.org/pod/Linux::TempFile

License:Other


Languages

Language:Perl 86.2%Language:XS 13.8%