From: timsuth@... (Tim Sutherland) Date: 2004-02-09T10:49:11+09:00 Subject: Re: mkfifo in Ruby 1.8? In article , Basile Starynkevitch [news] wrote: >Why is (the library call) mkfifo missing in Ruby 1.8? Is there a way >to do it simply (without coding the trivial C stub) in Ruby, other >than system("mkfifo #{path}") You could use the 'dl' library: require 'dl/import' module LIBC extend DL::Importable dlload 'libc.so.6' extern 'int mkfifo(char*, uint)' extern 'void perror(char*)' end if -1 == LIBC.mkfifo('foo', 007) LIBC.perror("mkfifo") end