comp.lang.ada
 help / color / mirror / Atom feed
From: cm@mihalis.demon.co.uk (Chris Morgan)
Subject: Re: Need help re: System Calls
Date: 1997/04/07
Date: 1997-04-07T00:00:00+00:00	[thread overview]
Message-ID: <m2sp12zjf9.fsf@mihalis.demon.co.uk> (raw)


In article <dewar.860415799@merv> dewar@merv.cs.nyu.edu (Robert Dewar)
writes:

> 
> Bill asks
> 
> <<I am looking for information about how to perform system calls (in this
> case, UNIX commands) in the GNAT compiler of Ada 95. Any help would be
> appreciated. (Note: in this case, I am trying to implement a command which
> is stored in a string).>>
> 
> Remember that the specs of the g-* units in the GNAT library are an important
> part of the documentation. These is a collection of useful stuff distributed
> with GNAT, and the specs (ads files) act as the documentation. To answer
> this question look at GNAT.OS_Lib.Spawn in g-os_lib.ads.
> 

And failing that just pragma interface to the C routine "system". I've
got an example at work if you want (drop me a line in that case) which
tests whether a file is a named pipe using the shell. Ok it's gross
but it helped :-)
-- 
Chris Morgan (cm@mihalis.demon.co.uk)




             reply	other threads:[~1997-04-07  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-07  0:00 Chris Morgan [this message]
1997-04-07  0:00 ` Need help re: System Calls Robert Dewar
1997-04-10  0:00   ` Keith Thompson
1997-04-12  0:00     ` Robert Dewar
1997-04-12  0:00       ` Robert Dewar
1997-04-13  0:00     ` Larry Kilgallen
1997-04-13  0:00       ` Robert Dewar
1997-04-14  0:00       ` Keith Thompson
     [not found] <Pine.SGI.3.94.970406210904.4241A-100000@sandcast <860461839.15snx@jvdsys.nextjk.stuyts.nl>
1997-04-09  0:00 ` Keith Thompson
  -- strict thread matches above, loose matches on Subject: below --
1997-04-08  0:00 Jerry van Dijk
1997-04-06  0:00 Bill Roland
1997-04-07  0:00 ` Robert Dewar
replies disabled

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