This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Device numbers, Cygwin vs. Linux


I'm working on /proc/devices, but upon comparing to Linux[1], 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?


Yaakov

[1] http://www.kernel.org/pub/linux/docs/device-list/devices-2.6+.txt

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]