[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 46/98: proc: store the device master port in _hurd_device_master
From: |
Samuel Thibault |
Subject: |
[hurd] 46/98: proc: store the device master port in _hurd_device_master |
Date: |
Tue, 14 Jan 2014 02:00:01 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit f0023823ef3282bd3483e6a7aa19b0a0939a6ba4
Author: Justus Winter <address@hidden>
Date: Wed Nov 27 10:38:08 2013 +0100
proc: store the device master port in _hurd_device_master
* proc/host.c (S_proc_getprivports): Adapt accordingly.
* proc/main.c (main): Store the device master port in _hurd_device_master.
* proc/proc.h (master_device_port): Remove unused variable.
---
proc/host.c | 2 +-
proc/main.c | 4 ++--
proc/proc.h | 2 --
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/proc/host.c b/proc/host.c
index b5c93b4..6841273 100644
--- a/proc/host.c
+++ b/proc/host.c
@@ -71,7 +71,7 @@ S_proc_getprivports (struct proc *p,
return EPERM;
*hostpriv = _hurd_host_priv;
- *devpriv = master_device_port;
+ *devpriv = _hurd_device_master;
return 0;
}
diff --git a/proc/main.c b/proc/main.c
index 7be89ce..aaaa5a7 100644
--- a/proc/main.c
+++ b/proc/main.c
@@ -92,7 +92,7 @@ main (int argc, char **argv, char **envp)
startup_port = ports_get_send_right (startup_proc);
err = startup_procinit (boot, startup_port, &startup_proc->p_task,
- &authserver, &_hurd_host_priv, &master_device_port);
+ &authserver, &_hurd_host_priv, &_hurd_device_master);
assert_perror (err);
mach_port_deallocate (mach_task_self (), startup_port);
@@ -126,7 +126,7 @@ main (int argc, char **argv, char **envp)
to panic or something. */
mach_port_t cons;
error_t err;
- err = device_open (master_device_port, D_READ|D_WRITE, "console", &cons);
+ err = device_open (_hurd_device_master, D_READ|D_WRITE, "console", &cons);
assert_perror (err);
stdin = mach_open_devstream (cons, "r");
stdout = stderr = mach_open_devstream (cons, "w");
diff --git a/proc/proc.h b/proc/proc.h
index 783aba9..12f56da 100644
--- a/proc/proc.h
+++ b/proc/proc.h
@@ -141,8 +141,6 @@ struct port_class *proc_class;
struct port_class *generic_port_class;
struct port_class *exc_class;
-mach_port_t master_device_port;
-
mach_port_t generic_port; /* messages not related to a specific proc */
pthread_mutex_t global_lock;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 27/98: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd, (continued)
- [hurd] 27/98: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd, Samuel Thibault, 2014/01/13
- [hurd] 35/98: libshouldbeinlibc: fix error handling in maptime_map, Samuel Thibault, 2014/01/13
- [hurd] 25/98: libports: implement lockless management of threads, Samuel Thibault, 2014/01/13
- [hurd] 33/98: usermux: actually use the computed flags value in netfs_attempt_utimes, Samuel Thibault, 2014/01/13
- [hurd] 32/98: nfsd: fix error handling in op_remove, Samuel Thibault, 2014/01/13
- [hurd] 30/98: fatfs: fix error handling in diskfs_lookup_hard, Samuel Thibault, 2014/01/13
- [hurd] 42/98: libports: improve error handling in ports_transfer_right, Samuel Thibault, 2014/01/13
- [hurd] 43/98: libdiskfs: improve error reporting in diskfs_start_disk_pager, Samuel Thibault, 2014/01/13
- [hurd] 44/98: libports: improve error reporting in adjust_priority, Samuel Thibault, 2014/01/13
- [hurd] 47/98: libfshelp: improve error handling in fshelp_start_translator_long, Samuel Thibault, 2014/01/13
- [hurd] 46/98: proc: store the device master port in _hurd_device_master,
Samuel Thibault <=
- [hurd] 50/98: libnetfs: improve the netfs_demuxer function, Samuel Thibault, 2014/01/13
- [hurd] 31/98: fatfs: fix error handling in diskfs_get_directs, Samuel Thibault, 2014/01/13
- [hurd] 51/98: libtrivfs: improve the trivfs_demuxer function, Samuel Thibault, 2014/01/13
- [hurd] 24/98: Clean up the included header files, Samuel Thibault, 2014/01/13
- [hurd] 54/98: pfinet: improve the pfinet_demuxer function, Samuel Thibault, 2014/01/13
- [hurd] 52/98: exec: improve the exec_demuxer function, Samuel Thibault, 2014/01/13
- [hurd] 34/98: mach-defpager: drop all register qualifiers, Samuel Thibault, 2014/01/13
- [hurd] 49/98: libdiskfs: improve the diskfs_demuxer function, Samuel Thibault, 2014/01/13
- [hurd] 56/98: auth: improve the auth_demuxer function, Samuel Thibault, 2014/01/13
- [hurd] 12/98: mach-defpager: remove unused variables, Samuel Thibault, 2014/01/13