This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Add /proc/devices
On Thu, Aug 18, 2011 at 09:55:37PM +0200, Corinna Vinschen wrote:
>On Aug 18 13:50, Yaakov (Cygwin/X) wrote:
>> On Thu, 2011-08-04 at 00:20 -0500, Yaakov (Cygwin/X) wrote:
>> > This patchset implements /proc/devices[1]:
>> >
>> > The question is how to handle /dev/tty and /dev/console as the
>> > apparently vary now, per cgf's remarks on the main list.
>
>/dev/tty, /dev/console and /dev/ptmx have fixed major and minor numbers.
>But I see what you mean. While `ls -l /dev/tty' on Linux always returns
>with 5, 0 as major, minor, on Cygwin it returns with the major and minor
>numbers of the actual tty it refers to:
>
> $ tty
> /dev/tty2
> $ ls -l /dev/tty
> crw--w---- 1 corinna vinschen 136, 2 Aug 18 21:51 /dev/tty
>
>Same for /dev/console. Chris, is it tricky to return always the
>real major, minor pairs 5, 0 and 5, 1 for /dev/tty and /dev/console?
I think I mentioned this when /proc/devices was first proposed. I
changed this when I merged the console and tty handling more closely a
couple of months ago.
It's not impossible to fix. I'll get around to it eventually.
cgf