Actions
Bug #842
closednetwork_writev.c makes invalid assumptions about writev
Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
Description
network_writev.c defines UIO_MAXIOV for various operating systems. In my case (IRIX 6.2), the value that was specified was incorrect, causing an EINVAL during a large writev.
I think the correct thing to do here is use sysconf to determine the correct value for the OS at runtime (since it can also vary).
Example:
#include <stdio.h> #include <unistd.h> int main(int argc, char **argv) { printf("_SC_IOV_MAX: %d\n", sysconf(_SC_IOV_MAX)); return 0; }
-- dustin
Updated by jan about 18 years ago
- Status changed from New to Fixed
- Resolution set to fixed
fixed in 1.4.12
Actions
Also available in: Atom