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_at_bae.co.uk :-(
Received on Thu Aug 01 1996 - 17:39:58 NZST