CVS commit: src/sys/compat/linux32/common

2021-11-26 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Fri Nov 26 19:28:37 UTC 2021

Modified Files:
src/sys/compat/linux32/common: linux32_termios.c

Log Message:
The changes on compat/linux/common/linux_termios.c should also
be applied to compat/linux32/common/linux_termios.c, and reduce diff.

- remove duplicate fd_putfile(). This will be done after "goto out;".
- catch up from compat/linux/common/linux_termios.c r1.26  TIOCSPTLCK
- catch up from compat/linux/common/linux_termios.c r1.37  (TCOOFF/TCOON) of 
the TCXONC
- catch up from compat/linux/common/linux_termios.c r1.39  FIOCLEX and FIONCLEX


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/compat/linux32/common/linux32_termios.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux32/common/linux32_termios.c
diff -u src/sys/compat/linux32/common/linux32_termios.c:1.15 src/sys/compat/linux32/common/linux32_termios.c:1.16
--- src/sys/compat/linux32/common/linux32_termios.c:1.15	Fri Aug 23 12:09:18 2019
+++ src/sys/compat/linux32/common/linux32_termios.c	Fri Nov 26 19:28:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_termios.c,v 1.15 2019/08/23 12:09:18 maxv Exp $ */
+/*	$NetBSD: linux32_termios.c,v 1.16 2021/11/26 19:28:37 ryo Exp $ */
 
 /*-
  * Copyright (c) 1995-2006, 2008  The NetBSD Foundation, Inc.
@@ -30,21 +30,20 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux32_termios.c,v 1.15 2019/08/23 12:09:18 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_termios.c,v 1.16 2021/11/26 19:28:37 ryo Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_linux32.h"
+#include "opt_ptm.h"
 #endif
 
-#include 
 #include 
-#include 
-#include 
 #include 
-#include 
+#include 
 #include 
 #include 
-#include 
+#include 
+#include 
 #include 
 #include 
 
@@ -64,8 +63,15 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_term
 #include 
 #include 
 #include 
+
 #include 
 
+#ifdef DEBUG_LINUX
+#define DPRINTF(a)	uprintf a
+#else
+#define DPRINTF(a)
+#endif
+
 int
 linux32_ioctl_termios(struct lwp *l, const struct linux32_sys_ioctl_args *uap, register_t *retval)
 {
@@ -89,7 +95,6 @@ linux32_ioctl_termios(struct lwp *l, con
 		return (EBADF);
 
 	if ((fp->f_flag & (FREAD | FWRITE)) == 0) {
-		fd_putfile(SCARG(uap, fd));
 		error = EBADF;
 		goto out;
 	}
@@ -279,6 +284,12 @@ linux32_ioctl_termios(struct lwp *l, con
 	case LINUX32_TIOCSPGRP:
 		SCARG(, com) = TIOCSPGRP;
 		break;
+	case LINUX32_FIOCLEX:
+		SCARG(, com) = FIOCLEX;
+		break;
+	case LINUX32_FIONCLEX:
+		SCARG(, com) = FIONCLEX;
+		break;
 	case LINUX32_FIONREAD:
 		SCARG(, com) = FIONREAD;
 		break;
@@ -344,6 +355,31 @@ linux32_ioctl_termios(struct lwp *l, con
 		}
 #endif /* NO_DEV_PTM */
 #endif /* LINUX32_TIOCGPTN */
+#ifdef LINUX32_TIOCSPTLCK
+	case LINUX32_TIOCSPTLCK:
+			fd_putfile(SCARG(uap, fd));
+			error = copyin(SCARG_P32(uap, data), , sizeof(idat));
+			if (error)
+return error;
+			DPRINTF(("TIOCSPTLCK %d\n", idat));
+			return 0;
+#endif
+	case LINUX32_TCXONC:
+		idat = (u_long)SCARG_P32(uap, data);
+		switch (idat) {
+		case LINUX_TCOOFF:
+			SCARG(, com) = TIOCSTOP;
+			break;
+		case LINUX_TCOON:
+			SCARG(, com) = TIOCSTART;
+			break;
+		case LINUX_TCIOFF:
+		case LINUX_TCION:
+		default:
+			error = EINVAL;
+			goto out;
+		}
+		break;
 	default:
 		error = EINVAL;
 		goto out;



