V7/usr/man/man2/lock.2

Find at most related files.
including files from this version of Unix.

.TH LOCK 2 local
.SH NAME
lock \- lock a process in primary memory
.SH SYNOPSIS
.B lock(flag)
.SH DESCRIPTION
If the
.I flag
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
.RI un lock ed.
This call may only be executed by
the super-user.
.SH BUGS
.IR Lock ed
processes interfere with the compaction of primary memory
and can cause deadlock.
This system call is not considered
a permanent part of the system.
.SH ASSEMBLER
(lock = 53.)
.br
.B sys lock; flag