[fpc-pascal] What about signals.pp on win32?
Michael Van Canneyt
michael at freepascal.org
Mon Jan 14 09:52:25 CET 2008
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.
More information about the fpc-pascal
mailing list