compat_file.[ch] are no longer used

This commit is contained in:
dsl 2007-12-12 21:37:26 +00:00
parent 9ae4eb70ff
commit f9ade37fe1
7 changed files with 10 additions and 688 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.39 2007/05/29 21:32:27 christos Exp $
# $NetBSD: Makefile,v 1.40 2007/12/12 21:37:26 dsl Exp $
LIB= compat
NOPIC= # defined
@ -9,7 +9,7 @@ CPPFLAGS= ${COMPATCPPFLAGS} ${SKIP_AUTODEP::=}
.PATH.c: ${COMPATDIR}
# Common compatibility code, used by all emulations
SRCS= compat_exec.c compat_util.c compat_file.c
SRCS= compat_exec.c compat_util.c
# Compatibility code for 4.3BSD
SRCS+= kern_exit_43.c kern_info_43.c kern_resource_43.c kern_sig_43.c \

View File

@ -1,583 +0,0 @@
/* $NetBSD: compat_file.c,v 1.24 2007/12/08 18:35:53 dsl Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Emmanuel Dreyfus.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: compat_file.c,v 1.24 2007/12/08 18:35:53 dsl Exp $");
#include "opt_compat_darwin.h"
#include "opt_nfsserver.h"
#include "opt_nfs.h"
/* Build this file only if we have an emulation that needs it */
#if (defined(COMPAT_DARWIN)) /* Add COMPAT_FREEBSD and others here */
#if defined(_KERNEL_OPT)
#include "fs_nfs.h"
#endif
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/ioctl.h>
#include <sys/kernel.h>
#include <sys/mount.h>
#include <sys/namei.h>
#include <sys/domain.h>
#include <sys/protosw.h>
#include <sys/socketvar.h>
#include <sys/un.h>
#include <uvm/uvm_extern.h>
#include <sys/syscallargs.h>
#include <compat/common/compat_file.h>
#include <compat/common/compat_util.h>
int
bsd_sys_open(struct lwp *l, void *v, register_t *retval)
{
struct sys_open_args /* {
syscallarg(char *) path;
syscallarg(int) flags;
syscallarg(int) mode;
} */ *uap = v;
return sys_open(l, uap, retval);
}
int
bsd_compat_43_sys_creat(struct lwp *l, void *v, register_t *retval)
{
struct compat_43_sys_creat_args /* {
syscallarg(char *) path;
syscallarg(int) mode;
} */ *uap = v;
return compat_43_sys_creat(l, uap, retval);
}
int
bsd_sys_link(struct lwp *l, void *v, register_t *retval)
{
struct sys_link_args /* {
syscallarg(char *) path;
syscallarg(char *) link;
} */ *uap = v;
return sys_link(l, uap, retval);
}
int
bsd_sys_unlink(struct lwp *l, void *v, register_t *retval)
{
struct sys_unlink_args /* {
syscallarg(char *) path;
} */ *uap = v;
return sys_unlink(l, uap, retval);
}
int
bsd_sys_chdir(struct lwp *l, void *v, register_t *retval)
{
struct sys_chdir_args /* {
syscallarg(char *) path;
} */ *uap = v;
return sys_chdir(l, uap, retval);
}
int
bsd_sys_mknod(struct lwp *l, void *v, register_t *retval)
{
struct sys_mknod_args /* {
syscallarg(char *) path;
syscallarg(int) mode;
syscallarg(int) dev;
} */ *uap = v;
return sys_mknod(l, uap, retval);
}
int
bsd_sys_chmod(struct lwp *l, void *v, register_t *retval)
{
struct sys_chmod_args /* {
syscallarg(char *) path;
syscallarg(int) mode;
} */ *uap = v;
return sys_chmod(l, uap, retval);
}
int
bsd_sys_chown(struct lwp *l, void *v, register_t *retval)
{
struct sys_chown_args /* {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
} */ *uap = v;
return sys_chown(l, uap, retval);
}
int
bsd_sys_mount(struct lwp *l, void *v, register_t *retval)
{
struct compat_40_sys_mount_args /* {
syscallarg(char *) type;
syscallarg(char *) path;
syscallarg(int) flags;
syscallarg(void *) data;
} */ *uap = v;
return compat_40_sys_mount(l, uap, retval);
}
int
bsd_sys_unmount(struct lwp *l, void *v, register_t *retval)
{
struct sys_unmount_args /* {
syscallarg(char *) path;
syscallarg(int) flags;
} */ *uap = v;
return sys_unmount(l, uap, retval);
}
int
bsd_sys_access(struct lwp *l, void *v, register_t *retval)
{
struct sys_access_args /* {
syscallarg(char *) path;
syscallarg(int) flags;
} */ *uap = v;
return sys_access(l, uap, retval);
}
int
bsd_sys_chflags(struct lwp *l, void *v, register_t *retval)
{
struct sys_chflags_args /* {
syscallarg(char *) path;
syscallarg(int) flags;
} */ *uap = v;
return sys_chflags(l, uap, retval);
}
int
bsd_compat_43_sys_stat(struct lwp *l, void *v, register_t *retval)
{
struct compat_43_sys_stat_args /* {
syscallarg(char *) path;
syscallarg(struct stat43 *) ub;
} */ *uap = v;
return compat_43_sys_stat(l, uap, retval);
}
int
bsd_compat_43_sys_lstat(struct lwp *l, void *v, register_t *retval)
{
struct compat_43_sys_lstat_args /* {
syscallarg(char *) path;
syscallarg(struct stat43 *) ub;
} */ *uap = v;
return compat_43_sys_lstat(l, uap, retval);
}
int
bsd_sys_acct(struct lwp *l, void *v, register_t *retval)
{
struct sys_acct_args /* {
syscallarg(char *) path;
} */ *uap = v;
return sys_acct(l, uap, retval);
}
int
bsd_sys_revoke(struct lwp *l, void *v, register_t *retval)
{
struct sys_revoke_args /* {
syscallarg(char *) path;
} */ *uap = v;
return sys_revoke(l, uap, retval);
}
int
bsd_sys_symlink(struct lwp *l, void *v, register_t *retval)
{
struct sys_symlink_args /* {
syscallarg(char *) path;
syscallarg(char *) link;
} */ *uap = v;
return sys_symlink(l, uap, retval);
}
int
bsd_sys_readlink(struct lwp *l, void *v, register_t *retval)
{
struct sys_readlink_args /* {
syscallarg(char *) path;
syscallarg(char *) buf;
syscallarg(int) count;
} */ *uap = v;
return sys_readlink(l, uap, retval);
}
int
bsd_sys_execve(struct lwp *l, void *v, register_t *retval)
{
struct sys_execve_args /* {
syscallarg(char *) path;
syscallarg(char **) argp;
syscallarg(char **) envp;
} */ *uap = v;
struct sys_execve_args ap;
SCARG(&ap, path) = SCARG(uap, path);
SCARG(&ap, argp) = SCARG(uap, argp);
SCARG(&ap, envp) = SCARG(uap, envp);
return sys_execve(l, &ap, retval);
}
int
bsd_sys_chroot(struct lwp *l, void *v, register_t *retval)
{
struct sys_chroot_args /* {
syscallarg(char *) path;
} */ *uap = v;
return sys_chroot(l, uap, retval);
}
int
bsd_compat_12_sys_swapon(struct lwp *l, void *v, register_t *retval)
{
struct compat_12_sys_swapon_args /* {
syscallarg(char *) name;
} */ *uap = v;
return compat_12_sys_swapon(l, uap, retval);
}
int
bsd_sys_bind(struct lwp *l, void *v, register_t *retval)
{
struct sys_bind_args /* {
syscallarg(int) s;
syscallarg(struct sockaddr *) name;
syscallarg(unsigned int) namelen;
} */ *uap = v;
return sys_bind(l, uap, retval);
}
int
bsd_sys_connect(struct lwp *l, void *v, register_t *retval)
{
struct sys_connect_args /* {
syscallarg(int) s;
syscallarg(struct sockaddr *) name;
syscallarg(unsigned int) namelen;
} */ *uap = v;
return sys_connect(l, uap, retval);
}
int
bsd_sys_rename(struct lwp *l, void *v, register_t *retval)
{
struct sys_rename_args /* {
syscallarg(char *) from;
syscallarg(char *) to;
} */ *uap = v;
return sys_rename(l, uap, retval);
}
int
bsd_compat_43_sys_truncate(struct lwp *l, void *v, register_t *retval)
{
struct compat_43_sys_truncate_args /* {
syscallarg(char *) path;
syscallarg(long) length;
} */ *uap = v;
return compat_43_sys_truncate(l, uap, retval);
}
int
bsd_sys_mkfifo(struct lwp *l, void *v, register_t *retval)
{
struct sys_mkfifo_args /* {
syscallarg(char *) path;
syscallarg(int) mode;
} */ *uap = v;
return sys_mkfifo(l, uap, retval);
}
int
bsd_sys_mkdir(struct lwp *l, void *v, register_t *retval)
{
struct sys_mkdir_args /* {
syscallarg(char *) path;
syscallarg(int) mode;
} */ *uap = v;
return sys_mkdir(l, uap, retval);
}
int
bsd_sys_rmdir(struct lwp *l, void *v, register_t *retval)
{
struct sys_rmdir_args /* {
syscallarg(char *) path;
} */ *uap = v;
return sys_rmdir(l, uap, retval);
}
int
bsd_sys_utimes(struct lwp *l, void *v, register_t *retval)
{
struct sys_utimes_args /* {
syscallarg(char *) path;
syscallarg(struct timeval *) tptr;
} */ *uap = v;
return sys_utimes(l, uap, retval);
}
int
bsd_sys_quotactl(struct lwp *l, void *v, register_t *retval)
{
struct sys_quotactl_args /* {
syscallarg(char *) path;
syscallarg(int) cmd;
syscallarg(int) uid;
syscallarg(void *) arg;
} */ *uap = v;
return sys_quotactl(l, uap, retval);
}
int
bsd_sys_statfs(struct lwp *l, void *v, register_t *retval)
{
struct compat_20_sys_statfs_args /* {
syscallarg(char *) path;
syscallarg(struct statfs12 *) buf;
} */ *uap = v;
return compat_20_sys_statfs(l, uap, retval);
}
#if defined(NFS) || defined(NFSSERVER)
int
bsd_sys_getfh(struct lwp *l, void *v, register_t *retval)
{
struct compat_30_sys_getfh_args /* {
syscallarg(char *) fname;
syscallarg(fhandle_t *) fhp;
} */ *uap = v;
return compat_30_sys_getfh(l, uap, retval);
}
#endif /* NFS || NFSSERVER */
int
bsd_compat_12_sys_stat(struct lwp *l, void *v, register_t *retval)
{
struct compat_12_sys_stat_args /* {
syscallarg(char *) path;
syscallarg(struct stat12 *) ub;
} */ *uap = v;
return compat_12_sys_stat(l, uap, retval);
}
int
bsd_compat_12_sys_lstat(struct lwp *l, void *v, register_t *retval)
{
struct compat_12_sys_lstat_args /* {
syscallarg(char *) path;
syscallarg(struct stat12 *) ub;
} */ *uap = v;
return compat_12_sys_lstat(l, uap, retval);
}
int
bsd_sys_pathconf(struct lwp *l, void *v, register_t *retval)
{
struct sys_pathconf_args /* {
syscallarg(char *) path;
syscallarg(int) name;
} */ *uap = v;
return sys_pathconf(l, uap, retval);
}
int
bsd_sys_truncate(struct lwp *l, void *v, register_t *retval)
{
struct sys_truncate_args /* {
syscallarg(char *) path;
syscallarg(int) pad;
syscallarg(off_t) length;
} */ *uap = v;
return sys_truncate(l, uap, retval);
}
int
bsd_sys_undelete(struct lwp *l, void *v, register_t *retval)
{
struct sys_undelete_args /* {
syscallarg(char *) path;
} */ *uap = v;
return sys_undelete(l, uap, retval);
}
int
bsd_sys_lchmod(struct lwp *l, void *v, register_t *retval)
{
struct sys_lchmod_args /* {
syscallarg(char *) path;
syscallarg(mode_t) mode;
} */ *uap = v;
return sys_lchmod(l, uap, retval);
}
int
bsd_sys_lchown(struct lwp *l, void *v, register_t *retval)
{
struct sys_lchown_args /* {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
} */ *uap = v;
return sys_lchown(l, uap, retval);
}
int
bsd_sys_lutimes(struct lwp *l, void *v, register_t *retval)
{
struct sys_lutimes_args /* {
syscallarg(char *) path;
syscallarg(struct timeval *) tptr;
} */ *uap = v;
return sys_lutimes(l, uap, retval);
}
int
bsd_sys___stat30(struct lwp *l, void *v, register_t *retval)
{
struct sys___stat30_args /* {
syscallarg(char *) path;
syscallarg(struct stat *) ub;
} */ *uap = v;
return sys___stat30(l, uap, retval);
}
int
bsd_sys___lstat30(struct lwp *l, void *v, register_t *retval)
{
struct sys___lstat30_args /* {
syscallarg(char *) path;
syscallarg(struct stat *) ub;
} */ *uap = v;
return sys___lstat30(l, uap, retval);
}
int
bsd_sys___posix_chown(struct lwp *l, void *v, register_t *retval)
{
struct sys___posix_chown_args /* {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
} */ *uap = v;
return sys___posix_chown(l, uap, retval);
}
int
bsd_sys___posix_lchown(struct lwp *l, void *v, register_t *retval)
{
struct sys___posix_lchown_args /* {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
} */ *uap = v;
return sys___posix_lchown(l, uap, retval);
}
int
bsd_sys_lchflags(struct lwp *l, void *v, register_t *retval)
{
struct sys_lchflags_args /* {
syscallarg(char *) path;
syscallarg(int) flags;
} */ *uap = v;
return sys_lchflags(l, uap, retval);
}
#endif /* defined(COMPAT_DARWIN) */

