From: Nikodemus S. <tsi...@cc...> - 2004-04-12 15:42:00
|
On Mon, 5 Apr 2004, Christophe Rhodes wrote: > Given this, I propose the following instead. It is not completely > portable, in that POSIX does not specify the presence of /dev/fd/N; on > the other hand, the failure on systems which do not provide /dev/fd/N > (of the systems I was able to find, only Tru64) is not spectacular. I > haven't tested whether this builds, either. From correctness POV this would be OK, but as far as usefull behaviour is concerned /dev/pts/X is preferable to me: that can be usefully passed to another process, unlike /dev/fd/X. How about falling back to returning NIL if no unixoid filename usefull to another process is available (as with pipes)? Cheers, -- Nikodemus |