Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Q: deletion of file after dlopen
@ 1994-08-06  4:49 Narciso Jaramillo
  0 siblings, 0 replies; only message in thread
From: Narciso Jaramillo @ 1994-08-06  4:49 UTC (permalink / 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>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-08-06  4:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-06  4:49 Q: deletion of file after dlopen Narciso Jaramillo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox