Remove all the __P
This commit is contained in:
parent
b831a8ada2
commit
f2af9174b9
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: aoutm68k_exec.c,v 1.20 2005/12/11 12:19:56 christos Exp $ */
|
||||
/* $NetBSD: aoutm68k_exec.c,v 1.21 2007/12/04 18:40:07 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.20 2005/12/11 12:19:56 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aoutm68k_exec.c,v 1.21 2007/12/04 18:40:07 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_syscall_debug.h"
|
||||
@ -59,7 +59,7 @@ extern struct sysent aoutm68k_sysent[];
|
||||
extern const char * const syscallnames[];
|
||||
#endif
|
||||
extern char sigcode[], esigcode[];
|
||||
void aoutm68k_syscall_intern __P((struct proc *));
|
||||
void aoutm68k_syscall_intern(struct proc *);
|
||||
|
||||
struct uvm_object *emul_netbsd_aoutm68k_object;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_sig_43.c,v 1.27 2007/10/19 12:16:36 ad Exp $ */
|
||||
/* $NetBSD: kern_sig_43.c,v 1.28 2007/12/04 18:40:07 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_sig_43.c,v 1.27 2007/10/19 12:16:36 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_sig_43.c,v 1.28 2007/12/04 18:40:07 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -72,12 +72,12 @@ __KERNEL_RCSID(0, "$NetBSD: kern_sig_43.c,v 1.27 2007/10/19 12:16:36 ad Exp $");
|
||||
|
||||
#include <compat/sys/signal.h>
|
||||
|
||||
void compat_43_sigmask_to_sigset __P((const int *, sigset_t *));
|
||||
void compat_43_sigset_to_sigmask __P((const sigset_t *, int *));
|
||||
void compat_43_sigvec_to_sigaction __P((const struct sigvec *, struct sigaction *));
|
||||
void compat_43_sigaction_to_sigvec __P((const struct sigaction *, struct sigvec *));
|
||||
void compat_43_sigstack_to_sigaltstack __P((const struct sigstack *, struct sigaltstack *));
|
||||
void compat_43_sigaltstack_to_sigstack __P((const struct sigaltstack *, struct sigstack *));
|
||||
void compat_43_sigmask_to_sigset(const int *, sigset_t *);
|
||||
void compat_43_sigset_to_sigmask(const sigset_t *, int *);
|
||||
void compat_43_sigvec_to_sigaction(const struct sigvec *, struct sigaction *);
|
||||
void compat_43_sigaction_to_sigvec(const struct sigaction *, struct sigvec *);
|
||||
void compat_43_sigstack_to_sigaltstack(const struct sigstack *, struct sigaltstack *);
|
||||
void compat_43_sigaltstack_to_sigstack(const struct sigaltstack *, struct sigstack *);
|
||||
|
||||
void
|
||||
compat_43_sigmask_to_sigset(sm, ss)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sysv_msg_14.c,v 1.13 2007/02/09 21:55:16 ad Exp $ */
|
||||
/* $NetBSD: sysv_msg_14.c,v 1.14 2007/12/04 18:40:07 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sysv_msg_14.c,v 1.13 2007/02/09 21:55:16 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sysv_msg_14.c,v 1.14 2007/12/04 18:40:07 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -55,8 +55,8 @@ __KERNEL_RCSID(0, "$NetBSD: sysv_msg_14.c,v 1.13 2007/02/09 21:55:16 ad Exp $");
|
||||
|
||||
#include <sys/syscallargs.h>
|
||||
|
||||
static void msqid_ds14_to_native __P((struct msqid_ds14 *, struct msqid_ds *));
|
||||
static void native_to_msqid_ds14 __P((struct msqid_ds *, struct msqid_ds14 *));
|
||||
static void msqid_ds14_to_native(struct msqid_ds14 *, struct msqid_ds *);
|
||||
static void native_to_msqid_ds14(struct msqid_ds *, struct msqid_ds14 *);
|
||||
|
||||
static void
|
||||
msqid_ds14_to_native(omsqbuf, msqbuf)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sysv_shm_14.c,v 1.11 2007/02/09 21:55:16 ad Exp $ */
|
||||
/* $NetBSD: sysv_shm_14.c,v 1.12 2007/12/04 18:40:07 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sysv_shm_14.c,v 1.11 2007/02/09 21:55:16 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sysv_shm_14.c,v 1.12 2007/12/04 18:40:07 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -55,8 +55,8 @@ __KERNEL_RCSID(0, "$NetBSD: sysv_shm_14.c,v 1.11 2007/02/09 21:55:16 ad Exp $");
|
||||
|
||||
#include <compat/sys/shm.h>
|
||||
|
||||
static void shmid_ds14_to_native __P((struct shmid_ds14 *, struct shmid_ds *));
|
||||
static void native_to_shmid_ds14 __P((struct shmid_ds *, struct shmid_ds14 *));
|
||||
static void shmid_ds14_to_native(struct shmid_ds14 *, struct shmid_ds *);
|
||||
static void native_to_shmid_ds14(struct shmid_ds *, struct shmid_ds14 *);
|
||||
|
||||
static void
|
||||
shmid_ds14_to_native(oshmbuf, shmbuf)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tty_43.c,v 1.22 2007/03/04 06:01:13 christos Exp $ */
|
||||
/* $NetBSD: tty_43.c,v 1.23 2007/12/04 18:40:07 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1991, 1993
|
||||
@ -36,7 +36,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1.22 2007/03/04 06:01:13 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tty_43.c,v 1.23 2007/12/04 18:40:07 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -84,9 +84,9 @@ static const int compatspcodes[] = {
|
||||
1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200
|
||||
};
|
||||
|
||||
int ttcompatgetflags __P((struct tty *));
|
||||
void ttcompatsetflags __P((struct tty *, struct termios *));
|
||||
void ttcompatsetlflags __P((struct tty *, struct termios *));
|
||||
int ttcompatgetflags(struct tty *);
|
||||
void ttcompatsetflags(struct tty *, struct termios *);
|
||||
void ttcompatsetlflags(struct tty *, struct termios *);
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vfs_syscalls_43.c,v 1.41 2007/11/26 19:01:29 pooka Exp $ */
|
||||
/* $NetBSD: vfs_syscalls_43.c,v 1.42 2007/12/04 18:40:08 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_43.c,v 1.41 2007/11/26 19:01:29 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_43.c,v 1.42 2007/12/04 18:40:08 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "fs_union.h"
|
||||
@ -70,7 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_43.c,v 1.41 2007/11/26 19:01:29 pooka E
|
||||
#include <compat/sys/stat.h>
|
||||
#include <compat/sys/mount.h>
|
||||
|
||||
static void cvtstat __P((struct stat *, struct stat43 *));
|
||||
static void cvtstat(struct stat *, struct stat43 *);
|
||||
|
||||
/*
|
||||
* Convert from an old to a new stat structure.
|
||||
@ -442,8 +442,8 @@ unionread:
|
||||
|
||||
#ifdef UNION
|
||||
{
|
||||
extern int (**union_vnodeop_p) __P((void *));
|
||||
extern struct vnode *union_dircache __P((struct vnode *));
|
||||
extern int (**union_vnodeop_p)(void *);
|
||||
extern struct vnode *union_dircache(struct vnode *);
|
||||
|
||||
if ((count == auio.uio_resid) &&
|
||||
(vp->v_op == union_vnodeop_p)) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: freebsd_exec.h,v 1.14 2005/12/11 12:20:02 christos Exp $ */
|
||||
/* $NetBSD: freebsd_exec.h,v 1.15 2007/12/04 18:40:08 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -91,7 +91,7 @@
|
||||
|
||||
#define FREEBSD_AOUT_HDR_SIZE sizeof(struct exec)
|
||||
|
||||
int exec_freebsd_aout_makecmds __P((struct lwp *, struct exec_package *));
|
||||
int exec_freebsd_aout_makecmds(struct lwp *, struct exec_package *);
|
||||
|
||||
#endif /* EXEC_AOUT */
|
||||
|
||||
@ -99,11 +99,11 @@ int exec_freebsd_aout_makecmds __P((struct lwp *, struct exec_package *));
|
||||
#define FREEBSD_ELF_BRAND_STRING "FreeBSD"
|
||||
#define FREEBSD_ELF_INTERP_PREFIX_STRING "/usr/libexec/ld-elf.so"
|
||||
|
||||
int freebsd_elf32_probe __P((struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *));
|
||||
int freebsd_elf32_probe(struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *);
|
||||
#endif /* EXEC_ELF32 */
|
||||
|
||||
void freebsd_setregs __P((struct lwp *, struct exec_package *, u_long));
|
||||
void freebsd_setregs(struct lwp *, struct exec_package *, u_long);
|
||||
|
||||
extern char freebsd_sigcode[], freebsd_esigcode[];
|
||||
extern const struct emul emul_freebsd;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: freebsd_file.c,v 1.28 2007/07/17 20:33:17 christos Exp $ */
|
||||
/* $NetBSD: freebsd_file.c,v 1.29 2007/12/04 18:40:08 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: freebsd_file.c,v 1.28 2007/07/17 20:33:17 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: freebsd_file.c,v 1.29 2007/12/04 18:40:08 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "fs_nfs.h"
|
||||
@ -60,7 +60,7 @@ __KERNEL_RCSID(0, "$NetBSD: freebsd_file.c,v 1.28 2007/07/17 20:33:17 christos E
|
||||
|
||||
#define ARRAY_LENGTH(array) (sizeof(array)/sizeof(array[0]))
|
||||
|
||||
static const char * convert_from_freebsd_mount_type __P((int));
|
||||
static const char * convert_from_freebsd_mount_type(int);
|
||||
|
||||
static const char *
|
||||
convert_from_freebsd_mount_type(type)
|
||||
|
@ -27,7 +27,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ptrace.h 8.2 (Berkeley) 1/4/94
|
||||
* $NetBSD: freebsd_ptrace.h,v 1.5 2007/03/04 06:01:15 christos Exp $
|
||||
* $NetBSD: freebsd_ptrace.h,v 1.6 2007/12/04 18:40:08 dsl Exp $
|
||||
*/
|
||||
|
||||
#ifndef _FREEBSD_PTRACE_H_
|
||||
@ -51,13 +51,13 @@
|
||||
|
||||
#define FREEBSD_PT_FIRSTMACH 32 /* for machine-specific requests */
|
||||
|
||||
void netbsd_to_freebsd_ptrace_regs __P((struct reg *, struct fpreg *,
|
||||
struct freebsd_ptrace_reg *));
|
||||
void freebsd_to_netbsd_ptrace_regs __P((struct freebsd_ptrace_reg *,
|
||||
struct reg *, struct fpreg *));
|
||||
int freebsd_ptrace_getregs __P((struct freebsd_ptrace_reg *, void *,
|
||||
register_t *));
|
||||
int freebsd_ptrace_setregs __P((struct freebsd_ptrace_reg *, void *,
|
||||
int));
|
||||
void netbsd_to_freebsd_ptrace_regs(struct reg *, struct fpreg *,
|
||||
struct freebsd_ptrace_reg *);
|
||||
void freebsd_to_netbsd_ptrace_regs(struct freebsd_ptrace_reg *,
|
||||
struct reg *, struct fpreg *);
|
||||
int freebsd_ptrace_getregs(struct freebsd_ptrace_reg *, void *,
|
||||
register_t *);
|
||||
int freebsd_ptrace_setregs(struct freebsd_ptrace_reg *, void *,
|
||||
int);
|
||||
|
||||
#endif /* !_FREEBSD_PTRACE_H_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: freebsd_signal.h,v 1.7 2005/12/11 12:20:02 christos Exp $ */
|
||||
/* $NetBSD: freebsd_signal.h,v 1.8 2007/12/04 18:40:08 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Atsushi Onoe
|
||||
@ -36,7 +36,7 @@
|
||||
#define _FREEBSD_SIG_H
|
||||
|
||||
struct freebsd_sigaction4 {
|
||||
void (*freebsd_sa_handler) __P((int)); /* signal handler */
|
||||
void (*freebsd_sa_handler)(int); /* signal handler */
|
||||
int freebsd_sa_flags; /* see signal options below */
|
||||
sigset_t freebsd_sa_mask; /* signal mask to apply */
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: freebsd_timex.h,v 1.3 2001/09/16 16:34:35 wiz Exp $ */
|
||||
/* $NetBSD: freebsd_timex.h,v 1.4 2007/12/04 18:40:08 dsl Exp $ */
|
||||
|
||||
/******************************************************************************
|
||||
* *
|
||||
@ -294,8 +294,8 @@ struct freebsd_timex {
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
extern int ntp_gettime __P((struct ntptimeval *));
|
||||
extern int ntp_adjtime __P((struct timex *));
|
||||
extern int ntp_gettime(struct ntptimeval *);
|
||||
extern int ntp_adjtime(struct timex *);
|
||||
__END_DECLS
|
||||
|
||||
#endif /* not _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux.h,v 1.20 2005/12/11 12:20:02 christos Exp $ */
|
||||
/* $NetBSD: hpux.h,v 1.21 2007/12/04 18:40:08 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -322,7 +322,7 @@ struct hpux_flock {
|
||||
/* HP-UX POSIX signal stuff implementation */
|
||||
typedef struct __hpux_sigset_t { int sigset[8]; } hpux_sigset_t;
|
||||
struct hpux_sigaction {
|
||||
void (*hpux_sa_handler) __P((int));
|
||||
void (*hpux_sa_handler)(int);
|
||||
hpux_sigset_t hpux_sa_mask;
|
||||
int hpux_sa_flags;
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_exec.c,v 1.53 2007/10/19 12:16:37 ad Exp $ */
|
||||
/* $NetBSD: hpux_exec.c,v 1.54 2007/12/04 18:40:08 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
@ -71,7 +71,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_exec.c,v 1.53 2007/10/19 12:16:37 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_exec.c,v 1.54 2007/12/04 18:40:08 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_syscall_debug.h"
|
||||
@ -109,9 +109,9 @@ extern const char * const hpux_syscallnames[];
|
||||
extern char sigcode[], esigcode[];
|
||||
extern int native_to_hpux_errno[];
|
||||
#ifdef __HAVE_SYSCALL_INTERN
|
||||
void hpux_syscall_intern __P((struct proc *));
|
||||
void hpux_syscall_intern(struct proc *);
|
||||
#else
|
||||
void syscall __P((void));
|
||||
void syscall(void);
|
||||
#endif
|
||||
|
||||
struct uvm_object *emul_hpux_object;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_exec.h,v 1.15 2005/12/11 12:20:02 christos Exp $ */
|
||||
/* $NetBSD: hpux_exec.h,v 1.16 2007/12/04 18:40:09 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
@ -188,8 +188,8 @@ struct hpux_exec {
|
||||
#define HPUXM_STKWT 0x02000000
|
||||
#define HPUXM_DATAWT 0x04000000
|
||||
|
||||
int exec_hpux_makecmds __P((struct lwp *, struct exec_package *));
|
||||
void hpux_setregs __P((struct lwp *, struct exec_package *, u_long));
|
||||
int exec_hpux_makecmds(struct lwp *, struct exec_package *);
|
||||
void hpux_setregs(struct lwp *, struct exec_package *, u_long);
|
||||
|
||||
extern const struct emul emul_hpux;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_exec_aout.c,v 1.15 2007/10/19 12:16:37 ad Exp $ */
|
||||
/* $NetBSD: hpux_exec_aout.c,v 1.16 2007/12/04 18:40:09 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
@ -71,7 +71,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_exec_aout.c,v 1.15 2007/10/19 12:16:37 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_exec_aout.c,v 1.16 2007/12/04 18:40:09 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -98,9 +98,9 @@ __KERNEL_RCSID(0, "$NetBSD: hpux_exec_aout.c,v 1.15 2007/10/19 12:16:37 ad Exp $
|
||||
|
||||
#include <machine/hpux_machdep.h>
|
||||
|
||||
static int exec_hpux_prep_nmagic __P((struct lwp *, struct exec_package *));
|
||||
static int exec_hpux_prep_zmagic __P((struct lwp *, struct exec_package *));
|
||||
static int exec_hpux_prep_omagic __P((struct lwp *, struct exec_package *));
|
||||
static int exec_hpux_prep_nmagic(struct lwp *, struct exec_package *);
|
||||
static int exec_hpux_prep_zmagic(struct lwp *, struct exec_package *);
|
||||
static int exec_hpux_prep_omagic(struct lwp *, struct exec_package *);
|
||||
|
||||
int
|
||||
exec_hpux_makecmds(l, epp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_file.c,v 1.38 2007/10/19 12:16:37 ad Exp $ */
|
||||
/* $NetBSD: hpux_file.c,v 1.39 2007/12/04 18:40:09 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
@ -119,7 +119,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_file.c,v 1.38 2007/10/19 12:16:37 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_file.c,v 1.39 2007/12/04 18:40:09 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -156,9 +156,9 @@ __KERNEL_RCSID(0, "$NetBSD: hpux_file.c,v 1.38 2007/10/19 12:16:37 ad Exp $");
|
||||
#include <compat/hpux/hpux_syscall.h>
|
||||
#include <compat/hpux/hpux_syscallargs.h>
|
||||
|
||||
static int hpux_stat1 __P((struct lwp *, void *, register_t *, int));
|
||||
static void bsd_to_hpux_stat __P((struct stat *, struct hpux_stat *));
|
||||
static void bsd_to_hpux_ostat __P((struct stat *, struct hpux_ostat *));
|
||||
static int hpux_stat1(struct lwp *, void *, register_t *, int);
|
||||
static void bsd_to_hpux_stat(struct stat *, struct hpux_stat *);
|
||||
static void bsd_to_hpux_ostat(struct stat *, struct hpux_ostat *);
|
||||
|
||||
/*
|
||||
* HP-UX creat(2) system call.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_ipc.c,v 1.8 2007/02/09 21:55:16 ad Exp $ */
|
||||
/* $NetBSD: hpux_ipc.c,v 1.9 2007/12/04 18:40:09 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -48,7 +48,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_ipc.c,v 1.8 2007/02/09 21:55:16 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_ipc.c,v 1.9 2007/12/04 18:40:09 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_sysv.h"
|
||||
@ -71,14 +71,14 @@ __KERNEL_RCSID(0, "$NetBSD: hpux_ipc.c,v 1.8 2007/02/09 21:55:16 ad Exp $");
|
||||
#include <compat/hpux/hpux_syscallargs.h>
|
||||
|
||||
#if defined(SYSVMSG) || defined(SYSVSEM) || defined(SYSVSHM)
|
||||
void bsd_to_hpux_ipc_perm __P((const struct ipc_perm *,
|
||||
struct hpux_ipc_perm *));
|
||||
void bsd_to_hpux_oipc_perm __P((const struct ipc_perm *,
|
||||
struct hpux_oipc_perm *));
|
||||
void hpux_to_bsd_ipc_perm __P((const struct hpux_ipc_perm *,
|
||||
struct ipc_perm *));
|
||||
void hpux_to_bsd_oipc_perm __P((const struct hpux_oipc_perm *,
|
||||
struct ipc_perm *));
|
||||
void bsd_to_hpux_ipc_perm(const struct ipc_perm *,
|
||||
struct hpux_ipc_perm *);
|
||||
void bsd_to_hpux_oipc_perm(const struct ipc_perm *,
|
||||
struct hpux_oipc_perm *);
|
||||
void hpux_to_bsd_ipc_perm(const struct hpux_ipc_perm *,
|
||||
struct ipc_perm *);
|
||||
void hpux_to_bsd_oipc_perm(const struct hpux_oipc_perm *,
|
||||
struct ipc_perm *);
|
||||
|
||||
void
|
||||
bsd_to_hpux_ipc_perm(bp, hp)
|
||||
@ -142,15 +142,15 @@ hpux_to_bsd_oipc_perm(hp, bp)
|
||||
#endif /* SYSVMSG || SYSVSEM || SYSVSHM */
|
||||
|
||||
#ifdef SYSVMSG
|
||||
void bsd_to_hpux_msqid_ds __P((const struct msqid_ds *,
|
||||
struct hpux_msqid_ds *));
|
||||
void bsd_to_hpux_omsqid_ds __P((const struct msqid_ds *,
|
||||
struct hpux_omsqid_ds *));
|
||||
void bsd_to_hpux_msqid_ds(const struct msqid_ds *,
|
||||
struct hpux_msqid_ds *);
|
||||
void bsd_to_hpux_omsqid_ds(const struct msqid_ds *,
|
||||
struct hpux_omsqid_ds *);
|
||||
|
||||
void hpux_to_bsd_msqid_ds __P((const struct hpux_msqid_ds *,
|
||||
struct msqid_ds *));
|
||||
void hpux_to_bsd_omsqid_ds __P((const struct hpux_omsqid_ds *,
|
||||
struct msqid_ds *));
|
||||
void hpux_to_bsd_msqid_ds(const struct hpux_msqid_ds *,
|
||||
struct msqid_ds *);
|
||||
void hpux_to_bsd_omsqid_ds(const struct hpux_omsqid_ds *,
|
||||
struct msqid_ds *);
|
||||
|
||||
void
|
||||
bsd_to_hpux_msqid_ds(bp, hp)
|
||||
@ -299,15 +299,15 @@ hpux_sys_msgctl(l, v, retval)
|
||||
#endif /* SYSVMSG */
|
||||
|
||||
#ifdef SYSVSEM
|
||||
void bsd_to_hpux_semid_ds __P((const struct semid_ds *,
|
||||
struct hpux_semid_ds *));
|
||||
void bsd_to_hpux_osemid_ds __P((const struct semid_ds *,
|
||||
struct hpux_osemid_ds *));
|
||||
void bsd_to_hpux_semid_ds(const struct semid_ds *,
|
||||
struct hpux_semid_ds *);
|
||||
void bsd_to_hpux_osemid_ds(const struct semid_ds *,
|
||||
struct hpux_osemid_ds *);
|
||||
|
||||
void hpux_to_bsd_semid_ds __P((const struct hpux_semid_ds *,
|
||||
struct semid_ds *));
|
||||
void hpux_to_bsd_osemid_ds __P((const struct hpux_osemid_ds *,
|
||||
struct semid_ds *));
|
||||
void hpux_to_bsd_semid_ds(const struct hpux_semid_ds *,
|
||||
struct semid_ds *);
|
||||
void hpux_to_bsd_osemid_ds(const struct hpux_osemid_ds *,
|
||||
struct semid_ds *);
|
||||
|
||||
void
|
||||
bsd_to_hpux_semid_ds(bp, hp)
|
||||
@ -463,15 +463,15 @@ hpux_sys_semctl(l, v, retval)
|
||||
#endif /* SYSVSEM */
|
||||
|
||||
#ifdef SYSVSHM
|
||||
void bsd_to_hpux_shmid_ds __P((const struct shmid_ds *,
|
||||
struct hpux_shmid_ds *));
|
||||
void bsd_to_hpux_oshmid_ds __P((const struct shmid_ds *,
|
||||
struct hpux_oshmid_ds *));
|
||||
void bsd_to_hpux_shmid_ds(const struct shmid_ds *,
|
||||
struct hpux_shmid_ds *);
|
||||
void bsd_to_hpux_oshmid_ds(const struct shmid_ds *,
|
||||
struct hpux_oshmid_ds *);
|
||||
|
||||
void hpux_to_bsd_shmid_ds __P((const struct hpux_shmid_ds *,
|
||||
struct shmid_ds *));
|
||||
void hpux_to_bsd_oshmid_ds __P((const struct hpux_oshmid_ds *,
|
||||
struct shmid_ds *));
|
||||
void hpux_to_bsd_shmid_ds(const struct hpux_shmid_ds *,
|
||||
struct shmid_ds *);
|
||||
void hpux_to_bsd_oshmid_ds(const struct hpux_oshmid_ds *,
|
||||
struct shmid_ds *);
|
||||
|
||||
void
|
||||
bsd_to_hpux_shmid_ds(bp, hp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_net.c,v 1.35 2007/08/15 12:07:29 ad Exp $ */
|
||||
/* $NetBSD: hpux_net.c,v 1.36 2007/12/04 18:40:09 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -82,7 +82,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_net.c,v 1.35 2007/08/15 12:07:29 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_net.c,v 1.36 2007/12/04 18:40:09 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -120,10 +120,10 @@ struct hpux_sys_getsockopt_args {
|
||||
syscallarg(int *) avalsize;
|
||||
};
|
||||
|
||||
int hpux_sys_setsockopt __P((struct lwp *, void *, register_t *));
|
||||
int hpux_sys_getsockopt __P((struct lwp *, void *, register_t *));
|
||||
int hpux_sys_setsockopt(struct lwp *, void *, register_t *);
|
||||
int hpux_sys_getsockopt(struct lwp *, void *, register_t *);
|
||||
|
||||
void socksetsize __P((int, struct mbuf *));
|
||||
void socksetsize(int, struct mbuf *);
|
||||
|
||||
|
||||
#define MINBSDIPCCODE 0x3EE
|
||||
@ -135,7 +135,7 @@ void socksetsize __P((int, struct mbuf *));
|
||||
*/
|
||||
|
||||
struct hpuxtobsdipc {
|
||||
int (*rout) __P((struct lwp *, void *, register_t *));
|
||||
int (*rout)(struct lwp *, void *, register_t *);
|
||||
int nargs;
|
||||
} hpuxtobsdipc[NUMBSDIPC] = {
|
||||
{ compat_30_sys_socket, 3 }, /* 3ee */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_sig.c,v 1.35 2007/06/09 21:25:49 ad Exp $ */
|
||||
/* $NetBSD: hpux_sig.c,v 1.36 2007/12/04 18:40:09 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -82,7 +82,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_sig.c,v 1.35 2007/06/09 21:25:49 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_sig.c,v 1.36 2007/12/04 18:40:09 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -123,9 +123,9 @@ hpux_sys_sigvec(l, v, retval)
|
||||
|
||||
/* XXX */
|
||||
extern void compat_43_sigvec_to_sigaction
|
||||
__P((const struct sigvec *, struct sigaction *));
|
||||
(const struct sigvec *, struct sigaction *);
|
||||
extern void compat_43_sigaction_to_sigvec
|
||||
__P((const struct sigaction *, struct sigvec *));
|
||||
(const struct sigaction *, struct sigvec *);
|
||||
|
||||
/*
|
||||
* XXX We don't handle HPUXSV_RESET!
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_sig.h,v 1.4 2005/12/11 12:20:02 christos Exp $ */
|
||||
/* $NetBSD: hpux_sig.h,v 1.5 2007/12/04 18:40:09 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -82,8 +82,8 @@
|
||||
*/
|
||||
|
||||
#ifdef _KERNEL
|
||||
int hpuxtobsdsig __P((int));
|
||||
int bsdtohpuxsig __P((int));
|
||||
void hpuxtobsdmask __P((int, sigset_t *));
|
||||
void bsdtohpuxmask __P((const sigset_t *, int *));
|
||||
int hpuxtobsdsig(int);
|
||||
int bsdtohpuxsig(int);
|
||||
void hpuxtobsdmask(int, sigset_t *);
|
||||
void bsdtohpuxmask(const sigset_t *, int *);
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_termio.h,v 1.11 2007/03/04 06:01:16 christos Exp $ */
|
||||
/* $NetBSD: hpux_termio.h,v 1.12 2007/12/04 18:40:09 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -230,11 +230,11 @@ struct hpux_termios {
|
||||
struct termio;
|
||||
struct termios;
|
||||
|
||||
int hpux_termio __P((int, int, void *, struct lwp *));
|
||||
void termiototermios __P((struct hpux_termio *, struct hpux_termios *,
|
||||
struct termios *));
|
||||
void termiostotermio __P((struct hpux_termios *, struct hpux_termio *));
|
||||
int bsdtohpuxbaud __P((long));
|
||||
int hpuxtobsdbaud __P((int));
|
||||
int getsettty __P((struct lwp *, int, int, void *));
|
||||
int hpux_termio(int, int, void *, struct lwp *);
|
||||
void termiototermios(struct hpux_termio *, struct hpux_termios *,
|
||||
struct termios *);
|
||||
void termiostotermio(struct hpux_termios *, struct hpux_termio *);
|
||||
int bsdtohpuxbaud(long);
|
||||
int hpuxtobsdbaud(int);
|
||||
int getsettty(struct lwp *, int, int, void *);
|
||||
#endif /* _KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_exec.c,v 1.68 2007/04/22 08:29:56 dsl Exp $ */
|
||||
/* $NetBSD: ibcs2_exec.c,v 1.69 2007/12/04 18:40:10 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1998 Scott Bartram
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.68 2007/04/22 08:29:56 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.69 2007/12/04 18:40:10 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_syscall_debug.h"
|
||||
@ -61,13 +61,13 @@ __KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.68 2007/04/22 08:29:56 dsl Exp $");
|
||||
#include <compat/ibcs2/ibcs2_errno.h>
|
||||
#include <compat/ibcs2/ibcs2_syscall.h>
|
||||
|
||||
static void ibcs2_e_proc_exec __P((struct proc *, struct exec_package *));
|
||||
static void ibcs2_e_proc_exec(struct proc *, struct exec_package *);
|
||||
|
||||
extern struct sysent ibcs2_sysent[];
|
||||
extern const char * const ibcs2_syscallnames[];
|
||||
extern char ibcs2_sigcode[], ibcs2_esigcode[];
|
||||
#ifndef __HAVE_SYSCALL_INTERN
|
||||
void syscall __P((void));
|
||||
void syscall(void);
|
||||
#endif
|
||||
|
||||
#ifdef IBCS2_DEBUG
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_exec.h,v 1.14 2005/12/11 12:20:02 christos Exp $ */
|
||||
/* $NetBSD: ibcs2_exec.h,v 1.15 2007/12/04 18:40:10 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1998 Scott Bartram
|
||||
@ -55,7 +55,7 @@
|
||||
#define IBCS2_CVT_HIGH_SYSCALL(n) (((n) >> 8) + 200)
|
||||
|
||||
struct exec_package;
|
||||
int exec_ibcs2_coff_makecmds __P((struct lwp *, struct exec_package *));
|
||||
int exec_ibcs2_coff_makecmds(struct lwp *, struct exec_package *);
|
||||
|
||||
/*
|
||||
* x.out (XENIX)
|
||||
@ -180,12 +180,12 @@ extern const struct emul emul_ibcs2;
|
||||
|
||||
#define XOUT_HDR_SIZE (sizeof(struct xexec) + sizeof(struct xext))
|
||||
|
||||
int exec_ibcs2_xout_makecmds __P((struct lwp *, struct exec_package *));
|
||||
int ibcs2_exec_setup_stack __P((struct lwp *, struct exec_package *));
|
||||
int exec_ibcs2_xout_makecmds(struct lwp *, struct exec_package *);
|
||||
int ibcs2_exec_setup_stack(struct lwp *, struct exec_package *);
|
||||
|
||||
#ifdef EXEC_ELF32
|
||||
int ibcs2_elf32_probe __P((struct lwp *, struct exec_package *,
|
||||
void *, char *, vaddr_t *));
|
||||
int ibcs2_elf32_probe(struct lwp *, struct exec_package *,
|
||||
void *, char *, vaddr_t *);
|
||||
#endif
|
||||
|
||||
/* following two are used for indication of executable type */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_exec_coff.c,v 1.20 2007/10/19 12:16:37 ad Exp $ */
|
||||
/* $NetBSD: ibcs2_exec_coff.c,v 1.21 2007/12/04 18:40:10 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1998 Scott Bartram
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.20 2007/10/19 12:16:37 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.21 2007/12/04 18:40:10 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -61,23 +61,23 @@ __KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.20 2007/10/19 12:16:37 ad Exp
|
||||
#include <compat/ibcs2/ibcs2_util.h>
|
||||
|
||||
|
||||
int exec_ibcs2_coff_prep_omagic __P((struct lwp *, struct exec_package *,
|
||||
int exec_ibcs2_coff_prep_omagic(struct lwp *, struct exec_package *,
|
||||
struct coff_filehdr *,
|
||||
struct coff_aouthdr *));
|
||||
int exec_ibcs2_coff_prep_nmagic __P((struct lwp *, struct exec_package *,
|
||||
struct coff_aouthdr *);
|
||||
int exec_ibcs2_coff_prep_nmagic(struct lwp *, struct exec_package *,
|
||||
struct coff_filehdr *,
|
||||
struct coff_aouthdr *));
|
||||
int exec_ibcs2_coff_prep_zmagic __P((struct lwp *, struct exec_package *,
|
||||
struct coff_aouthdr *);
|
||||
int exec_ibcs2_coff_prep_zmagic(struct lwp *, struct exec_package *,
|
||||
struct coff_filehdr *,
|
||||
struct coff_aouthdr *));
|
||||
void cpu_exec_ibcs2_coff_setup __P((int, struct proc *, struct exec_package *,
|
||||
void *));
|
||||
struct coff_aouthdr *);
|
||||
void cpu_exec_ibcs2_coff_setup(int, struct proc *, struct exec_package *,
|
||||
void *);
|
||||
|
||||
static int coff_load_shlib __P((struct lwp *, const char *,
|
||||
struct exec_package *));
|
||||
static int coff_find_section __P((struct lwp *, struct vnode *,
|
||||
static int coff_load_shlib(struct lwp *, const char *,
|
||||
struct exec_package *);
|
||||
static int coff_find_section(struct lwp *, struct vnode *,
|
||||
struct coff_filehdr *, struct coff_scnhdr *,
|
||||
int));
|
||||
int);
|
||||
|
||||
/*
|
||||
* exec_ibcs2_coff_makecmds(): Check if it's an coff-format executable.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_exec_elf32.c,v 1.15 2007/10/19 12:16:37 ad Exp $ */
|
||||
/* $NetBSD: ibcs2_exec_elf32.c,v 1.16 2007/12/04 18:40:10 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1998 Scott Bartram
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_elf32.c,v 1.15 2007/10/19 12:16:37 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_elf32.c,v 1.16 2007/12/04 18:40:10 dsl Exp $");
|
||||
|
||||
#define ELFSIZE 32
|
||||
|
||||
@ -61,8 +61,8 @@ __KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_elf32.c,v 1.15 2007/10/19 12:16:37 ad Exp
|
||||
#include <compat/ibcs2/ibcs2_errno.h>
|
||||
#include <compat/ibcs2/ibcs2_util.h>
|
||||
|
||||
static int ibcs2_elf32_signature __P((struct lwp *l, struct exec_package *,
|
||||
Elf32_Ehdr *));
|
||||
static int ibcs2_elf32_signature(struct lwp *l, struct exec_package *,
|
||||
Elf32_Ehdr *);
|
||||
|
||||
/*
|
||||
* The SCO compiler adds the string "SCO" to the .notes section of all
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_exec_xout.c,v 1.16 2007/10/19 12:16:37 ad Exp $ */
|
||||
/* $NetBSD: ibcs2_exec_xout.c,v 1.17 2007/12/04 18:40:10 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1998 Scott Bartram
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_xout.c,v 1.16 2007/10/19 12:16:37 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_xout.c,v 1.17 2007/12/04 18:40:10 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -61,10 +61,10 @@ __KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_xout.c,v 1.16 2007/10/19 12:16:37 ad Exp
|
||||
#include <compat/ibcs2/ibcs2_util.h>
|
||||
#include <compat/ibcs2/ibcs2_syscall.h>
|
||||
|
||||
int exec_ibcs2_xout_prep_nmagic __P((struct lwp *, struct exec_package *,
|
||||
struct xexec *, struct xext *));
|
||||
int exec_ibcs2_xout_prep_zmagic __P((struct lwp *, struct exec_package *,
|
||||
struct xexec *, struct xext *));
|
||||
int exec_ibcs2_xout_prep_nmagic(struct lwp *, struct exec_package *,
|
||||
struct xexec *, struct xext *);
|
||||
int exec_ibcs2_xout_prep_zmagic(struct lwp *, struct exec_package *,
|
||||
struct xexec *, struct xext *);
|
||||
|
||||
int
|
||||
exec_ibcs2_xout_makecmds(l, epp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_fcntl.c,v 1.29 2007/11/26 19:01:30 pooka Exp $ */
|
||||
/* $NetBSD: ibcs2_fcntl.c,v 1.30 2007/12/04 18:40:10 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Scott Bartram
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_fcntl.c,v 1.29 2007/11/26 19:01:30 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_fcntl.c,v 1.30 2007/12/04 18:40:10 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -51,11 +51,11 @@ __KERNEL_RCSID(0, "$NetBSD: ibcs2_fcntl.c,v 1.29 2007/11/26 19:01:30 pooka Exp $
|
||||
#include <compat/ibcs2/ibcs2_syscallargs.h>
|
||||
#include <compat/ibcs2/ibcs2_util.h>
|
||||
|
||||
static int cvt_o_flags __P((int));
|
||||
static void cvt_flock2iflock __P((struct flock *, struct ibcs2_flock *));
|
||||
static void cvt_iflock2flock __P((struct ibcs2_flock *, struct flock *));
|
||||
static int ioflags2oflags __P((int));
|
||||
static int oflags2ioflags __P((int));
|
||||
static int cvt_o_flags(int);
|
||||
static void cvt_flock2iflock(struct flock *, struct ibcs2_flock *);
|
||||
static void cvt_iflock2flock(struct ibcs2_flock *, struct flock *);
|
||||
static int ioflags2oflags(int);
|
||||
static int oflags2ioflags(int);
|
||||
|
||||
static int
|
||||
cvt_o_flags(flags)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_ioctl.c,v 1.39 2007/03/04 06:01:16 christos Exp $ */
|
||||
/* $NetBSD: ibcs2_ioctl.c,v 1.40 2007/12/04 18:40:10 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Scott Bartram
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_ioctl.c,v 1.39 2007/03/04 06:01:16 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_ioctl.c,v 1.40 2007/12/04 18:40:10 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -113,10 +113,10 @@ static const u_long s2btab[] = {
|
||||
38400,
|
||||
};
|
||||
|
||||
static void stios2btios __P((struct ibcs2_termios *, struct termios *));
|
||||
static void btios2stios __P((struct termios *, struct ibcs2_termios *));
|
||||
static void stios2stio __P((struct ibcs2_termios *, struct ibcs2_termio *));
|
||||
static void stio2stios __P((struct ibcs2_termio *, struct ibcs2_termios *));
|
||||
static void stios2btios(struct ibcs2_termios *, struct termios *);
|
||||
static void btios2stios(struct termios *, struct ibcs2_termios *);
|
||||
static void stios2stio(struct ibcs2_termios *, struct ibcs2_termio *);
|
||||
static void stio2stios(struct ibcs2_termio *, struct ibcs2_termios *);
|
||||
|
||||
static void
|
||||
stios2btios(st, bt)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_ipc.c,v 1.24 2007/06/17 16:32:51 dsl Exp $ */
|
||||
/* $NetBSD: ibcs2_ipc.c,v 1.25 2007/12/04 18:40:10 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Scott Bartram
|
||||
@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_ipc.c,v 1.24 2007/06/17 16:32:51 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_ipc.c,v 1.25 2007/12/04 18:40:10 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_sysv.h"
|
||||
@ -246,8 +246,8 @@ struct ibcs2_sem {
|
||||
};
|
||||
|
||||
#ifdef notdef
|
||||
static void cvt_sem2isem __P((struct sem *, struct ibcs2_sem *));
|
||||
static void cvt_isem2sem __P((struct ibcs2_sem *, struct sem *));
|
||||
static void cvt_sem2isem(struct sem *, struct ibcs2_sem *);
|
||||
static void cvt_isem2sem(struct ibcs2_sem *, struct sem *);
|
||||
|
||||
static void
|
||||
cvt_sem2isem(bp, ibp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_signal.c,v 1.26 2007/06/16 20:04:28 dsl Exp $ */
|
||||
/* $NetBSD: ibcs2_signal.c,v 1.27 2007/12/04 18:40:11 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Scott Bartram
|
||||
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_signal.c,v 1.26 2007/06/16 20:04:28 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_signal.c,v 1.27 2007/12/04 18:40:11 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -57,8 +57,8 @@ __KERNEL_RCSID(0, "$NetBSD: ibcs2_signal.c,v 1.26 2007/06/16 20:04:28 dsl Exp $"
|
||||
extern const int native_to_ibcs2_signo[];
|
||||
extern const int ibcs2_to_native_signo[];
|
||||
|
||||
void ibcs2_to_native_sigaction __P((const struct ibcs2_sigaction *, struct sigaction *));
|
||||
void native_to_ibcs2_sigaction __P((const struct sigaction *, struct ibcs2_sigaction *));
|
||||
void ibcs2_to_native_sigaction(const struct ibcs2_sigaction *, struct sigaction *);
|
||||
void native_to_ibcs2_sigaction(const struct sigaction *, struct ibcs2_sigaction *);
|
||||
|
||||
void
|
||||
ibcs2_to_native_sigset(iss, bss)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_signal.h,v 1.17 2005/12/11 12:20:03 christos Exp $ */
|
||||
/* $NetBSD: ibcs2_signal.h,v 1.18 2007/12/04 18:40:11 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Scott Bartram
|
||||
@ -82,7 +82,7 @@
|
||||
#define IBCS2_SIGNO(x) ((x) & IBCS2_SIGNO_MASK)
|
||||
#define IBCS2_SIGCALL(x) ((x) & ~IBCS2_SIGNO_MASK)
|
||||
|
||||
#define IBCS2_SIG_DFL (void(*) __P((int))) 0
|
||||
#define IBCS2_SIG_DFL (void(*)(int))) 0
|
||||
#define IBCS2_SIG_ERR (void(*) __P((int))) -1
|
||||
#define IBCS2_SIG_IGN (void(*) __P((int))) 1
|
||||
#define IBCS2_SIG_HOLD (void(*) __P((int))) 2
|
||||
@ -92,7 +92,7 @@
|
||||
#define IBCS2_SIG_UNBLOCK 2
|
||||
|
||||
typedef long ibcs2_sigset_t;
|
||||
typedef void (*ibcs2_sig_t) __P((int));
|
||||
typedef void (*ibcs2_sig_t) __P((int);
|
||||
|
||||
struct ibcs2_sigaction {
|
||||
ibcs2_sig_t ibcs2_sa_handler;
|
||||
@ -122,9 +122,9 @@ struct ibcs2_sigaltstack {
|
||||
#define IBCS2_SS_ALLBITS 0x00000003
|
||||
|
||||
extern const int native_to_ibcs2_signo[];
|
||||
void ibcs2_to_native_sigset __P((const ibcs2_sigset_t *, sigset_t *));
|
||||
void native_to_ibcs2_sigset __P((const sigset_t *, ibcs2_sigset_t *));
|
||||
void ibcs2_to_native_sigset(const ibcs2_sigset_t *, sigset_t *);
|
||||
void native_to_ibcs2_sigset(const sigset_t *, ibcs2_sigset_t *);
|
||||
|
||||
void ibcs2_sendsig __P((const struct ksiginfo *, const sigset_t *));
|
||||
void ibcs2_sendsig(const struct ksiginfo *, const sigset_t *);
|
||||
|
||||
#endif /* _IBCS2_SIGNAL_H */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_socksys.h,v 1.6 2007/05/29 21:32:27 christos Exp $ */
|
||||
/* $NetBSD: ibcs2_socksys.h,v 1.7 2007/12/04 18:40:11 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Scott Bartram
|
||||
@ -117,6 +117,6 @@ struct socknewproto {
|
||||
int flags;
|
||||
};
|
||||
|
||||
int ibcs2_socksys __P((struct lwp *, void *, register_t *));
|
||||
int ibcs2_socksys(struct lwp *, void *, register_t *);
|
||||
|
||||
#endif /* _IBCS2_SOCKSYS_H */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_stat.c,v 1.40 2007/11/26 19:01:30 pooka Exp $ */
|
||||
/* $NetBSD: ibcs2_stat.c,v 1.41 2007/12/04 18:40:11 dsl Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995, 1998 Scott Bartram
|
||||
* All rights reserved.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_stat.c,v 1.40 2007/11/26 19:01:30 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ibcs2_stat.c,v 1.41 2007/12/04 18:40:11 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -53,9 +53,9 @@ __KERNEL_RCSID(0, "$NetBSD: ibcs2_stat.c,v 1.40 2007/11/26 19:01:30 pooka Exp $"
|
||||
#include <compat/ibcs2/ibcs2_util.h>
|
||||
#include <compat/ibcs2/ibcs2_utsname.h>
|
||||
|
||||
static void bsd_stat2ibcs_stat __P((struct stat *, struct ibcs2_stat *));
|
||||
static int cvt_statfs __P((struct statvfs *, void *, int));
|
||||
static int cvt_statvfs __P((struct statvfs *, void *, int));
|
||||
static void bsd_stat2ibcs_stat(struct stat *, struct ibcs2_stat *);
|
||||
static int cvt_statfs(struct statvfs *, void *, int);
|
||||
static int cvt_statvfs(struct statvfs *, void *, int);
|
||||
|
||||
static void
|
||||
bsd_stat2ibcs_stat(st, st4)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_exec.c,v 1.46 2007/03/06 12:43:08 tsutsui Exp $ */
|
||||
/* $NetBSD: irix_exec.c,v 1.47 2007/12/04 18:40:11 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_exec.c,v 1.46 2007/03/06 12:43:08 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_exec.c,v 1.47 2007/12/04 18:40:11 dsl Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_syscall_debug.h"
|
||||
@ -65,18 +65,18 @@ __KERNEL_RCSID(0, "$NetBSD: irix_exec.c,v 1.46 2007/03/06 12:43:08 tsutsui Exp $
|
||||
|
||||
extern const int native_to_svr4_signo[];
|
||||
|
||||
static void irix_e_proc_exec __P((struct proc *, struct exec_package *));
|
||||
static void irix_e_proc_fork __P((struct proc *, struct proc *, int));
|
||||
static void irix_e_proc_exit __P((struct proc *));
|
||||
static void irix_e_proc_init __P((struct proc *, struct vmspace *));
|
||||
static void irix_e_proc_exec(struct proc *, struct exec_package *);
|
||||
static void irix_e_proc_fork(struct proc *, struct proc *, int);
|
||||
static void irix_e_proc_exit(struct proc *);
|
||||
static void irix_e_proc_init(struct proc *, struct vmspace *);
|
||||
|
||||
extern struct sysent irix_sysent[];
|
||||
extern const char * const irix_syscallnames[];
|
||||
|
||||
#ifndef __HAVE_SYSCALL_INTERN
|
||||
void irix_syscall __P((void));
|
||||
void irix_syscall(void);
|
||||
#else
|
||||
void irix_syscall_intern __P((struct proc *));
|
||||
void irix_syscall_intern(struct proc *);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_exec.h,v 1.22 2005/12/11 12:20:12 christos Exp $ */
|
||||
/* $NetBSD: irix_exec.h,v 1.23 2007/12/04 18:40:11 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -83,28 +83,28 @@ struct irix_emuldata {
|
||||
#define IRIX_AUX_ARGSIZ howmany(IRIX_ELF_AUX_ENTRIES * \
|
||||
sizeof(Aux32Info), sizeof (Elf32_Addr))
|
||||
|
||||
int irix_elf32_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
int irix_elf32_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
|
||||
int irix_elf32_probe_o32 __P((struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *));
|
||||
int irix_elf32_probe_o32(struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *);
|
||||
|
||||
int irix_elf32_probe_n32 __P((struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *));
|
||||
int irix_elf32_probe_n32(struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *);
|
||||
#endif
|
||||
|
||||
#ifdef EXEC_ELF64
|
||||
/* #define IRIX_AUX_ARGSIZ howmany(IRIX_ELF_AUX_ENTRIES * \
|
||||
sizeof(Aux64Info), sizeof (Elf64_Addr)) */
|
||||
|
||||
int irix_elf64_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
int irix_elf64_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
|
||||
int irix_elf64_probe __P((struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *));
|
||||
int irix_elf64_probe(struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *);
|
||||
#endif
|
||||
|
||||
void irix_n32_setregs __P((struct lwp *, struct exec_package *, u_long));
|
||||
void irix_n32_setregs(struct lwp *, struct exec_package *, u_long);
|
||||
|
||||
extern const struct emul emul_irix;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_fcntl.c,v 1.18 2007/11/27 23:30:56 dogcow Exp $ */
|
||||
/* $NetBSD: irix_fcntl.c,v 1.19 2007/12/04 18:40:11 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_fcntl.c,v 1.18 2007/11/27 23:30:56 dogcow Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_fcntl.c,v 1.19 2007/12/04 18:40:11 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/signal.h>
|
||||
@ -68,9 +68,9 @@ __KERNEL_RCSID(0, "$NetBSD: irix_fcntl.c,v 1.18 2007/11/27 23:30:56 dogcow Exp $
|
||||
#include <compat/svr4/svr4_fcntl.h>
|
||||
#include <compat/svr4/svr4_syscallargs.h>
|
||||
|
||||
static int fd_truncate __P((struct lwp *, int, int, off_t, register_t *));
|
||||
static int bsd_to_irix_fcntl_flags __P((int));
|
||||
static int irix_to_bsd_fcntl_flags __P((int));
|
||||
static int fd_truncate(struct lwp *, int, int, off_t, register_t *);
|
||||
static int bsd_to_irix_fcntl_flags(int);
|
||||
static int irix_to_bsd_fcntl_flags(int);
|
||||
|
||||
int
|
||||
irix_sys_lseek64(l, v, retval)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_kmem.h,v 1.2 2002/09/06 13:18:43 gehenna Exp $ */
|
||||
/* $NetBSD: irix_kmem.h,v 1.3 2007/12/04 18:40:11 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -43,7 +43,7 @@
|
||||
#include <sys/device.h>
|
||||
|
||||
#ifdef _KERNEL
|
||||
void irix_kmemattach __P((struct device *, struct device *, void *));
|
||||
void irix_kmemattach(struct device *, struct device *, void *);
|
||||
#endif
|
||||
|
||||
/* IRIX well-known kernel structures referenced by sysmp() */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_mman.c,v 1.15 2007/11/28 18:50:10 pooka Exp $ */
|
||||
/* $NetBSD: irix_mman.c,v 1.16 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_mman.c,v 1.15 2007/11/28 18:50:10 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_mman.c,v 1.16 2007/12/04 18:40:12 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_sysv.h"
|
||||
@ -70,8 +70,8 @@ __KERNEL_RCSID(0, "$NetBSD: irix_mman.c,v 1.15 2007/11/28 18:50:10 pooka Exp $")
|
||||
#include <compat/irix/irix_exec.h>
|
||||
#include <compat/irix/irix_syscallargs.h>
|
||||
|
||||
static int irix_mmap __P((struct lwp *, void *, size_t, int ,
|
||||
int, int, off_t, register_t *));
|
||||
static int irix_mmap(struct lwp *, void *, size_t, int ,
|
||||
int, int, off_t, register_t *);
|
||||
|
||||
int
|
||||
irix_sys_mmap(l, v, retval)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_prctl.c,v 1.40 2007/09/30 10:35:16 he Exp $ */
|
||||
/* $NetBSD: irix_prctl.c,v 1.41 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_prctl.c,v 1.40 2007/09/30 10:35:16 he Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_prctl.c,v 1.41 2007/12/04 18:40:12 dsl Exp $");
|
||||
|
||||
#include <sys/errno.h>
|
||||
#include <sys/types.h>
|
||||
@ -78,15 +78,15 @@ struct irix_sproc_child_args {
|
||||
struct irix_share_group *isc_share_group;
|
||||
int isc_child_done;
|
||||
};
|
||||
static void irix_sproc_child __P((struct irix_sproc_child_args *));
|
||||
static int irix_sproc __P((void *, unsigned int, void *, void *, size_t,
|
||||
pid_t, struct lwp *, register_t *));
|
||||
static struct irix_shared_regions_rec *irix_isrr_create __P((vaddr_t,
|
||||
vsize_t, int));
|
||||
static void irix_sproc_child(struct irix_sproc_child_args *);
|
||||
static int irix_sproc(void *, unsigned int, void *, void *, size_t,
|
||||
pid_t, struct lwp *, register_t *);
|
||||
static struct irix_shared_regions_rec *irix_isrr_create(vaddr_t,
|
||||
vsize_t, int);
|
||||
#ifdef DEBUG_IRIX
|
||||
static void irix_isrr_debug __P((struct proc *));
|
||||
static void irix_isrr_debug(struct proc *);
|
||||
#endif
|
||||
static void irix_isrr_cleanup __P((struct proc *));
|
||||
static void irix_isrr_cleanup(struct proc *);
|
||||
|
||||
int
|
||||
irix_sys_prctl(l, v, retval)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_prctl.h,v 1.11 2006/03/20 13:14:37 drochner Exp $ */
|
||||
/* $NetBSD: irix_prctl.h,v 1.12 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -61,10 +61,10 @@ struct irix_shared_regions_rec {
|
||||
LIST_ENTRY(irix_shared_regions_rec) isrr_list;
|
||||
};
|
||||
|
||||
int irix_prda_init __P((struct proc *));
|
||||
void irix_vm_sync __P((struct proc *));
|
||||
int irix_vm_fault __P((struct proc *, vaddr_t, vm_prot_t));
|
||||
void irix_isrr_insert __P((vaddr_t, vsize_t, int, struct proc *));
|
||||
int irix_prda_init(struct proc *);
|
||||
void irix_vm_sync(struct proc *);
|
||||
int irix_vm_fault(struct proc *, vaddr_t, vm_prot_t);
|
||||
void irix_isrr_insert(vaddr_t, vsize_t, int, struct proc *);
|
||||
|
||||
/* macro used to wrap irix_vm_sync calls */
|
||||
#define IRIX_VM_SYNC(q,cmd) \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_resource.c,v 1.10 2007/05/13 15:56:17 dsl Exp $ */
|
||||
/* $NetBSD: irix_resource.c,v 1.11 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_resource.c,v 1.10 2007/05/13 15:56:17 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_resource.c,v 1.11 2007/12/04 18:40:12 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/signal.h>
|
||||
@ -56,7 +56,7 @@ __KERNEL_RCSID(0, "$NetBSD: irix_resource.c,v 1.10 2007/05/13 15:56:17 dsl Exp $
|
||||
#include <compat/irix/irix_resource.h>
|
||||
#include <compat/irix/irix_syscallargs.h>
|
||||
|
||||
static int irix_to_native_resource __P((int));
|
||||
static int irix_to_native_resource(int);
|
||||
|
||||
static int
|
||||
irix_to_native_resource(irix_res)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_signal.c,v 1.43 2007/05/13 15:39:29 dsl Exp $ */
|
||||
/* $NetBSD: irix_signal.c,v 1.44 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994, 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.43 2007/05/13 15:39:29 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.44 2007/12/04 18:40:12 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/signal.h>
|
||||
@ -72,16 +72,16 @@ __KERNEL_RCSID(0, "$NetBSD: irix_signal.c,v 1.43 2007/05/13 15:39:29 dsl Exp $")
|
||||
extern const int native_to_svr4_signo[];
|
||||
extern const int svr4_to_native_signo[];
|
||||
|
||||
static int irix_wait_siginfo __P((int, struct rusage *, int,
|
||||
struct irix_irix5_siginfo *));
|
||||
static void irix_signal_siginfo __P((struct irix_irix5_siginfo *,
|
||||
int, u_long, void *));
|
||||
static void irix_set_ucontext __P((struct irix_ucontext*, const sigset_t *,
|
||||
int, struct lwp *));
|
||||
static void irix_set_sigcontext __P((struct irix_sigcontext*, const sigset_t *,
|
||||
int, struct lwp *));
|
||||
static void irix_get_ucontext __P((struct irix_ucontext*, struct lwp *));
|
||||
static void irix_get_sigcontext __P((struct irix_sigcontext*, struct lwp *));
|
||||
static int irix_wait_siginfo(int, struct rusage *, int,
|
||||
struct irix_irix5_siginfo *);
|
||||
static void irix_signal_siginfo(struct irix_irix5_siginfo *,
|
||||
int, u_long, void *);
|
||||
static void irix_set_ucontext(struct irix_ucontext*, const sigset_t *,
|
||||
int, struct lwp *);
|
||||
static void irix_set_sigcontext(struct irix_sigcontext*, const sigset_t *,
|
||||
int, struct lwp *);
|
||||
static void irix_get_ucontext(struct irix_ucontext*, struct lwp *);
|
||||
static void irix_get_sigcontext(struct irix_sigcontext*, struct lwp *);
|
||||
|
||||
#define irix_sigmask(n) (1 << (((n) - 1) & 31))
|
||||
#define irix_sigword(n) (((n) - 1) >> 5)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_signal.h,v 1.16 2005/12/11 12:20:12 christos Exp $ */
|
||||
/* $NetBSD: irix_signal.h,v 1.17 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -245,11 +245,11 @@ struct irix_sigframe {
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
void native_to_irix_sigset __P((const sigset_t *, irix_sigset_t *));
|
||||
void irix_to_native_sigset __P((const irix_sigset_t *, sigset_t *));
|
||||
void native_to_irix_sigset(const sigset_t *, irix_sigset_t *);
|
||||
void irix_to_native_sigset(const irix_sigset_t *, sigset_t *);
|
||||
|
||||
|
||||
void irix_sendsig __P((const ksiginfo_t *, const sigset_t *));
|
||||
void irix_sendsig(const ksiginfo_t *, const sigset_t *);
|
||||
__END_DECLS
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_stat.c,v 1.19 2007/04/22 08:29:57 dsl Exp $ */
|
||||
/* $NetBSD: irix_stat.c,v 1.20 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_stat.c,v 1.19 2007/04/22 08:29:57 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_stat.c,v 1.20 2007/12/04 18:40:12 dsl Exp $");
|
||||
|
||||
#include <sys/errno.h>
|
||||
#include <sys/types.h>
|
||||
@ -62,8 +62,8 @@ __KERNEL_RCSID(0, "$NetBSD: irix_stat.c,v 1.19 2007/04/22 08:29:57 dsl Exp $");
|
||||
#include <compat/irix/irix_syscall.h>
|
||||
#include <compat/irix/irix_syscallargs.h>
|
||||
|
||||
static void bsd_to_irix_stat __P((struct stat *, struct irix_stat *));
|
||||
static void bsd_to_irix_stat64 __P((struct stat *, struct irix_stat64 *));
|
||||
static void bsd_to_irix_stat(struct stat *, struct irix_stat *);
|
||||
static void bsd_to_irix_stat64(struct stat *, struct irix_stat64 *);
|
||||
|
||||
static void
|
||||
bsd_to_irix_stat(bsp, isp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_sysctl.h,v 1.4 2005/12/11 12:20:12 christos Exp $ */
|
||||
/* $NetBSD: irix_sysctl.h,v 1.5 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -81,8 +81,8 @@ extern char irix_si_version[128];
|
||||
{ "version", CTLTYPE_STRING }, \
|
||||
}
|
||||
|
||||
int irix_sysctl __P((int *, u_int, void *, size_t *,
|
||||
void *, size_t, struct proc *));
|
||||
int irix_sysctl(int *, u_int, void *, size_t *,
|
||||
void *, size_t, struct proc *);
|
||||
|
||||
#ifdef SYSCTL_SETUP_PROTO
|
||||
SYSCTL_SETUP_PROTO(sysctl_emul_irix_setup);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_sysmp.c,v 1.17 2007/02/19 03:55:26 rumble Exp $ */
|
||||
/* $NetBSD: irix_sysmp.c,v 1.18 2007/12/04 18:40:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_sysmp.c,v 1.17 2007/02/19 03:55:26 rumble Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_sysmp.c,v 1.18 2007/12/04 18:40:12 dsl Exp $");
|
||||
|
||||
#include <sys/errno.h>
|
||||
#include <sys/param.h>
|
||||
@ -62,9 +62,9 @@ __KERNEL_RCSID(0, "$NetBSD: irix_sysmp.c,v 1.17 2007/02/19 03:55:26 rumble Exp $
|
||||
#include <compat/irix/irix_syscallargs.h>
|
||||
|
||||
/* IRIX /dev/kmem diggers emulation */
|
||||
static int irix_sysmp_kernaddr __P((int, register_t *));
|
||||
static int irix_sysmp_sasz __P((int, register_t *));
|
||||
static int irix_sysmp_saget __P((int, char *, size_t));
|
||||
static int irix_sysmp_kernaddr(int, register_t *);
|
||||
static int irix_sysmp_sasz(int, register_t *);
|
||||
static int irix_sysmp_saget(int, char *, size_t);
|
||||
extern struct loadavg averunnable;
|
||||
extern long irix_kernel_var[32];
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_syssgi.c,v 1.43 2007/02/09 21:55:18 ad Exp $ */
|
||||
/* $NetBSD: irix_syssgi.c,v 1.44 2007/12/04 18:40:13 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_syssgi.c,v 1.43 2007/02/09 21:55:18 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_syssgi.c,v 1.44 2007/12/04 18:40:13 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ddb.h"
|
||||
@ -85,10 +85,10 @@ __KERNEL_RCSID(0, "$NetBSD: irix_syssgi.c,v 1.43 2007/02/09 21:55:18 ad Exp $");
|
||||
void ELFNAME(load_psection)(struct exec_vmcmd_set *, struct vnode *,
|
||||
const Elf_Phdr *, Elf_Addr *, u_long *, int *, int);
|
||||
|
||||
static int irix_syssgi_mapelf __P((int, Elf_Phdr *, int,
|
||||
struct lwp *, register_t *));
|
||||
static int irix_syssgi_sysconf __P((int name, struct lwp *, register_t *));
|
||||
static int irix_syssgi_pathconf __P((char *, int, struct lwp *, register_t *));
|
||||
static int irix_syssgi_mapelf(int, Elf_Phdr *, int,
|
||||
struct lwp *, register_t *);
|
||||
static int irix_syssgi_sysconf(int name, struct lwp *, register_t *);
|
||||
static int irix_syssgi_pathconf(char *, int, struct lwp *, register_t *);
|
||||
|
||||
int
|
||||
irix_sys_syssgi(l, v, retval)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_usema.c,v 1.22 2007/11/28 10:34:37 he Exp $ */
|
||||
/* $NetBSD: irix_usema.c,v 1.23 2007/12/04 18:40:13 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_usema.c,v 1.22 2007/11/28 10:34:37 he Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_usema.c,v 1.23 2007/12/04 18:40:13 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -81,20 +81,20 @@ const struct cdevsw irix_usema_cdevsw = {
|
||||
static LIST_HEAD(irix_usema_reclist, irix_usema_rec) irix_usema_reclist;
|
||||
static struct lock irix_usema_reclist_lock;
|
||||
|
||||
static struct irix_usema_rec *iur_lookup_by_vn __P((struct vnode *));
|
||||
static struct irix_usema_rec *iur_lookup_by_sem __P((struct irix_semaphore *));
|
||||
static struct irix_usema_rec *iur_lookup_by_vn(struct vnode *);
|
||||
static struct irix_usema_rec *iur_lookup_by_sem(struct irix_semaphore *);
|
||||
static struct irix_usema_rec *iur_insert
|
||||
__P((struct irix_semaphore *, struct vnode *, struct proc *));
|
||||
static void iur_remove __P((struct irix_usema_rec *));
|
||||
(struct irix_semaphore *, struct vnode *, struct proc *);
|
||||
static void iur_remove(struct irix_usema_rec *);
|
||||
static struct irix_waiting_proc_rec *iur_proc_queue
|
||||
__P((struct irix_usema_rec *, struct proc *));
|
||||
(struct irix_usema_rec *, struct proc *);
|
||||
static void iur_proc_dequeue
|
||||
__P((struct irix_usema_rec *, struct irix_waiting_proc_rec *));
|
||||
(struct irix_usema_rec *, struct irix_waiting_proc_rec *);
|
||||
static void iur_proc_release
|
||||
__P((struct irix_usema_rec *, struct irix_waiting_proc_rec *));
|
||||
static int iur_proc_isreleased __P((struct irix_usema_rec *, struct proc *));
|
||||
(struct irix_usema_rec *, struct irix_waiting_proc_rec *);
|
||||
static int iur_proc_isreleased(struct irix_usema_rec *, struct proc *);
|
||||
static struct irix_waiting_proc_rec *iur_proc_getfirst
|
||||
__P((struct irix_usema_rec *));
|
||||
(struct irix_usema_rec *);
|
||||
|
||||
/*
|
||||
* In order to define a custom vnode operation vector for the usemaclone
|
||||
@ -117,7 +117,7 @@ const struct vnodeopv_desc * const irix_usema_vnodeopv_descs[] = {
|
||||
};
|
||||
const struct vnodeopv_desc irix_usema_opv_desc =
|
||||
{ &irix_usema_vnodeop_p, irix_usema_vnodeop_entries };
|
||||
int (**irix_usema_vnodeop_p) __P((void *));
|
||||
int (**irix_usema_vnodeop_p)(void *);
|
||||
|
||||
/*
|
||||
* Vnode operations on the usemaclone device
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: irix_usema.h,v 1.10 2006/09/01 04:49:48 sekiya Exp $ */
|
||||
/* $NetBSD: irix_usema.h,v 1.11 2007/12/04 18:40:13 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -49,27 +49,27 @@
|
||||
#include <compat/irix/irix_exec.h>
|
||||
|
||||
extern struct vfsops irix_usema_dummy_vfsops;
|
||||
void irix_usema_dummy_vfs_init __P((void));
|
||||
void irix_usema_dummy_vfs_init(void);
|
||||
extern const struct vnodeopv_desc * const irix_usema_vnodeopv_descs[];
|
||||
extern const struct vnodeopv_desc irix_usema_opv_desc;
|
||||
extern int (**irix_usema_vnodeop_p) __P((void *));
|
||||
extern int (**irix_usema_vnodeop_p)(void *);
|
||||
extern const struct vnodeopv_entry_desc irix_usema_vnodeop_entries[];
|
||||
|
||||
|
||||
void irix_usemaattach __P((struct device *, struct device *, void *));
|
||||
void irix_usemaattach(struct device *, struct device *, void *);
|
||||
|
||||
int irix_usema_close __P((void *));
|
||||
int irix_usema_access __P((void *));
|
||||
int irix_usema_getattr __P((void *));
|
||||
int irix_usema_setattr __P((void *));
|
||||
int irix_usema_fcntl __P((void *));
|
||||
int irix_usema_ioctl __P((void *));
|
||||
int irix_usema_poll __P((void *));
|
||||
int irix_usema_inactive __P((void *));
|
||||
int irix_usema_close(void *);
|
||||
int irix_usema_access(void *);
|
||||
int irix_usema_getattr(void *);
|
||||
int irix_usema_setattr(void *);
|
||||
int irix_usema_fcntl(void *);
|
||||
int irix_usema_ioctl(void *);
|
||||
int irix_usema_poll(void *);
|
||||
int irix_usema_inactive(void *);
|
||||
|
||||
void irix_usema_exit_cleanup __P((struct proc *, struct proc *));
|
||||
void irix_usema_exit_cleanup(struct proc *, struct proc *);
|
||||
#ifdef DEBUG_IRIX
|
||||
void irix_usema_debug __P((void));
|
||||
void irix_usema_debug(void);
|
||||
#endif
|
||||
|
||||
#define IRIX_USEMADEV_MINOR 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.h,v 1.7 2005/12/11 12:20:12 christos Exp $ */
|
||||
/* $NetBSD: linux_signal.h,v 1.8 2007/12/04 18:40:13 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -111,7 +111,7 @@
|
||||
#define LINUX_SIG_UNBLOCK 2
|
||||
#define LINUX_SIG_SETMASK 3
|
||||
|
||||
typedef void (*linux_handler_t) __P((int));
|
||||
typedef void (*linux_handler_t)(int);
|
||||
|
||||
typedef u_long linux_old_sigset_t;
|
||||
typedef struct {
|
||||
@ -134,7 +134,7 @@ struct linux_sigaction {
|
||||
|
||||
struct linux_k_sigaction {
|
||||
struct linux_sigaction sa;
|
||||
void (*k_sa_restorer) __P((void));
|
||||
void (*k_sa_restorer)(void);
|
||||
};
|
||||
|
||||
typedef struct linux_sigaltstack {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_machdep.h,v 1.9 2007/05/24 11:21:52 njoly Exp $ */
|
||||
/* $NetBSD: linux_machdep.h,v 1.10 2007/12/04 18:40:13 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
|
||||
@ -105,7 +105,7 @@ struct linux_rt_sigframe {
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
void linux_syscall_intern __P((struct proc *));
|
||||
void linux_syscall_intern(struct proc *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_machdep.h,v 1.4 2003/03/01 04:36:39 thorpej Exp $ */
|
||||
/* $NetBSD: linux_machdep.h,v 1.5 2007/12/04 18:40:13 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 2000 The NetBSD Foundation, Inc.
|
||||
@ -77,6 +77,6 @@ struct linux_sigframe {
|
||||
unsigned long sf_extramask[LINUX__NSIG_WORDS - 1];
|
||||
};
|
||||
|
||||
void linux_syscall_intern __P((struct proc *));
|
||||
void linux_syscall_intern(struct proc *);
|
||||
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.h,v 1.7 2005/12/11 12:20:14 christos Exp $ */
|
||||
/* $NetBSD: linux_signal.h,v 1.8 2007/12/04 18:40:13 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -100,7 +100,7 @@
|
||||
|
||||
#define LINUX_MINSIGSTKSZ 2048
|
||||
|
||||
typedef void (*linux_handler_t) __P((int));
|
||||
typedef void (*linux_handler_t)(int);
|
||||
|
||||
typedef u_long linux_old_sigset_t;
|
||||
typedef struct {
|
||||
@ -111,14 +111,14 @@ struct linux_old_sigaction {
|
||||
linux_handler_t linux_sa_handler;
|
||||
linux_old_sigset_t linux_sa_mask;
|
||||
u_long linux_sa_flags;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
};
|
||||
|
||||
/* Used in rt_* calls */
|
||||
struct linux_sigaction {
|
||||
linux_handler_t linux_sa_handler;
|
||||
u_long linux_sa_flags;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
linux_sigset_t linux_sa_mask;
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_machdep.c,v 1.130 2007/10/19 12:16:38 ad Exp $ */
|
||||
/* $NetBSD: linux_machdep.c,v 1.131 2007/12/04 18:40:13 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 2000 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.130 2007/10/19 12:16:38 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.131 2007/12/04 18:40:13 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_vm86.h"
|
||||
@ -113,16 +113,16 @@ __KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.130 2007/10/19 12:16:38 ad Exp $
|
||||
#define DPRINTF(a)
|
||||
#endif
|
||||
|
||||
static struct biosdisk_info *fd2biosinfo __P((struct proc *, struct file *));
|
||||
static struct biosdisk_info *fd2biosinfo(struct proc *, struct file *);
|
||||
extern struct disklist *x86_alldisks;
|
||||
static void linux_save_ucontext __P((struct lwp *, struct trapframe *,
|
||||
const sigset_t *, struct sigaltstack *, struct linux_ucontext *));
|
||||
static void linux_save_sigcontext __P((struct lwp *, struct trapframe *,
|
||||
const sigset_t *, struct linux_sigcontext *));
|
||||
static int linux_restore_sigcontext __P((struct lwp *,
|
||||
struct linux_sigcontext *, register_t *));
|
||||
static void linux_rt_sendsig __P((const ksiginfo_t *, const sigset_t *));
|
||||
static void linux_old_sendsig __P((const ksiginfo_t *, const sigset_t *));
|
||||
static void linux_save_ucontext(struct lwp *, struct trapframe *,
|
||||
const sigset_t *, struct sigaltstack *, struct linux_ucontext *);
|
||||
static void linux_save_sigcontext(struct lwp *, struct trapframe *,
|
||||
const sigset_t *, struct linux_sigcontext *);
|
||||
static int linux_restore_sigcontext(struct lwp *,
|
||||
struct linux_sigcontext *, register_t *);
|
||||
static void linux_rt_sendsig(const ksiginfo_t *, const sigset_t *);
|
||||
static void linux_old_sendsig(const ksiginfo_t *, const sigset_t *);
|
||||
|
||||
extern char linux_sigcode[], linux_rt_sigcode[];
|
||||
/*
|
||||
@ -509,7 +509,7 @@ linux_restore_sigcontext(struct lwp *l, struct linux_sigcontext *scp,
|
||||
DPRINTF(("sigreturn enter esp=%x eip=%x\n", tf->tf_esp, tf->tf_eip));
|
||||
#ifdef VM86
|
||||
if (scp->sc_eflags & PSL_VM) {
|
||||
void syscall_vm86 __P((struct trapframe *));
|
||||
void syscall_vm86(struct trapframe *);
|
||||
|
||||
tf->tf_vm86_gs = scp->sc_gs;
|
||||
tf->tf_vm86_fs = scp->sc_fs;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.h,v 1.14 2005/12/11 12:20:14 christos Exp $ */
|
||||
/* $NetBSD: linux_signal.h,v 1.15 2007/12/04 18:40:14 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -100,7 +100,7 @@
|
||||
|
||||
#define LINUX_MINSIGSTKSZ 2048
|
||||
|
||||
typedef void (*linux_handler_t) __P((int));
|
||||
typedef void (*linux_handler_t)(int);
|
||||
|
||||
typedef unsigned long linux_old_sigset_t;
|
||||
typedef struct {
|
||||
@ -111,14 +111,14 @@ struct linux_old_sigaction {
|
||||
linux_handler_t linux_sa_handler;
|
||||
linux_old_sigset_t linux_sa_mask;
|
||||
unsigned long linux_sa_flags;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
};
|
||||
|
||||
/* Used in rt_* calls */
|
||||
struct linux_sigaction {
|
||||
linux_handler_t linux_sa_handler;
|
||||
unsigned long linux_sa_flags;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
linux_sigset_t linux_sa_mask;
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_machdep.c,v 1.33 2007/10/19 12:16:38 ad Exp $ */
|
||||
/* $NetBSD: linux_machdep.c,v 1.34 2007/12/04 18:40:14 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.33 2007/10/19 12:16:38 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.34 2007/12/04 18:40:14 dsl Exp $");
|
||||
|
||||
#define COMPAT_LINUX 1
|
||||
|
||||
@ -82,10 +82,10 @@ extern int sigpid;
|
||||
#define SDB_FPSTATE 0x04
|
||||
#endif
|
||||
|
||||
void setup_linux_sigframe __P((struct frame *frame, int sig,
|
||||
const sigset_t *mask, void *usp));
|
||||
void setup_linux_rt_sigframe __P((struct frame *frame, int sig,
|
||||
const sigset_t *mask, void *usp, struct lwp *l));
|
||||
void setup_linux_sigframe(struct frame *frame, int sig,
|
||||
const sigset_t *mask, void *usp);
|
||||
void setup_linux_rt_sigframe(struct frame *frame, int sig,
|
||||
const sigset_t *mask, void *usp, struct lwp *l);
|
||||
|
||||
/*
|
||||
* Deal with some m68k-specific things in the Linux emulation code.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_machdep.h,v 1.5 2005/11/11 23:22:08 chs Exp $ */
|
||||
/* $NetBSD: linux_machdep.h,v 1.6 2007/12/04 18:40:14 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -163,7 +163,7 @@ struct linux_rt_sigframe {
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
void linux_syscall_intern __P((struct proc *));
|
||||
void linux_syscall_intern(struct proc *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.h,v 1.5 2005/12/11 12:20:16 christos Exp $ */
|
||||
/* $NetBSD: linux_signal.h,v 1.6 2007/12/04 18:40:14 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -110,7 +110,7 @@
|
||||
|
||||
#define LINUX_MINSIGSTKSZ 2048
|
||||
|
||||
typedef void (*linux_handler_t) __P((int));
|
||||
typedef void (*linux_handler_t)(int);
|
||||
|
||||
typedef u_long linux_old_sigset_t;
|
||||
typedef struct {
|
||||
@ -121,14 +121,14 @@ struct linux_old_sigaction {
|
||||
linux_handler_t linux_sa_handler;
|
||||
linux_old_sigset_t linux_sa_mask;
|
||||
u_long linux_sa_flags;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
};
|
||||
|
||||
/* Used in rt_* calls */
|
||||
struct linux_sigaction {
|
||||
linux_handler_t linux_sa_handler;
|
||||
u_long linux_sa_flags;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
linux_sigset_t linux_sa_mask;
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_machdep.h,v 1.7 2005/11/11 23:22:08 chs Exp $ */
|
||||
/* $NetBSD: linux_machdep.h,v 1.8 2007/12/04 18:40:14 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -203,7 +203,7 @@ struct linux_rt_sigframe
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS /* XXX from NetBSD/i386. Not arch dependent? */
|
||||
void linux_syscall_intern __P((struct proc *));
|
||||
void linux_syscall_intern(struct proc *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.h,v 1.11 2005/12/11 12:20:16 christos Exp $ */
|
||||
/* $NetBSD: linux_signal.h,v 1.12 2007/12/04 18:40:14 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
@ -123,7 +123,7 @@ struct linux_pt_regs {
|
||||
|
||||
#define LINUX_MINSIGSTKSZ 2048
|
||||
|
||||
typedef void (*linux___sighandler_t) __P((int));
|
||||
typedef void (*linux___sighandler_t)(int);
|
||||
|
||||
typedef unsigned long linux_old_sigset_t;
|
||||
typedef struct {
|
||||
@ -135,7 +135,7 @@ struct linux_sigaction {
|
||||
unsigned int linux_sa_flags;
|
||||
linux___sighandler_t linux_sa_handler;
|
||||
linux_sigset_t linux_sa_mask;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
int linux_sa_resv[1];
|
||||
};
|
||||
|
||||
@ -147,7 +147,7 @@ struct linux_old_sigaction {
|
||||
unsigned int linux_sa_flags;
|
||||
linux___sighandler_t linux_sa_handler;
|
||||
linux_old_sigset_t linux_sa_mask;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
int linux_sa_resv[1];
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_machdep.h,v 1.7 2005/11/11 23:22:08 chs Exp $ */
|
||||
/* $NetBSD: linux_machdep.h,v 1.8 2007/12/04 18:40:14 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -231,7 +231,7 @@ struct linux_rt_sigframe
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS /* XXX from NetBSD/i386. Not arch dependent? */
|
||||
void linux_syscall_intern __P((struct proc *));
|
||||
void linux_syscall_intern(struct proc *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.h,v 1.9 2005/12/11 12:20:16 christos Exp $ */
|
||||
/* $NetBSD: linux_signal.h,v 1.10 2007/12/04 18:40:14 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
@ -107,7 +107,7 @@
|
||||
|
||||
#define LINUX_MINSIGSTKSZ 2048
|
||||
|
||||
typedef void (*linux_handler_t) __P((int));
|
||||
typedef void (*linux_handler_t)(int);
|
||||
|
||||
typedef unsigned long linux_old_sigset_t;
|
||||
typedef struct {
|
||||
@ -118,14 +118,14 @@ struct linux_old_sigaction {
|
||||
linux_handler_t linux_sa_handler;
|
||||
linux_old_sigset_t linux_sa_mask;
|
||||
unsigned long linux_sa_flags;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
};
|
||||
|
||||
/* Used in rt_* calls */
|
||||
struct linux_sigaction {
|
||||
linux_handler_t linux_sa_handler;
|
||||
unsigned long linux_sa_flags;
|
||||
void (*linux_sa_restorer) __P((void));
|
||||
void (*linux_sa_restorer)(void);
|
||||
linux_sigset_t linux_sa_mask;
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec.c,v 1.98 2007/11/16 12:51:56 njoly Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.99 2007/12/04 18:40:15 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994, 1995, 1998, 2000, 2007 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.98 2007/11/16 12:51:56 njoly Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.99 2007/12/04 18:40:15 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -81,10 +81,10 @@ extern struct sysent linux_sysent[];
|
||||
extern const char * const linux_syscallnames[];
|
||||
extern char linux_sigcode[], linux_esigcode[];
|
||||
|
||||
static void linux_e_proc_exec __P((struct proc *, struct exec_package *));
|
||||
static void linux_e_proc_fork __P((struct proc *, struct proc *, int));
|
||||
static void linux_e_proc_exit __P((struct proc *));
|
||||
static void linux_e_proc_init __P((struct proc *, struct proc *, int));
|
||||
static void linux_e_proc_exec(struct proc *, struct exec_package *);
|
||||
static void linux_e_proc_fork(struct proc *, struct proc *, int);
|
||||
static void linux_e_proc_exit(struct proc *);
|
||||
static void linux_e_proc_init(struct proc *, struct proc *, int);
|
||||
|
||||
#ifdef LINUX_NPTL
|
||||
void linux_userret(void);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec.h,v 1.41 2007/02/15 15:13:34 ad Exp $ */
|
||||
/* $NetBSD: linux_exec.h,v 1.42 2007/12/04 18:40:15 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -129,58 +129,58 @@
|
||||
__BEGIN_DECLS
|
||||
extern const struct emul emul_linux;
|
||||
|
||||
int linux_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
|
||||
struct lwp *));
|
||||
void linux_setregs __P((struct lwp *, struct exec_package *, u_long));
|
||||
int exec_linux_aout_makecmds __P((struct lwp *, struct exec_package *));
|
||||
int linux_aout_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
void linux_trapsignal __P((struct lwp *, ksiginfo_t *));
|
||||
int linux_usertrap __P((struct lwp *, vaddr_t, void *));
|
||||
int linux_sysctl(int *, u_int, void *, size_t *, void *, size_t,
|
||||
struct lwp *);
|
||||
void linux_setregs(struct lwp *, struct exec_package *, u_long);
|
||||
int exec_linux_aout_makecmds(struct lwp *, struct exec_package *);
|
||||
int linux_aout_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
void linux_trapsignal(struct lwp *, ksiginfo_t *);
|
||||
int linux_usertrap(struct lwp *, vaddr_t, void *);
|
||||
#ifdef LINUX_NPTL
|
||||
void linux_nptl_proc_fork(struct proc *, struct proc *, void (luserret)(void));
|
||||
void linux_nptl_proc_exit __P((struct proc *));
|
||||
void linux_nptl_proc_init __P((struct proc *, struct proc *));
|
||||
void linux_nptl_proc_exit(struct proc *);
|
||||
void linux_nptl_proc_init(struct proc *, struct proc *);
|
||||
#endif
|
||||
|
||||
#ifdef EXEC_ELF32
|
||||
int linux_elf32_probe __P((struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *));
|
||||
int linux_elf32_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
int linux_elf32_signature __P((struct lwp *, struct exec_package *,
|
||||
Elf32_Ehdr *, char *));
|
||||
int linux_elf32_probe(struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *);
|
||||
int linux_elf32_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
int linux_elf32_signature(struct lwp *, struct exec_package *,
|
||||
Elf32_Ehdr *, char *);
|
||||
#ifdef LINUX_GCC_SIGNATURE
|
||||
int linux_elf32_gcc_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *));
|
||||
int linux_elf32_gcc_signature(struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *);
|
||||
#endif
|
||||
#ifdef LINUX_DEBUGLINK_SIGNATURE
|
||||
int linux_elf32_debuglink_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *));
|
||||
int linux_elf32_debuglink_signature(struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *);
|
||||
#endif
|
||||
#ifdef LINUX_ATEXIT_SIGNATURE
|
||||
int linux_elf32_atexit_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *));
|
||||
int linux_elf32_atexit_signature(struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef EXEC_ELF64
|
||||
int linux_elf64_probe __P((struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *));
|
||||
int linux_elf64_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
int linux_elf64_signature __P((struct lwp *, struct exec_package *,
|
||||
Elf64_Ehdr *, char *));
|
||||
int linux_elf64_probe(struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *);
|
||||
int linux_elf64_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
int linux_elf64_signature(struct lwp *, struct exec_package *,
|
||||
Elf64_Ehdr *, char *);
|
||||
#ifdef LINUX_GCC_SIGNATURE
|
||||
int linux_elf64_gcc_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf64_Ehdr *));
|
||||
int linux_elf64_gcc_signature(struct lwp *l,
|
||||
struct exec_package *, Elf64_Ehdr *);
|
||||
#endif
|
||||
#ifdef LINUX_DEBUGLINK_SIGNATURE
|
||||
int linux_elf64_debuglink_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf64_Ehdr *));
|
||||
int linux_elf64_debuglink_signature(struct lwp *l,
|
||||
struct exec_package *, Elf64_Ehdr *);
|
||||
#endif
|
||||
#ifdef LINUX_ATEXIT_SIGNATURE
|
||||
int linux_elf64_atexit_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf64_Ehdr *));
|
||||
int linux_elf64_atexit_signature(struct lwp *l,
|
||||
struct exec_package *, Elf64_Ehdr *);
|
||||
#endif
|
||||
#endif
|
||||
__END_DECLS
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.62 2007/10/19 12:16:38 ad Exp $ */
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.63 2007/12/04 18:40:15 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_exec_aout.c,v 1.62 2007/10/19 12:16:38 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_exec_aout.c,v 1.63 2007/12/04 18:40:15 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -69,17 +69,17 @@ __KERNEL_RCSID(0, "$NetBSD: linux_exec_aout.c,v 1.62 2007/10/19 12:16:38 ad Exp
|
||||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_syscall.h>
|
||||
|
||||
int linux_aout_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
int linux_aout_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
|
||||
static int exec_linux_aout_prep_zmagic __P((struct lwp *,
|
||||
struct exec_package *));
|
||||
static int exec_linux_aout_prep_nmagic __P((struct lwp *,
|
||||
struct exec_package *));
|
||||
static int exec_linux_aout_prep_omagic __P((struct lwp *,
|
||||
struct exec_package *));
|
||||
static int exec_linux_aout_prep_qmagic __P((struct lwp *,
|
||||
struct exec_package *));
|
||||
static int exec_linux_aout_prep_zmagic(struct lwp *,
|
||||
struct exec_package *);
|
||||
static int exec_linux_aout_prep_nmagic(struct lwp *,
|
||||
struct exec_package *);
|
||||
static int exec_linux_aout_prep_omagic(struct lwp *,
|
||||
struct exec_package *);
|
||||
static int exec_linux_aout_prep_qmagic(struct lwp *,
|
||||
struct exec_package *);
|
||||
|
||||
int
|
||||
linux_aout_copyargs(struct lwp *l, struct exec_package *pack,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_file.c,v 1.86 2007/11/26 19:01:31 pooka Exp $ */
|
||||
/* $NetBSD: linux_file.c,v 1.87 2007/12/04 18:40:15 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.86 2007/11/26 19:01:31 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.87 2007/12/04 18:40:15 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -75,13 +75,13 @@ __KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.86 2007/11/26 19:01:31 pooka Exp $"
|
||||
|
||||
#include <compat/linux/linux_syscallargs.h>
|
||||
|
||||
static int linux_to_bsd_ioflags __P((int));
|
||||
static int bsd_to_linux_ioflags __P((int));
|
||||
static void bsd_to_linux_flock __P((struct flock *, struct linux_flock *));
|
||||
static void linux_to_bsd_flock __P((struct linux_flock *, struct flock *));
|
||||
static int linux_to_bsd_ioflags(int);
|
||||
static int bsd_to_linux_ioflags(int);
|
||||
static void bsd_to_linux_flock(struct flock *, struct linux_flock *);
|
||||
static void linux_to_bsd_flock(struct linux_flock *, struct flock *);
|
||||
#ifndef __amd64__
|
||||
static void bsd_to_linux_stat __P((struct stat *, struct linux_stat *));
|
||||
static int linux_stat1 __P((struct lwp *, void *, register_t *, int));
|
||||
static void bsd_to_linux_stat(struct stat *, struct linux_stat *);
|
||||
static int linux_stat1(struct lwp *, void *, register_t *, int);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -301,7 +301,7 @@ linux_sys_fcntl(l, v, retval)
|
||||
const struct cdevsw *cdev;
|
||||
long pgid;
|
||||
struct pgrp *pgrp;
|
||||
struct tty *tp, *(*d_tty) __P((dev_t));
|
||||
struct tty *tp, *(*d_tty)(dev_t);
|
||||
|
||||
fd = SCARG(uap, fd);
|
||||
cmd = SCARG(uap, cmd);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_file64.c,v 1.41 2007/11/26 19:01:31 pooka Exp $ */
|
||||
/* $NetBSD: linux_file64.c,v 1.42 2007/12/04 18:40:15 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 2000 The NetBSD Foundation, Inc.
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.41 2007/11/26 19:01:31 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.42 2007/12/04 18:40:15 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -78,8 +78,8 @@ __KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.41 2007/11/26 19:01:31 pooka Exp
|
||||
|
||||
# ifndef COMPAT_LINUX32
|
||||
|
||||
static void bsd_to_linux_stat __P((struct stat *, struct linux_stat64 *));
|
||||
static int linux_do_stat64 __P((struct lwp *, void *, register_t *, int));
|
||||
static void bsd_to_linux_stat(struct stat *, struct linux_stat64 *);
|
||||
static int linux_do_stat64(struct lwp *, void *, register_t *, int);
|
||||
|
||||
/*
|
||||
* Convert a NetBSD stat structure to a Linux stat structure.
|
||||
@ -238,10 +238,10 @@ linux_sys_ftruncate64(l, v, retval)
|
||||
# endif /* !COMPAT_LINUX32 */
|
||||
|
||||
# if !defined(__m68k__) && (!defined(__amd64__) || defined(COMPAT_LINUX32))
|
||||
static void bsd_to_linux_flock64 __P((struct linux_flock64 *,
|
||||
const struct flock *));
|
||||
static void linux_to_bsd_flock64 __P((struct flock *,
|
||||
const struct linux_flock64 *));
|
||||
static void bsd_to_linux_flock64(struct linux_flock64 *,
|
||||
const struct flock *);
|
||||
static void linux_to_bsd_flock64(struct flock *,
|
||||
const struct linux_flock64 *);
|
||||
|
||||
static void
|
||||
bsd_to_linux_flock64(lfp, bfp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_ioctl.h,v 1.23 2005/12/11 12:20:19 christos Exp $ */
|
||||
/* $NetBSD: linux_ioctl.h,v 1.24 2007/12/04 18:40:15 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -43,23 +43,23 @@ struct linux_sys_ioctl_args;
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int linux_machdepioctl __P((struct lwp *, void *, register_t *));
|
||||
int linux_ioctl_cdrom __P((struct lwp *, struct linux_sys_ioctl_args *,
|
||||
register_t *));
|
||||
int linux_ioctl_termios __P((struct lwp *, struct linux_sys_ioctl_args *,
|
||||
register_t *));
|
||||
int linux_ioctl_socket __P((struct lwp *, struct linux_sys_ioctl_args *,
|
||||
register_t *));
|
||||
int linux_ioctl_hdio __P((struct lwp *, struct linux_sys_ioctl_args *,
|
||||
register_t *));
|
||||
int linux_ioctl_fdio __P((struct lwp *, struct linux_sys_ioctl_args *uap,
|
||||
register_t *retval));
|
||||
int linux_ioctl_blkio __P((struct lwp *, struct linux_sys_ioctl_args *uap,
|
||||
register_t *retval));
|
||||
int linux_ioctl_sg __P((struct lwp *, struct linux_sys_ioctl_args *uap,
|
||||
register_t *retval));
|
||||
int linux_ioctl_mtio __P((struct lwp *, struct linux_sys_ioctl_args *uap,
|
||||
register_t *retval));
|
||||
int linux_machdepioctl(struct lwp *, void *, register_t *);
|
||||
int linux_ioctl_cdrom(struct lwp *, struct linux_sys_ioctl_args *,
|
||||
register_t *);
|
||||
int linux_ioctl_termios(struct lwp *, struct linux_sys_ioctl_args *,
|
||||
register_t *);
|
||||
int linux_ioctl_socket(struct lwp *, struct linux_sys_ioctl_args *,
|
||||
register_t *);
|
||||
int linux_ioctl_hdio(struct lwp *, struct linux_sys_ioctl_args *,
|
||||
register_t *);
|
||||
int linux_ioctl_fdio(struct lwp *, struct linux_sys_ioctl_args *uap,
|
||||
register_t *retval);
|
||||
int linux_ioctl_blkio(struct lwp *, struct linux_sys_ioctl_args *uap,
|
||||
register_t *retval);
|
||||
int linux_ioctl_sg(struct lwp *, struct linux_sys_ioctl_args *uap,
|
||||
register_t *retval);
|
||||
int linux_ioctl_mtio(struct lwp *, struct linux_sys_ioctl_args *uap,
|
||||
register_t *retval);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_ipc.h,v 1.7 2005/11/10 18:33:37 christos Exp $ */
|
||||
/* $NetBSD: linux_ipc.h,v 1.8 2007/12/04 18:40:15 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -91,14 +91,14 @@ struct linux_ipc64_perm {
|
||||
#if defined (SYSVSEM) || defined(SYSVSHM) || defined(SYSVMSG)
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
void linux_to_bsd_ipc_perm __P((struct linux_ipc_perm *,
|
||||
struct ipc_perm *));
|
||||
void linux_to_bsd_ipc64_perm __P((struct linux_ipc64_perm *,
|
||||
struct ipc_perm *));
|
||||
void bsd_to_linux_ipc_perm __P((struct ipc_perm *,
|
||||
struct linux_ipc_perm *));
|
||||
void bsd_to_linux_ipc64_perm __P((struct ipc_perm *,
|
||||
struct linux_ipc64_perm *));
|
||||
void linux_to_bsd_ipc_perm(struct linux_ipc_perm *,
|
||||
struct ipc_perm *);
|
||||
void linux_to_bsd_ipc64_perm(struct linux_ipc64_perm *,
|
||||
struct ipc_perm *);
|
||||
void bsd_to_linux_ipc_perm(struct ipc_perm *,
|
||||
struct linux_ipc_perm *);
|
||||
void bsd_to_linux_ipc64_perm(struct ipc_perm *,
|
||||
struct linux_ipc64_perm *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
#endif /* !SYSVSEM, !SYSVSHM, !SYSVMSG */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_ipccall.h,v 1.11 2006/02/16 20:17:15 perry Exp $ */
|
||||
/* $NetBSD: linux_ipccall.h,v 1.12 2007/12/04 18:40:15 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -66,28 +66,28 @@
|
||||
|
||||
|
||||
# ifdef SYSVSEM
|
||||
__inline int linux_semop __P((struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *));
|
||||
__inline int linux_semget __P((struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *));
|
||||
__inline int linux_semop(struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *);
|
||||
__inline int linux_semget(struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *);
|
||||
# endif
|
||||
|
||||
|
||||
# ifdef SYSVMSG
|
||||
__inline int linux_msgsnd __P((struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *));
|
||||
__inline int linux_msgrcv __P((struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *));
|
||||
__inline int linux_msgget __P((struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *));
|
||||
__inline int linux_msgsnd(struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *);
|
||||
__inline int linux_msgrcv(struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *);
|
||||
__inline int linux_msgget(struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *);
|
||||
# endif
|
||||
|
||||
|
||||
# ifdef SYSVSHM
|
||||
__inline int linux_shmdt __P((struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *));
|
||||
__inline int linux_shmget __P((struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *));
|
||||
__inline int linux_shmdt(struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *);
|
||||
__inline int linux_shmget(struct lwp *, struct linux_sys_ipc_args *,
|
||||
register_t *);
|
||||
# endif
|
||||
|
||||
# endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_limit.h,v 1.1 2006/02/09 19:18:56 manu Exp $ */
|
||||
/* $NetBSD: linux_limit.h,v 1.2 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
|
||||
@ -40,7 +40,7 @@
|
||||
#ifndef _LINUX_LIMIT_H_
|
||||
#define _LINUX_LIMIT_H_
|
||||
|
||||
static int linux_to_bsd_limit __P((int));
|
||||
static int linux_to_bsd_limit(int);
|
||||
|
||||
#ifdef LINUX_LARGEFILE64
|
||||
#define bsd_to_linux_rlimit1(l, b, f) \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_machdep.h,v 1.16 2007/05/10 21:30:15 christos Exp $ */
|
||||
/* $NetBSD: linux_machdep.h,v 1.17 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -63,13 +63,13 @@
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
void linux_sendsig __P((const ksiginfo_t *, const sigset_t *));
|
||||
dev_t linux_fakedev __P((dev_t, int));
|
||||
void linux_sendsig(const ksiginfo_t *, const sigset_t *);
|
||||
dev_t linux_fakedev(dev_t, int);
|
||||
__END_DECLS
|
||||
#ifdef LINUX_NPTL
|
||||
__BEGIN_DECLS
|
||||
void *linux_get_newtls __P((struct lwp *));
|
||||
int linux_set_newtls __P((struct lwp *, void *));
|
||||
void *linux_get_newtls(struct lwp *);
|
||||
int linux_set_newtls(struct lwp *, void *);
|
||||
__END_DECLS
|
||||
#endif /* !LINUX_NPTL */
|
||||
#endif /* !_KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_misc.c,v 1.187 2007/11/26 19:01:32 pooka Exp $ */
|
||||
/* $NetBSD: linux_misc.c,v 1.188 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
|
||||
@ -64,7 +64,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.187 2007/11/26 19:01:32 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.188 2007/12/04 18:40:16 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ptrace.h"
|
||||
@ -184,10 +184,10 @@ const int linux_fstypes_cnt = sizeof(linux_fstypes) / sizeof(linux_fstypes[0]);
|
||||
# endif
|
||||
|
||||
/* Local linux_misc.c functions: */
|
||||
static void linux_to_bsd_mmap_args __P((struct sys_mmap_args *,
|
||||
const struct linux_sys_mmap_args *));
|
||||
static int linux_mmap __P((struct lwp *, struct linux_sys_mmap_args *,
|
||||
register_t *, off_t));
|
||||
static void linux_to_bsd_mmap_args(struct sys_mmap_args *,
|
||||
const struct linux_sys_mmap_args *);
|
||||
static int linux_mmap(struct lwp *, struct linux_sys_mmap_args *,
|
||||
register_t *, off_t);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_misc.h,v 1.14 2007/05/07 16:53:18 dsl Exp $ */
|
||||
/* $NetBSD: linux_misc.h,v 1.15 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -131,8 +131,8 @@ extern const int linux_fstypes_cnt;
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int bsd_to_linux_wstat(int);
|
||||
int linux_select1 __P((struct lwp *, register_t *, int, fd_set *, fd_set *,
|
||||
fd_set *, struct timeval *));
|
||||
int linux_select1(struct lwp *, register_t *, int, fd_set *, fd_set *,
|
||||
fd_set *, struct timeval *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_mmap.h,v 1.18 2005/12/11 12:20:19 christos Exp $ */
|
||||
/* $NetBSD: linux_mmap.h,v 1.19 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -99,8 +99,8 @@ struct linux_sys_mmap_args {
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int linux_sys_mmap __P((struct lwp *p, void *v, register_t *retval));
|
||||
int linux_sys_mmap2 __P((struct lwp *p, void *v, register_t *retval));
|
||||
int linux_sys_mmap(struct lwp *p, void *v, register_t *retval);
|
||||
int linux_sys_mmap2(struct lwp *p, void *v, register_t *retval);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_msg.h,v 1.7 2006/02/09 19:18:56 manu Exp $ */
|
||||
/* $NetBSD: linux_msg.h,v 1.8 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -110,11 +110,11 @@ struct linux_sys_msgctl_args {
|
||||
#ifdef SYSVMSG
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int linux_sys_msgctl __P((struct lwp *, void *, register_t *));
|
||||
void linux_to_bsd_msqid_ds __P((struct linux_msqid_ds *,
|
||||
struct msqid_ds *));
|
||||
void bsd_to_linux_msqid_ds __P((struct msqid_ds *,
|
||||
struct linux_msqid_ds *));
|
||||
int linux_sys_msgctl(struct lwp *, void *, register_t *);
|
||||
void linux_to_bsd_msqid_ds(struct linux_msqid_ds *,
|
||||
struct msqid_ds *);
|
||||
void bsd_to_linux_msqid_ds(struct msqid_ds *,
|
||||
struct linux_msqid_ds *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
#endif /* !SYSVMSG */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_ptrace.h,v 1.9 2005/12/11 12:20:19 christos Exp $ */
|
||||
/* $NetBSD: linux_ptrace.h,v 1.10 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -59,7 +59,7 @@
|
||||
|
||||
#if defined(__i386__) || defined (__powerpc__) || defined (__mips__) || \
|
||||
defined(__arm__)
|
||||
int linux_sys_ptrace_arch __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_ptrace_arch(struct lwp *, void *, register_t *);
|
||||
|
||||
#define LINUX_SYS_PTRACE_ARCH(l,v,r) linux_sys_ptrace_arch((l),(v),(r))
|
||||
#else
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_sem.h,v 1.6 2006/02/09 19:18:56 manu Exp $ */
|
||||
/* $NetBSD: linux_sem.h,v 1.7 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -90,11 +90,11 @@ struct linux_sys_semctl_args {
|
||||
#ifdef SYSVSEM
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int linux_sys_semctl __P((struct lwp *, void *, register_t *));
|
||||
void bsd_to_linux_semid_ds __P((struct semid_ds *,
|
||||
struct linux_semid_ds *));
|
||||
void linux_to_bsd_semid_ds __P((struct linux_semid_ds *,
|
||||
struct semid_ds *));
|
||||
int linux_sys_semctl(struct lwp *, void *, register_t *);
|
||||
void bsd_to_linux_semid_ds(struct semid_ds *,
|
||||
struct linux_semid_ds *);
|
||||
void linux_to_bsd_semid_ds(struct linux_semid_ds *,
|
||||
struct semid_ds *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
#endif /* !SYSVSEM */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_shm.h,v 1.8 2006/02/09 19:18:56 manu Exp $ */
|
||||
/* $NetBSD: linux_shm.h,v 1.9 2007/12/04 18:40:16 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -124,17 +124,17 @@ struct linux_sys_shmctl_args {
|
||||
#ifdef SYSVSHM
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int linux_sys_shmget __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_shmat __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_shmctl __P((struct lwp *, void *, register_t *));
|
||||
void linux_to_bsd_shmid_ds __P((struct linux_shmid_ds *,
|
||||
struct shmid_ds *));
|
||||
void linux_to_bsd_shmid64_ds __P((struct linux_shmid64_ds *,
|
||||
struct shmid_ds *));
|
||||
void bsd_to_linux_shmid_ds __P((struct shmid_ds *,
|
||||
struct linux_shmid_ds *));
|
||||
void bsd_to_linux_shmid64_ds __P((struct shmid_ds *,
|
||||
struct linux_shmid64_ds *));
|
||||
int linux_sys_shmget(struct lwp *, void *, register_t *);
|
||||
int linux_sys_shmat(struct lwp *, void *, register_t *);
|
||||
int linux_sys_shmctl(struct lwp *, void *, register_t *);
|
||||
void linux_to_bsd_shmid_ds(struct linux_shmid_ds *,
|
||||
struct shmid_ds *);
|
||||
void linux_to_bsd_shmid64_ds(struct linux_shmid64_ds *,
|
||||
struct shmid_ds *);
|
||||
void bsd_to_linux_shmid_ds(struct shmid_ds *,
|
||||
struct linux_shmid_ds *);
|
||||
void bsd_to_linux_shmid64_ds(struct shmid_ds *,
|
||||
struct linux_shmid64_ds *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
#endif /* !SYSVSHM */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.c,v 1.55 2007/10/19 18:52:12 njoly Exp $ */
|
||||
/* $NetBSD: linux_signal.c,v 1.56 2007/12/04 18:40:17 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -55,7 +55,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_signal.c,v 1.55 2007/10/19 18:52:12 njoly Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_signal.c,v 1.56 2007/12/04 18:40:17 dsl Exp $");
|
||||
|
||||
#define COMPAT_LINUX 1
|
||||
|
||||
@ -568,8 +568,8 @@ linux_sys_kill(l, v, retval)
|
||||
}
|
||||
|
||||
#ifdef LINUX_SS_ONSTACK
|
||||
static void linux_to_native_sigaltstack __P((struct sigaltstack *,
|
||||
const struct linux_sigaltstack *));
|
||||
static void linux_to_native_sigaltstack(struct sigaltstack *,
|
||||
const struct linux_sigaltstack *);
|
||||
|
||||
static void
|
||||
linux_to_native_sigaltstack(bss, lss)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_signal.h,v 1.26 2007/02/09 21:55:19 ad Exp $ */
|
||||
/* $NetBSD: linux_signal.h,v 1.27 2007/12/04 18:40:17 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -59,14 +59,14 @@
|
||||
extern const int native_to_linux_signo[];
|
||||
extern const int linux_to_native_signo[];
|
||||
__BEGIN_DECLS
|
||||
int linux_sigprocmask1 __P((struct lwp *, int, const linux_old_sigset_t *,
|
||||
linux_old_sigset_t *));
|
||||
int linux_sigprocmask1(struct lwp *, int, const linux_old_sigset_t *,
|
||||
linux_old_sigset_t *);
|
||||
|
||||
#if LINUX__NSIG_WORDS > 1
|
||||
void linux_old_extra_to_native_sigset __P((sigset_t *,
|
||||
const linux_old_sigset_t *, const unsigned long *));
|
||||
void native_to_linux_old_extra_sigset __P((linux_old_sigset_t *,
|
||||
unsigned long *, const sigset_t *));
|
||||
void linux_old_extra_to_native_sigset(sigset_t *,
|
||||
const linux_old_sigset_t *, const unsigned long *);
|
||||
void native_to_linux_old_extra_sigset(linux_old_sigset_t *,
|
||||
unsigned long *, const sigset_t *);
|
||||
#define linux_old_to_native_sigset(x,y) \
|
||||
linux_old_extra_to_native_sigset(x, y, (const unsigned long *)0)
|
||||
#define native_to_linux_old_sigset(x,y) \
|
||||
@ -81,23 +81,23 @@ void native_to_linux_old_extra_sigset __P((linux_old_sigset_t *,
|
||||
native_to_linux_sigset((linux_sigset_t *)(void *)x, y)
|
||||
#endif
|
||||
|
||||
void linux_to_native_sigset __P((sigset_t *, const linux_sigset_t *));
|
||||
void native_to_linux_sigset __P((linux_sigset_t *, const sigset_t *));
|
||||
int linux_to_native_sigflags __P((const unsigned long));
|
||||
unsigned int native_to_linux_sigflags __P((const int));
|
||||
void linux_to_native_sigset(sigset_t *, const linux_sigset_t *);
|
||||
void native_to_linux_sigset(linux_sigset_t *, const sigset_t *);
|
||||
int linux_to_native_sigflags(const unsigned long);
|
||||
unsigned int native_to_linux_sigflags(const int);
|
||||
|
||||
void linux_old_to_native_sigaction __P((struct sigaction *,
|
||||
const struct linux_old_sigaction *));
|
||||
void native_to_linux_old_sigaction __P((struct linux_old_sigaction *,
|
||||
const struct sigaction *));
|
||||
void linux_old_to_native_sigaction(struct sigaction *,
|
||||
const struct linux_old_sigaction *);
|
||||
void native_to_linux_old_sigaction(struct linux_old_sigaction *,
|
||||
const struct sigaction *);
|
||||
|
||||
void linux_to_native_sigaction __P((struct sigaction *,
|
||||
const struct linux_sigaction *));
|
||||
void native_to_linux_sigaction __P((struct linux_sigaction *,
|
||||
const struct sigaction *));
|
||||
void linux_to_native_sigaction(struct sigaction *,
|
||||
const struct linux_sigaction *);
|
||||
void native_to_linux_sigaction(struct linux_sigaction *,
|
||||
const struct sigaction *);
|
||||
|
||||
void native_to_linux_sigaltstack __P((struct linux_sigaltstack *,
|
||||
const struct sigaltstack *));
|
||||
void native_to_linux_sigaltstack(struct linux_sigaltstack *,
|
||||
const struct sigaltstack *);
|
||||
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_socket.c,v 1.80 2007/10/19 18:52:12 njoly Exp $ */
|
||||
/* $NetBSD: linux_socket.c,v 1.81 2007/12/04 18:40:17 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.80 2007/10/19 18:52:12 njoly Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.81 2007/12/04 18:40:17 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_inet.h"
|
||||
@ -117,19 +117,19 @@ __KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.80 2007/10/19 18:52:12 njoly Exp
|
||||
* than a normal syscall.
|
||||
*/
|
||||
|
||||
static int linux_to_bsd_domain __P((int));
|
||||
static int bsd_to_linux_domain __P((int));
|
||||
int linux_to_bsd_sopt_level __P((int));
|
||||
int linux_to_bsd_so_sockopt __P((int));
|
||||
int linux_to_bsd_ip_sockopt __P((int));
|
||||
int linux_to_bsd_tcp_sockopt __P((int));
|
||||
int linux_to_bsd_udp_sockopt __P((int));
|
||||
int linux_getifhwaddr __P((struct lwp *, register_t *, u_int, void *));
|
||||
static int linux_to_bsd_domain(int);
|
||||
static int bsd_to_linux_domain(int);
|
||||
int linux_to_bsd_sopt_level(int);
|
||||
int linux_to_bsd_so_sockopt(int);
|
||||
int linux_to_bsd_ip_sockopt(int);
|
||||
int linux_to_bsd_tcp_sockopt(int);
|
||||
int linux_to_bsd_udp_sockopt(int);
|
||||
int linux_getifhwaddr(struct lwp *, register_t *, u_int, void *);
|
||||
static int linux_get_sa(struct lwp *, int, struct mbuf **,
|
||||
const struct osockaddr *, int);
|
||||
static int linux_sa_put __P((struct osockaddr *osa));
|
||||
static int linux_to_bsd_msg_flags __P((int));
|
||||
static int bsd_to_linux_msg_flags __P((int));
|
||||
static int linux_sa_put(struct osockaddr *osa);
|
||||
static int linux_to_bsd_msg_flags(int);
|
||||
static int bsd_to_linux_msg_flags(int);
|
||||
|
||||
static const int linux_to_bsd_domain_[LINUX_AF_MAX] = {
|
||||
AF_UNSPEC,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_socketcall.h,v 1.12 2007/03/04 06:01:24 christos Exp $ */
|
||||
/* $NetBSD: linux_socketcall.h,v 1.13 2007/12/04 18:40:17 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
|
||||
@ -230,21 +230,21 @@ struct linux_sys_shutdown_args {
|
||||
|
||||
# ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int linux_sys_socket __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_socketpair __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_sendto __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_recvfrom __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_setsockopt __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_getsockopt __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_connect __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_bind __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_getsockname __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_getpeername __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_sendmsg __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_recvmsg __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_recv __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_send __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_accept __P((struct lwp *, void *, register_t *));
|
||||
int linux_sys_socket(struct lwp *, void *, register_t *);
|
||||
int linux_sys_socketpair(struct lwp *, void *, register_t *);
|
||||
int linux_sys_sendto(struct lwp *, void *, register_t *);
|
||||
int linux_sys_recvfrom(struct lwp *, void *, register_t *);
|
||||
int linux_sys_setsockopt(struct lwp *, void *, register_t *);
|
||||
int linux_sys_getsockopt(struct lwp *, void *, register_t *);
|
||||
int linux_sys_connect(struct lwp *, void *, register_t *);
|
||||
int linux_sys_bind(struct lwp *, void *, register_t *);
|
||||
int linux_sys_getsockname(struct lwp *, void *, register_t *);
|
||||
int linux_sys_getpeername(struct lwp *, void *, register_t *);
|
||||
int linux_sys_sendmsg(struct lwp *, void *, register_t *);
|
||||
int linux_sys_recvmsg(struct lwp *, void *, register_t *);
|
||||
int linux_sys_recv(struct lwp *, void *, register_t *);
|
||||
int linux_sys_send(struct lwp *, void *, register_t *);
|
||||
int linux_sys_accept(struct lwp *, void *, register_t *);
|
||||
__END_DECLS
|
||||
# endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_statfs.h,v 1.1 2007/04/11 11:45:55 njoly Exp $ */
|
||||
/* $NetBSD: linux_statfs.h,v 1.2 2007/12/04 18:40:17 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
|
||||
@ -40,8 +40,8 @@
|
||||
#ifndef _LINUX_STATFS_H
|
||||
#define _LINUX_STATFS_H
|
||||
|
||||
static void bsd_to_linux_statfs __P((const struct statvfs *,
|
||||
struct linux_statfs *));
|
||||
static void bsd_to_linux_statfs(const struct statvfs *,
|
||||
struct linux_statfs *);
|
||||
|
||||
/*
|
||||
* Convert NetBSD statvfs structure to Linux statfs structure.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_termios.h,v 1.15 2006/02/15 09:31:17 manu Exp $ */
|
||||
/* $NetBSD: linux_termios.h,v 1.16 2007/12/04 18:40:17 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -159,25 +159,25 @@ static const int linux_spmasks[] = {
|
||||
#ifdef COMPAT_LINUX32
|
||||
struct linux32_termio;
|
||||
struct linux32_termios;
|
||||
static void linux32_termio_to_bsd_termios __P((struct linux32_termio *,
|
||||
struct termios *));
|
||||
static void bsd_termios_to_linux32_termio __P((struct termios *,
|
||||
struct linux32_termio *));
|
||||
static void linux32_termios_to_bsd_termios __P((struct linux32_termios *,
|
||||
struct termios *));
|
||||
static void bsd_termios_to_linux32_termios __P((struct termios *,
|
||||
struct linux32_termios *));
|
||||
static void linux32_termio_to_bsd_termios(struct linux32_termio *,
|
||||
struct termios *);
|
||||
static void bsd_termios_to_linux32_termio(struct termios *,
|
||||
struct linux32_termio *);
|
||||
static void linux32_termios_to_bsd_termios(struct linux32_termios *,
|
||||
struct termios *);
|
||||
static void bsd_termios_to_linux32_termios(struct termios *,
|
||||
struct linux32_termios *);
|
||||
#else
|
||||
struct linux_termio;
|
||||
struct linux_termios;
|
||||
static void linux_termio_to_bsd_termios __P((struct linux_termio *,
|
||||
struct termios *));
|
||||
static void bsd_termios_to_linux_termio __P((struct termios *,
|
||||
struct linux_termio *));
|
||||
static void linux_termios_to_bsd_termios __P((struct linux_termios *,
|
||||
struct termios *));
|
||||
static void bsd_termios_to_linux_termios __P((struct termios *,
|
||||
struct linux_termios *));
|
||||
static void linux_termio_to_bsd_termios(struct linux_termio *,
|
||||
struct termios *);
|
||||
static void bsd_termios_to_linux_termio(struct termios *,
|
||||
struct linux_termio *);
|
||||
static void linux_termios_to_bsd_termios(struct linux_termios *,
|
||||
struct termios *);
|
||||
static void bsd_termios_to_linux_termios(struct termios *,
|
||||
struct linux_termios *);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux32_machdep.c,v 1.13 2007/11/24 23:52:56 christos Exp $ */
|
||||
/* $NetBSD: linux32_machdep.c,v 1.14 2007/12/04 18:40:18 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.13 2007/11/24 23:52:56 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux32_machdep.c,v 1.14 2007/12/04 18:40:18 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -87,16 +87,16 @@ extern char linux32_sigcode[1];
|
||||
extern char linux32_rt_sigcode[1];
|
||||
extern char linux32_esigcode[1];
|
||||
|
||||
extern void (osyscall_return) __P((void));
|
||||
extern void (osyscall_return)(void);
|
||||
|
||||
static void linux32_save_ucontext __P((struct lwp *, struct trapframe *,
|
||||
const sigset_t *, struct sigaltstack *, struct linux32_ucontext *));
|
||||
static void linux32_save_sigcontext __P((struct lwp *, struct trapframe *,
|
||||
const sigset_t *, struct linux32_sigcontext *));
|
||||
static void linux32_rt_sendsig __P((const ksiginfo_t *, const sigset_t *));
|
||||
static void linux32_old_sendsig __P((const ksiginfo_t *, const sigset_t *));
|
||||
static int linux32_restore_sigcontext __P((struct lwp *,
|
||||
struct linux32_sigcontext *, register_t *));
|
||||
static void linux32_save_ucontext(struct lwp *, struct trapframe *,
|
||||
const sigset_t *, struct sigaltstack *, struct linux32_ucontext *);
|
||||
static void linux32_save_sigcontext(struct lwp *, struct trapframe *,
|
||||
const sigset_t *, struct linux32_sigcontext *);
|
||||
static void linux32_rt_sendsig(const ksiginfo_t *, const sigset_t *);
|
||||
static void linux32_old_sendsig(const ksiginfo_t *, const sigset_t *);
|
||||
static int linux32_restore_sigcontext(struct lwp *,
|
||||
struct linux32_sigcontext *, register_t *);
|
||||
|
||||
void
|
||||
linux32_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux32_machdep.h,v 1.1 2006/02/09 19:18:57 manu Exp $ */
|
||||
/* $NetBSD: linux32_machdep.h,v 1.2 2007/12/04 18:40:18 dsl Exp $ */
|
||||
|
||||
#ifndef _AMD64_LINUX32_MACHDEP_H
|
||||
#define _AMD64_LINUX32_MACHDEP_H
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
void linux32_syscall_intern __P((struct proc *));
|
||||
void linux32_syscall_intern(struct proc *);
|
||||
__END_DECLS
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux32_exec.c,v 1.7 2007/10/19 12:16:39 ad Exp $ */
|
||||
/* $NetBSD: linux32_exec.c,v 1.8 2007/12/04 18:40:18 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994-2007 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux32_exec.c,v 1.7 2007/10/19 12:16:39 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux32_exec.c,v 1.8 2007/12/04 18:40:18 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -78,16 +78,16 @@ extern char linux32_esigcode[1];
|
||||
extern struct sysent linux32_sysent[];
|
||||
extern const char * const linux32_syscallnames[];
|
||||
|
||||
static void linux32_e_proc_exec __P((struct proc *, struct exec_package *));
|
||||
static void linux32_e_proc_fork __P((struct proc *, struct proc *, int));
|
||||
static void linux32_e_proc_exit __P((struct proc *));
|
||||
static void linux32_e_proc_init __P((struct proc *, struct proc *, int));
|
||||
static void linux32_e_proc_exec(struct proc *, struct exec_package *);
|
||||
static void linux32_e_proc_fork(struct proc *, struct proc *, int);
|
||||
static void linux32_e_proc_exit(struct proc *);
|
||||
static void linux32_e_proc_init(struct proc *, struct proc *, int);
|
||||
|
||||
#ifdef LINUX32_NPTL
|
||||
void linux32_userret(void);
|
||||
void linux_nptl_proc_fork(struct proc *, struct proc *, void (*luserret)(void));
|
||||
void linux_nptl_proc_exit __P((struct proc *));
|
||||
void linux_nptl_proc_init __P((struct proc *, struct proc *));
|
||||
void linux_nptl_proc_exit(struct proc *);
|
||||
void linux_nptl_proc_init(struct proc *, struct proc *);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux32_exec.h,v 1.3 2006/08/23 19:49:09 manu Exp $ */
|
||||
/* $NetBSD: linux32_exec.h,v 1.4 2007/12/04 18:40:18 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
|
||||
@ -45,28 +45,28 @@ extern const struct emul emul_linux32;
|
||||
/* XXXmanu Do a.out later... */
|
||||
|
||||
#ifdef LINUX32_NPTL
|
||||
void linux_nptl_exit_hook __P((struct proc *));
|
||||
void linux_nptl_exit_hook(struct proc *);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef EXEC_ELF32
|
||||
int linux32_elf32_probe __P((struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *));
|
||||
int linux32_elf32_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
int linux_elf32_signature __P((struct lwp *, struct exec_package *,
|
||||
Elf32_Ehdr *, char *));
|
||||
int linux32_elf32_probe(struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *);
|
||||
int linux32_elf32_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
int linux_elf32_signature(struct lwp *, struct exec_package *,
|
||||
Elf32_Ehdr *, char *);
|
||||
#ifdef LINUX32_GCC_SIGNATURE
|
||||
int linux_elf32_gcc_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *));
|
||||
int linux_elf32_gcc_signature(struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *);
|
||||
#endif
|
||||
#ifdef LINUX32_DEBUGLINK_SIGNATURE
|
||||
int linux_elf32_debuglink_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *));
|
||||
int linux_elf32_debuglink_signature(struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *);
|
||||
#endif
|
||||
#ifdef LINUX32_ATEXIT_SIGNATURE
|
||||
int linux_elf32_atexit_signature __P((struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *));
|
||||
int linux_elf32_atexit_signature(struct lwp *l,
|
||||
struct exec_package *, Elf32_Ehdr *);
|
||||
#endif
|
||||
|
||||
#endif /* EXEC_ELF32 */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux32_ioctl.h,v 1.1 2006/02/15 09:31:17 manu Exp $ */
|
||||
/* $NetBSD: linux32_ioctl.h,v 1.2 2007/12/04 18:40:18 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995-2006 The NetBSD Foundation, Inc.
|
||||
@ -46,8 +46,8 @@
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
struct linux32_sys_ioctl_args;
|
||||
int linux32_ioctl_termios __P((struct lwp *, struct linux32_sys_ioctl_args *,
|
||||
register_t *));
|
||||
int linux32_ioctl_termios(struct lwp *, struct linux32_sys_ioctl_args *,
|
||||
register_t *);
|
||||
__END_DECLS
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux32_machdep.h,v 1.1 2006/02/09 19:18:57 manu Exp $ */
|
||||
/* $NetBSD: linux32_machdep.h,v 1.2 2007/12/04 18:40:18 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
|
||||
@ -42,12 +42,12 @@
|
||||
|
||||
#ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
void linux32_sendsig __P((const ksiginfo_t *, const sigset_t *));
|
||||
void linux32_sendsig(const ksiginfo_t *, const sigset_t *);
|
||||
__END_DECLS
|
||||
#ifdef LINUX32_NPTL
|
||||
__BEGIN_DECLS
|
||||
unsigned long linux32_get_newtls __P((struct lwp *));
|
||||
int linux32_set_newtls __P((struct lwp *, unsigned long));
|
||||
unsigned long linux32_get_newtls(struct lwp *);
|
||||
int linux32_set_newtls(struct lwp *, unsigned long);
|
||||
__END_DECLS
|
||||
#endif /* !LINUX32_NPTL */
|
||||
#endif /* !_KERNEL */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux32_signal.h,v 1.1 2006/02/09 19:18:57 manu Exp $ */
|
||||
/* $NetBSD: linux32_signal.h,v 1.2 2007/12/04 18:40:18 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
|
||||
@ -45,8 +45,8 @@ void linux32_to_native_sigaction(struct sigaction *,
|
||||
const struct linux32_sigaction *);
|
||||
void native_to_linux32_sigaction(struct linux32_sigaction *,
|
||||
const struct sigaction *);
|
||||
void native_to_linux32_sigaltstack __P((struct linux32_sigaltstack *,
|
||||
const struct sigaltstack *));
|
||||
void native_to_linux32_sigaltstack(struct linux32_sigaltstack *,
|
||||
const struct sigaltstack *);
|
||||
void native_to_linux32_old_sigset(linux32_old_sigset_t *, const sigset_t *);
|
||||
void linux32_old_extra_to_native_sigset(sigset_t *,
|
||||
const linux32_old_sigset_t *, const unsigned long *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux32_socketcall.h,v 1.1 2006/02/09 19:18:57 manu Exp $ */
|
||||
/* $NetBSD: linux32_socketcall.h,v 1.2 2007/12/04 18:40:19 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
|
||||
@ -178,21 +178,21 @@ union linux32_socketcall_args {
|
||||
|
||||
# ifdef _KERNEL
|
||||
__BEGIN_DECLS
|
||||
int linux32_sys_socketpair __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_sendto __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_recvfrom __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_setsockopt __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_getsockopt __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_connect __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_socket __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_bind __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_getsockname __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_getpeername __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_sendmsg __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_recvmsg __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_recv __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_send __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_accept __P((struct lwp *, void *, register_t *));
|
||||
int linux32_sys_socketpair(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_sendto(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_recvfrom(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_setsockopt(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_getsockopt(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_connect(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_socket(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_bind(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_getsockname(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_getpeername(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_sendmsg(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_recvmsg(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_recv(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_send(struct lwp *, void *, register_t *);
|
||||
int linux32_sys_accept(struct lwp *, void *, register_t *);
|
||||
__END_DECLS
|
||||
# endif /* !_KERNEL */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: m68k4k_exec.c,v 1.17 2005/12/11 12:20:20 christos Exp $ */
|
||||
/* $NetBSD: m68k4k_exec.c,v 1.18 2007/12/04 18:40:19 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994 Christopher G. Demetriou
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: m68k4k_exec.c,v 1.17 2005/12/11 12:20:20 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: m68k4k_exec.c,v 1.18 2007/12/04 18:40:19 dsl Exp $");
|
||||
|
||||
#if !defined(__m68k__)
|
||||
#error YOU GOTTA BE KIDDING!
|
||||
@ -57,9 +57,9 @@ __KERNEL_RCSID(0, "$NetBSD: m68k4k_exec.c,v 1.17 2005/12/11 12:20:20 christos Ex
|
||||
|
||||
#include <compat/m68k4k/m68k4k_exec.h>
|
||||
|
||||
int exec_m68k4k_prep_zmagic __P((struct lwp *, struct exec_package *));
|
||||
int exec_m68k4k_prep_nmagic __P((struct lwp *, struct exec_package *));
|
||||
int exec_m68k4k_prep_omagic __P((struct lwp *, struct exec_package *));
|
||||
int exec_m68k4k_prep_zmagic(struct lwp *, struct exec_package *);
|
||||
int exec_m68k4k_prep_nmagic(struct lwp *, struct exec_package *);
|
||||
int exec_m68k4k_prep_omagic(struct lwp *, struct exec_package *);
|
||||
|
||||
/*
|
||||
* exec_m68k4k_makecmds(): Check if it's an a.out-format executable
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: m68k4k_exec.h,v 1.5 2005/12/11 12:20:20 christos Exp $ */
|
||||
/* $NetBSD: m68k4k_exec.h,v 1.6 2007/12/04 18:40:19 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -42,6 +42,6 @@
|
||||
#define M68K4K_LDPGSZ 4096
|
||||
#define M68K4K_USRTEXT M68K4K_LDPGSZ
|
||||
|
||||
int exec_m68k4k_makecmds __P((struct lwp *, struct exec_package *));
|
||||
int exec_m68k4k_makecmds(struct lwp *, struct exec_package *);
|
||||
|
||||
#endif /* _M68K4K_EXEC_H_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netbsd32_compat_12.c,v 1.27 2007/04/30 09:20:19 dsl Exp $ */
|
||||
/* $NetBSD: netbsd32_compat_12.c,v 1.28 2007/12/04 18:40:19 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_12.c,v 1.27 2007/04/30 09:20:19 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_12.c,v 1.28 2007/12/04 18:40:19 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -49,8 +49,8 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_12.c,v 1.27 2007/04/30 09:20:19 dsl
|
||||
#include <compat/netbsd32/netbsd32.h>
|
||||
#include <compat/netbsd32/netbsd32_syscallargs.h>
|
||||
|
||||
static void netbsd32_stat12_to_netbsd32 __P((struct stat12 *,
|
||||
struct netbsd32_stat12 *));
|
||||
static void netbsd32_stat12_to_netbsd32(struct stat12 *,
|
||||
struct netbsd32_stat12 *);
|
||||
|
||||
/* for use with {,fl}stat() */
|
||||
static void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netbsd32_compat_43.c,v 1.44 2007/06/30 15:31:49 dsl Exp $ */
|
||||
/* $NetBSD: netbsd32_compat_43.c,v 1.45 2007/12/04 18:40:19 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_43.c,v 1.44 2007/06/30 15:31:49 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_43.c,v 1.45 2007/12/04 18:40:19 dsl Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_43.h"
|
||||
@ -64,11 +64,11 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_43.c,v 1.44 2007/06/30 15:31:49 dsl
|
||||
#include <compat/sys/signalvar.h>
|
||||
#include <compat/sys/socket.h>
|
||||
|
||||
int compat_43_netbsd32_sethostid __P((struct lwp *, void *, register_t *));
|
||||
int compat_43_netbsd32_killpg __P((struct lwp *, void *, register_t *retval));
|
||||
int compat_43_netbsd32_sigblock __P((struct lwp *, void *, register_t *retval));
|
||||
int compat_43_netbsd32_sigblock __P((struct lwp *, void *, register_t *retval));
|
||||
int compat_43_netbsd32_sigsetmask __P((struct lwp *, void *, register_t *retval));
|
||||
int compat_43_netbsd32_sethostid(struct lwp *, void *, register_t *);
|
||||
int compat_43_netbsd32_killpg(struct lwp *, void *, register_t *retval);
|
||||
int compat_43_netbsd32_sigblock(struct lwp *, void *, register_t *retval);
|
||||
int compat_43_netbsd32_sigblock(struct lwp *, void *, register_t *retval);
|
||||
int compat_43_netbsd32_sigsetmask(struct lwp *, void *, register_t *retval);
|
||||
|
||||
static void
|
||||
netbsd32_from_stat(const struct stat *sb, struct netbsd32_stat43 *sp32)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netbsd32_conv.h,v 1.16 2007/03/16 22:21:41 dsl Exp $ */
|
||||
/* $NetBSD: netbsd32_conv.h,v 1.17 2007/12/04 18:40:19 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
@ -56,33 +56,33 @@
|
||||
|
||||
#include <compat/netbsd32/netbsd32.h>
|
||||
|
||||
static __inline void netbsd32_from_timeval __P((const struct timeval *, struct netbsd32_timeval *));
|
||||
static __inline void netbsd32_to_timeval __P((const struct netbsd32_timeval *, struct timeval *));
|
||||
static __inline void netbsd32_from_itimerval __P((const struct itimerval *, struct netbsd32_itimerval *));
|
||||
static __inline void netbsd32_to_itimerval __P((const struct netbsd32_itimerval *, struct itimerval *));
|
||||
static __inline void netbsd32_to_timespec __P((const struct netbsd32_timespec *, struct timespec *));
|
||||
static __inline void netbsd32_from_timespec __P((const struct timespec *, struct netbsd32_timespec *));
|
||||
static __inline void netbsd32_from_rusage __P((const struct rusage *, struct netbsd32_rusage *));
|
||||
static __inline void netbsd32_to_rusage __P((const struct netbsd32_rusage *, struct rusage *));
|
||||
static __inline int netbsd32_to_iovecin __P((const struct netbsd32_iovec *, struct iovec *, int));
|
||||
static __inline void netbsd32_to_msghdr __P((const struct netbsd32_msghdr *, struct msghdr *));
|
||||
static __inline void netbsd32_from_msghdr __P((struct netbsd32_msghdr *, const struct msghdr *));
|
||||
static __inline void netbsd32_from_statvfs __P((const struct statvfs *, struct netbsd32_statvfs *));
|
||||
static __inline void netbsd32_from_timex __P((const struct timex *, struct netbsd32_timex *));
|
||||
static __inline void netbsd32_to_timex __P((const struct netbsd32_timex *, struct timex *));
|
||||
static __inline void netbsd32_from___stat13 __P((const struct stat *, struct netbsd32_stat13 *));
|
||||
static __inline void netbsd32_from___stat30 __P((const struct stat *, struct netbsd32_stat *));
|
||||
static __inline void netbsd32_to_ipc_perm __P((const struct netbsd32_ipc_perm *, struct ipc_perm *));
|
||||
static __inline void netbsd32_from_ipc_perm __P((const struct ipc_perm *, struct netbsd32_ipc_perm *));
|
||||
static __inline void netbsd32_to_msg __P((const struct netbsd32_msg *, struct msg *));
|
||||
static __inline void netbsd32_from_msg __P((const struct msg *, struct netbsd32_msg *));
|
||||
static __inline void netbsd32_to_msqid_ds __P((const struct netbsd32_msqid_ds *, struct msqid_ds *));
|
||||
static __inline void netbsd32_from_msqid_ds __P((const struct msqid_ds *, struct netbsd32_msqid_ds *));
|
||||
static __inline void netbsd32_to_shmid_ds __P((const struct netbsd32_shmid_ds *, struct shmid_ds *));
|
||||
static __inline void netbsd32_from_shmid_ds __P((const struct shmid_ds *, struct netbsd32_shmid_ds *));
|
||||
static __inline void netbsd32_to_semid_ds __P((const struct netbsd32_semid_ds *, struct semid_ds *));
|
||||
static __inline void netbsd32_from_semid_ds __P((const struct semid_ds *, struct netbsd32_semid_ds *));
|
||||
static __inline void netbsd32_from_loadavg __P((struct netbsd32_loadavg *, const struct loadavg *));
|
||||
static __inline void netbsd32_from_timeval(const struct timeval *, struct netbsd32_timeval *);
|
||||
static __inline void netbsd32_to_timeval(const struct netbsd32_timeval *, struct timeval *);
|
||||
static __inline void netbsd32_from_itimerval(const struct itimerval *, struct netbsd32_itimerval *);
|
||||
static __inline void netbsd32_to_itimerval(const struct netbsd32_itimerval *, struct itimerval *);
|
||||
static __inline void netbsd32_to_timespec(const struct netbsd32_timespec *, struct timespec *);
|
||||
static __inline void netbsd32_from_timespec(const struct timespec *, struct netbsd32_timespec *);
|
||||
static __inline void netbsd32_from_rusage(const struct rusage *, struct netbsd32_rusage *);
|
||||
static __inline void netbsd32_to_rusage(const struct netbsd32_rusage *, struct rusage *);
|
||||
static __inline int netbsd32_to_iovecin(const struct netbsd32_iovec *, struct iovec *, int);
|
||||
static __inline void netbsd32_to_msghdr(const struct netbsd32_msghdr *, struct msghdr *);
|
||||
static __inline void netbsd32_from_msghdr(struct netbsd32_msghdr *, const struct msghdr *);
|
||||
static __inline void netbsd32_from_statvfs(const struct statvfs *, struct netbsd32_statvfs *);
|
||||
static __inline void netbsd32_from_timex(const struct timex *, struct netbsd32_timex *);
|
||||
static __inline void netbsd32_to_timex(const struct netbsd32_timex *, struct timex *);
|
||||
static __inline void netbsd32_from___stat13(const struct stat *, struct netbsd32_stat13 *);
|
||||
static __inline void netbsd32_from___stat30(const struct stat *, struct netbsd32_stat *);
|
||||
static __inline void netbsd32_to_ipc_perm(const struct netbsd32_ipc_perm *, struct ipc_perm *);
|
||||
static __inline void netbsd32_from_ipc_perm(const struct ipc_perm *, struct netbsd32_ipc_perm *);
|
||||
static __inline void netbsd32_to_msg(const struct netbsd32_msg *, struct msg *);
|
||||
static __inline void netbsd32_from_msg(const struct msg *, struct netbsd32_msg *);
|
||||
static __inline void netbsd32_to_msqid_ds(const struct netbsd32_msqid_ds *, struct msqid_ds *);
|
||||
static __inline void netbsd32_from_msqid_ds(const struct msqid_ds *, struct netbsd32_msqid_ds *);
|
||||
static __inline void netbsd32_to_shmid_ds(const struct netbsd32_shmid_ds *, struct shmid_ds *);
|
||||
static __inline void netbsd32_from_shmid_ds(const struct shmid_ds *, struct netbsd32_shmid_ds *);
|
||||
static __inline void netbsd32_to_semid_ds(const struct netbsd32_semid_ds *, struct semid_ds *);
|
||||
static __inline void netbsd32_from_semid_ds(const struct semid_ds *, struct netbsd32_semid_ds *);
|
||||
static __inline void netbsd32_from_loadavg(struct netbsd32_loadavg *, const struct loadavg *);
|
||||
static __inline void netbsd32_to_sigevent(const struct netbsd32_sigevent *, struct sigevent *);
|
||||
static __inline int netbsd32_to_dirent12(char *, int);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netbsd32_exec.h,v 1.25 2007/03/26 17:12:02 cube Exp $ */
|
||||
/* $NetBSD: netbsd32_exec.h,v 1.26 2007/12/04 18:40:19 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
@ -53,22 +53,22 @@ struct netbsd32_exec {
|
||||
extern const struct emul emul_netbsd32;
|
||||
|
||||
#ifdef EXEC_AOUT
|
||||
int netbsd32_exec_aout_prep_zmagic __P((struct lwp *, struct exec_package *));
|
||||
int netbsd32_exec_aout_prep_nmagic __P((struct lwp *, struct exec_package *));
|
||||
int netbsd32_exec_aout_prep_omagic __P((struct lwp *, struct exec_package *));
|
||||
int exec_netbsd32_makecmds __P((struct lwp *, struct exec_package *));
|
||||
int netbsd32_exec_aout_prep_zmagic(struct lwp *, struct exec_package *);
|
||||
int netbsd32_exec_aout_prep_nmagic(struct lwp *, struct exec_package *);
|
||||
int netbsd32_exec_aout_prep_omagic(struct lwp *, struct exec_package *);
|
||||
int exec_netbsd32_makecmds(struct lwp *, struct exec_package *);
|
||||
#endif
|
||||
#ifdef EXEC_ELF32
|
||||
int netbsd32_elf32_probe __P((struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *));
|
||||
int netbsd32_elf32_probe_noteless __P((struct lwp *, struct exec_package *,
|
||||
void *, char *, vaddr_t *));
|
||||
int netbsd32_elf32_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
int netbsd32_elf32_probe(struct lwp *, struct exec_package *, void *,
|
||||
char *, vaddr_t *);
|
||||
int netbsd32_elf32_probe_noteless(struct lwp *, struct exec_package *,
|
||||
void *, char *, vaddr_t *);
|
||||
int netbsd32_elf32_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
#endif /* EXEC_ELF32 */
|
||||
|
||||
static __inline int netbsd32_copyargs __P((struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *));
|
||||
static __inline int netbsd32_copyargs(struct lwp *, struct exec_package *,
|
||||
struct ps_strings *, char **, void *);
|
||||
|
||||
void netbsd32_setregs (struct lwp *, struct exec_package *, u_long stack);
|
||||
int netbsd32_sigreturn (struct proc *, void *, register_t *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netbsd32_exec_aout.c,v 1.21 2005/12/11 12:20:22 christos Exp $ */
|
||||
/* $NetBSD: netbsd32_exec_aout.c,v 1.22 2007/12/04 18:40:19 dsl Exp $ */
|
||||
/* from: NetBSD: exec_aout.c,v 1.15 1996/09/26 23:34:46 cgd Exp */
|
||||
|
||||
/*
|
||||
@ -59,7 +59,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.21 2005/12/11 12:20:22 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.22 2007/12/04 18:40:19 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -81,8 +81,8 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_exec_aout.c,v 1.21 2005/12/11 12:20:22 chri
|
||||
#include <machine/frame.h>
|
||||
#include <machine/netbsd32_machdep.h>
|
||||
|
||||
int netbsd32_copyinargs __P((struct exec_package *, struct ps_strings *,
|
||||
void *, size_t, const void *, const void *));
|
||||
int netbsd32_copyinargs(struct exec_package *, struct ps_strings *,
|
||||
void *, size_t, const void *, const void *);
|
||||
|
||||
/*
|
||||
* exec_netbsd32_makecmds(): Check if it's an netbsd32 a.out format
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user