[374] in Pthreads mailing list archive

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

Re: new linux kernels and pthreads

daemon@ATHENA.MIT.EDU (Ronald Wahl)
Wed Jul 31 06:27:02 1996

Date: Wed, 31 Jul 1996 10:20:27 +0200 (MET DST)
From: Ronald Wahl <Ronald.Wahl@Informatik.TU-Chemnitz.DE>
To: pthreads <pthreads@MIT.EDU>
In-Reply-To: <Pine.LNX.3.95.960731010328.17470A-100000@goliath.csn.tu-chemnitz.de>

On Wed, 31 Jul 1996, Ronald Wahl wrote:

> 
> Hi,
> 
> There is a problem with new kernels: msg_accrights and msg_accrightslen
> are no longer part of msghdr. Now the 4.4BSD mechanism for
> devliveringmessages is used. Is there a patch for pthreads (1.60beta4 or
> 5) available?

I found the solution by myself in the new libc-5.4.4. msg_accrights and
msg_accrightslen should be changed to msg_control and msg_controllen.
Here is a patch originally for libc.5.3.12 but this should also apply
on the plain pthread sources (after adapting the paths).

-----

diff -u --recursive --new-file libc-5.3.12.orig/include/pthread/mit/sys/compat.h
libc-5.3.12/include/pthread/mit/sys/compat.h
--- libc-5.3.12.orig/include/pthread/mit/sys/compat.h   Wed Feb 14 09:25:23 1996
+++ libc-5.3.12/include/pthread/mit/sys/compat.h        Wed Jul 31 01:55:29 1996
@@ -45,7 +45,23 @@

 #define omsghdr msghdr

-#ifndef __LINUX_UIO_H
+#ifdef __LINUX_UIO_H
+
+#ifdef MSG_PROXY
+
+#ifndef msg_accrights
+#undef msg_control
+#define msg_accrights          msg_control
+#endif
+
+#ifndef msg_accrightslen
+#undef msg_controllen
+#define msg_accrightslen       msg_controllen
+#endif
+
+#endif
+
+#else

 /*
  * Message header for recvmsg and sendmsg calls.

-----

ron

--
\ Ronald Wahl --- rwa@informatik.tu-chemnitz.de   \
 \ WWW: http://www.tu-chemnitz.de/~row             \
  \ Talk: rwa@goliath.csn.tu-chemnitz.de            \
   \ PGP key available by finger to my email address \


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