Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 10 Oct 2002 10:36:00 +0400
From: egor duda <deo@logos-m.ru>
Reply-To: egor duda <cygwin@cygwin.com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <46490158340.20021010103600@logos-m.ru>
To: "Chris" <mtp500@excite.com>
CC: cygwin@cygwin.com
Subject: Re: Named pipes problem
In-Reply-To: <ao2e5f$77d$1@main.gmane.org>
References: <ao2e5f$77d$1@main.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi!

Thursday, 10 October, 2002 Chris mtp500@excite.com wrote:

C> I have recently installed Cygwin (version 1.3.12-2) on Windows 2k (SP2) and
C> have been trying to evaluate by developing some small programs. One of these
C> uses named pipes. However none of the named pipes functions seem to work -
C> all return -1.

perror() is your friend.

C> Example:

C>  retcode = unlink ("aPipe");
    if (retcode) perror("unlink");
C>  retcode = mknod ("aPipe", S_IFIFO, 0);
    if (retcode) perror("mknod");
C>  retcode = chmod ("aPipe", 0660);
    if (retcode) perror("chmod");
C>  fd = open ("aPipe", O_RDONLY);
    if (fd < 0) perror("open");

C> return code for all functions is -1.

prints:

unlink: No such file or directory
mknod: Function not implemented
chmod: No such file or directory
open: No such file or directory

which should be sufficient to answer your question.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

