From: nj@birch.CS.Berkeley.EDU (Narciso Jaramillo)
Subject: Q: deletion of file after dlopen
Date: 06 Aug 1994 04:49:16 GMT [thread overview]
Message-ID: <NJ.94Aug5214917@birch.CS.Berkeley.EDU> (raw)
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.
<A HREF="http://http.cs.berkeley.edu/~nj/">nj@cs.Berkeley.EDU</A>
reply other threads:[~1994-08-06 4:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox