Manual pages › XENIX system calls (2Z)
lock(2Z)
locks a process in primary memory.
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
NAME
lock - locks a process in primary memory.
SYNOPSIS
int lock(flag) cc [flag ...] file ... -lx
DESCRIPTION
If the flag 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 errno is set to EPERM.