Mail Archives: djgpp/2017/03/06/12:36:23
This is a port of FSU Pthreads 3.14 to MSDOS/DJGPP.
FSU Pthreads is a prototype implementation of POSIX 1003.1c. It is a
C-language library that supports multiple threads of control within a
single process. It does not implement the entire Pthreads interface but
it does provide some of the capability of the POSIX 1003.1 base standard
and POSIX 1003.4 Real-Time Extensions.
DJGPP specific changes.
=======================
- The code of the library is almost 20 years old, thus a lot of the coding
syntax used choke modern versions of gcc. Here some fixes were required.
Also DJGPP has changed during the last 20 years, thus some adjustments
were required to get it compiled. Especially the fact that neither the
definition sigset_t nor jmp_buf used by DJGPP nowadays does fully match
the assumptions made in library code, makes it necessary to adjust it.
Details are not worth to be explained; if really interested look at the
diffs file. It is divided in three parts: the first part describes the
syntax error fixes, the second one describes the warning fixes and the
third part discribes the DJGPP specific changes.
- The library code offers some degree of debug support. This code has not
been ported. It may work or not. If it does not work you are alone to
fix the DJGPP specific part. As a starting point look at the "tdi" dir.
It is supposed to make gdb usable with threaded code, but due to age of
the library I do not know if today's versions of gdb will work with this
"tdi" interface. I do not have neither the knowledge nor time to fix or
implement this support.
- The code offers no testsuite thus it has only be tested by using it
building other ports that depend on a threading library.
- The code offers no man pages nor other type of documentation in some
standard reader format. Thus read the REA>DME and ANNOUNCE files
carefully. There may by some more information following the links
offered at:
<http://moss.csc.ncsu.edu/~mueller/pthreads/>
from where the sources have been retrieved.
I have also never verified that any of the mailing list to ask for
assistance or to reporting bugs still do work at all after 20 years.
- The port is intended as an alternative to the GNU POSIX threading port
pth207[b|s].zip. I have not compared their performance and I am not
lobbying to use this one instead of the other one. I have ported this
one to use it in other ports and to make it available to other users.
- The port has been configured and compiled on WinXP SP3 and Win98SE.
There is no guarantee that this may be possible with any other DOS-like
OS. Due to the massive use of long file names it will not be possible
to configure and compile without LFN support.
To build this port you will need an OS with LFN support to configure and
compile the source package.
As usual, all djgpp specific files (diffs, README files, etc.) are stored in
the /djgpp directory. The sources have been configured to be build in the
"src" directory. Compile it by running make.
For further information about FSU Pthreads please read the info docs and NEWS file.
This is a verbatim extract of the ANNOUNCE file:
-------------------------------------------------------------------------------
It is the first DJGPP port of FSU Pthreads. Read the complete ANNOUNCE file.
-------------------------------------------------------------------------------
The port consists of the usual three packages produced using djdev205
that can be downloaded from ftp.delorie.com and mirrors as (time stamp 2017-02-22):
FSU Pthreads 3.14 headers and library:
ftp://ftp.delorie.com/pub/djgpp/current/v2tk/fpth314b.zip
FSU Pthreads 3.14 source:
ftp://ftp.delorie.com/pub/djgpp/current/v2tk/fpth314s.zip
Send FSU Pthreads specific bug reports to <pthreads-bugs AT ada DOT cs DOT fsu DOT edu>.
Send suggestions and bug reports concerning the DJGPP port to
comp.os.msdos.djgpp or <djgpp AT delorie DOT com>.
Enjoy.
Guerrero, Juan Manuel <juan DOT guerrero AT gmx DOT de>
- Raw text -