summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-07-26 16:38:29 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-08-28 23:26:39 +0200
commit193cef0bdcc7b4a7e06a6cf30e96684c9f454863 (patch)
tree54eb66507f920a6690f9fca765f4633cc585ccc7 /include
parent9b3a87f37c4e829386ceb10de974d409a31adcf7 (diff)
Define and use symbolic names for important processes
* include/pids.h: New file. * init/init.c (frob_kernel_process): Use symbolic name for kernel process. * exec/exec.c (S_exec_init): Use symbolic name for startup process. * libdiskfs/boot-start.c (diskfs_S_fsys_init): Likewise. * libdiskfs/init-startup.c (_diskfs_init_completed): Likewise. * pfinet/main.c (arrange_shutdown_notification): Likewise. * proc/mgt.c (create_startup_proc): Likewise. * proc/main.c (main): Use symbolic name for proc process.
Diffstat (limited to 'include')
-rw-r--r--include/pids.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/pids.h b/include/pids.h
new file mode 100644
index 00000000..485916b5
--- /dev/null
+++ b/include/pids.h
@@ -0,0 +1,29 @@
+/* List of special processes.
+
+ Copyright (C) 2013 Free Software Foundation
+ Written by Justus Winter <4winter@informatik.uni-hamburg.de>
+
+ This file is part of the GNU Hurd.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#ifndef _HURD_PROCESSES_H
+#define _HURD_PROCESSES_H
+
+#define HURD_PID_PROC 0
+#define HURD_PID_STARTUP 1
+#define HURD_PID_KERNEL 2
+
+#endif /* _HURD_PROCESSES_H */