pike.git / src / modules / _Stdio / file.c

version» Context lines:

pike.git/src/modules/_Stdio/file.c:2345: Inside #if defined(TCP_NODELAY)
  {    int fd = FD;    int state = 1;       if(fd < 0)    Pike_error("File not open.\n");       get_all_args("set_nodelay", args, ".%d", &state);       if (state && state != 1) { -  SIMPLE_BAD_ARG_ERROR("set_nodelay()", 1, "int(0..1)"); +  SIMPLE_ARG_TYPE_ERROR("set_nodelay()", 1, "int(0..1)");    }       errno = 0;    while ((fd_setsockopt(fd, IPPROTO_TCP, TCP_NODELAY,    &state, sizeof(state)) < 0) &&    (errno == EINTR)) {    errno = 0;    }    if (errno) {    ERRNO = errno;