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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b42257070cad7d43 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-17 01:38:53 PST Path: nntp.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!chnws02.mediaone.net!chnws06.ne.mediaone.net!24.128.8.70!typhoon.ne.mediaone.net.POSTED!not-for-mail Subject: Re: Handling signals in ADA From: Ed Falis Newsgroups: comp.lang.ada Message-ID: References: <3AADFFCF.691F1F8@labe.felk.cvut.cz> <87y9u6k7s6.fsf@deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Pineapple News 0.8.11 [SKYLAB BETA], BeOS (Intel) 5.0.3 X-Program-URL: http://www.concentric.net/~brunsona/pineapplenews.html Date: Thu, 15 Mar 2001 23:42:02 GMT NNTP-Posting-Host: 66.31.217.141 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 984699722 66.31.217.141 (Thu, 15 Mar 2001 18:42:02 EST) NNTP-Posting-Date: Thu, 15 Mar 2001 18:42:02 EST Organization: Road Runner Xref: nntp.stanford.edu comp.lang.ada:91499 Date: 2001-03-15T23:42:02+00:00 List-Id: Florian Weimer wrote: > Tomas Hlavaty writes: > >> Hi, could you help me with translating following C code to ADA? > > The programming language is called 'Ada'. > >> -- How to translate it to ADA? > > The standard Ada library does not support signals. Typical Ada > programs use other communication mechanisms, and a verbatim > translation is not possible. If you need signal handling because it's > required by your environment, have a look at POSIX.5. Actually, it depends on the implementation. If you're using GNAT, you can handle signals using the Ada interrupt handling facilities defined in Annex C, or Ada 83-style interrupt entries, or if you prefer, directly with POSIX facilities. - Ed Falis ACT