lkml.org 
[lkml]   [1996]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectsendmsg fixed in 1.3.71
Date
From

I saw same problems in socket.h...

: leisner@thingy; rcsdiff -u socket.h
===================================================================
RCS file: socket.h,v
retrieving revision 1.1
diff -u -r1.1 socket.h
--- socket.h 1996/03/05 22:15:11 1.1
+++ socket.h 1996/03/05 22:23:16
@@ -27,15 +27,18 @@
};

/*
- * 4.4BSD changed to these new names for no apparent reason.
+ * This is to be compatible with the old names (why?). 4.3-RENO
+ * changed the fd passing strategy significantly, and the names in
+ * msghdr
*/

#define msg_control msg_accrights
-#define msg_controllen msg_accrightslen;
+#define msg_controllen msg_accrightslen

/* Control Messages */

#define SCM_RIGHTS 1
+#define SOL_SOCKET 1 /* look this up in bsd 4.4 */

/* Socket types. */
#define SOCK_STREAM 1 /* stream (connection) socket */
: leisner@thingy;

Can I see an example of code which uses BSD 4.3+reno sendmsg passing of fds
which works?

I started to convert some stuff to new fd passing, and its coredumping
gdb [sigh, I'm using libc 5.3.5 with gdb 022996 alpha].

marty leisner@sdsp.mc.xerox.com
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
Arthur C. Clarke, The Lost Worlds of 2001


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.026 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site