Page MenuHomeFreeBSD

closefrom: always use close_range(2)
ClosedPublic

Authored by brooks on Jun 6 2025, 7:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 11:07 PM
Unknown Object (File)
Mon, Oct 13, 2:01 PM
Unknown Object (File)
Thu, Oct 9, 9:31 PM
Unknown Object (File)
Wed, Oct 8, 6:19 AM
Unknown Object (File)
Sat, Oct 4, 2:19 AM
Unknown Object (File)
Fri, Oct 3, 4:55 PM
Unknown Object (File)
Tue, Sep 30, 1:57 AM
Unknown Object (File)
Sep 10 2025, 1:55 AM
Subscribers

Details

Summary

close_range(2) was added prior to 13.0. There is no need to support
a new userspace on such an old kernel.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks requested review of this revision.Jun 6 2025, 7:31 PM
kevans added inline comments.
lib/libc/sys/closefrom.c
28–29

Presumably this can be GCed, too

This revision is now accepted and ready to land.Jun 6 2025, 8:03 PM
This revision now requires review to proceed.Jun 6 2025, 8:25 PM
This revision is now accepted and ready to land.Jun 6 2025, 8:54 PM
This revision was automatically updated to reflect the committed changes.