creating a temporary fifo (tmpfile but for fifo)

Paul Backus via Digitalmars-d digitalmars-d at
Mon Feb 13 09:12:19 PST 2017

On Sunday, 12 February 2017 at 11:47:26 UTC, Timothee Cour wrote:
> * std.stdio.tempfile creates an (unnamed) File. How do I create 
> a temporary
> fifo instead?
> my workaround is to use tempnam but docs says it's not 
> recommended (

I believe the recommended function for this is mkstemp. [1]

> * could we allow specifying a directory name for tmpfile?

Yes, using mkdtemp. [2]

Note that these functions are part of POSIX but not C99, and are 
not included in D's core.stdc module.


More information about the Digitalmars-d mailing list