On Mon, 14 Jan 2008, Tiziano De Togni wrote:
> > I was trying to convert a C source to Pascal. It uses signals, and I thought > that these things were not available on Win platforms. > > Documentation talks about signals in oldlinux and baseunix units only (Linux). > > Then I went on the signals.pp unit in: > > C:\fpc\...\source\rtl\win32\signals.pp > > > I understand the function signal, but I don't see a way to "Raise" a signal. There isn't a proper way; Signals on windows have totally different semantics than on Linux/unix. You should not try to imitate them. > > (a second question is that I can't understand how to raise a signal under > Linux without using the oldlinux unit) use the fpKill etc functions in baseunix/unix. They have the same names as the oldlinux ones, with 'fp' prepended. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal