www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - mkfifo not implemented

reply Prem Sobel <premsobel earthlink.net> writes:
I am using the Digital Mars C/C++ compiler installed with 
dm852c.zip for Windows.

Function mkfifo() is in header file <sys/stat.h> but is NOT 
implemented in any of libraries (confirmed by: grep mkfifo -r 
c:/dm).

Is this an oversite? Was the static library accidentally left 
out, and is available for download? Can anyone recommend how to 
proceed? Thanks in advance.
Dec 28 2018
parent Adam D. Ruppe <destructionator gmail.com> writes:
On Friday, 28 December 2018 at 23:15:04 UTC, Prem Sobel wrote:
 Function mkfifo() is in header file <sys/stat.h> but is NOT 
 implemented in any of libraries (confirmed by: grep mkfifo -r 
 c:/dm).
I believe that function (indeed, that whole header file) is part of POSIX, which Windows isn't a part of. The function - as far as I know anyway - is not part of any standard Windows library. On Windows, you can call the CreateNamedPipe function https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-createnamedpipea Which does the same concept, though notice that on Unix, it is part of the filesystem, and on Windows, pipes have a separate namespace.
Dec 29 2018