On Fri, Sep 22, 2006 at 03:24:05PM +0200, Moritz Barsnick wrote: > mlock()/munlock(). My manpage (old Linux 2.4.20 system) has the return > values ENOMEM, EPERM, EINVAL. Actually - does it really matter why it failed, in that particular case? It failed - EINVAL won't be true (since it's global data), ENOMEM likewise, which leaves EPERM. 2.4.x, from what I can gather, only does mlock for root users. Therefore, as long as we can detect failure (so we don't try to unlock unlocked memory) that's all that really matters. -- Paul
Attachment:
signature.asc
Description: Digital signature