fix prototypes of function pointers to varargs syscalls

This commit is contained in:
pooka 2009-10-13 22:04:31 +00:00
parent 363b14551a
commit 4be222467f
6 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: smb_kernelops.h,v 1.1 2009/09/06 18:38:17 pooka Exp $ */
/* $NetBSD: smb_kernelops.h,v 1.2 2009/10/13 22:04:31 pooka Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@ -35,8 +35,8 @@
#include <fcntl.h>
struct smb_kernelops {
int (*ko_open)(const char *, int, mode_t);
int (*ko_ioctl)(int, unsigned long, void *);
int (*ko_open)(const char *, int, ...);
int (*ko_ioctl)(int, unsigned long, ...);
int (*ko_close)(int);
int (*ko_socket)(int, int, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: smb_kernelops.c,v 1.1 2009/09/06 18:38:17 pooka Exp $ */
/* $NetBSD: smb_kernelops.c,v 1.2 2009/10/13 22:04:31 pooka Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: smb_kernelops.c,v 1.1 2009/09/06 18:38:17 pooka Exp $");
__RCSID("$NetBSD: smb_kernelops.c,v 1.2 2009/10/13 22:04:31 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@ -41,8 +41,8 @@ __RCSID("$NetBSD: smb_kernelops.c,v 1.1 2009/09/06 18:38:17 pooka Exp $");
#include "smb_kernelops.h"
const struct smb_kernelops smb_kops = {
.ko_open = (void *)open, /* XXX: rump_syscalls prototype */
.ko_ioctl = (void *)ioctl,
.ko_open = open,
.ko_ioctl = ioctl,
.ko_close = close,
.ko_socket = socket,

View File

@ -1,4 +1,4 @@
/* $NetBSD: cgd_kernelops.c,v 1.1 2009/09/08 21:36:35 pooka Exp $ */
/* $NetBSD: cgd_kernelops.c,v 1.2 2009/10/13 22:04:31 pooka Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: cgd_kernelops.c,v 1.1 2009/09/08 21:36:35 pooka Exp $");
__RCSID("$NetBSD: cgd_kernelops.c,v 1.2 2009/10/13 22:04:31 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@ -40,8 +40,8 @@ __RCSID("$NetBSD: cgd_kernelops.c,v 1.1 2009/09/08 21:36:35 pooka Exp $");
#include "cgd_kernelops.h"
const struct cgd_kernelops cgd_kops = {
.ko_open = (void *)open, /* XXX: rump_syscalls prototype */
.ko_ioctl = (void *)ioctl,
.ko_open = open,
.ko_ioctl = ioctl,
.ko_pread = pread,
.ko_close = close,
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: cgd_kernelops.h,v 1.2 2009/09/10 09:10:29 pooka Exp $ */
/* $NetBSD: cgd_kernelops.h,v 1.3 2009/10/13 22:04:31 pooka Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@ -35,8 +35,8 @@
#include <fcntl.h>
struct cgd_kernelops {
int (*ko_open)(const char *, int, mode_t);
int (*ko_ioctl)(int, unsigned long, void *);
int (*ko_open)(const char *, int, ...);
int (*ko_ioctl)(int, unsigned long, ...);
int (*ko_close)(int);
ssize_t (*ko_pread)(int, void *, size_t, off_t);
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: kernelops.c,v 1.2 2009/08/06 00:55:08 pooka Exp $ */
/* $NetBSD: kernelops.c,v 1.3 2009/10/13 22:04:31 pooka Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: kernelops.c,v 1.2 2009/08/06 00:55:08 pooka Exp $");
__RCSID("$NetBSD: kernelops.c,v 1.3 2009/10/13 22:04:31 pooka Exp $");
#endif /* !lint */
/*
@ -68,8 +68,8 @@ const struct kernelops kops = {
#else
const struct kernelops kops = {
.ko_open = (void *)open, /* XXX: fix rump_syscalls */
.ko_fcntl = (void *)fcntl,
.ko_open = open,
.ko_fcntl = fcntl,
.ko_statvfs = statvfs1,
.ko_fhopen = fhopen,
.ko_close = close,

View File

@ -8,9 +8,9 @@
#include <unistd.h>
struct kernelops {
int (*ko_open)(const char *, int, mode_t);
int (*ko_open)(const char *, int, ...);
int (*ko_statvfs)(const char *, struct statvfs *, int);
int (*ko_fcntl)(int, int, void *);
int (*ko_fcntl)(int, int, ...);
int (*ko_fhopen)(const void *, size_t, int);
int (*ko_close)(int);