2.9BSD/usr/man/cat2/lock.2

Compare this file to the similar file:
Show the results in this format:


LOCK(2)             UNIX Programmer's Manual              LOCK(2)

NAME
     lock - lock a process in primary memory

SYNOPSIS
     lock(flag)

DESCRIPTION
     If the _f_l_a_g argument is non-zero, the process executing this
     call will not be swapped except if it is required to grow.
     If the argument is zero, the process is un_l_o_c_ked.  This call
     may only be executed by the super-user.

BUGS
     _L_o_c_ked processes interfere with the compaction of primary
     memory and can cause deadlock.  This system call is not con-
     sidered a permanent part of the system.

ERRORS
     _L_o_c_k will fail if:

     [EPERM]             The effective user ID is not the super-
                         user.

ASSEMBLER
     (lock = 53.)
     sys lock; flag

Printed 5/22/83                                                 1