about summary refs log tree commit diff
path: root/posix/sysconf.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-09-28 18:55:49 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-09-28 18:55:49 +0200
commit5bf07e1b3a74232bfb8332275110be1a5da50f83 (patch)
treea6e60e0dfc2552654b35cdcce460ab099926785c /posix/sysconf.c
parent9874ca536b1d0662b1cea46af3ce09a4d42aeb32 (diff)
downloadglibc-5bf07e1b3a74232bfb8332275110be1a5da50f83.tar.gz
glibc-5bf07e1b3a74232bfb8332275110be1a5da50f83.tar.xz
glibc-5bf07e1b3a74232bfb8332275110be1a5da50f83.zip
Linux: Simplify __opensock and fix race condition [BZ #28353]
AF_NETLINK support is not quite optional on modern Linux systems
anymore, so it is likely that the first attempt will always succeed.
Consequently, there is no need to cache the result.  Keep AF_UNIX
and the Internet address families as a fallback, for the rare case
that AF_NETLINK is missing.  The other address families previously
probed are totally obsolete be now, so remove them.

Use this simplified version as the generic implementation, disabling
Netlink support as needed.
Diffstat (limited to 'posix/sysconf.c')
0 files changed, 0 insertions, 0 deletions