CVS commit: src/sys/compat/linux32/common

2021-11-26 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Fri Nov 26 19:28:37 UTC 2021

Modified Files:
src/sys/compat/linux32/common: linux32_termios.c

Log Message:
The changes on compat/linux/common/linux_termios.c should also
be applied to compat/linux32/common/linux_termios.c, and reduce diff.

- remove duplicate fd_putfile(). This will be done after "goto out;".
- catch up from compat/linux/common/linux_termios.c r1.26  TIOCSPTLCK
- catch up from compat/linux/common/linux_termios.c r1.37  (TCOOFF/TCOON) of 
the TCXONC
- catch up from compat/linux/common/linux_termios.c r1.39  FIOCLEX and FIONCLEX


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/compat/linux32/common/linux32_termios.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux32/common

2021-11-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Nov 26 13:32:38 UTC 2021

Modified Files:
src/sys/compat/linux32/common: linux32_signal.c

Log Message:
Remove #error, fixes the build. I don't understand why this would not work
on big endian. We use this construct to convert pointers everywhere else.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/compat/linux32/common/linux32_signal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux32/common/linux32_signal.c
diff -u src/sys/compat/linux32/common/linux32_signal.c:1.23 src/sys/compat/linux32/common/linux32_signal.c:1.24
--- src/sys/compat/linux32/common/linux32_signal.c:1.23	Mon Nov  1 01:07:16 2021
+++ src/sys/compat/linux32/common/linux32_signal.c	Fri Nov 26 08:32:38 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_signal.c,v 1.23 2021/11/01 05:07:16 thorpej Exp $ */
+/*	$NetBSD: linux32_signal.c,v 1.24 2021/11/26 13:32:38 christos Exp $ */
 
 /*-
  * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux32_signal.c,v 1.23 2021/11/01 05:07:16 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_signal.c,v 1.24 2021/11/26 13:32:38 christos Exp $");
 
 #include 
 #include 
@@ -679,12 +679,8 @@ linux32_to_native_sigevent(struct sigeve
 		return ENOTSUP;
 	}
 
-#if _BYTE_ORDER == _LITTLE_ENDIAN
 	nsep->sigev_value.sival_ptr =
 	NETBSD32PTR64(lsep->sigev_value.sival_ptr);
-#else
-#error This is probably broken on big-endian platforms.
-#endif
 
 	if (lsep->sigev_signo < 0 || lsep->sigev_signo >= LINUX32__NSIG) {
 		return EINVAL;



CVS commit: src/sys/compat/linux32/common

2021-11-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Nov 26 13:32:38 UTC 2021

Modified Files:
src/sys/compat/linux32/common: linux32_signal.c

Log Message:
Remove #error, fixes the build. I don't understand why this would not work
on big endian. We use this construct to convert pointers everywhere else.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/compat/linux32/common/linux32_signal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux32/common

2021-09-19 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Sep 19 22:32:45 UTC 2021

Modified Files:
src/sys/compat/linux32/common: linux32_misc.c

Log Message:
Remove redundant linux32_to_native_timespec() prototype.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/compat/linux32/common/linux32_misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux32/common/linux32_misc.c
diff -u src/sys/compat/linux32/common/linux32_misc.c:1.30 src/sys/compat/linux32/common/linux32_misc.c:1.31
--- src/sys/compat/linux32/common/linux32_misc.c:1.30	Sun May  3 01:06:56 2020
+++ src/sys/compat/linux32/common/linux32_misc.c	Sun Sep 19 22:32:45 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_misc.c,v 1.30 2020/05/03 01:06:56 thorpej Exp $	*/
+/*	$NetBSD: linux32_misc.c,v 1.31 2021/09/19 22:32:45 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux32_misc.c,v 1.30 2020/05/03 01:06:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_misc.c,v 1.31 2021/09/19 22:32:45 thorpej Exp $");
 
 #include 
 #include 
@@ -67,8 +67,6 @@ __KERNEL_RCSID(0, "$NetBSD: linux32_misc
 extern const struct linux_mnttypes linux_fstypes[];
 extern const int linux_fstypes_cnt;
 
-void linux32_to_native_timespec(struct timespec *, struct linux32_timespec *);
-
 /*
  * Implement the fs stat functions. Straightforward.
  */



