comp.lang.ada
 help / color / mirror / Atom feed
* Yet another question on system calls(newbie question)
@ 2001-05-11  7:18 Torbjörn Karfunkel
  0 siblings, 0 replies; 8+ messages in thread
From: Torbjörn Karfunkel @ 2001-05-11  7:18 UTC (permalink / raw)
  To: comp.lang.ada

Thanks everybody for your help. I got it working now.
/Torbj�rn Karfunkel






^ permalink raw reply	[flat|nested] 8+ messages in thread
* Yet another question on system calls(newbie question)
@ 2001-05-10 19:40 Torbjörn Karfunkel
  0 siblings, 0 replies; 8+ messages in thread
From: Torbjörn Karfunkel @ 2001-05-10 19:40 UTC (permalink / raw)
  To: comp.lang.ada

>>Do you want to "use" the file with Ada, or with some other systemcommand?

Ada. I want to wait for the C program to produce the file, and then continue knowing that the file is there. I tried using GNAT.OS_Lib, but the C program starts and then nothing happenns.






^ permalink raw reply	[flat|nested] 8+ messages in thread
* Yet another question on system calls(newbie question)
@ 2001-05-10 15:44 Torbjörn Karfunkel
  2001-05-10 16:20 ` James Rogers
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Torbjörn Karfunkel @ 2001-05-10 15:44 UTC (permalink / raw)
  To: comp.lang.ada

Using the pragma Import method of calling non-Ada entities, am I only
allowed to define functions? How about procedures? What I want to do is
to create a text file, give this text file as a parameter to a C
program, and then wait until the C program finishes. By then it will
have produced another text file that I want to use.
Can I use a dummy result variable like the 'result' in the following
(from another mail):

procedure Command is

   function C_System(value : String) return integer;
   pragma Import(
         C, C_System, "system");

   result : integer;
begin
   result := C_System("pwd ");
   result := C_System(value => "acdsee D:\work\pictures\BP47.jpg ");
end Command;

/Torbj�rn Karfunkel






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-05-12  1:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-11  7:18 Yet another question on system calls(newbie question) Torbjörn Karfunkel
  -- strict thread matches above, loose matches on Subject: below --
2001-05-10 19:40 Torbjörn Karfunkel
2001-05-10 15:44 Torbjörn Karfunkel
2001-05-10 16:20 ` James Rogers
2001-05-10 21:03   ` Keith Thompson
2001-05-10 21:12     ` James Rogers
2001-05-10 21:12 ` Keith Thompson
2001-05-12  1:30 ` DuckE

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