Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux32/common Follow up commit to fix breakage t...
details: https://anonhg.NetBSD.org/src/rev/d1c902a6e312
branches: trunk
changeset: 749075:d1c902a6e312
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Nov 16 13:32:40 2009 +0000
description:
Follow up commit to fix breakage that somehow passed by the compiler.
diffstat:
sys/compat/linux32/common/linux32_ipc.h | 20 ++++++++++----------
sys/compat/linux32/common/linux32_ipccall.c | 16 ++++++++--------
2 files changed, 18 insertions(+), 18 deletions(-)
diffs (95 lines):
diff -r 5b1ca08274cf -r d1c902a6e312 sys/compat/linux32/common/linux32_ipc.h
--- a/sys/compat/linux32/common/linux32_ipc.h Mon Nov 16 13:11:51 2009 +0000
+++ b/sys/compat/linux32/common/linux32_ipc.h Mon Nov 16 13:32:40 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_ipc.h,v 1.2 2009/11/16 08:49:32 joerg Exp $ */
+/* $NetBSD: linux32_ipc.h,v 1.3 2009/11/16 13:32:40 joerg Exp $ */
/*
* Copyright (c) 2008 Nicolas Joly
@@ -64,15 +64,15 @@
linux_time_t l_msg_ctime;
netbsd32_pointer_t l_wwait; /* Linux internal */
netbsd32_pointer_t l_rwait; /* Linux internal */
- netbsd32_u_short l_msg_cbytes;
- netbsd32_u_short l_msg_qnum;
- netbsd32_u_short l_msg_qbytes;
- netbsd32_u_short l_msg_lspid;
- netbsd32_u_short l_msg_lrpid;
+ ushort l_msg_cbytes;
+ ushort l_msg_qnum;
+ ushort l_msg_qbytes;
+ ushort l_msg_lspid;
+ ushort l_msg_lrpid;
};
-struct linux_msqid64_ds {
- struct linux_ipc64_perm l_msg_perm;
+struct linux32_msqid64_ds {
+ struct linux32_ipc64_perm l_msg_perm;
linux32_time_t l_msg_stime;
netbsd32_u_long l___unused1;
linux32_time_t l_msg_rtime;
@@ -82,8 +82,8 @@
netbsd32_u_long l_msg_cbytes;
netbsd32_u_long l_msg_qnum;
netbsd32_u_long l_msg_qbytes;
- netbsd32_int l_msg_lspid;
- netbsd32_int l_msg_lrpid;
+ int l_msg_lspid;
+ int l_msg_lrpid;
netbsd32_u_long l___unused4;
netbsd32_u_long l___unused5;
diff -r 5b1ca08274cf -r d1c902a6e312 sys/compat/linux32/common/linux32_ipccall.c
--- a/sys/compat/linux32/common/linux32_ipccall.c Mon Nov 16 13:11:51 2009 +0000
+++ b/sys/compat/linux32/common/linux32_ipccall.c Mon Nov 16 13:32:40 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_ipccall.c,v 1.5 2009/11/16 08:49:32 joerg Exp $ */
+/* $NetBSD: linux32_ipccall.c,v 1.6 2009/11/16 13:32:40 joerg Exp $ */
/*
* Copyright (c) 2008 Nicolas Joly
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_ipccall.c,v 1.5 2009/11/16 08:49:32 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_ipccall.c,v 1.6 2009/11/16 13:32:40 joerg Exp $");
#if defined(_KERNEL_OPT)
#include "opt_sysv.h"
@@ -441,12 +441,12 @@
bmp->msg_ctime = lmp->l_msg_ctime;
}
-void
+static void
linux32_to_bsd_msqid64_ds(struct linux32_msqid64_ds *lmp, struct msqid_ds *bmp)
{
memset(bmp, 0, sizeof(*bmp));
- linux_to_bsd_ipc64_perm(&lmp->l_msg_perm, &bmp->msg_perm);
+ linux32_to_bsd_ipc64_perm(&lmp->l_msg_perm, &bmp->msg_perm);
bmp->msg_stime = lmp->l_msg_stime;
bmp->msg_rtime = lmp->l_msg_rtime;
bmp->msg_ctime = lmp->l_msg_ctime;
@@ -475,14 +475,14 @@
lmp->l_msg_ctime = bmp->msg_ctime;
}
-void
+static void
bsd_to_linux32_msqid64_ds(struct msqid_ds *bmp, struct linux32_msqid64_ds *lmp)
{
memset(lmp, 0, sizeof(*lmp));
- bsd_to_linux_ipc64_perm(&bmp->msg_perm, &lmp->l_msg_perm);
- NETBSD32PTR32(lmp->l_msg_stime, bmp->msg_stime);
- NETBSD32PTR32(lmp->l_msg_rtime, bmp->msg_rtime);
+ bsd_to_linux32_ipc64_perm(&bmp->msg_perm, &lmp->l_msg_perm);
+ lmp->l_msg_stime = bmp->msg_stime;
+ lmp->l_msg_rtime = bmp->msg_rtime;
lmp->l_msg_ctime = bmp->msg_ctime;
lmp->l_msg_cbytes = bmp->_msg_cbytes;
lmp->l_msg_qnum = bmp->msg_qnum;
Home |
Main Index |
Thread Index |
Old Index