Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Subject: [RFD]: fcntl call substituting `setmode' Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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