This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Is fcntl fully implemented in cygwin?
- To: cygwin at cygwin dot com
- Subject: Is fcntl fully implemented in cygwin?
- From: "Wooyoung Kim" <woo_young at hotmail dot com>
- Date: Tue, 26 Jun 2001 15:50:06 -0700
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/