X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 22 Dec 2008 14:13:36 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Named pipes (blocking problem)
Message-ID: <20081222191336.GC23447@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <005b01c96455$6c6bed60$4001a8c0@mycomputer> <2ca21dcc0812220903k38b8923v892f508b2ec55620@mail.gmail.com> <20081222172855.GB27364@ednor.casa.cgf.cx> <002001c96462$6a46d790$4001a8c0@mycomputer> <20081222184129.GA23447@ednor.casa.cgf.cx> <007d01c96468$2fb2e780$4001a8c0@mycomputer>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <007d01c96468$2fb2e780$4001a8c0@mycomputer>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Note-from-DJ: This may be spam

On Mon, Dec 22, 2008 at 07:04:59PM -0000, John Emmas wrote:
> ----- Original Message ----- From: "Christopher Faylor"
> Sent: 22 December 2008 18:41
> Subject: Re: Named pipes (blocking problem)

Why are you duplicating the subject in the body of the message?

>>Cygwin tries to emulate linux/POSIX.  CreateNamedPipe is not a
>>linux/POSIX function.  Cygwin does not implement Windows functions.
>>So, no, Cygwin does not implement its own versions of CreateNamedPipe
>>or ReadFile.
>>
>>As I suggested, if you want to build a pure Windows program, you
>>shouldn't be using Cygwin.  Use MinGW instead - http://mingw.org/ .
>>
>Thanks for the clarification.  As it happens, the program is jackdmp
>for which (I believe) MinGW binaries are available.  However, in this
>case, my client apps would be Cygwin programs.

They can't really be full Cygwin programs if they are using ReadFile and
CreateNamedPipe.  If you mix Cygwin I/O with Windows I/O there is always
the potential for problems.

>Can Cygwin's compiler successfully cross-link to MinGW binaries (libs)?
>I've never tried although I've occasionally tried to cross-link a
>Cygwin executable to a lib compiled using Visual C++.  The results have
>tended to be very hit-and-miss.  The link seemed to work okay but the
>resulting app would often misbehave (e.g.  at run time, Windows might
>complain that the procedure entry point for one or more functions
>couldn't be found).

http://cygwin.com/faq/faq-nochunks.html#faq.programming.msvcrt-and-cygwin

If you are not doing "stdio" type I/O then you may be able to intermix
objects.  No guarantees.

cgf

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

