GnuPG 1.0.4 and HP-UX 10.20 (mlock vs. plock)

gnupg-devel at thewrittenword.com gnupg-devel at thewrittenword.com
Wed Mar 7 17:13:01 CET 2001


Even though mlock() is defined in libc and <sys/mman.h> under HP-UX
10.20, it doesn't seem to be working. Is plock() a "workable"
substitute? From plock(2):

  The plock() system call allows the calling process to lock the text
  segment of the process (text lock), its data segment (data lock), or
  both its text and data segment (process lock) into memory.  Stack
  segments are also locked when data segments are locked.  Shared
  library text and shared library data segments (shlib lock) can also be
  locked.  Locked segments are immune to all routine swapping.  plock()
  also allows these segments to be unlocked.

Yes, locking the entire *data* segment is overkill but it's better
than nothing. What do you all think?

-- 
albert chin (china at thewrittenword.com)



More information about the Gnupg-devel mailing list