summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2009-09-08 21:34:57 +0000
committerpooka <pooka@NetBSD.org>2009-09-08 21:34:57 +0000
commitaaaf93f1d498e91712f5becd8680ee7edb0e91ef (patch)
tree04825c8d0c47be232982bb7125b3429d7e8e105d /include
parent3446f432fa67c088fbea586ea7c95d0c73f426dd (diff)
Add opendisk1(), which functions like opendisk(), but takes a function
pointer to the routine to be used for open().
Diffstat (limited to 'include')
-rw-r--r--include/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/util.h b/include/util.h
index 615520e6c43..9ef4162dad0 100644
--- a/include/util.h
+++ b/include/util.h
@@ -1,4 +1,4 @@
-/* $NetBSD: util.h,v 1.51 2009/05/13 02:50:32 pgoyette Exp $ */
+/* $NetBSD: util.h,v 1.52 2009/09/08 21:34:57 pooka Exp $ */
/*-
* Copyright (c) 1995
@@ -82,6 +82,8 @@ int logoutx(const char *, int, int);
void logwtmp(const char *, const char *, const char *);
void logwtmpx(const char *, const char *, const char *, int, int);
int opendisk(const char *, int, char *, size_t, int);
+int opendisk1(const char *, int, char *, size_t, int,
+ int (*)(const char *, int, mode_t));
int openpty(int *, int *, char *, struct termios *,
struct winsize *);
#ifndef __LIBC12_SOURCE__