This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Named pipes problem
- From: egor duda <deo at logos-m dot ru>
- To: "Chris" <mtp500 at excite dot com>
- Cc: cygwin at cygwin dot com
- Date: Thu, 10 Oct 2002 10:36:00 +0400
- Subject: Re: Named pipes problem
- Organization: deo
- References: <ao2e5f$77d$1@main.gmane.org>
- Reply-to: egor duda <cygwin at cygwin dot com>
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/