From b821b7715ad54321f40e6b4551012a4f71195d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 14 Oct 2004 14:31:31 +0000 Subject: [PATCH] Added syscalls for various process/group/session related functions. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9345 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/syscall_process_info.h | 14 ++++++++++++++ headers/private/kernel/syscalls.h | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 headers/private/kernel/syscall_process_info.h diff --git a/headers/private/kernel/syscall_process_info.h b/headers/private/kernel/syscall_process_info.h new file mode 100644 index 0000000000..970b25691d --- /dev/null +++ b/headers/private/kernel/syscall_process_info.h @@ -0,0 +1,14 @@ +/* +** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ +#ifndef _KERNEL_SYSCALL_PROCESS_INFO_H +#define _KERNEL_SYSCALL_PROCESS_INFO_H + +enum which_process_info { + SESSION_ID = 1, + GROUP_ID, + PARENT_ID, +}; + +#endif /* _KRENEL_SYSCALL_PROCESS_INFO_H */ diff --git a/headers/private/kernel/syscalls.h b/headers/private/kernel/syscalls.h index be7ce5bf22..561c7cd516 100644 --- a/headers/private/kernel/syscalls.h +++ b/headers/private/kernel/syscalls.h @@ -67,6 +67,9 @@ extern thread_id _kern_wait_for_child(thread_id child, uint32 flags, extern status_t _kern_exec(const char *path, int32 argc, char * const *argv, int32 envCount, char * const *environment); extern thread_id _kern_fork(void); +extern pid_t _kern_process_info(pid_t process, int32 which); +extern pid_t _kern_setpgid(pid_t process, pid_t group); +extern pid_t _kern_setsid(void); extern thread_id _kern_spawn_thread(int32 (*func)(thread_func, void *), const char *name, int32 priority, void *data1, void *data2);