From 46365ccea618326def79310864f7a26364f6ba09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 1 Sep 2004 12:02:26 +0000 Subject: [PATCH] Added new syscall _kern_sigprocmask(), renamed other signal syscalls to the new naming scheme. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8768 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/ksignal.h | 10 ++++++---- headers/private/kernel/syscalls.h | 12 ++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/headers/private/kernel/ksignal.h b/headers/private/kernel/ksignal.h index 24e61d573c..bb9a981955 100644 --- a/headers/private/kernel/ksignal.h +++ b/headers/private/kernel/ksignal.h @@ -1,19 +1,21 @@ /* -** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the OpenBeOS License. +** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. */ #ifndef _KERNEL_SIGNAL_H #define _KERNEL_SIGNAL_H + #include #define BLOCKABLE_SIGS (~((1L << (SIGKILL - 1)) | (1L << (SIGSTOP - 1)))) + extern int handle_signals(struct thread *t, int state); - extern int _user_send_signal(pid_t tid, uint sig); -extern int _user_sigaction(int sig, const struct sigaction *act, struct sigaction *oact); +extern int _user_sigprocmask(int how, const sigset_t *set, sigset_t *oldSet); +extern int _user_sigaction(int sig, const struct sigaction *action, struct sigaction *oldAction); extern bigtime_t _user_set_alarm(bigtime_t time, uint32 mode); #endif /* _KERNEL_SIGNAL_H */ diff --git a/headers/private/kernel/syscalls.h b/headers/private/kernel/syscalls.h index bd4595b2ed..2885d5e11a 100644 --- a/headers/private/kernel/syscalls.h +++ b/headers/private/kernel/syscalls.h @@ -1,4 +1,7 @@ /* +** Copyright 2002-2004, The Haiku Team. All rights reserved. +** Distributed under the terms of the Haiku License. +** ** Copyright 2001, Travis Geiselbrecht. All rights reserved. ** Distributed under the terms of the NewOS License. */ @@ -6,7 +9,6 @@ #define _LIBSYS_SYSCALLS_H -//#include #include #include #include @@ -84,9 +86,11 @@ extern status_t _kern_get_next_thread_info(team_id team, int32 *cookie, thread_ extern status_t _kern_get_team_info(team_id id, team_info *info); extern status_t _kern_get_next_team_info(int32 *cookie, team_info *info); -int sys_send_signal(pid_t tid, uint sig); -int sys_sigaction(int sig, const struct sigaction *act, struct sigaction *oact); -bigtime_t sys_set_alarm(bigtime_t time, uint32 mode); +// signal functions +extern int _kern_send_signal(pid_t tid, uint sig); +extern int _kern_sigprocmask(int how, const sigset_t *set, sigset_t *oldSet); +extern int _kern_sigaction(int sig, const struct sigaction *action, struct sigaction *oldAction); +extern bigtime_t _kern_set_alarm(bigtime_t time, uint32 mode); // image functions extern image_id _kern_register_image(image_info *info, size_t size);