This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
[RFD]: fcntl call substituting `setmode'
- To: cygdev <cygwin-developers at sourceware dot cygnus dot com>
- Subject: [RFD]: fcntl call substituting `setmode'
- From: Corinna Vinschen <corinna at vinschen dot de>
- Date: Tue, 16 May 2000 22:15:32 +0200
- Organization: Cygnus Solutions, a Red Hat Company
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