commit | c454e934d36193709aadba8e8e28739790086b95 | [log] [tgz] |
---|---|---|
author | Sam James <sam@gentoo.org> | Tue Dec 12 10:25:27 2023 +0000 |
committer | GitHub <noreply@github.com> | Tue Dec 12 11:25:27 2023 +0100 |
tree | ab546e682c4bd2be964d8eea9ddbc9fa630850ab | |
parent | 0d2fe6bab01541301abe98a23ee15a16f493fe74 [diff] |
gh-112970: Detect and use closefrom() when available (#112969) glibc-2.34 implements closefrom(3) using the same semantics as on BSD. Check for closefrom() in configure and use the check result in fileutils.c, rather than hardcoding a FreeBSD check. Some implementations of closefrom() return an int. Explicitly discard the return value by casting it to void, to avoid future compiler warnings. Signed-off-by: Sam James <sam@gentoo.org>