Module Name:    src
Committed By:   pooka
Date:           Sat Dec  5 12:13:08 UTC 2009

Modified Files:
        src/lib/libpuffs: Makefile suspend.c
Removed Files:
        src/lib/libpuffs: puffs_suspend.3

Log Message:
Remove suspension support from here too.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libpuffs/Makefile
cvs rdiff -u -r1.3 -r0 src/lib/libpuffs/puffs_suspend.3
cvs rdiff -u -r1.9 -r1.10 src/lib/libpuffs/suspend.c

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

Modified files:

Index: src/lib/libpuffs/Makefile
diff -u src/lib/libpuffs/Makefile:1.22 src/lib/libpuffs/Makefile:1.23
--- src/lib/libpuffs/Makefile:1.22	Tue Dec  4 21:24:10 2007
+++ src/lib/libpuffs/Makefile	Sat Dec  5 12:13:08 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2007/12/04 21:24:10 pooka Exp $
+#	$NetBSD: Makefile,v 1.23 2009/12/05 12:13:08 pooka Exp $
 #
 
 .include <bsd.own.mk>
@@ -18,8 +18,7 @@
 		framebuf.c null.c opdump.c paths.c pnode.c requests.c	\
 		subr.c suspend.c
 MAN=		puffs.3 puffs_cc.3 puffs_cred.3 puffs_flush.3		\
-		puffs_framebuf.3 puffs_node.3 puffs_ops.3 puffs_path.3	\
-		puffs_suspend.3
+		puffs_framebuf.3 puffs_node.3 puffs_ops.3 puffs_path.3
 INCS=		puffs.h puffsdump.h
 INCSDIR=	/usr/include
 LINTFLAGS+=-S -w

Index: src/lib/libpuffs/suspend.c
diff -u src/lib/libpuffs/suspend.c:1.9 src/lib/libpuffs/suspend.c:1.10
--- src/lib/libpuffs/suspend.c:1.9	Sat Nov 17 17:12:11 2007
+++ src/lib/libpuffs/suspend.c	Sat Dec  5 12:13:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: suspend.c,v 1.9 2007/11/17 17:12:11 pooka Exp $	*/
+/*	$NetBSD: suspend.c,v 1.10 2009/12/05 12:13:08 pooka Exp $	*/
 
 /*
  * Copyright (c) 2007  Antti Kantee.  All Rights Reserved.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: suspend.c,v 1.9 2007/11/17 17:12:11 pooka Exp $");
+__RCSID("$NetBSD: suspend.c,v 1.10 2009/12/05 12:13:08 pooka Exp $");
 #endif /* !lint */
 
 /*
@@ -36,27 +36,14 @@
 
 #include <sys/types.h>
 
-#include <assert.h>
 #include <errno.h>
 #include <puffs.h>
-#include <stdio.h>
-#include <unistd.h>
-
-#include "puffs_priv.h"
 
 /*ARGSUSED*/
 int
 puffs_fs_suspend(struct puffs_usermount *pu)
 {
-	struct puffs_req preq;
-	size_t n;
-
-	preq.preq_pth.pth_framelen = sizeof(struct puffs_req);
-	preq.preq_opclass = PUFFSOP_SUSPEND;
-
-	n = write(pu->pu_fd, &preq, sizeof(preq));
 
-	/* XXX */
-	assert(n == sizeof(preq));
-	return 0;
+	/* used to be, no longer is.  just return error to avoid ABI bump */
+	return EOPNOTSUPP;
 }

Reply via email to