CVS commit: src/sys/compat/linux32/common

2021-09-19 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Sep 19 22:32:45 UTC 2021

Modified Files:
src/sys/compat/linux32/common: linux32_misc.c

Log Message:
Remove redundant linux32_to_native_timespec() prototype.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/compat/linux32/common/linux32_misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux32/common

2021-09-19 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Sep 19 22:09:32 UTC 2021

Modified Files:
src/sys/compat/linux32/common: linux32_sched.h

Log Message:
G/C some unused (and unnecessary) definitions.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux32/common/linux32_sched.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux32/common/linux32_sched.h
diff -u src/sys/compat/linux32/common/linux32_sched.h:1.1 src/sys/compat/linux32/common/linux32_sched.h:1.2
--- src/sys/compat/linux32/common/linux32_sched.h:1.1	Fri Nov 18 04:08:56 2011
+++ src/sys/compat/linux32/common/linux32_sched.h	Sun Sep 19 22:09:31 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_sched.h,v 1.1 2011/11/18 04:08:56 christos Exp $	*/
+/*	$NetBSD: linux32_sched.h,v 1.2 2021/09/19 22:09:31 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -33,54 +33,15 @@
 #ifndef _LINUX32_SCHED_H
 #define	_LINUX32_SCHED_H
 
-/*
- * Flags passed to the Linux __clone(2) system call.
- */
-#define	LINUX32_CLONE_CSIGNAL	0x00ff	/* signal to be sent at exit */
-#define	LINUX32_CLONE_VM		0x0100	/* share address space */
-#define	LINUX32_CLONE_FS		0x0200	/* share "file system" info */
-#define	LINUX32_CLONE_FILES	0x0400	/* share file descriptors */
-#define	LINUX32_CLONE_SIGHAND	0x0800	/* share signal actions */
-#define	LINUX32_CLONE_PID		0x1000	/* share process ID */
-#define	LINUX32_CLONE_PTRACE	0x2000	/* ptrace(2) continues on
-		   child */
-#define	LINUX32_CLONE_VFORK	0x4000	/* parent blocks until child
-		   exits */
-#define LINUX32_CLONE_PARENT	0x8000	/* want same parent as cloner */
-#define LINUX32_CLONE_THREAD	0x0001	/* same thread group */
-#define LINUX32_CLONE_NEWNS	0x0002	/* new namespace group */
-#define LINUX32_CLONE_SYSVSEM	0x0004	/* share SysV SEM_UNDO */
-#define LINUX32_CLONE_SETTLS	0x0008	/* create new TLS for child */
-#define LINUX32_CLONE_PARENT_SETTID \
-0x0010	/* set TID in the parent */
-#define LINUX32_CLONE_CHILD_CLEARTID \
-0x0020	/* clear TID in the child */
-#define LINUX32_CLONE_DETACHED	0x0040	/* unused */
-#define LINUX32_CLONE_UNTRACED	0x0080	/* set if parent cannot force CLONE_PTRACE */
-#define LINUX32_CLONE_CHILD_SETTID \
-0x0100	/* set TID in the child */
-#define LINUX32_CLONE_STOPPED	0x0200	/* start in stopped state */
-
 struct linux32_sched_param {
 	int	sched_priority;
 };
 
-#define LINUX32_SCHED_OTHER	0
-#define LINUX32_SCHED_FIFO	1
-#define LINUX32_SCHED_RR		2
-
 struct linux32_timespec {
 	linux32_time_t	tv_sec;		/* seconds */
 	int		tv_nsec;	/* nanoseconds */
 };
 
