** A quickly hacked pthreads library for OpenStep 4.2/Mach ** This archive contains a slightly modified version of the HASC pthread library port that was once floating around on www.hasc.ca. I couldn't get the original library to compile correctly on OS/Mach 4.2/x86, so I hacked a couple of things: - there were some asm opcodes that made the OS 4.2 assembler choke. I have NO idea if the modifications in machdep/engine-i386-nextstep3.c are correct - they work, though. :) - the makefiles are now set up in such a way that they can be reliably re-created after a 'make realclean'. It seems that the absolute source root is littered all across the setup and that really doesn't help during development. - it seem that one MUST use -O2 for compiling the library or otherwise the test suite programs lock up. Might also be related to -g (also removed by default) - some test programs link, but don't run because of multiply defined symbols in System.framework (the makefiles are still set up in such a way that linking will succeed - this worked on 3.3). I'm not yet sure what the solution to this might be. Obviously, one should turn the static lib into a dylib; also, it might be a good move to a) remove all the duplicate system calls and create a bare-bones pthread library, or b) rename the system calls into thread-safe equivalents (like it's done on Solaris and Linux, IIRC) Just for kicks I have commented out the stdio/fflush function to see how it affects the test suite; grep for comments containing the string 'HH'. Anyway, I didn't do any porting other that the above makefile hacking. This is NOT production quality stuff; please don't blame me if it doesn't do anything useful for you. That being said: hack away & let me know if you make any modifications! Maybe I'll try to turn this into a nice PB-based project, with dylib and everything. Holger holger@wizards.de