Page MenuHomeFreeBSD

closefrom: always use close_range(2)
ClosedPublic

Authored by brooks on Jun 6 2025, 7:31 PM.
Tags
None
Referenced Files
F152198116: D50730.diff
Mon, Apr 13, 9:12 AM
F152119397: D50730.id156660.diff
Sun, Apr 12, 8:58 PM
Unknown Object (File)
Fri, Apr 10, 11:31 AM
Unknown Object (File)
Fri, Apr 10, 1:17 AM
Unknown Object (File)
Wed, Apr 8, 3:16 PM
Unknown Object (File)
Tue, Apr 7, 1:39 AM
Unknown Object (File)
Mon, Apr 6, 12:08 PM
Unknown Object (File)
Sun, Apr 5, 1:38 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.