Re: creating a temporary fifo (tmpfile but for fifo)

2017-02-17 Thread Anonymouse via Digitalmars-d
On Thursday, 16 February 2017 at 17:49:07 UTC, John Colvin wrote: For some reason it doesn't seem to be on the website, but the source is here to read: https://github.com/dlang/druntime/blob/master/src/core/sys/posix/stdlib.d Use the Source, Luke!

Re: creating a temporary fifo (tmpfile but for fifo)

2017-02-16 Thread Timothee Cour via Digitalmars-d
> I believe the recommended function for this is mkstemp. [1] Mkstemp creates a regular file, not a fifo >> * could we allow specifying a directory name for tmpfile? > Yes, using mkdtemp. [2] I meant adding a D api to add a temp file rooted under a specified directory; the C api's allow that

Re: creating a temporary fifo (tmpfile but for fifo)

2017-02-16 Thread John Colvin via Digitalmars-d
On Thursday, 16 February 2017 at 17:27:51 UTC, Paul Backus wrote: On Tuesday, 14 February 2017 at 03:15:53 UTC, Andrei Alexandrescu wrote: On 2/13/17 12:12 PM, Paul Backus wrote: [...] Note that these functions are part of POSIX but not C99, and are not included in D's core.stdc module. [1]

Re: creating a temporary fifo (tmpfile but for fifo)

2017-02-16 Thread Paul Backus via Digitalmars-d
On Tuesday, 14 February 2017 at 03:15:53 UTC, Andrei Alexandrescu wrote: On 2/13/17 12:12 PM, Paul Backus wrote: [...] Note that these functions are part of POSIX but not C99, and are not included in D's core.stdc module. [1] http://man7.org/linux/man-pages/man3/mkstemp.3.html [2]

Re: creating a temporary fifo (tmpfile but for fifo)

2017-02-13 Thread Andrei Alexandrescu via Digitalmars-d
On 2/13/17 12:12 PM, Paul Backus wrote: 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 (

Re: creating a temporary fifo (tmpfile but for fifo)

2017-02-13 Thread Paul Backus via Digitalmars-d
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 ( http://man7.org/linux/man-pages/man3/tempnam.3.html) I believe the

creating a temporary fifo (tmpfile but for fifo)

2017-02-12 Thread Timothee Cour via Digitalmars-d
* 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 ( http://man7.org/linux/man-pages/man3/tempnam.3.html) * could we allow specifying a directory name for tmpfile?