'\"macro stdmacro
.if n .pH g2.lock @(#)lock	40.4 of 9/19/89
.nr X
.if \nX=0 .ds x} lock 2 "" "\&"
.if \nX=1 .ds x} lock 2 ""
.if \nX=2 .ds x} lock 2 "" "\&"
.if \nX=3 .ds x} lock "" "" "\&"
.TH \*(x}
.SH NAME
\f4lock\f1 \- locks a process in primary memory.
.SH SYNOPSIS
\f4int lock\fP(\f2flag\f1)
.br
\f4cc [flag ...]\fP \f2file\f1 ... -\f4lx\fP
.SH DESCRIPTION
If the \f2flag\f1 argument is nonzero, the process
executing this call will not be swapped unless it
is required to grow.  If the argument is zero, the process
is unlocked.  This call may only be executed by
the super-user.  If someone other than the super-user tries to
execute this call, a value of \-1 is returned and the
\f2errno\f1 is set to \f4EPERM\fP.
