Project

General

Profile

Actions

Bug #842

closed

network_writev.c makes invalid assumptions about writev

Added by Anonymous over 16 years ago. Updated over 15 years ago.

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

Actions #1

Updated by jan about 16 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

fixed in 1.4.12

Actions

Also available in: Atom