Lock file naming convention in Solaris 8

Lock file naming convention in Solaris 8

Post by Rob Stampf » Wed, 04 Dec 2002 11:22:20



When a program, like uucico, creates a lockfile in /usr/spool/locks
under Solaris 8, the name of the file is something like:

        LK.032.029.131073

I know 29 and 131073 are the major and minor device numbers for
the associated character device.

What is the "032"?

Rob

 
 
 

Lock file naming convention in Solaris 8

Post by Tony Walto » Wed, 04 Dec 2002 19:33:01



> When a program, like uucico, creates a lockfile in /usr/spool/locks
> under Solaris 8, the name of the file is something like:

>         LK.032.029.131073

> I know 29 and 131073 are the major and minor device numbers for
> the associated character device.

> What is the "032"?

Could be absolutely anything, from the age of the software writer to the
PID of the server, or a completely random value dependent on the phases
of the moon. There is no "lock file naming convention".

In the specific case of uucico and friends, the "032" is the major
number of the device where your character device resides (so pretty much
the "phases of the moon" thing, really). This is undocumented (I went
and had a look at the source) and as such should not be relied on to
remain the case - if the lock file format and/or content is undocumented
it's private and might change without warning.

--
Tony

 
 
 

1. name to lock file problem - solaris 7 & Oracle Web App

I'm getting the following error when trying to start the admin (or any)
http listener:
  Cannot assign name to lock file

System is Solaris 7 with Oracle Web Application Server 3.0.  I thought the
conflict was due to the default dwhttpd daemon (perhaps they shared the
same resource?) that installs with the Solaris 7 but turning it off didn't
make a difference.  

Does anybody know where the lock file sits or where there is documentation
that explains the problem?
Thanks.
--
Austin Holiday

2. TrendMicro InterScan VirusWall on Linux

3. Solaris Patches naming convention

4. PATCH: shared multimedia includes for saa71xx

5. Conventions for file name "extensions"

6. rh7.2 need to connect to novell environment, howto

7. Startup file naming convention

8. korn shell "set -A" question

9. Named file attributes (s9 and later) - any conventions?

10. Unix file naming conventions

11. Subject: SCO OPEN SERVER & WIN95 - file name conventions and other problems

12. Linux file/directory naming conventions

13. Dynamic Library File Naming Conventions ??