Hello,
On Sat, Oct 06, 2018 at 12:00:02PM +0200, devel-request(a)uclibc-ng.org wrote:
Message: 1
Date: Fri, 5 Oct 2018 07:48:40 -0600
From: Lance Fredrickson <lancethepants(a)gmail.com>
To: devel(a)uclibc-ng.org
Subject: [uclibc-ng-devel] Fwd: recvmmsg/sendmmsg not in kernel <
Linux 2.6.33
Message-ID: <fc65bbd1-8cfa-f4cb-9a5b-25e21a273494(a)gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Hi,
I'm having an issue where it seems recvmmsg/sendmmsg is being included
into the c library regardless of kernel version. I work with kernel
versions < 2.6.33 before this feature was included. When compiling
applications, autoconf is then mistakenly told from the c-library that
recvmmsg/sendmmsg is supported by the kernel, resulting in runtime
errors. I use buildroot to compile my toolchains.
Looking through uclibc-ng git, it looks like this feature was added with
this commit.
https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=6e15fafa200666…
+# ifdef __NR_recvmmsg
^^^^^^^^^^^^^
+ return (ssize_t)INLINE_SYSCALL(recvmmsg, 5, sockfd, msg, vlen, flags, tmo);
+# else
......
+ return (ssize_t)__socketcall(SYS_RECVMMSG, args);
+# endif
+}
You kernel define __NR_recvmmsg in unistd.h ?
Best Regards
Guo Ren