delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/05/16/16:20:34

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <3921AC64.C20AB40B@vinschen.de>
Date: Tue, 16 May 2000 22:15:32 +0200
From: Corinna Vinschen <corinna AT vinschen DOT de>
Organization: Cygnus Solutions, a Red Hat Company
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
Subject: [RFD]: fcntl call substituting `setmode'

Hi all,

I'm just using the `setmode' function and I wonder
if it wouldn't be a nice thing to have some sort of
fcntl call for that, eg.

	fcntl(fd, F_SETMODE, O_TEXT);

and a corresponding:

	int mode;
	fcntl(fd, F_GETMODE, &mode);

and -- because it's that nice -- a substitute for
`get_osfhandle()':

	HANDLE hdl;
	fcntl(fd, F_GETOSFHDL, &hdl);

I would like that more than the Windowish calls
and we could get rid of the io.h file for cygwin.
Not instantly of course.

Corinna

- Raw text -


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