From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,68086e17863535f7,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-10 08:52:11 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: =?iso-8859-1?Q?Torbj=F6rn?= Karfunkel Newsgroups: comp.lang.ada Subject: Yet another question on system calls(newbie question) Date: Thu, 10 May 2001 17:44:25 +0200 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 989509930 17129 137.194.161.2 (10 May 2001 15:52:10 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 10 May 2001 15:52:10 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.3 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: newsfeed.google.com comp.lang.ada:7483 Date: 2001-05-10T17:44:25+02:00 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