[774] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

pthreads on FreeBSD

daemon@ATHENA.MIT.EDU (Michael Widenius)
Sun Jun 7 09:36:56 1998

Date: Sun, 7 Jun 1998 03:37:07 +0300
From: Michael Widenius <monty@kaskela.pp.sci.fi>
To: Alan Batie <batie@aahz.jf.intel.com>
Cc: pthreads@MIT.EDU
In-Reply-To: <19980603160540.39859@aahz.jf.intel.com>
Reply-To: monty@analytikerna.se

>>>>> "Alan" == Alan Batie <batie@aahz.jf.intel.com> writes:

Alan> Platform: FreeBSD 2.2.2-RELEASE and 3.0-971225-SNAP
Alan> Pthreads 1.8.8

Alan> I've just gotten basically my first threads program working, after
Alan> several days of exploring the kernel and the thread library to find out
Alan> who was trashing my buffer.  It turns out that the recvmsg routine in
Alan> pthreads/fd_kern.c uses the old msg structure and FreeBSD is using a
Alan> new one (probably a 4.4-ism).  I'm not really sure *what* pthread's
Alan> trying to do --- the old message structure had something about access
Alan> rights, but the fd_kern module was playing funny games with file
Alan> descriptors in there.  Anyway, I commented that whole block out and my
Alan> program started working.

Alan> Also, there are a number of function declarations missing in the include
Alan> files (I don't have time to fill them in right now, unfortunately, trying
Alan> to meet a deadline, etc), and to build on 3.0, I had to clone the 2.0
Alan> config files and change the 2.0's to 3.0's.  Seems to work, but...

Alan> For what it's worth, here's a quick patch showing exactly what I commented
Alan> out:
<cut>

I would like to fix this proplerly:

Where does your system define 'struct omsghdr';  I could only find a
define of this in the freebsd-1.1 directory.

I assume one can fix this by adding the new omsghdr to a new socket.h
file in machdep/freebsd-3.0

Yours,
Monty

home help back first fref pref prev next nref lref last post