Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

closefrom — delete open file descriptors

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.

History

The closefrom() function first appeared in Solaris 9, OpenBSD 3.5, DragonFly 1.2, NetBSD 3.0, FreeBSD 8.0 and glibc 2.34. Debian June 12, 2009 closefrom(3bsd)

Library

Utility functions from BSD systems (libbsd, -lbsd)

Name

closefrom — delete open file descriptors

See Also

close(2)

Standards

closefrom() is a BSD and Solaris extension.

Synopsis

#include<unistd.h> (See libbsd(7) for include usage.) voidclosefrom(intlowfd);

See Also