aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/priv.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-12-30 06:50:40 +0000
committerRoland McGrath <roland@gnu.org>1998-12-30 06:50:40 +0000
commit426351562d55a06e490fad6a87cd7d0106280ab6 (patch)
tree68b935f19834e5fd0b2addcb7e00bfa3a4f9e4dc /libdiskfs/priv.h
parent05361f6e96c9b7abaca44e16cf38e9f8bc0475e2 (diff)
downloadhurd-426351562d55a06e490fad6a87cd7d0106280ab6.tar.gz
hurd-426351562d55a06e490fad6a87cd7d0106280ab6.tar.bz2
hurd-426351562d55a06e490fad6a87cd7d0106280ab6.zip
1998-12-27 Roland McGrath <roland@baalperazim.frob.com>
Use a struct hurd_port for the cached exec server port, so it is properly reference-counted and locked. * boot-start.c (diskfs_exec): Variable removed. (diskfs_start_bootstrap): Make it a local here. Install that port in _diskfs_exec_portcell. (diskfs_S_fsys_init): Use _diskfs_exec_portcell instead of diskfs_exec. * init-init.c (_diskfs_exec_portcell): New variable. (diskfs_init_diskfs): Initialize it. * priv.h: Declare it. * diskfs.h (diskfs_exec, diskfs_exec_ctl): Remove decls. * file-exec.c (diskfs_S_file_exec): Use _diskfs_exec_portcell instead of diskfs_exec.
Diffstat (limited to 'libdiskfs/priv.h')
-rw-r--r--libdiskfs/priv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h
index 11cbe534..d45b3f22 100644
--- a/libdiskfs/priv.h
+++ b/libdiskfs/priv.h
@@ -23,6 +23,7 @@
#include <hurd/ports.h>
#include <hurd/fshelp.h>
#include <hurd/iohelp.h>
+#include <hurd/port.h>
#include <assert.h>
#include "diskfs.h"
@@ -36,6 +37,9 @@ extern const char *_diskfs_chroot_directory;
/* If --boot-command is given, this points to the program and args. */
extern char **_diskfs_boot_command;
+/* Port cell holding a cached port to the exec server. */
+extern struct hurd_port _diskfs_exec_portcell;
+
volatile struct mapped_time_value *_diskfs_mtime;
extern struct argp_option diskfs_common_options[];