delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/03/22:34:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
Date: Wed, 3 Aug 2011 21:33:32 -0500
Message-ID: <CAGvSfexx5=oMuY0QwDAOKdkwSsSAZ8BniVgBY75DV==i44_m_w@mail.gmail.com>
Subject: Device numbers, Cygwin vs. Linux
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019