From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076337821230.tru64-unix-managers.marc@archive.invalid> From: "Michael Barton \(01772\) 855810" Date: Thu, 01 Aug 1996 14:58:17 +0000 To: tru64-unix-managers Subject: Realtime OSF/1 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076337821230 Hello fellow managers, Q. 1. Is is possible to import/include/link Ada code/objects into a C program on DU. (3.2c) ??? If so how ? Q. 2. Is there such a command or equivalent as 'run/noswap myprog' so that myprog is always memory resident ? At the moment, I've got a C wrapper that does the following : myCprog.c contains the following: . . malloc( alot_of_mem ) ; /* allocate loads of memory */ . setuid(0) ; /* become apprent root */ . plock( PROCLOCK ) ; /* lock text and data pages in memory */ . execl("myadaprog") ; /* Now run the Ada program */ compile myCprog... ok chown root myCprog chmod 4711 myCprog Allows Non priv users to use the above. (ignore the security implications for now ... but I didn't say that !) It seems to work.... ? ( so far ) If anybody knows of a better way or the correct way, I'd be greateful for any info... Thank you Mick :-( michael.barton@bae.co.uk :-(