Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys expose sendmsg_so and recvmsg_so.



details:   https://anonhg.NetBSD.org/src/rev/992a0e23db6e
branches:  trunk
changeset: 821387:992a0e23db6e
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 03 16:06:45 2017 +0000

description:
expose sendmsg_so and recvmsg_so.

diffstat:

 sys/kern/uipc_syscalls.c |   8 ++++----
 sys/sys/socketvar.h      |  12 +++++++++---
 2 files changed, 13 insertions(+), 7 deletions(-)

diffs (65 lines):

diff -r 523d36a1dd52 -r 992a0e23db6e sys/kern/uipc_syscalls.c
--- a/sys/kern/uipc_syscalls.c  Fri Feb 03 13:23:37 2017 +0000
+++ b/sys/kern/uipc_syscalls.c  Fri Feb 03 16:06:45 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_syscalls.c,v 1.185 2017/02/02 15:37:42 christos Exp $     */
+/*     $NetBSD: uipc_syscalls.c,v 1.186 2017/02/03 16:06:45 christos Exp $     */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.185 2017/02/02 15:37:42 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.186 2017/02/03 16:06:45 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pipe.h"
@@ -528,7 +528,7 @@
            NULL, 0, retval);
 }
 
-static int
+int
 do_sys_sendmsg_so(struct lwp *l, int s, struct socket *so, file_t *fp,
     struct msghdr *mp, int flags, const void *kthdr, size_t ktsize,
     register_t *retsize)
@@ -920,7 +920,7 @@
        return error;
 }
 
-static int
+int
 do_sys_recvmsg_so(struct lwp *l, int s, struct socket *so, struct msghdr *mp,
     const void *ktrhdr, size_t ktsize, struct mbuf **from,
     struct mbuf **control, register_t *retsize)
diff -r 523d36a1dd52 -r 992a0e23db6e sys/sys/socketvar.h
--- a/sys/sys/socketvar.h       Fri Feb 03 13:23:37 2017 +0000
+++ b/sys/sys/socketvar.h       Fri Feb 03 16:06:45 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socketvar.h,v 1.143 2017/02/02 18:01:16 christos Exp $ */
+/*     $NetBSD: socketvar.h,v 1.144 2017/02/03 16:06:45 christos Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -354,11 +354,17 @@
 
 int    do_sys_getpeername(int, struct sockaddr *);
 int    do_sys_getsockname(int, struct sockaddr *);
+
 int    do_sys_sendmsg(struct lwp *, int, struct msghdr *, int,
            const void *, size_t, register_t *);
+int    do_sys_sendmsg_so(struct lwp *, int, struct socket *, file_t *,
+           struct msghdr *, int, const void *, size_t, register_t *);
+
 int    do_sys_recvmsg(struct lwp *, int, struct msghdr *,
-           const void *, size_t,
-           struct mbuf **, struct mbuf **, register_t *);
+           const void *, size_t, struct mbuf **, struct mbuf **, register_t *);
+int    do_sys_recvmsg_so(struct lwp *, int, struct socket *,
+           struct msghdr *mp, const void *, size_t, struct mbuf **,
+           struct mbuf **, register_t *);
 
 int    do_sys_bind(struct lwp *, int, struct sockaddr *);
 int    do_sys_connect(struct lwp *, int, struct sockaddr *);



Home | Main Index | Thread Index | Old Index