Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ islock(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

isunlock(S)


 islock(S)                      6 January 1993                      islock(S)


 Name

    islock - lock an ISAM file

 Syntax


    cc  . . .  -lisam


    islock (isfd)
    int isfd;


 Description

    The islock function locks an entire ISAM file so that other processes
    cannot write to the file.  You can use the following argument with this
    routine:


    _________________________________________________________________________
    Argument  Description
    _________________________________________________________________________

    isfd      File descriptor identifying the ISAM file to be locked.

    For a file to be locked with islock, the file must have been opened using
    the ISMANULOCK value of the mode parameter in isopen or isbuild.

    A file locked with islock can be unlocked with the isunlock function.  On
    success, islock returns 0.  Otherwise, it returns -1 and sets iserrno to
    indicate the error.

 Example


       islock(bookfd) ;


 See also

    isunlock(S)

 Standards conformance

    islock is not part of any currently supported standard; it is an exten-
    sion of AT&T System V provided by the Santa Cruz Operation.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026