HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
p
plock(2) plock(2)
[EINVAL] op is not equal to one of the values specified in DESCRIPTION.
[EINVAL] plock() is not allowed in a [vfork,exec] window. See vfork(2).
[ENOMEM] There is not enough lockable memory in the system to satisfy the locking request.
[EPERM] The effective user ID of the calling process is not a superuser and the user does not
belong to a group that has the MLOCK privilege.
EXAMPLES
The following call to plock() locks the calling process in memory:
plock(PROCLOCK);
SEE ALSO
setprivgrp(1M), exec(2), exit(2), fork(2), getprivgrp(2), mlock(2), vfork(2).
STANDARDS CONFORMANCE
plock(): SVID2, SVID3, XPG2
Section 2−−212 − 2 − HP-UX Release 11i: December 2000
___
___