Solved the big mystery in Ingo's life: in C, func(); and func(void); is not the same.
This fixes the "missing prototype" warnings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11627 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2003-2004, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2003-2005, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the Haiku License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _KERNEL_SIGNAL_H
|
#ifndef _KERNEL_SIGNAL_H
|
||||||
#define _KERNEL_SIGNAL_H
|
#define _KERNEL_SIGNAL_H
|
||||||
|
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
|
||||||
#define KILL_SIGNALS ((1L << (SIGKILL - 1)) | (1L << (SIGKILLTHR - 1)))
|
#define KILL_SIGNALS ((1L << (SIGKILL - 1)) | (1L << (SIGKILLTHR - 1)))
|
||||||
#define BLOCKABLE_SIGS (~(KILL_SIGNALS | (1L << (SIGSTOP - 1))))
|
#define BLOCKABLE_SIGS (~(KILL_SIGNALS | (1L << (SIGSTOP - 1))))
|
||||||
|
|
||||||
@@ -18,7 +19,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int handle_signals(struct thread *t, cpu_status *state);
|
extern int handle_signals(struct thread *t, cpu_status *state);
|
||||||
extern bool is_kill_signal_pending();
|
extern bool is_kill_signal_pending(void);
|
||||||
|
|
||||||
extern int _user_send_signal(pid_t tid, uint sig);
|
extern int _user_send_signal(pid_t tid, uint sig);
|
||||||
extern int _user_sigprocmask(int how, const sigset_t *set, sigset_t *oldSet);
|
extern int _user_sigprocmask(int how, const sigset_t *set, sigset_t *oldSet);
|
||||||
@@ -29,5 +30,4 @@ extern bigtime_t _user_set_alarm(bigtime_t time, uint32 mode);
|
|||||||
} // extern "C"
|
} // extern "C"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* _KERNEL_SIGNAL_H */
|
#endif /* _KERNEL_SIGNAL_H */
|
||||||
|
|||||||
@@ -55,8 +55,8 @@ thread_get_current_thread_id(void)
|
|||||||
return t ? t->id : 0;
|
return t ? t->id : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
thread_id allocate_thread_id();
|
thread_id allocate_thread_id(void);
|
||||||
thread_id peek_next_thread_id();
|
thread_id peek_next_thread_id(void);
|
||||||
|
|
||||||
thread_id spawn_kernel_thread_etc(thread_func, const char *name, int32 priority,
|
thread_id spawn_kernel_thread_etc(thread_func, const char *name, int32 priority,
|
||||||
void *args, team_id team, thread_id threadID);
|
void *args, team_id team, thread_id threadID);
|
||||||
|
|||||||
Reference in New Issue
Block a user