IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2005, 9:11:15 PM (21 years ago)
Author:
eugene
Message:

cleaning up fsetlockfile / fclearlockfile (dropped setlockfile2/clearlockfile2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/doc/glockfile.txt

    r3538 r3649  
    3232 Error Conditions:
    3333
    34  on error, fsetlockfile returns NULL and clears the lock state of the
    35  file
     34 on error, fsetlockfile closes the file, closes the lockfile, and
     35 returns NULL.  In come cases, an empty file may be left behind
     36 (LCK_TIMEOUT, LCK_HARDOPEN, LCK_HARDLOCK, LCK_HARDLOCKHARD,
     37 LCK_HARDLOCKCLOSE)
    3638
    37  - invalid type
    38  - SOFT and file does not exist
    39  - file not accessible (cannot be opened)
    40  - lockfile not accessible
    41  - cannot lock lockfile (held by another user)
    42  - lockfile says 'BUSY' (previous holder crashed)
    43  - cannot unlock lockfile (file system error)
    44  - error writing 'BUSY' to lockfile
     39 - invalid type (LCK_INVALID)
     40   * no file created, no lock file created : OK
     41 - SOFT and file does not exist (LCK_EMPTY)
     42   * no file created, no lock file created : OK
     43 - file not accessible, cannot be opened (LCK_ACCESS)
     44   * no file created, no lock file created : OK
     45 - FS lock timed out (LCK_TIMEOUT)
     46   * new file is created, file is open, file is unlocked, lock file is not created : OK
     47 - lockfile not accessible (LCK_HARDOPEN)
     48   * new file is created, file is open, file is locked, lock file is not created : OK
     49 - cannot lock lockfile, held by another user (LCK_HARDLOCK)
     50   * new file is created, file is open, file is locked, lock file is created : OK
     51 - lockfile says 'BUSY', previous holder crashed (LCK_HARDLOCKHARD)
     52   * new file is created, file is open, file is locked, lock file exists, lock file locked : OK
     53 - error writing 'BUSY' to lockfile (LCK_HARDCLOSE)
     54   * new file is created, file is open, file is locked, lock file exists, lock file locked
    4555
Note: See TracChangeset for help on using the changeset viewer.