On Sat, Jan 25, 2014 at 11:46:54PM +0100, Roberto E. Vargas Caballero wrote:
> > 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?
>
> Uhmm, it looks bad. If we want to be 100% POSIX complaint then we have to move
> mknod to ubase, and change the mknod system call of tar (and next archivers
> that
> could be implemented in sbase) to a system("mknod ...").
I am inclined to just keep these tools in sbase. Apparently Haiku
does not really use major/minor numbers for the devices (they are set
to 0).
> Other point is to think what is the number of system where makedev is not
> supported, because maybe the list is really small.
Not sure, but I'd expect most if not all the BSD/sysv systems to have
makedev(3). If anyone knows of any systems not having makedev(3) let
me know.
cheers,
sin