View File

@ -1,90 +0,0 @@
/* $NetBSD: compat_file.h,v 1.7 2007/04/30 14:05:47 dsl Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Emmanuel Dreyfus
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _COMPAT_FILE_H_
#define _COMPAT_FILE_H_
int bsd_sys_open(struct lwp *, void *, register_t *);
int bsd_compat_43_sys_creat(struct lwp *, void *, register_t *);
int bsd_sys_link(struct lwp *, void *, register_t *);
int bsd_sys_unlink(struct lwp *, void *, register_t *);
int bsd_sys_chdir(struct lwp *, void *, register_t *);
int bsd_sys_mknod(struct lwp *, void *, register_t *);
int bsd_sys_chmod(struct lwp *, void *, register_t *);
int bsd_sys_chown(struct lwp *, void *, register_t *);
int bsd_sys_mount(struct lwp *, void *, register_t *);
int bsd_sys_unmount(struct lwp *, void *, register_t *);
int bsd_sys_access(struct lwp *, void *, register_t *);
int bsd_sys_chflags(struct lwp *, void *, register_t *);
int bsd_compat_43_sys_stat(struct lwp *, void *, register_t *);
int bsd_compat_43_sys_lstat(struct lwp *, void *, register_t *);
int bsd_sys_acct(struct lwp *, void *, register_t *);
int bsd_sys_revoke(struct lwp *, void *, register_t *);
int bsd_sys_symlink(struct lwp *, void *, register_t *);
int bsd_sys_readlink(struct lwp *, void *, register_t *);
int bsd_sys_execve(struct lwp *, void *, register_t *);
int bsd_sys_chroot(struct lwp *, void *, register_t *);
int bsd_compat_12_sys_swapon(struct lwp *, void *, register_t *);
int bsd_sys_bind(struct lwp *, void *, register_t *);
int bsd_sys_connect(struct lwp *, void *, register_t *);
int bsd_sys_rename(struct lwp *, void *, register_t *);
int bsd_compat_43_sys_truncate(struct lwp *, void *, register_t *);
int bsd_sys_mkfifo(struct lwp *, void *, register_t *);
int bsd_sys_mkdir(struct lwp *, void *, register_t *);
int bsd_sys_rmdir(struct lwp *, void *, register_t *);
int bsd_sys_utimes(struct lwp *, void *, register_t *);
int bsd_sys_quotactl(struct lwp *, void *, register_t *);
int bsd_sys_statfs(struct lwp *, void *, register_t *);
int bsd_sys_getfh(struct lwp *, void *, register_t *);
int bsd_compat_12_sys_stat(struct lwp *, void *, register_t *);
int bsd_compat_12_sys_lstat(struct lwp *, void *, register_t *);
int bsd_sys_pathconf(struct lwp *, void *, register_t *);
int bsd_sys_truncate(struct lwp *, void *, register_t *);
int bsd_sys_undelete(struct lwp *, void *, register_t *);
int bsd_sys_lchmod(struct lwp *, void *, register_t *);
int bsd_sys_lchown(struct lwp *, void *, register_t *);
int bsd_sys_lutimes(struct lwp *, void *, register_t *);
int bsd_sys___stat30(struct lwp *, void *, register_t *);
int bsd_sys___lstat30(struct lwp *, void *, register_t *);
int bsd_sys___posix_chown(struct lwp *, void *, register_t *);
int bsd_sys___posix_lchown(struct lwp *, void *, register_t *);
int bsd_sys_lchflags(struct lwp *, void *, register_t *);
void compat_12_stat_conv(const struct stat *, struct stat12 *);
#endif /* _COMPAT_FILE_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_syscalls_12.c,v 1.22 2007/04/30 14:05:47 dsl Exp $ */
/* $NetBSD: vfs_syscalls_12.c,v 1.23 2007/12/12 21:37:30 dsl Exp $ */
/*
* Copyright (c) 1989, 1993
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_12.c,v 1.22 2007/04/30 14:05:47 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_12.c,v 1.23 2007/12/12 21:37:30 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -57,7 +57,6 @@ __KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_12.c,v 1.22 2007/04/30 14:05:47 dsl Exp
#include <sys/syscallargs.h>
#include <compat/sys/stat.h>
#include <compat/common/compat_file.h>
/*
* Convert from a new to an old stat structure.

View File

@ -1,6 +1,6 @@
#undef DEBUG_DARWIN
#undef DEBUG_MACH
/* $NetBSD: darwin_mman.c,v 1.24 2007/12/08 18:35:56 dsl Exp $ */
/* $NetBSD: darwin_mman.c,v 1.25 2007/12/12 21:37:31 dsl Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: darwin_mman.c,v 1.24 2007/12/08 18:35:56 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: darwin_mman.c,v 1.25 2007/12/12 21:37:31 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -58,8 +58,6 @@ __KERNEL_RCSID(0, "$NetBSD: darwin_mman.c,v 1.24 2007/12/08 18:35:56 dsl Exp $")
#include <compat/sys/signal.h>
#include <compat/common/compat_file.h>
#include <compat/mach/mach_types.h>
#include <compat/mach/mach_vm.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: darwin_socket.c,v 1.16 2007/12/08 18:35:57 dsl Exp $ */
/* $NetBSD: darwin_socket.c,v 1.17 2007/12/12 21:37:31 dsl Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: darwin_socket.c,v 1.16 2007/12/08 18:35:57 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: darwin_socket.c,v 1.17 2007/12/12 21:37:31 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -54,7 +54,6 @@ __KERNEL_RCSID(0, "$NetBSD: darwin_socket.c,v 1.16 2007/12/08 18:35:57 dsl Exp $
#include <compat/sys/signal.h>
#include <compat/common/compat_util.h>
#include <compat/common/compat_file.h>
#include <compat/mach/mach_vm.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: darwin_stat.c,v 1.10 2007/12/08 18:35:57 dsl Exp $ */
/* $NetBSD: darwin_stat.c,v 1.11 2007/12/12 21:37:31 dsl Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: darwin_stat.c,v 1.10 2007/12/08 18:35:57 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: darwin_stat.c,v 1.11 2007/12/12 21:37:31 dsl Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -54,7 +54,6 @@ __KERNEL_RCSID(0, "$NetBSD: darwin_stat.c,v 1.10 2007/12/08 18:35:57 dsl Exp $")
#include <compat/sys/stat.h>
#include <compat/common/compat_util.h>
#include <compat/common/compat_file.h>
#include <compat/mach/mach_types.h>
#include <compat/mach/mach_vm.h>