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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Z2c wOkzR3rjN5Co4zd/KZ+35IVdih34H+VPsYUmWxeg2ywNjF+kpPThf97Vqd2iq90C AhZoUB32dchssyYqMBkmIj/FFv6p6QeYjRiOKDk5SlxIjUmDH70rIs4eCmuvcl8v uAz6ngn0cgaLJR9UJbeqQUb1KHrDa7iKTii09e/A= 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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=UtSpOUKq0 kdRvmBCvLd666qAESY=; b=XOKtgSROfLW3zurgvCyH2nPjHJYFiaaUYdyBeLzJM WOzUT6WVQr/C0x2namjS0wmdWSs7/Tsd3XyQr9tqbjOJlhs52NGfEfX6pBgfLXxc tHaEE3BDM1cM4l/SuMJWsd49VRE5Rz06c+47Ewmr4kfBHJH+RhgRJYLnfjZ186XC d0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=nasty, beside, death, died X-HELO: eddie.starwolf.com To: cygwin AT cygwin DOT com From: Greywolf Subject: TIOCSTI or workaround? Message-ID: <16ace46e-4409-03b5-04b4-32974ae2aed3@starwolf.com> Date: Sun, 25 Jun 2017 20:58:36 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, I have a program I've writ which takes input and types on to other terminals; however, it seems that under Cygwin, TIOCSTI on a file descriptor doesn't work according to plan -- I get "Invalid argument", but I don't know why. Did a read on ioctl, and saw something about POSIX STREAMS. I thought that paradigm had died a mean nasty ugly death YEARS back, but I'm hoping that's entirely beside the point. Does there exist a way to successfully call ioctl(fd, TIOCSTI, (char *)cp) or is there a workaround? -- --*greywolf; -- 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