delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/29/12:16:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199911291714.LAA20853@hp2.xraylith.wisc.edu>
To: Corinna Vinschen <corinna AT vinschen DOT de>
cc: david Depere <ddepere AT cr2a-di DOT fr>,
"'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Problem URGENT with the argument F_SETOWN in the function fcntl
In-reply-to: Your message of "Mon, 29 Nov 1999 15:58:48 +0100."
<384294A8 DOT 45E14D42 AT vinschen DOT de>
Date: Mon, 29 Nov 1999 11:14:11 -0600
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>

Corinna Vinschen <corinna AT vinschen DOT de> writes:
> 
> F_SETOWN is in no way supported by Win32 so it's not possible to
> implement it. Nevertheless it's defined by POSIX, so it's part of
> the header. Maybe, it should be erased there...

As far as I know, F_SETOWN is a BSD thing, and not in the POSIX specs
(I have the older one, don't know if the newest one has it). POSIX
has asynchronous I/O (aio_*), so these BSD features are not really
needed. Of course, quite a few of the so called POSIX systems do not
yet support POSIX asynchronous I/O.

Here's some info from one of the Linux docs:

  Only the operations F_DUPFD,  F_GETFD,  F_SETFD,  F_GETFL,  F_SETFL,  
  F_GETLK, F_SETLK  and  F_SETLKW  are specified in POSIX.1; F_GETOWN
  and F_SETOWN are BSDisms not supported in SVr4.

For now, I agree with Corinna's workaround, but we need a better fix, 
and my opinion is to get rid of the macro to avoid configure scripts
from guessing incorrectly. Then we can code is with:
  
  #ifdef F_SETOWN
    fcntl (...);
  #endif

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019