-#define LINUX32_CLOCK_REALTIME		0
-#define LINUX32_CLOCK_MONOTONIC		1
-#define LINUX32_CLOCK_PROCESS_CPUTIME_ID	2
-#define LINUX32_CLOCK_THREAD_CPUTIME_ID	3
-#define LINUX32_CLOCK_REALTIME_HR		4
-#define LINUX32_CLOCK_MONOTONIC_HR	5
-
 int linux32_to_native_clockid(clockid_t *, clockid_t);
 void native_to_linux32_timespec(struct linux32_timespec *, struct timespec *);
 void linux32_to_native_timespec(struct timespec *, struct linux32_timespec *);



CVS commit: src/sys/compat/linux32/common

2021-09-19 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Sep 19 22:09:32 UTC 2021

Modified Files:
src/sys/compat/linux32/common: linux32_sched.h

Log Message:
G/C some unused (and unnecessary) definitions.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux32/common/linux32_sched.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux32/common

2019-08-23 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Aug 23 13:49:12 UTC 2019

Modified Files:
src/sys/compat/linux32/common: linux32_misc.c

Log Message:
Hum, don't forget the 'pid' argument, otherwise we're not gonna go very
far.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/compat/linux32/common/linux32_misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux32/common

2019-08-23 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Aug 23 13:49:12 UTC 2019

Modified Files:
src/sys/compat/linux32/common: linux32_misc.c

Log Message:
Hum, don't forget the 'pid' argument, otherwise we're not gonna go very
far.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/compat/linux32/common/linux32_misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux32/common/linux32_misc.c
diff -u src/sys/compat/linux32/common/linux32_misc.c:1.26 src/sys/compat/linux32/common/linux32_misc.c:1.27
--- src/sys/compat/linux32/common/linux32_misc.c:1.26	Mon Apr 10 15:04:32 2017
+++ src/sys/compat/linux32/common/linux32_misc.c	Fri Aug 23 13:49:12 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_misc.c,v 1.26 2017/04/10 15:04:32 dholland Exp $	*/
+/*	$NetBSD: linux32_misc.c,v 1.27 2019/08/23 13:49:12 maxv Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux32_misc.c,v 1.26 2017/04/10 15:04:32 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_misc.c,v 1.27 2019/08/23 13:49:12 maxv Exp $");
 
 #include 
 #include 
@@ -293,11 +293,13 @@ linux32_sys_get_robust_list(struct lwp *
 const struct linux32_sys_get_robust_list_args *uap, register_t *retval)
 {
 	/* {
+		syscallarg(linux32_pid_t) pid;
 		syscallarg(linux32_robust_list_headpp_t) head;
 		syscallarg(linux32_sizep_t) len;
 	} */
 	struct linux_sys_get_robust_list_args ua;
 
+	NETBSD32TOX_UAP(pid, int);
 	NETBSD32TOP_UAP(head, struct robust_list_head *);
 	NETBSD32TOP_UAP(len, size_t *);
 	return linux_sys_get_robust_list(l, , retval);



CVS commit: src/sys/compat/linux32/common

2019-08-23 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Aug 23 12:49:59 UTC 2019

Modified Files:
src/sys/compat/linux32/common: linux32_ioctl.c

Log Message:
Put the printf under DEBUG_LINUX.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/compat/linux32/common/linux32_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/linux32/common

2019-08-23 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Aug 23 12:49:59 UTC 2019

Modified Files:
src/sys/compat/linux32/common: linux32_ioctl.c

