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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:871:    do {    i = fd_fstat(fd, &st);    } while ((i < 0) && (errno == EINTR));       errno = orig_errno;    if (i < 0) return open_mode|FILE_CAPABILITIES;       switch(st.st_mode & S_IFMT) {    default:    return open_mode | FILE_CAPABILITIES; + #ifdef PIPE_CAPABILITIES    case S_IFIFO:    return open_mode | PIPE_CAPABILITIES; -  + #endif    case S_IFSOCK:    break;    }       addr.sa.sa_family = AF_INET; /* Paranoia, since we don't look at len. */       do {    len = sizeof(addr);    i = fd_getsockname(fd, &addr.sa, &len);    } while ((i < 0) && (errno == EINTR));