finish ktrace argument removal for do_sys_{send,recv}msg

This commit is contained in:
christos 2018-05-05 02:09:40 +00:00
parent f0ac935e44
commit 6ec60974d9
2 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: osf1_socket.c,v 1.22 2016/09/13 07:01:08 martin Exp $ */
/* $NetBSD: osf1_socket.c,v 1.23 2018/05/05 02:09:40 christos Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: osf1_socket.c,v 1.22 2016/09/13 07:01:08 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: osf1_socket.c,v 1.23 2018/05/05 02:09:40 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -130,8 +130,7 @@ osf1_sys_sendmsg_xopen(struct lwp *l, const struct osf1_sys_sendmsg_xopen_args *
bsd_iovec[i].iov_len = osf_iovec.iov_len;
}
error = do_sys_sendmsg(l, SCARG(uap, s), &bsd_msghdr, flags, NULL, 0,
retval);
error = do_sys_sendmsg(l, SCARG(uap, s), &bsd_msghdr, flags, retval);
err:
kmem_free(bsd_iovec, iov_len * sizeof(struct iovec));
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_stream.c,v 1.92 2017/09/16 09:05:29 martin Exp $ */
/* $NetBSD: svr4_stream.c,v 1.93 2018/05/05 02:09:40 christos Exp $ */
/*-
* Copyright (c) 1994, 2008 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: svr4_stream.c,v 1.92 2017/09/16 09:05:29 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: svr4_stream.c,v 1.93 2018/05/05 02:09:40 christos Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -1540,7 +1540,7 @@ svr4_sys_putmsg(struct lwp *l, const struct svr4_sys_putmsg_args *uap, register_
aiov.iov_base = NETBSD32PTR(dat.buf);
aiov.iov_len = dat.len;
error = do_sys_sendmsg(l, SCARG(uap, fd), &msg,
SCARG(uap, flags), NULL, 0, retval);
SCARG(uap, flags), retval);
*retval = 0;
return error;
@ -1781,7 +1781,7 @@ svr4_sys_getmsg(struct lwp *l, const struct svr4_sys_getmsg_args *uap, register_
aiov.iov_len = dat.maxlen;
msg.msg_flags = 0;
error = do_sys_recvmsg(l, SCARG(uap, fd), &msg, NULL, 0,
error = do_sys_recvmsg(l, SCARG(uap, fd), &msg,
&name, NULL, retval);
if (error) {