Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <01BF3507.A621A810.ddepere@cr2a-di.fr> From: david Depere To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: TR: Problem with the argument F_SETOWN in the function fcntl Date: Mon, 22 Nov 1999 16:35:54 +0100 X-Mailer: Messagerie Internet de Microsoft/MAPI - 8.0.0.4211 Encoding: 29 TEXT Hello The function fcntl used with the argument F_SETOWN return a value of -1 and the errno indicate that "the argument is invalid". However in the include file fcntl.h, this argument exist. (#define F_SETOWN 6 /* Set owner - for ASYNC */ ) Do you have found this problem already? fdsock = socket(AF_INET, SOCK_DGRAM, 0); if (fdsock == -1) return(-1); if (bind(fdsock,(struct sockaddr *) socket_addr, sizeof(socket_addr.socket_in))== -1) { close(fdsock); return(-1); } arg = getpid(); fcntl(fdsock, F_SETOWN, arg); /* PROBLEM */ See you soon! > )))(( > (. .) > + ----------ooO-(_)-Ooo----------- + > + David DEPERE + > + mailto:ddepere AT cr2a-di DOT fr + > + ----------------------------------- + -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com