Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 7 Jun 2002 17:21:45 -0400 (EDT) From: David E Euresti To: Subject: fstat on sockets broken Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello, The following code returns with fstat: No such file or directory which is not what unix does. I can work around it but just thought I'd let you know. #include #include #include #include #include int main() { struct stat sbuf; int fd = socket(AF_INET, SOCK_STREAM, 0); if (fstat(fd, &sbuf) < 0) { printf("fstat: %s\n", strerror(errno)); exit(0); } } David -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/