From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5b2d47680313d7dd,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-08-06 14:00:10 PST Path: bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!agate!agate!nj From: nj@birch.CS.Berkeley.EDU (Narciso Jaramillo) Newsgroups: comp.sys.dec Subject: Q: deletion of file after dlopen Date: 06 Aug 1994 04:49:16 GMT Organization: University of California, Berkeley Message-ID: Reply-To: nj@cs.Berkeley.EDU (Narciso Jaramillo) NNTP-Posting-Host: birch.cs.berkeley.edu Under OSF/1, is it kosher to delete a dynamic object file after dlopen()ing it (but before dlclose()ing it)? e.g. handle = dlopen("tmpobj.so.1.0", RTLD_NOW); unlink("tmpobj.so.1.0"); foobar = dlsym(handle, "baz"); /* ... */ dlclose(handle); Reason: My application interprets pieces of code in an embedded language. Sometimes the user may want a particular piece of code compiled, so the application translates pieces of code into C functions in temporary files, then calls cc and ld to compile them into dynamic object files. I'd like to be able to load these objects into memory and have them around while my application is running, without having all the dynamic object files around the whole time. Please respond to me by email; I'll summarize the answers to the newsgroup. Thanks. -- God does not play dice with the universe; he plays go. nj@cs.Berkeley.EDU