| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| Date: | Thu, 10 Oct 2002 10:36:00 +0400 |
| From: | egor duda <deo AT logos-m DOT ru> |
| Reply-To: | egor duda <cygwin AT cygwin DOT com> |
| Organization: | deo |
| X-Priority: | 3 (Normal) |
| Message-ID: | <46490158340.20021010103600@logos-m.ru> |
| To: | "Chris" <mtp500 AT excite DOT com> |
| CC: | cygwin AT cygwin DOT com |
| Subject: | Re: Named pipes problem |
| In-Reply-To: | <ao2e5f$77d$1@main.gmane.org> |
| References: | <ao2e5f$77d$1 AT main DOT gmane DOT org> |
| MIME-Version: | 1.0 |
Hi!
Thursday, 10 October, 2002 Chris mtp500 AT excite DOT 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 AT logos-m DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |