| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY |
| X-Spam-Check-By: | sourceware.org |
| X-Yahoo-SMTP: | jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o- |
| Date: | Thu, 4 Aug 2011 00:37:04 -0400 |
| From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Device numbers, Cygwin vs. Linux |
| Message-ID: | <20110804043704.GA2378@ednor.casa.cgf.cx> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <CAGvSfexx5=oMuY0QwDAOKdkwSsSAZ8BniVgBY75DV==i44_m_w AT mail DOT gmail DOT com> <1312432315 DOT 5932 DOT 3 DOT camel AT YAAKOV04> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <1312432315.5932.3.camel@YAAKOV04> |
| User-Agent: | Mutt/1.5.20 (2009-06-14) |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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[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?
>
>One more:
>
>* /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
them now.
cgf
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |