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

From: sin <sin_AT_2f30.org>
Date: Sun, 26 Jan 2014 10:46:09 +0000

On Sun, Jan 26, 2014 at 08:03:44AM +0100, Jens Staal wrote:
> On Sat, 25 Jan 2014 22:59:03 +0000
> sin <sin_AT_2f30.org> wrote:
>
> > 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.
>
> No idea if it is desirable to support, but Plan9/APE is missing makedev
> and "major" and "minor".

Hm yes.

I did a quick grep through sys/src/ape and apparently tar does the
following:

            switch (hdrbuf[156]) {
            case BLKTYPE:
            case CHRTYPE:
#ifndef _POSIX_SOURCE
                asb->sb_rdev = makedev(from_oct(8, &hdrbuf[329]),
                                      from_oct(8, &hdrbuf[337]));
#endif
                break;
            default:
                /* do nothing... */
                break;
            }
Received on Sun Jan 26 2014 - 11:46:09 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 26 2014 - 11:48:07 CET