HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)

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 2218 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005