Jump to content
Excelsior Forums
Sign in to follow this  
jmac

h2d or other way to get socket and pthread

Recommended Posts

I found a topic five years old about this :) No answers

So is there a way to use h2d or to translate headers manually or some other way to get sockets and pthread available, under Linux?

Share this post


Link to post
Share on other sites

Thanks. I've started to translate socket.h myself and now I see there is something already done here :)

With threads situation is still unclear though...

Share this post


Link to post
Share on other sites

I guess some work has also been done for pthreads. Have a look at the sources of GNU Modula-2, especially here:

http://cvs.savannah.gnu.org/viewvc/gm2/examples/pthread/?root=gm2

Some posts to the GNU Modula-2 mailing list may also be interesting, eg:

http://lists.gnu.org/archive/html/gm2/2004-08/msg00009.html

Here are the search results (pthreads) from the mailing list:

http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=pthreads&submit=Search!&idxname=gm2&max=10&result=normal&sort=score

Christoph

Share this post


Link to post
Share on other sites

Please, could you clarify your last post.

What means "not fully thread-aware"?

I'm just going to transfer my programs written

in XDS-Oberon from Windows to Linux... Is it safe?

Yes, but only if your programs are single-threaded.

Share this post


Link to post
Share on other sites

Hope you have better luck with h2d than I have, my success rate is in the 1% - 2% range.  I know that it must work, looking at the posix and x11 libraries, but except for the most trivial .h files, I generally can't get more than a few lines in before something errors out :-\

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×