X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Subject: Re: Device numbers, Cygwin vs. Linux From: "Yaakov (Cygwin/X)" To: cygwin Date: Wed, 03 Aug 2011 23:31:54 -0500 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Message-ID: <1312432315.5932.3.camel@YAAKOV04> Mime-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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, 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? Yaakov -- 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