mmap queestion

V

Vincenzo Conti

Hi to all,
programming ANSI C on UNIX (Tru64 5.1A, but I hope it is not
important).
I need to load an executable in memory (ex: a copy of /usr/bin/telnet)
and start it from memory.
While executing telnet_copy, delete the copy.

Is it possible using mmap ?
Could you provide a short example ?

Thank you very much.
Vic
 
T

Thomas Matthews

Vincenzo said:
Hi to all,
programming ANSI C on UNIX (Tru64 5.1A, but I hope it is not
important).
I need to load an executable in memory (ex: a copy of /usr/bin/telnet)
and start it from memory.
While executing telnet_copy, delete the copy.

Is it possible using mmap ?
Not using ANSI C, because there is no reference to mmap in
the language specification. You would have to use some
platform specific functionality.

Could you provide a short example ?
Nope. Try or another Unix
newsgroup.
It's been soooooo long since I was into the Unix O.S.

Thank you very much.
Vic
Your welcome, and please read the FAQs and welcome.txt
documents below.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top