summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-03 21:51:00 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-03 21:51:00 +0000
commit0033f3274dba1757d69f5e917883aef80fd7f6a3 (patch)
treead26cbe4d081c8fcfc502078f503f58ef7001c6b /libdiskfs
parentdc5ef9fe1db299ccce946501b06b0dc4894cb354 (diff)
Formerly priv.h.~8~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/priv.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h
index 71478a22..5e53c55b 100644
--- a/libdiskfs/priv.h
+++ b/libdiskfs/priv.h
@@ -15,14 +15,38 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef DISKFS_PRIV_H
+#define DISKFS_PRIV_H
+
#include <mach.h>
#include <hurd.h>
+#include <hurd/ports.h>
+#include <hurd/fshelp.h>
+#include <hurd/ioserver.h>
+#include <assert.h>
+
#include "diskfs.h"
extern mach_port_t fs_control_port; /* receive right */
+enum porttype
+{
+ PT_NONE,
+ PT_PROTID,
+ PT_PAGER,
+ PT_CTL,
+ PT_EXECBOOT,
+ PT_INITBOOT,
+ PT_TRANSBOOT,
+};
+
spin_lock_t _diskfs_node_refcnt_lock = SPIN_LOCK_INITIALIZER;
+#define MAXSYMLINKS 8
+
+/* Needed for MiG. */
+typedef struct protid *protid_t;
+
/* Called by MiG to translate ports into struct protid *.
fsmutations.h arranges for this to happen for the io and
fs interfaces. */
@@ -106,3 +130,5 @@ diskfs_nrele (struct node *np)
})
#define HONORED_STATE_MODES (O_APPEND|O_ASYNC|O_FSYNC|O_NONBLOCK)
+
+#endif