delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/11/10:40:26

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: <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=-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 <houder AT xs4all DOT nl>
Subject: Re: Pipes Again -- a simple test case
Date: Mon, 11 Jan 2016 15:35:24 +0000 (UTC)
Lines: 51
Message-ID: <loom.20160111T162817-628@post.gmane.org>
References: <0aebd09993901f3ef3ff728d162952cd AT xs4all DOT nl> <568A32BE DOT 4080101 AT gmail DOT com> <c7ebcc77c3ee94c4a81c48ebbdc81de9 AT xs4all DOT nl> <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
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Corinna Vinschen <corinna-cygwin <at> 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

- Raw text -


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