i386: use socketcall even if newer linux exposes direct syscalls
commite89e3af8f64bded3920f046fb8db2b95a188ff55
authorWaldemar Brodkorb <wbx@openadk.org>
Fri, 13 Nov 2015 05:13:42 +0000 (13 06:13 +0100)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Fri, 13 Nov 2015 05:22:30 +0000 (13 06:22 +0100)
tree187ccbb765e8b4622c9f560f3b665882cb475d7f
parent1780cf1823bc36a9588b86c87f965bd298c2b4f9
i386: use socketcall even if newer linux exposes direct syscalls

The changeset 9dea5dc921b5f4045a18c63eb92e84dc274d17eb in the Linux kernel
expose the direct syscalls for sockets. For example udhcpc then will use sendto
syscall directly and get an EINVAL error. Disable direct syscalls as it was done
for SPARC in the past. Musl and GNU libc are not affected, as they already
disable direct socket syscalls on i386.

Reported-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
libc/inet/socketcalls.c