[fpc-pascal] Why is cthreads unit not included by default
Marco van de Voort
marcov at stack.nl
Thu Aug 27 13:15:35 CEST 2009
In our previous episode, Graeme Geldenhuys said:
> > There are FPC programs from 8 years back that still work with the current
> > kernel. Try that with a program that depends on the C library.
> Sorry if this sounds dumb - it's late in the week. ;-)
> Is this an issue, even if your program doesn't use any
> procedures/functions from the dynamically linked C library. For example,
> a console application that includes the cthreads unit (which dynamically
> links to C Library), but doesn't actually use the C Library or threads.
> Would such a console application not run on an 8 year old Linux distro?
No. The init code touches errno, and that has changed several times due to
the fact that that var became threadsafe.
More information about the fpc-pascal