devfs
[Top] [All Lists]

Re: devfs & /var/lock

To: Aurelien Jarno <aurelien@xxxxxxxxxxx>, devfs@xxxxxxxxxxx
Subject: Re: devfs & /var/lock
From: Russell Coker <russell@xxxxxxxxxxxx>
Date: Tue, 26 Feb 2002 16:31:21 +0100
In-reply-to: <E16fff7-00012o-00@localhost>
References: <E16fff7-00012o-00@localhost>
Reply-to: Russell Coker <russell@xxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
On Tue, 26 Feb 2002 12:20, Aurelien Jarno wrote:
> I am currently writing a small application using the serial port. To
> respect standards, my application create a file in /var/lock, for example
> /var/lock/LCK..ttyS0
>
> What is the standard when using devfs and devices in /dev/tts ?
> /var/lock/LCK..tts0 ?

Most code is using /var/lock/LCK..0, which will work OK as long as only 
serial ports are locked.  We need something better though.  Maybe 
/var/lock/...tts.0 (and as a general rule make it /var/lock/...ZZ where ZZ is 
the device name with /dev/ stripped off and all '/' characters replaced by 
'.' characters)?

-- 
Signatures >4 lines are rude.  If you send email to me or to a mailing list
that I am subscribed to which has >4 lines of legalistic junk at the end
then you are specifically authorizing me to do whatever I wish with the
message (the sig won't be read).

<Prev in Thread] Current Thread [Next in Thread>