comp.lang.ada
 help / color / mirror / Atom feed
* Handling signals in ADA
@ 2001-03-13 11:09 Tomas Hlavaty
  2001-03-15  5:21 ` DuckE
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Tomas Hlavaty @ 2001-03-13 11:09 UTC (permalink / raw)


Hi, could you help me with translating following C code to ADA?

-- My C program is:

#include <signal.h>

int stop = 0;

void handler(int signo)
{
        stop = 1;
        printf("Signal %i received\n", signo);
}

int main()
{
        signal(SIGUSR1, handler);
        while (stop == 0);
        return 0;
}

-- How to translate it to ADA?

Thanks

Tomas



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

end of thread, other threads:[~2001-03-17  1:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-13 11:09 Handling signals in ADA Tomas Hlavaty
2001-03-15  5:21 ` DuckE
2001-03-15 18:48 ` David Starner
2001-03-16 17:17   ` Robert A Duff
2001-03-15 22:05 ` Florian Weimer
2001-03-15 23:42   ` Ed Falis
2001-03-16  1:27   ` David C. Hoos, Sr.
2001-03-16  1:48     ` Jeffrey Carter
2001-03-16 21:06     ` Florian Weimer
2001-03-17  1:00       ` David C. Hoos, Sr.
2001-03-16  3:06   ` (null)
2001-03-16 13:10     ` Tomas Hlavaty

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