delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
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" <woo_young AT hotmail DOT com> |
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 |
Message-ID: | <F106GJ2TUSzbAUfKRfc00013053@hotmail.com> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |