summaryrefslogtreecommitdiff
path: root/viengoos/rm.h
diff options
context:
space:
mode:
authorneal <neal>2007-11-28 20:34:32 +0000
committerneal <neal>2007-11-28 20:34:32 +0000
commit12d97bb06786ed9dececa979e4abb3aad8cc5ff4 (patch)
tree9232b1c74f54f70aa59c639f68f61c9a9de6b80f /viengoos/rm.h
parenta9b17e6236a493d7f5354a7ebc0723ded83bc2bd (diff)
hurd/
2007-11-28 Neal H. Walfield <neal@gnu.org> * Makefile.am (includehurd_HEADERS): Add activity.h. * headers.m4: Create link from ../include/hurd/activity.h to activity.h. * activity.h: New file. viengoos/ 2007-11-28 Neal H. Walfield <neal@gnu.org> * activity.h (activity_allocate): Rename from this... (activity_create): ... to this. Remove arguments caller, folio, indent, activity and control. Add argument child. Update users. * activity.c (activity_allocate): Rename from this... (activity_create): ... to this. Remove arguments caller, folio, indent, activity and control. Add argument child. If CHILD is live, destroy it first. Correctly add CHILD to PARENT's children list. * activity.h (activity_destroy): Remove argument cap. Update callers. * activity.c (activity_destroy): Remove argument cap. Correctly destroy child activities and allocated folios. Correctly unlink from parent. * server.c (CAP_): Remove argument writablep. Add argument require_writable. Fail if REQUIRE_WRITABLE is true, and the object is not writable. (OBJECT_): Likewise. (CAP): Remove argument writablep. Add argument require_writable. Update callers. (OBJECT): Likewise. (server_loop): Add support for the activity_create method. * object.c (folio_free): Also update FOLIO->FOLIO_VERSION. (folio_object_alloc): Check if the object is a cap_activity_control, not a cap_activity. (folio_reparent): Correctly link FOLIO to PARENT. * t-as.c (test): Don't create a cap_activity object but a cap_activity_control object. * viengoos.c (system_task_load): Likewise. * cap.c (cap_to_object): Use cap_types_compatible when asserting that the capability's type and the object's type are identical. * thread.c (thread_exregs): Use cap_types_compatible when checking whether the thread has a valid activity object. * rm.h: Include <hurd/activity.h>. (rm_method_id_string): Handle the RM_activity_create case. ruth/ 2007-11-28 Neal H. Walfield <neal@gnu.org> * ruth.c: Include <hurd/activity.h>. (main): Add test for activity_create.
Diffstat (limited to 'viengoos/rm.h')
-rw-r--r--viengoos/rm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/viengoos/rm.h b/viengoos/rm.h
index 9fc0f7e..13b4ec3 100644
--- a/viengoos/rm.h
+++ b/viengoos/rm.h
@@ -31,6 +31,7 @@
#include <hurd/startup.h>
#include <hurd/thread.h>
+#include <hurd/activity.h>
#define RPC_STUB_PREFIX rm
#define RPC_ID_PREFIX RM
@@ -88,6 +89,8 @@ rm_method_id_string (enum rm_method_id id)
return "exception_collect";
case RM_thread_exregs:
return "thread_exregs";
+ case RM_activity_create:
+ return "activity_create";
default:
return "unknown method id";
}