tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Michael Barton \(01772\) 855810" <Michael.Barton () bae ! co ! uk>
To: tru64-unix-managers
Subject: Realtime OSF/1
Date: Thu, 01 Aug 1996 14:58:17 +0000	[thread overview]
Message-ID: <96076337821230.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1996-08-01 14:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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