tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Realtime OSF/1
@ 1996-08-01 14:58 Michael Barton (01772) 855810
  0 siblings, 0 replies; only message in thread
From: Michael Barton (01772) 855810 @ 1996-08-01 14:58 UTC (permalink / raw)
  To: tru64-unix-managers

    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 :-(

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

only message in thread, other threads:[~1996-08-01 14:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-01 14:58 Realtime OSF/1 Michael Barton (01772) 855810

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