You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Purpose

Used to lock records or files.

Arguments

Argument

Input/Output

Value

CODE

Input

5

 

Output

unchanged

BFS

Input

BFS List

 

Output

unchanged

HANDLE

Input

file handle

 

Output

unchanged

NAME

Input

record key, if a record is being locked.  Null, if a file is being locked.

 

Output

unchanged

FMC

Input

lock type

 

Output

unchanged

RECORD

Input

null

 

Output

lock semaphore

STATUS

Input

unassigned

 

Output

returns true if lock successful

 

 
  
The MFS should not alter the semaphore returned in the RECORD argument.  This information is used by the system to set lock information stored internally in the system.

Called by

BASIC+ LOCK statement

UNLOCK.RECORD

Purpose

Used to unlock a record or file set earlier with the LOCK.RECORD code.

Arguments

Argument

Input/Output

Value

CODE

Input

6

 

Output

unchanged

BFS

Input

BFS List

 

Output

unchanged

HANDLE

Input

file handle

 

Output

unchanged

NAME

Input

record key, if a record is being locked.  Null, if a file is being locked.

 

Output

unchanged

FMC

Input

lock type

 

Output

unchanged

RECORD

Input

null

 

Output

lock semaphore

STATUS

Input

unassigned

 

Output

always returns true

 

The MFS should not alter the semaphore returned in the RECORD argument.  This information is used by the system to clear the lock information stored internally in the system.

Called by

BASIC+ UNLOCK statement

  • No labels