English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.Amix

 
 
Thread Tools
Old 23 October 2016, 00:23   #1
mackbw
Registered User

 
Join Date: Mar 2016
Location: Lowell, MA USA
Posts: 8
Anyone build pthread for Amiga Unix

Wondering if anyone has done this - certainly would save time as I wouldn't have to reinvent the wheel. Otherwise...

I got a copy of the FSU Phreads source, but having problems filling in the blanks. I modified the Makefile as best I could - but there are still some other things that need modification - things that I am unsure of:

One item is what the values for MINFRAME and WINDOWSIZE should be. Under the SVr4 tag, WINDOWSIZE is set to be the same as MINFRAME. Running pagesize from the command line I get a pagesize of 2048. Wonder is this is one and the same.

Guessing by setting MINFRAME to 2048, I tried to build again. The next problem is the build can't find asynch.h. Is there such a thing to be had for SVr4? Or is asyncio.sys the same, just different calls? Would this be necessary for this build? Looking at the precompile directives, some builds don't include asynch.h. So I defined my way around it to continue building... then I ran into something that has stopped me. There is a structure that needs to be defined. In a file signal.h, there is the following:

/*
* This defines the implementation-dependent context structure provided
* as the third parameter to user handlers installed by sigaction().
* It should be a copy of the first part of the BSD sigcontext structure.
* The second half should not be accessed since it is only present if
* a _sigtramp instance is present right below the user handler on the
* thread's stack. For SVR4, we will have to build this structure from scratch.
*/

There is then a structure for Solaris... and then

#ifdef SVR4_NP

struct context_t {
This needs to be defined !
};

#else /* !SVR4_NP */

Anyone have any ideas?

Thanks,

Mack
mackbw is offline  
AdSense AdSense  
Old 26 October 2016, 19:12   #2
Noth
Registered User
Noth's Avatar
 
Join Date: Aug 2013
Location: Lausanne, Switzerland
Posts: 154
I'm afraid there's not a single mention of pthreads in comp.unix.amiga ... except for an announcement for the release of OpenBSD 2.5 which had "nearly complete pthreads support". Worst luck.
Noth is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
What graphics cards work with X11R5 in Amiga Unix? mackbw support.Amix 3 20 April 2016 13:43
Amiga Unix manuals Amiga_CDTV support.Amix 4 06 September 2015 07:08
Amiga Unix tape images (Beta 3j, 1.1, 2.03) KillaByte request.Apps 3 14 May 2015 13:36
Possible to run Amiga Unix on WinUAE? Zombie13 New to Emulation or Amiga scene 4 12 February 2009 10:14
Amiga and Unix/Minix/Linux/*BSD harlequin Retrogaming General Discussion 5 27 April 2002 05:22

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:36.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.16102 seconds with 12 queries