Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 1998 02:14:15 -0800 (PST)
From:      marcel@scc.nl
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   i386/9232: linux emu: socketcall: missing sendmsg and recvmsg support (PATCHES :-)
Message-ID:  <199812291014.CAA14975@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         9232
>Category:       i386
>Synopsis:       linux emu: socketcall: missing sendmsg and recvmsg support (PATCHES :-)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 29 02:20:02 PST 1998
>Last-Modified:
>Originator:     Marcel Moolenaar
>Organization:
SCC vof
>Release:        -current
>Environment:
FreeBSD scones.sup.scc.nl 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Tue Dec 22 12:17:33 CET 1998     marcel@scones.sup.scc.nl:/usr/src/sys/compile/SCONES  i386

>Description:
The socketcall function in the linux emulator does not have support for
the sendmsg and recvmsg functions.

>How-To-Repeat:
n/a
>Fix:
Apply the following patches:

\begin{verbatim}
*** linux.h.orig        Mon Dec 28 21:11:36 1998
--- linux.h     Mon Dec 28 21:10:14 1998
***************
*** 472,477 ****
--- 472,479 ----
  #define LINUX_SHUTDOWN                13
  #define LINUX_SETSOCKOPT      14
  #define LINUX_GETSOCKOPT      15
+ #define LINUX_SENDMSG           16
+ #define LINUX_RECVMSG           17
  
  #define LINUX_AF_UNSPEC               0
  #define LINUX_AF_UNIX         1
\end{verbatim}

\begin{verbatim}
*** linux_socket.c.orig Mon Dec 28 21:25:16 1998
--- linux_socket.c      Mon Dec 28 21:29:08 1998
***************
*** 810,815 ****
--- 810,819 ----
        return linux_setsockopt(p, args->args);
      case LINUX_GETSOCKOPT:
        return linux_getsockopt(p, args->args);
+     case LINUX_SENDMSG:
+       return sendmsg(p, args->args);
+     case LINUX_RECVMSG:
+       return recvmsg(p, args->args);
      default:
        uprintf("LINUX: 'socket' typ=%d not implemented\n", args->what);
        return ENOSYS;
\end{verbatim}

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812291014.CAA14975>