1LOCK(2)                       System Calls Manual                      LOCK(2)
2
3
4

NAME

6       lock - lock a process in primary memory (2BSD)
7

SYNOPSIS

9       lock(flag)
10       int flag
11

DESCRIPTION

13       If  the flag argument is non-zero, the process executing this call will
14       not be swapped unless it is required to grow.  If the argument is zero,
15       the  process is unlocked.  This call may only be executed by the super-
16       user.
17

ERRORS

19       [EPERM]        The caller is not the super-user.
20

BUGS

22       Locked processes interfere with the compaction of  primary  memory  and
23       can  cause  deadlock.   This  system call is not considered a permanent
24       part of the system.
25
26       Lock is unique to the PDP-11 and 2BSD; its use is discouraged.
27
28
29
303rd Berkeley Distribution      January 22, 1987                        LOCK(2)
Impressum