This is the mail archive of the
mailing list for the Cygwin project.
Re: Device numbers, Cygwin vs. Linux
On Wed, Aug 03, 2011 at 11:31:54PM -0500, Yaakov (Cygwin/X) wrote:
>On Wed, 2011-08-03 at 21:33 -0500, Yaakov (Cygwin/X) wrote:
>> I'm working on /proc/devices, but upon comparing to Linux, I
>> noticed some differences in character device numbering:
>> * /dev/tty
>> Linux is 5,0, Cygwin is 3,0
>> * /dev/tty[N]
>> Linux is 4,[N], Cygwin 136,N (major 136 is /dev/pts/N on Linux)
>> * /dev/console
>> Linux is 5,1, Cygwin is 3,0 (same as /dev/tty !)
>> * /dev/ttyS[N]
>> Linux is 4,[N+64], Cygwin is 117,[N]
>> Why these differences?
>* /dev/clipboard and /dev/windows are in major device 13, which on Linux
>is for input devices (joysticks, mice, event queues). Wouldn't major
>device 10 ("misc") be a better place for them?
I believe that one of the reasons I didn't change the numbers is that
I didn't know if anything was relying on them.
As much as I like linux compatibility I don't see any reason to change
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple