delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/21/14:42:19

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
Date: Wed, 21 Jan 2004 14:42:28 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Missing /dev
Message-ID: <20040121194228.GC26884@redhat.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT LNX DOT 4 DOT 44 DOT 0401210841460 DOT 2918-100000 AT ashi DOT FootPrints DOT net> <Pine DOT GSO DOT 4 DOT 56 DOT 0401211423240 DOT 8640 AT slinky DOT cs DOT nyu DOT edu> <20040121193342 DOT GB26884 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <20040121193342.GB26884@redhat.com>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

On Wed, Jan 21, 2004 at 02:33:42PM -0500, Christopher Faylor wrote:
>On Wed, Jan 21, 2004 at 02:25:13PM -0500, Igor Pechtchanski wrote:
>>On Wed, 21 Jan 2004, Kaz Kylheku wrote:
>>
>>> This is a tiny little annoyance in Cygwin: various device paths exist,
>>> like your controlling terminal /dev/conin. However, there is no actual
>>> /dev directory in the filesystem.
>>>
>>> This confuses some programs that do parsing on the path rather than
>>> just pass the entire string to open(). E.g. CLISP's file I/O library:
>>>
>>> [6]> (with-open-file (f "/dev/conin" :direction :input) (read f))
>>>
>>> *** - nonexistent directory: #P"/dev/"
>>>
>>> The simple workaround is to ``mkdir /dev'', but would it be a bad idea
>>> for the Cygwin installer to create this directory?
>>
>>AFAIK, once Cygwin has proper mkdev, /dev will be a real directory.  Until
>>then, you can use the script from
>
>Cygwin has had a proper mk*nod* for a while, and, theoretically, it
>should have been working in 1.5.6, although I just tried it with the
>latest snapshot and it seems to be broken currently.

Actually, it seems to be working.  I stupidly tested it with an echo
from the windows command prompt, which didn't understand a cygwin
device.  This works fine:

  bash$ ls -l /dev/tty
  bash$ mknod foo c 5 0

  bash$ ls -l foo
  crw-rw-rw-    1 cgf      None       5,   0 Jan 21 14:39 foo
  bash$ echo hello > foo
  hello

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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