Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/compat Bring in some more changes from HEAD.



details:   https://anonhg.NetBSD.org/src/rev/7f095d0f4c55
branches:  pgoyette-compat
changeset: 830886:7f095d0f4c55
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Jan 03 10:57:32 2019 +0000

description:
Bring in some more changes from HEAD.

diffstat:

 sys/compat/netbsd32/netbsd32_compat_14_sysv.c |  5 +++--
 sys/compat/netbsd32/netbsd32_conv.h           |  4 +++-
 sys/compat/sys/msg.h                          |  4 +++-
 3 files changed, 9 insertions(+), 4 deletions(-)

diffs (76 lines):

diff -r 9934c39fb10c -r 7f095d0f4c55 sys/compat/netbsd32/netbsd32_compat_14_sysv.c
--- a/sys/compat/netbsd32/netbsd32_compat_14_sysv.c     Tue Jan 01 05:38:34 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_14_sysv.c     Thu Jan 03 10:57:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_compat_14_sysv.c,v 1.1.2.1 2018/09/12 04:35:22 pgoyette Exp $ */
+/*     $NetBSD: netbsd32_compat_14_sysv.c,v 1.1.2.2 2019/01/03 10:57:32 pgoyette Exp $ */
 
 /*
  * Copyright (c) 1999 Eduardo E. Horvath
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_14_sysv.c,v 1.1.2.1 2018/09/12 04:35:22 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_14_sysv.c,v 1.1.2.2 2019/01/03 10:57:32 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sysv.h"
@@ -112,6 +112,7 @@
 native_to_netbsd32_msqid_ds14(struct msqid_ds *msqbuf, struct netbsd32_msqid_ds14 *omsqbuf)
 {
 
+       memset(omsqbuf, 0, sizeof(*omsqbuf));
        native_to_netbsd32_ipc_perm14(&msqbuf->msg_perm, &omsqbuf->msg_perm);
 
 #define        CVT(x)  omsqbuf->x = msqbuf->x
diff -r 9934c39fb10c -r 7f095d0f4c55 sys/compat/netbsd32/netbsd32_conv.h
--- a/sys/compat/netbsd32/netbsd32_conv.h       Tue Jan 01 05:38:34 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32_conv.h       Thu Jan 03 10:57:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_conv.h,v 1.33.2.3 2018/11/26 01:52:29 pgoyette Exp $  */
+/*     $NetBSD: netbsd32_conv.h,v 1.33.2.4 2019/01/03 10:57:32 pgoyette Exp $  */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -555,6 +555,7 @@
     struct netbsd32_msqid_ds50 *ds32p)
 {
 
+       nemset(ds32p, 0, sizeof(*ds32p));
        netbsd32_from_ipc_perm(&dsp->msg_perm, &ds32p->msg_perm);
        ds32p->_msg_cbytes = (netbsd32_u_long)dsp->_msg_cbytes;
        ds32p->msg_qnum = (netbsd32_u_long)dsp->msg_qnum;
@@ -571,6 +572,7 @@
     struct netbsd32_msqid_ds *ds32p)
 {
 
+       memset(ds32p, 0, sizeof(*ds32p));
        netbsd32_from_ipc_perm(&dsp->msg_perm, &ds32p->msg_perm);
        ds32p->_msg_cbytes = (netbsd32_u_long)dsp->_msg_cbytes;
        ds32p->msg_qnum = (netbsd32_u_long)dsp->msg_qnum;
diff -r 9934c39fb10c -r 7f095d0f4c55 sys/compat/sys/msg.h
--- a/sys/compat/sys/msg.h      Tue Jan 01 05:38:34 2019 +0000
+++ b/sys/compat/sys/msg.h      Thu Jan 03 10:57:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.h,v 1.4 2009/01/19 19:39:41 christos Exp $ */
+/*     $NetBSD: msg.h,v 1.4.64.1 2019/01/03 10:57:32 pgoyette Exp $    */
 
 /*
  * SVID compatible msg.h file
@@ -108,6 +108,7 @@
 __native_to_msqid_ds13(const struct msqid_ds *msqbuf, struct msqid_ds13 *omsqbuf)
 {
 
+       memset(omsqbuf, 0, sizeof(*omsqbuf));
        omsqbuf->msg_perm = msqbuf->msg_perm;
 
 #define        CVT(x)  omsqbuf->x = msqbuf->x
@@ -149,6 +150,7 @@
 __native_to_msqid_ds14(const struct msqid_ds *msqbuf, struct msqid_ds14 *omsqbuf)
 {
 
+       memset(omsqbuf, 0, sizeof(*omsqbuf));
        __native_to_ipc_perm14(&msqbuf->msg_perm, &omsqbuf->msg_perm);
 
 #define        CVT(x)  omsqbuf->x = msqbuf->x



Home | Main Index | Thread Index | Old Index