summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/specfs/specdev.h
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2008-04-08 14:46:45 +0000
committerthib <thib@openbsd.org>2008-04-08 14:46:45 +0000
commit43ba3c33f7056a6498869018ae580cca628c2ac2 (patch)
treea4d79c440b0ada362c82da1f9d5200d593270d90 /sys/miscfs/specfs/specdev.h
parentSplit the cdev makro for bpftun into two seperate definitions. tun(4) and (diff)
downloadwireguard-openbsd-43ba3c33f7056a6498869018ae580cca628c2ac2.tar.xz
wireguard-openbsd-43ba3c33f7056a6498869018ae580cca628c2ac2.zip
bring cloning up too date; Munge it so it will work with atleast
oga@'s upcoming DRM changes and too some degree ratchov@'s audio work. It still works for bpf's though. Parts from ratchov@; fstat(1) parts from Pedro Martelletto; tested by many, ok'ed by a few; "get going with cloning" deraadt@
Diffstat (limited to 'sys/miscfs/specfs/specdev.h')
-rw-r--r--sys/miscfs/specfs/specdev.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h
index fc40a7e2805..98eb73cfe8d 100644
--- a/sys/miscfs/specfs/specdev.h
+++ b/sys/miscfs/specfs/specdev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: specdev.h,v 1.21 2007/12/27 13:59:12 thib Exp $ */
+/* $OpenBSD: specdev.h,v 1.22 2008/04/08 14:46:45 thib Exp $ */
/* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */
/*
@@ -91,14 +91,13 @@ struct uio;
int spec_badop(void *);
int spec_ebadf(void *);
-
+int spec_getattr(void *);
+int spec_setattr(void *);
+int spec_access(void *);
#define spec_create spec_badop
#define spec_mknod spec_badop
int spec_open(void *);
int spec_close(void *);
-#define spec_access spec_ebadf
-#define spec_getattr spec_ebadf
-#define spec_setattr spec_ebadf
int spec_read(void *);
int spec_write(void *);
int spec_ioctl(void *);