mkfifo

Synopsis

(mkfifo path mode)

Parameters

  • path
  • mode

Description

This procedure calls the C-library function mkfifo() with the supplied arguments.

Side Effects

If sucessful, a new FIFO has been created. In case of an error errno is set.

Return Value

On success #t is returned, otherwise #f.

See Also

Example

> (mkfifo "/tmp/fifo" #o600)
#t
> (system "ls -l /tmp/fifo")
prw-------  1 p  wheel  0 Oct  3 11:28 /tmp/fifo
0
> (mkfifo "/tmp/fifo" #o600)
#f
> (strerror (errno))
"File exists"
>