Date: Mon, 2 Jun 2008 08:46:14 -0600 From: John E Hein <jhein@timing.com> To: Ed Schouten <ed@80386.nl> Cc: freebsd-emulation@freebsd.org, philip@freebsd.org Subject: Re: Linux major/minor conversion not entirely correct Message-ID: <18500.1974.681847.564212@gromit.timing.com> In-Reply-To: <20080602073152.GO64397@hoeg.nl> References: <20080602073152.GO64397@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
Ed Schouten wrote at 09:31 +0200 on Jun 2, 2008:
> + /*
> + * Linux checks major and minors of the slave device
> + * to make sure it's a pty device, so let's make him
> + * believe it is.
> + */
> + devno = strtoul(node + strlen("pts/"), NULL, 10);
> + *major = 136 + (devno / 256);
> + *minor = devno % 256;
> + return 0;
Where does the magic number 136 come from?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18500.1974.681847.564212>
