something strange with devices

John Vincent jpv50@hotmail.com
Fri Jun 21 07:12:00 GMT 2002


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@JOHNS-2ND-STAR ~
$ cd /dev

Administrator@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/



More information about the Cygwin mailing list