Skip to content

Add O_TMPFILE to Fcntl? #21694

@eserte

Description

@eserte

Fcntl is currently lacking O_TMPFILE which is available in recent Linux versions (3.11 and newer, possibly backported to some 3.10 e.g. CentOS 7). O_TMPFILE could be useful to implement temporary files which are guaranteed to be cleaned up after process exit (something which is not true for temporary files created by File::Temp). Currently one needs to use a CPAN module (e.g. Linux::TempFile) to make use of it, or use somehow h2ph, or hardcode the constant value.

Maybe it could also be systematically checked if there are other useful constants from fcntl.h which could be added to Fcntl.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions