Le mardi 20 juillet 2010 à 09:26 +0100, Roy Marples a écrit :Is it for the dhcpcd problem we talk about few week ago, disturbed by new 64bit stats ? Why do you want to have a fixed size of 256 bytes ? Using 8192 bytes on stack would avoid MSG_TRUNK mess. static int get_netlink(int fd, int flags, int (*callback)(struct nlmsghdr *)) { char buffer[8192]; ssize_t bytes; struct nlmsghdr *nlm; int r = -1; for (;;) { bytes = recv(fd, buffer, sizeof(buffer), flags); if (bytes == -1) { if (errno == EAGAIN) { r = 0; goto eexit; } if (errno == EINTR) continue; goto eexit; } -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | Og dreams of kernels |
| Jens Axboe | [PATCH 31/33] Fusion: sg chaining support |
| Arnd Bergmann | Re: finding your own dead "CONFIG_" variables |
| Mark Brown | [PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset |
| Tony Breeds | [LGUEST] Look in object dir for .config |
git: | |
| Brian Downing | Re: Git in a Nutshell guide |
| John Benes | Re: master has some toys |
| Matthias Lederhofer | <
