summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1998-12-30 21:20:00 +0000
committersos <sos@FreeBSD.org>1998-12-30 21:20:00 +0000
commit241d58f7a246527ab2b3d4696a446eac3c99ff58 (patch)
tree9cafd582c0111801e3f9751ee75ee5c41ed12331 /sys/i386/linux
parent9023a71340e041442bc7e5351146435fc0212755 (diff)
downloadFreeBSD-src-241d58f7a246527ab2b3d4696a446eac3c99ff58.zip
FreeBSD-src-241d58f7a246527ab2b3d4696a446eac3c99ff58.tar.gz
Commit patch in
PR: 9232 Submitted by: marcel@scc.nl <Marcel Moolenaar>
Diffstat (limited to 'sys/i386/linux')
-rw-r--r--sys/i386/linux/linux.h4
-rw-r--r--sys/i386/linux/linux_socket.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 820028f..eaffa61 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux.h,v 1.24 1998/11/12 00:42:08 jkh Exp $
+ * $Id: linux.h,v 1.25 1998/12/19 02:55:32 julian Exp $
*/
#ifndef _I386_LINUX_LINUX_H_
@@ -472,6 +472,8 @@ struct trapframe;
#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
diff --git a/sys/i386/linux/linux_socket.c b/sys/i386/linux/linux_socket.c
index b50cf58..e9f4c43 100644
--- a/sys/i386/linux/linux_socket.c
+++ b/sys/i386/linux/linux_socket.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_socket.c,v 1.12 1998/02/07 02:13:27 msmith Exp $
+ * $Id: linux_socket.c,v 1.13 1998/03/28 10:33:04 bde Exp $
*/
/* XXX we use functions that might not exist. */
@@ -810,6 +810,11 @@ linux_socketcall(struct proc *p, struct linux_socketcall_args *args)
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;
OpenPOWER on IntegriCloud