Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netsmb sanity changes for NetBSD:
details: https://anonhg.NetBSD.org/src/rev/18ea8f918439
branches: trunk
changeset: 538098:18ea8f918439
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Oct 11 21:35:42 2002 +0000
description:
sanity changes for NetBSD:
* return ENODEV for write/read methods
* use seltrue for poll method
the old semantics still applies for !NetBSD
diffstat:
sys/netsmb/smb_dev.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 26ef0a1c59c7 -r 18ea8f918439 sys/netsmb/smb_dev.c
--- a/sys/netsmb/smb_dev.c Fri Oct 11 20:29:30 2002 +0000
+++ b/sys/netsmb/smb_dev.c Fri Oct 11 21:35:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smb_dev.c,v 1.7 2002/09/06 13:18:43 gehenna Exp $ */
+/* $NetBSD: smb_dev.c,v 1.8 2002/10/11 21:35:42 jdolecek Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@@ -103,14 +103,11 @@
#ifdef __NetBSD__
dev_type_open(nsmb_dev_open);
dev_type_close(nsmb_dev_close);
-dev_type_read(nsmb_dev_read);
-dev_type_write(nsmb_dev_write);
dev_type_ioctl(nsmb_dev_ioctl);
-dev_type_poll(nsmb_dev_poll);
const struct cdevsw netsmb_cdevsw = {
- nsmb_dev_open, nsmb_dev_close, nsmb_dev_read, nsmb_dev_write,
- nsmb_dev_ioctl, nostop, notty, nsmb_dev_poll, nommap,
+ nsmb_dev_open, nsmb_dev_close, noread, nowrite,
+ nsmb_dev_ioctl, nostop, notty, nopoll, nommap,
};
#else
static struct cdevsw nsmb_cdevsw = {
@@ -397,6 +394,7 @@
return error;
}
+#ifndef __NetBSD__
int
nsmb_dev_read(dev_t dev, struct uio *uio, int flag)
{
@@ -415,7 +413,6 @@
return ENODEV;
}
-#ifndef __NetBSD__
static int
nsmb_dev_load(module_t mod, int cmd, void *arg)
{
Home |
Main Index |
Thread Index |
Old Index