This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: [RFD]: fcntl call substituting `setmode'
- To: cygdev <cygwin-developers at sourceware dot cygnus dot com>
- Subject: Re: [RFD]: fcntl call substituting `setmode'
- From: Corinna Vinschen <corinna at vinschen dot de>
- Date: Tue, 16 May 2000 22:26:52 +0200
- Organization: Cygnus Solutions, a Red Hat Company
- References: <3921AC64.C20AB40B@vinschen.de>
- Reply-To: cygdev <cygwin-developers at sourceware dot cygnus dot com>
Corinna Vinschen wrote:
>
> 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);
> [...]
Perfect timing!
I just got a segmentation violation in `ash' when calling
`setmode'. In gdb I could see the reason: ash already has
an own function called `setmode'. :-}
Corinna