closefrom(3)

closefrom3

Delete open file descriptors

Usage

#include <bsd/unistd.h>

void

closefrom(int lowfd);

Library

library “libbsd”

Overview

The closefrom() system call deletes all open file descriptors greater than or equal to lowfd from the per-process object reference table. Any errors encountered while closing file descriptors are ignored.

Releases

Unchanged in 3 releases since Debian 7 (Wheezy).

  1. 7–9

History

The closefrom() function first appeared in FreeBSD 8.0.

From libbsd-dev 0.8.3-1 in Debian 9 (Stretch). Parsed by carta from the page's mdoc source.