io_closeonexec(3)

io_closeonexec3

Mark a file descriptor non-inheritable

Usage

#include <libowfat/io.h>

void io_closeonexec(int64 fd);

Overview

io_closeonexec marks a file descriptor non-inheritable. It will be automatically closed if the process executes a different one. The descriptor will not be automatically closed when you fork() a new child process, though.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.