plock.2 (2010 09)

p
plock(2) plock(2)
[EINVAL] op is equal to
PROCSHLIBLOCK
and a process lock, a text lock, or a data lock
already exists on the calling process.
[EINVAL] op is equal to
TXTSHLIBLOCK and a text lock or process lock already exists on the
calling process.
[EINVAL] op is equal to
DATSHLIBLOCK and a data lock, or process lock already exists on the
calling process.
[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 user with 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), privileges(5).
STANDARDS CONFORMANCE
plock(): SVID2, SVID3, XPG2
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010