Contents | < Browse | Browse >
LOCATE [-C] lock|filename

* "LOCATE lockadress" (lockadress is a BPTR) shows information about
  that lock structure. fl_Access must be -1 (write) or -2 (read).
* "LOCATE filename_or_dirname" gets an ACCESS_READ lock structure on
  that file/dir. (If you type -1 after the filename you should get
  an ACCESS_WRITE lock, but there seems to be an error in DOS !)
* "LOCATE -C lockadress" unlocks (removes) the lock structure.

eg.     locate &21f45c      {shows lock on adress $21f45c}
        locate $9f5b7       {shows lock with BPTR $9f5b7}
        locate -c $9f5b7    {removes this lock}
        locate ram:rdit     {tries to read-lock ram:rdit}
        locate ram:rdit -2  {same as above}
        locate c:mount -1   {got a write-lock on c:mount ?}