Re: [dev] [sbase] move mknod(1) to ubase

From: sin <sin_AT_2f30.org>
Date: Sat, 25 Jan 2014 11:03:19 +0000

On Sat, Jan 25, 2014 at 11:48:42AM +0100, Roberto E. Vargas Caballero wrote:
> > The current implementation of mknod(1) uses makedev(3) which apparently
> > is not POSIX and does not exist on some systems, such as Haiku.
>
> Is it possible use other function for it?. The problem is that makedev is
> also used in tar.

Quoting from the POSIX page on mknod(2).

"The only portable use of mknod() is to create a FIFO-special file. If
mode is not S_IFIFO or dev is not 0, the behavior of mknod() is unspecified."

So I suspect not. Any ideas?

cheers,
sin
Received on Sat Jan 25 2014 - 12:03:19 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 25 2014 - 12:12:07 CET