lock(2) bsd man page | unix.com

Man Page: lock

Operating Environment: bsd

Section: 2

LOCK(2) 							System Calls Manual							   LOCK(2)

NAME
lock - lock a process in primary memory (2BSD)
SYNOPSIS
lock(flag) int flag
DESCRIPTION
If the flag argument is non-zero, 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.
ERRORS
[EPERM] The caller is not the super-user.
BUGS
Locked processes interfere with the compaction of primary memory and can cause deadlock. This system call is not considered a permanent part of the system. Lock is unique to the PDP-11 and 2BSD; its use is discouraged. 3rd Berkeley Distribution January 22, 1987 LOCK(2)
Related Man Pages
shlock(1) - debian
lock(2) - plan9
shlock(1) - suse
plock(3c) - debian
shlock(1) - bsd
Similar Topics in the Unix Linux Community
Unable to run xclock
Scanning alignment and "extracting" blocks
Command rm deletes filename but not the blocks
Get values block by block in same file
Sed: -e expression #1, char 16: unterminated address regex