From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 0085B3858C53; Sat, 26 Aug 2023 14:28:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0085B3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1693060135; bh=tsUPuqNNKeVssyFwVZw19tE2kxIT2GAjl5itYrISEUA=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=LBCI2etGUHugVnx25S3BpJCqZkYx1/OiYM1KoTT73se6KXASN3naWoqTOE93MLvME X/nXUfOlTsrpdUc5prQOgzP8Gz75Ej072prj1lTBgSwxeHKPlZqctnxlRUYDK+d0oJ UVqOuESK6C9QAJL/T1Ioo+hdNkLHz+Xi1A4VgtXU= Received: by calimero.vinschen.de (Postfix, from userid 500) id 4C130A80CAB; Sat, 26 Aug 2023 16:28:53 +0200 (CEST) Date: Sat, 26 Aug 2023 16:28:53 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: On Aug 25 23:21, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: > > it is not possible to diffentiate between Cygwin > > FIFOs and real FIFOs created from the remote side in `ls -l' > > output. > > Why would that be necessary? If it's a FIFO, it can be used as a > FIFO, regardless where and how it was created.. You don't seem to understand the problem. A Cygwin FIFO is not a real FIFO. We're running on Windows, right? Show me how to create a FIFO on NTFS or FAT by OS calls only, please. Cygwin's way of creating FIFOs is to create a Cygwin syumlink with special content which in turn is faked to be a FIFO when running Cygwin's stat(2) call. Usually that's a Windows shortcut (one of the .lnk thingies), but on NFS we create a real symlink with weird content *accidentally*, because that's how we create symlinks on NFS, and nobody ever cared to that anyway. Again, there is no API to create native FIFOs on a remote NFS filesystem. But, ultimately, you're still right. If I can recognize a file as FIFO, I can use it as FIFO, regardless if it's a native FIFO or a Cygwin FIFO. This just isn't done yet. Corinna