Adding file descriptor attribute(s) to gcc and glibc
David Malcolm
dmalcolm@redhat.com
Wed Jul 13 19:26:37 GMT 2022
On Wed, 2022-07-13 at 14:30 -0300, Adhemerval Zanella Netto wrote:
>
>
> On 13/07/22 14:16, Paul Eggert wrote:
> > On 7/13/22 09:55, David Malcolm via Libc-alpha wrote:
> > > Are there other ways to close a FD other than calling
> > > "close" on it?
> >
> > Yes, there's close_range(2).
>
>
> And closefrom (as a BSD extension supported by glibc).
>
Thanks!
I don't think it makes sense to try to express the behavior of these
two via attributes, so I've filed:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106283
as an RFE to capture (eventually) special-casing them within gcc's -
fanalyzer (e.g. to avoid false "leak" reports)
Dave
More information about the Libc-alpha
mailing list