summaryrefslogtreecommitdiff
path: root/hurd/process.defs
AgeCommit message (Collapse)Author
2014-12-10hurd: add `proc_make_task_namespace'Justus Winter
Add a new RPC to the process protocol to create task namespaces. These can be used by an unprivileged process to claims the responsibility to manage all tasks in this namespace. Any task created in this namespace will automatically be declared a child of the root process, and a `mach_notify_new_task' message is sent to a given port. If the root process dies, the proc server will terminate all tasks in the namespace. * hurd/process.defs (proc_make_task_namespace): New RPC.
2014-11-21Add proc_set_init_task, make runsystem pid 1Justus Winter
* hurd/process.defs (proc_set_init_task): New procedure. * hurd/process_reply.defs (proc_set_init_task): Likewise. * hurd/process_request.defs (proc_set_init_task): Likewise. * include/pids.h: Add HURD_PID_INIT as 1, adjust others accordingly. * init/init.c (start_child): Register the child task. * proc/proc.h (init_proc): New variable. (create_startup_proc): Rename to create_init_proc. * proc/main.c (main): Create placeholder proc object for pid 1. * proc/mgt.c: Use init_proc instead of startup_proc, as the former is the new root of the process tree. (create_startup_proc): Rename to create_init_proc. (S_proc_set_init_task): New function. * doc/hurd.texi (Server Bootstrap): Update accordingly. * procfs/main.c: Do not hard-code kernel pid, use pids.h instead.
2013-09-15hurd: add proc_{get,set}_codeJustus Winter
Add routines to set and query the processes start_code and end_code locations. Any executable segments loaded from the ELF binary are in this range. * hurd/process.defs: Add proc_{get,set}_code. * hurd/process_reply.defs: Add proc_{get,set}_code. * hurd/process_request.defs: Add proc_{get,set}_code_request.
2013-08-29hurd: add proc_mark_importantJustus Winter
This is based on a fragment of Guillem Jovers patch presented here: http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00081.html It has been refreshed, updated and the copyright year is adjusted properly. It has been complemented with the necessary features to address the issues the original patch set out to address, namely that killall5 freezes the proc translator before it tries to walk over /proc/*/stat to decide which process to kill. Prior to this patch (and the one marking the procfs server as important process), killall5 would deadlock trying to walk over the proc file system. Ironically it would not have killed any process later on even if it had the chance, since two values obtained from /proc/*/stat are currently hardcoded to zero in our procfs. Patches addressing the problem as a whole are prepared and will be sent as a follow up. * hurd/process.defs (proc_mark_important): New routine definitions. * hurd/process_reply.defs (proc_mark_important_request): Likewise. * hurd/process_request.defs (proc_mark_important_request): Likewise.
2013-08-29Reserve RPC ID for proc_set_init_taskSamuel Thibault
* hurd/process.defs: Reserve RPC ID for proc_set_init_task. * hurd/process_reply.defs: Likewise. * hurd/process_request.defs: Likewise.
2010-09-18Obtain number of ports in proc and libpsantrik
Add (and implement) a proc RPC to obtain the number of Mach ports used by the target task. Add infrastructure in libps to read this information. * hurd/process.defs (proc_getnports): New RPC. * hurd/process_request.defs (proc_getnports_request): New RPC. * libps/procstat.c (proc_stat_set_flags): Call proc_getnports RPC if needed. * libps/ps.h (proc_stat): New `num_ports' field. (PSTAT_NUM_PORTS): New macro. (proc_stat_num_ports): New macro. * libps/spec.c (ps_get_num_ports): New function. (ps_num_ports_getter): New variable. (specs): New entry for `ps_num_ports_getter'. * proc/info.c (S_proc_getnports): New function.
2002-05-212002-05-22 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* process.defs (proc_setlogin): Remove comment about being deprecated. It is used to create login sandboxes.
2001-07-102001-07-11 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* fs.defs (routine file_get_storage_info): Add dealloc to all out parameters (PORTS, INTS, OFFSETS, DATA). (routine file_get_fs_options): Add dealloc to out parameter OPTIONS. * fsys.defs (routine fsys_get_options): Add dealloc to out parameter OPTIONS. * process.defs (routine proc_getprocinfo): Add dealloc to out paramter PROCINFO.
1997-09-16Tue Sep 16 15:24:37 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* process.defs: Delete proc_sethostid, proc_gethostid, proc_sethostname, and proc_gethostname.
1996-05-06fuxup.Michael I. Bushnell
1996-05-06(proc_getprocinfo): Make FLAGS inout.Michael I. Bushnell
(proc_get_tty): New RPC. (proc_mark_stop, proc_mark_exit): Add SIGCODE arg. (proc_wait): Return SIGCODE parm too. (proc_setowner): Add CLEAR parm. (proc_setmsgport): Return old message port with mach_port_send_t to permit more flexibility in proc server.
1995-12-21(proc_getsidport): Make SESSPORT's type mach_port_send_t;Miles Bader
1995-10-31(proc_getprocinfo): New parm THREADWAITS.Michael I. Bushnell
1995-10-30(proc_getprocinfo): New parm FLAGS.Michael I. Bushnell
1995-03-06Doc fix.Miles Bader
1994-09-12entered into RCSMichael I. Bushnell
1994-08-25Formerly process.defs.~80~Michael I. Bushnell
1994-07-12Formerly process.defs.~79~Roland McGrath
1994-07-08Formerly process.defs.~78~Michael I. Bushnell
1994-07-08Formerly process.defs.~77~Roland McGrath
1994-06-28Formerly process.defs.~76~Roland McGrath
1994-06-24Formerly process.defs.~75~Roland McGrath
1994-05-12Formerly process.defs.~74~Roland McGrath
1994-05-09Formerly process.defs.~73~Michael I. Bushnell
1994-03-23Formerly process.defs.~72~Michael I. Bushnell
1994-03-22Formerly process.defs.~71~Michael I. Bushnell
1994-03-21Formerly process.defs.~70~Michael I. Bushnell
1994-02-24Formerly process.defs.~69~Michael I. Bushnell
1994-02-23Formerly process.defs.~68~Michael I. Bushnell
1994-01-11Formerly process.defs.~67~Michael I. Bushnell
1994-01-10Formerly process.defs.~66~Michael I. Bushnell
1994-01-06Formerly process.defs.~65~Michael I. Bushnell
1993-12-23Formerly process.defs.~64~Michael I. Bushnell
1993-12-07Initial revisionMichael I. Bushnell