• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Loading a shared library directly from inside of a ZIP file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading a shared library directly from inside of a ZIP file


  • Subject: Loading a shared library directly from inside of a ZIP file
  • From: Martin Knapp-Cordes <email@hidden>
  • Date: Fri, 20 Jan 2006 10:45:47 -0500 (EST)

Hi,

Is there a 'public' interface (with a different name) that will
replace the interface:

    void *dlopen(const char *filename, int flag);

by say:

    void *dlopen_new(int fd, void *start, size_t length, int flag);

This is motivated by the mmap interface:

    void * mmap(void *start, size_t length, int prot , int flags, int fd,
off_t offset);

The idea is that you are given a triplet:

    (name,offset,length)

where name is file descriptor for the ZIP file (int fd), and
the offset (void *start) is the start of the shared library in the
ZIP file, and length (size_t length) is the length of the shared
library.

Note that dlopen() under the hood does a mmap.

If there isn't, is the only recourse, to 'hack' the source or are
there some other ideas or published solutions.

The solution of making a copy into the filesystem first and using
the old interface is NOT acceptable.

Sincerely,
Martin Knapp-Cordes

---------------------------------------------------------------
|  Martin Knapp-Cordes               email@hidden     |
|  The MathWorks, Inc.               http://www.mathworks.com |
|  3 Apple Hill Drive                Natick, MA  01760        |
|  Tel: (508) 647-7321               Fax: (508) 647-7015      |
---------------------------------------------------------------




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Loading a shared library directly from inside of a ZIP file
      • From: John Davidorff Pell <email@hidden>
  • Prev by Date: Re: MoreBacktrace for i386?
  • Next by Date: Re: MoreBacktrace for i386?
  • Previous by thread: Re: intercepting system calls?
  • Next by thread: Re: Loading a shared library directly from inside of a ZIP file
  • Index(es):
    • Date
    • Thread