From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85665 invoked by alias); 11 Jan 2016 15:40:10 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 85653 invoked by uid 89); 11 Jan 2016 15:40:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=filesystem, Device, FIFOs, hack X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 11 Jan 2016 15:40:08 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aIeZf-00019v-DP for cygwin@cygwin.com; Mon, 11 Jan 2016 16:40:03 +0100 Received: from a83-162-234-136.adsl.xs4all.nl ([83.162.234.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jan 2016 16:40:03 +0100 Received: from houder by a83-162-234-136.adsl.xs4all.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jan 2016 16:40:03 +0100 To: cygwin@cygwin.com From: Henri Subject: Re: Pipes Again -- a simple test case Date: Mon, 11 Jan 2016 15:47:00 -0000 Message-ID: References: <0aebd09993901f3ef3ff728d162952cd@xs4all.nl> <568A32BE.4080101@gmail.com> <20160108151933.GI20447@calimero.vinschen.de> <83235106e7ed2fcfde26293d156be51d@xs4all.nl> <20160108163055.GK20447@calimero.vinschen.de> <20160111115523.GD32610@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00112.txt.bz2 Corinna Vinschen cygwin.com> writes: > > > As a final point, I also tested FIFOs and (unix domain) sockets. > > > > > > FIFOs pass the test, sockets do not. > > > > Yes, that's expected. The underlying hack^Wmethod is the same for sockets > > and pipes, while FIFOs have a real path on a real filesystem and thus have > > a real inode number to fetch in stat/fstat. > > I applied a patch to make this work. Please give the latest developer > snapshot from https://cygwin.com/snapshots/ a try. Thank you! Down with flue on this side. Did a quick verification (32-bits Cygwin). Pipes look good. The problem with cmp apperas to be gone. Sockets still leave wanting, as shown here: @@ ./t_henri 1st socket ... /proc/4896/fd/3 (symbolic link to the socket) ... socket:[252] (target of symbolic link to the socket) ... using stat() on symbolic link: /proc/4896/fd/3 File type: socket Device containing i-node: (1e0000) major=30 minor=0 I-node number: 38037da0d28c3faf - decimal: 4036207820734742447 File size: 0 bytes ... using fstat() File type: socket Device containing i-node: (1e0000) major=30 minor=0 I-node number: 1 - decimal: 1 File size: 0 bytes 2nd socket ... /proc/4896/fd/4 (symbolic link to the socket) ... socket:[272] (target of symbolic link to the socket) ... using stat() on symbolic link: /proc/4896/fd/4 File type: socket Device containing i-node: (1e0000) major=30 minor=0 I-node number: 38037da2d3885eb1 - decimal: 4036207829341200049 File size: 0 bytes ... using fstat() File type: socket Device containing i-node: (1e0000) major=30 minor=0 I-node number: 2 - decimal: 2 File size: 0 bytes @@ Regards, Henri -- 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