#include <sys/lock.h>
int plock(op) int op;
plock() allows the calling process to lock its text segment (text lock), its data segment (data lock), or both its text and data segments (process lock) into memory. Locked segments are immune to all routine swapping. plock() also allows these segments to be unlocked. The effective user ID of the calling process must be super-user to use this call. op specifies the following:
plock() returns:
op is equal to TXTLOCK and a text lock, or a process lock already exists on the calling process.
op is equal to DATLOCK and a data lock, or a process lock already exists on the calling process.
op is equal to UNLOCK and no type of lock exists on the calling process.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97