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:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=TaB49ivK0smPnzoJlyLBSu5qr2WV0Vklje9R011iowdVp8yEqHzI3 OJa3LPF1j/BodT8M7hHgkugZc5f9ny37O6vjHybjg2Rtze01Fp0A2io+/hZqpeLw 4PcdseJjfT04qyWC2oyvJfbhlpNzxd1r5ims51hLgrVvd8KmJWjG7E= 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:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=mLo182BvZICJBUhAzA1xS/jphGI=; b=x4g6tn608BL23jMjKgMgMp4ldM3d jtLXFyyuvfLZ0TWBIhgwd4vQJL5K5BDJYi8IUPnvd+zxiw+v1ws3F6H+zFscDeTi SLdGznICfJzQsQ6SbNjnJE7cT63Bd2/P/eJspLY7l4mK0jwO6IodeZPgjJKiVi4+ YX3N6lo82gkOQDo= 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=-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 To: cygwin AT cygwin DOT com From: Henri Subject: Re: Pipes Again -- a simple test case Date: Mon, 11 Jan 2016 15:35:24 +0000 (UTC) Lines: 51 Message-ID: References: <0aebd09993901f3ef3ff728d162952cd AT xs4all DOT nl> <568A32BE DOT 4080101 AT gmail DOT com> <20160108151933 DOT GI20447 AT calimero DOT vinschen DOT de> <83235106e7ed2fcfde26293d156be51d AT xs4all DOT nl> <20160108163055 DOT GK20447 AT calimero DOT vinschen DOT de> <20160111115523 DOT GD32610 AT calimero DOT vinschen DOT 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 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