From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078617110590.tru64-unix-managers.marc@archive.invalid> From: Lawrence MacIntyre Date: Thu, 25 Sep 1997 15:26:48 +0000 To: tru64-unix-managers Subject: using mlock() X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078617110590 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@ornl.gov http://www.epm.ornl.gov/~lpz lpz@nautique.epm.ornl.gov