using mlock()

From: Lawrence MacIntyre <lpz_at_nautique.epm.ornl.gov>
Date: Thu, 25 Sep 1997 11:26:48 -0400

Hi:

I want to use the mlock() and munlock() subroutines. The man page
doesn't suggest any special linking options, but when I try to link a
program using them, I get:

nautique> cc -g -o duatmloop duatmloop.c
ld:
Unresolved:
memlk

Using the following shell program, I found references to memlk in two
shareable libraries. Does anyone know how to link a program using
mlock?

cd /usr/shlib
foreach file (lib*.so)
>echo $file
>nm $file|grep memlk
>end

It found two:

librt.so
memlk | 0004395912625616 | T | 0000000000000008

libfpxr.so
memlk | 0000002123176608 | T | 0000000000000008
-- 
                                 Lawrence
                                    ~
------------------------------------------------------------------------
Lawrence MacIntyre       Oak Ridge National Laboratory      423.574.8696 
lpz_at_ornl.gov   http://www.epm.ornl.gov/~lpz    lpz_at_nautique.epm.ornl.gov
Received on Thu Sep 25 1997 - 18:09:25 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT