Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Originating-IP: [156.153.255.126] From: "Wooyoung Kim" To: cygwin AT cygwin DOT com Subject: Is fcntl fully implemented in cygwin? Date: Tue, 26 Jun 2001 15:50:06 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 26 Jun 2001 22:50:06.0976 (UTC) FILETIME=[587ED000:01C0FE92] Hi, I am implementing a socket layer using cygwin, and want to have non-blocking socket i/o. To get a SIGIO siganl from O/S, I need to set the process id for a socket. But everytime fcntl is invoked, it returns -1. What is the problem? and what are the solutions ? Here is my code snippet. ... if (fcntl (ether_file, F_SETFL, FASYNC | O_NONBLOCK) < 0) { return errno; } if (fcntl (ether_file, F_SETOWN, getpid ()) == -1) { printf ("ERRNO %d\n", errno); return errno; } ... And I am getting "ERRNO 22" ... thanks for help. -wooyoung _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- 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/