datalock man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

datalock(3C)							  datalock(3C)

       datalock()  -  lock process into memory after allocating data and stack

       allocates at least datsiz bytes of data space and stsiz bytes of	 stack
       space,  then  locks the program in memory.  The data space is allocated
       by (see malloc(3C)).  After  the	 program  is  locked,  this  space  is
       released by (see malloc(3C)), making it available for use.  This allows
       the calling program to use that much space dynamically without  receivā€
       ing the signal.

       The effective user ID of the calling process must be super-user or be a
       member of or have an effective group ID of a  group  having  PRIV_MLOCK
       access to use this call (see setprivgrp(2) in getprivgrp(2)).

       The following call to allocates 4096 bytes of data space and 2048 bytes
       of stack space, then locks the process in memory:

       returns -1 if cannot allocate enough memory or  if  returned  an	 error
       (see plock(2)).

       Multiple datalocks cannot be the same as one big one.

       Methods for calculating the required size are not yet well developed.

       was developed by HP.

       getprivgrp(2), plock(2), thread_safety(5).


List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net