delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/25/11:25:03

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=mPQ
wd1JCAOLAXidmXAeGDF6YL9pgUWSt6jLI/QeBKeK9YkW7cgA2FJT91iWnayodOt4
tLvRFxjGkH3pFdazoj8rncpo2PhPpb3U8ke9UETSXZIrJZ/C8NQXJtZPghefY32/
SBYKJPPd6LkNK3bUDFQBFUYh+QgMQZjEZ/01AIiw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=ENOCXUMDt
0XZYDplMKOqgY1+7UE=; b=QSKMemNJWJsmfdPKXOfYBuOXVx9DEvRZFuCOredRG
Kzvd/BnIiZSMkyc4iP2gcWEQtDlUUItHSmKhLd2d8bjWJ/METV/6HCMvAg3W/TZK
S5QK4aAGW5zv4mL+BPjtXAKehCTdnPfBfU5nAz3eqrKKkW5EiIFbErMs35ryVFN3
Es=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: limerock02.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <54EDF74E.40207@cornell.edu>
Date: Wed, 25 Feb 2015 11:24:46 -0500
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: tcflush bug?
X-IsSubscribed: yes

While debugging a clisp problem, I encountered what I think is a bug in Cygwin's tcflush.  Here's an STC:

$ cat test_tcflush.c
#include <termios.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>

int
main ()
{
  if (tcflush (0, TCIFLUSH) == -1)
    fprintf (stderr, "Can't flush standard input: %s\n", strerror (errno));
  return 0;
}

$ gcc test_tcflush.c -o test_tcflush

$ ./test_tcflush.exe
Can't flush standard input: Resource temporarily unavailable

Am I misunderstanding how this should work, or is this a bug?

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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