delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/21/08:48:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Originating-IP: [195.224.233.3]
From: "John Vincent" <jpv50 AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: something strange with devices
Date: Fri, 21 Jun 2002 12:47:36 +0000
Mime-Version: 1.0
Message-ID: <F2306v3gc8HvDHoSPfd000226e7@hotmail.com>
X-OriginalArrivalTime: 21 Jun 2002 12:47:36.0418 (UTC) FILETIME=[D1CB6C20:01C21921]

Hi,

It seems strange to me that if I do "ls -l /dev/tty" on a standard
configuration I see details for a file, but if I do "ls -l /dev"
it's not there. I  thought it might be nice to have a real /dev
directory with real entries, so I tried to add some. Using the
cygwin file utilities I can make the /dev directory. but I can't
make the files because the "devices" already exist. However, if I
use windows utilities I can make the files. I have now got to the
point where I can so the following:

Administrator AT JOHNS-2ND-STAR ~
$ cd /dev

Administrator AT JOHNS-2ND-STAR /dev
$ ls -l
total 0
crw-rw-rw-    1 Everyone Everyone   1,   0 Jun 21 13:28 conin
crw-rw-rw-    1 Everyone Everyone   1,   0 Jun 21 13:28 conout
brw-rw-rw-    1 Everyone Everyone  17,   0 Jun 21 13:28 fd0
brw-rw-rw-    1 Everyone Everyone  17,   1 Jun 21 13:28 fd1
crw-rw-rw-    1 Everyone Everyone  22,   0 Jun 21 13:28 mem
crw-rw-rw-    1 Everyone Everyone  18, 128 Jun 21 13:28 nst0
crw-rw-rw-    1 Everyone Everyone  18, 129 Jun 21 13:28 nst1
crw-rw-rw-    1 Everyone Everyone  19,   0 Jun 21 13:28 null
crw-rw-rw-    1 Everyone Everyone  21,   8 Jun 21 13:28 random
brw-rw-rw-    1 Everyone Everyone  17,  16 Jun 21 13:28 scd0
brw-rw-rw-    1 Everyone Everyone  17,  17 Jun 21 13:28 scd1
brw-rw-rw-    1 Everyone Everyone  17,  32 Jun 21 13:28 sda
brw-rw-rw-    1 Everyone Everyone  17,  33 Jun 21 13:28 sda1
brw-rw-rw-    1 Everyone Everyone  17,  34 Jun 21 13:28 sda2
brw-rw-rw-    1 Everyone Everyone  17,  48 Jun 21 13:28 sdb
brw-rw-rw-    1 Everyone Everyone  17,  49 Jun 21 13:28 sdb1
brw-rw-rw-    1 Everyone Everyone  17,  50 Jun 21 13:28 sdb2
crw-rw-rw-    1 Everyone Everyone  18,   0 Jun 21 13:28 st0
crw-rw-rw-    1 Everyone Everyone  18,   1 Jun 21 13:28 st1
crw-rw-rw-    1 Everyone Everyone   5,   1 Jun 21 13:28 tty
crw-rw-rw-    1 Everyone Everyone   5,   0 Jun 21 13:28 tty0
crw-rw-rw-    1 Everyone Everyone   5,   1 Jun 21 13:28 tty1
crw-rw-rw-    1 Everyone Everyone   5,   2 Jun 21 13:28 tty2
crw-rw-rw-    1 Everyone Everyone   5,   3 Jun 21 13:28 tty3
crw-rw-rw-    1 Everyone Everyone   5,   4 Jun 21 13:28 tty4
crw-rw-rw-    1 Everyone Everyone   5,   5 Jun 21 13:28 tty5
crw-rw-rw-    1 Everyone Everyone   7,   0 Jun 21 13:28 ttyS0
crw-rw-rw-    1 Everyone Everyone   7,   0 Jun 21 13:28 ttyS1
crw-rw-rw-    1 Everyone Everyone   7,   0 Jun 21 13:28 ttyS2
crw-rw-rw-    1 Everyone Everyone  21,   9 Jun 21 13:28 urandom
crw-rw-rw-    1 Everyone Everyone  20,   0 Jun 21 13:28 zero

This is OK as far as it goes, but I'd like to have a complete list
of the device files supported. There seem to be several (inconsistent)
sets of file names in the cygwin dll if my reading of the source code
is right (but it may well not be!)

Can anyone provide an exhaustive list of the "devices" available
in the /dev directory ??

I'd also like to suggest as a complement to the "mkpasswd" and
"mkgroup" utilities, a "mkdevs" utility that created the /dev
directory and the device files in it - does anyone else think
that would be useful ?

Thanks
/John Vincent.


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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