At 03:28 PM 1/24/98 -0500, Booth Martin wrote:
>How do I find out if a file is locked?  I would like the first action in a
>CL program to be to check and see if a file is locked, and if it is, turn
>on Indicator 31.  

Booth,

Just try to allocate the file yourself with a wait of 0 seconds. If the 
allocation fails, the escape message will tell you why (there are other reasons 
that an allocation request can fail).

hth
Pete


Pete Hall
peteh@inwave.com 
http://www.inwave.com/~peteh/

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].