---
name: "closefrom"
section: "3"
platform: "linux"
package: "libbsd-dev"
version: "0.8.3-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/closefrom/3"
---

# closefrom(3)

delete open file descriptors

## NAME

**closefrom** – delete open file descriptors

## LIBRARY

library “libbsd”

## SYNOPSIS

**#include \<bsd/unistd.h\>**

*void*\

**closefrom**(*int lowfd*);

## DESCRIPTION

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.

## SEE ALSO

[close(2)](/close/2.md)

## HISTORY

The **closefrom**() function first appeared in FreeBSD 8.0.