Log Message:
Put the printf under DEBUG_LINUX.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/compat/linux32/common/linux32_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux32/common/linux32_ioctl.c
diff -u src/sys/compat/linux32/common/linux32_ioctl.c:1.13 src/sys/compat/linux32/common/linux32_ioctl.c:1.14
--- src/sys/compat/linux32/common/linux32_ioctl.c:1.13	Tue Aug 18 02:02:58 2009
+++ src/sys/compat/linux32/common/linux32_ioctl.c	Fri Aug 23 12:49:59 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_ioctl.c,v 1.13 2009/08/18 02:02:58 christos Exp $ */
+/*	$NetBSD: linux32_ioctl.c,v 1.14 2019/08/23 12:49:59 maxv Exp $ */
 
 /*-
  * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux32_ioctl.c,v 1.13 2009/08/18 02:02:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_ioctl.c,v 1.14 2019/08/23 12:49:59 maxv Exp $");
 
 #include 
 #include 
@@ -124,7 +124,9 @@ linux32_sys_ioctl(struct lwp *l, const s
 		error = linux32_ioctl_socket(l, uap, retval);
 		break;
 	default:
+#ifdef DEBUG_LINUX
 		printf("Not yet implemented ioctl group \'%c\'\n", group);
+#endif
 		error = EINVAL;
 		break;
 	}



Re: CVS commit: src/sys/compat/linux32/common

2009-11-16 Thread Christoph Egger
Joerg Sonnenberger wrote:
 Module Name:  src
 Committed By: joerg
 Date: Mon Nov 16 08:49:32 UTC 2009
 
 Modified Files:
   src/sys/compat/linux32/common: linux32_ipc.h linux32_ipccall.c
 
 Log Message:
 Add SYSVMSG support for linux32.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux32/common/linux32_ipc.h
 cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux32/common/linux32_ipccall.c
 

Did you forgot to commit some files?

This breaks the build for me when compiling amd64:

In file included from
/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:50:/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipc.h:69:
error: expected specifier-qualifier-list before
'netbsd32_u_short'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipc.h:77:
error: field 'l_msg_perm' has incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipc.h:87:
error: expected specifier-qualifier-list before
'netbsd32_int'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:
In function
'linux32_to_bsd_msqid_ds':/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:434:
error: 'struct linux32_msqid_ds' has no member named
'l_msg_cbytes'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:435:
error: 'struct linux32_msqid_ds' has no member named
'l_msg_qnum'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:436:
error: 'struct linux32_msqid_ds' has no member named
'l_msg_qbytes'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:437:
error: 'struct linux32_msqid_ds' has no member named
'l_msg_lspid'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:438:
error: 'struct linux32_msqid_ds' has no member named 'l_msg_lrpid'cc1:
warnings being treated as
errors/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:
At top
level:/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:445:
warning: 'struct linux32_msqid64_ds' declared inside parameter
list/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:445:
warning: its scope is only this definition or declaration, which is
probably not what you
want/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:446:
warning: no previous prototype for
'linux32_to_bsd_msqid64_ds'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:
In function
'linux32_to_bsd_msqid64_ds':/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:449:
warning: implicit declaration of function
'linux_to_bsd_ipc64_perm'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:449:
error: dereferencing pointer to incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:450:
error: dereferencing pointer to incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:451:
error: dereferencing pointer to incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:452:
error: dereferencing pointer to incomplete type
/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:453:
error: dereferencing pointer to incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:454:
error: dereferencing pointer to incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:455:
error: dereferencing pointer to incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:456:
error: dereferencing pointer to incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:457:
error: dereferencing pointer to incomplete
type/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:
In function
'bsd_to_linux32_msqid_ds':/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:468:
error: 'struct linux32_msqid_ds' has no member named
'l_msg_cbytes'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:469:
error: 'struct linux32_msqid_ds' has no member named
'l_msg_qnum'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:470:
error: 'struct linux32_msqid_ds' has no member named
'l_msg_qbytes'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:471:
error: 'struct linux32_msqid_ds' has no member named
'l_msg_lspid'/Users/cegger/devel/bsd/netbsd/src-x86/sys/compat/linux32/common/linux32_ipccall.c:472:
error: 'struct linux32_msqid_ds' has no member named

Re: CVS commit: src/sys/compat/linux32/common

2009-11-16 Thread Joerg Sonnenberger
On Mon, Nov 16, 2009 at 03:05:43PM +0100, Christoph Egger wrote:
  Log Message:
  Follow up commit to fix breakage that somehow passed by the compiler.
 
 Better, but still doesn't build:

Full build.sh -m amd64 release from fresh tree finished.
Aka I can't reproduce

Joerg