From e38a38aacfa0ee96456916a5bcaa01e293378dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 14 Jan 2009 13:52:13 +0000 Subject: [PATCH] * I obviously forgot to commit this: adds siginterrupt() prototype, and does some minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28897 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/signal.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/headers/posix/signal.h b/headers/posix/signal.h index bea760e2bf..64352a7408 100644 --- a/headers/posix/signal.h +++ b/headers/posix/signal.h @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007, Haiku, Inc. All Rights Reserved. + * Copyright 2002-2009, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _SIGNAL_H_ @@ -95,8 +95,8 @@ typedef struct sigstack { /* * The list of all defined signals: * - * The numbering of signals for Haiku attempts to maintain - * some consistency with UN*X conventions so that things + * The numbering of signals for Haiku attempts to maintain + * some consistency with UN*X conventions so that things * like "kill -9" do what you expect. */ #define SIGHUP 1 /* hangup -- tty is gone! */ @@ -158,6 +158,7 @@ int send_signal(pid_t tid, unsigned int sig); int killpg(pid_t processGroupID, int sig); int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); +int siginterrupt(int sig, int flag); int sigprocmask(int how, const sigset_t *set, sigset_t *oset); int sigpending(sigset_t *set); int sigsuspend(const sigset_t *mask); @@ -179,7 +180,7 @@ void set_signal_stack(void *ptr, size_t size); int sigaltstack(const stack_t *ss, stack_t *oss); /* pthread extension : equivalent of sigprocmask() */ -int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset); +int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset); #ifdef __cplusplus } @@ -201,7 +202,7 @@ int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset); * * // install the handler * signal(SIGINT, &my_signal_handler); - * + * * The sigaction() function allows finer grained control of the signal * handling. It also allows an opportunity, via the 'sigaction' struct, to * enable additional data to be passed to the handler. For example: