libc: fix the stubs for pthread_{suspend,resume}_all_np
Noticed just a little too late, stub_null returns a `void *` but these
prototypes have no return value. As far as I know, all of our archs
will throw the return value in a caller-saved register and it'll simply
be ignored, but it's probably worth being more accurate.
Fixes: 83aafcdc88 ("libc, libthr: coordinate stubs for [...]")
This commit is contained in:
@@ -50,6 +50,7 @@ struct pthread {
|
||||
static struct pthread main_thread;
|
||||
|
||||
static int stub_main(void);
|
||||
static void stub_void(void);
|
||||
static void *stub_null(void);
|
||||
static struct pthread *stub_self(void);
|
||||
static int stub_zero(void);
|
||||
@@ -132,8 +133,8 @@ pthread_func_entry_t __thr_jtable[PJT_MAX] = {
|
||||
[PJT_GETTHREADID_NP] = {PJT_DUAL_ENTRY(stub_zero)},
|
||||
[PJT_ATTR_GET_NP] = {PJT_DUAL_ENTRY(stub_esrch)},
|
||||
[PJT_GETNAME_NP] = {PJT_DUAL_ENTRY(stub_getname_np)},
|
||||
[PJT_SUSPEND_ALL_NP] = {PJT_DUAL_ENTRY(stub_null)},
|
||||
[PJT_RESUME_ALL_NP] = {PJT_DUAL_ENTRY(stub_null)},
|
||||
[PJT_SUSPEND_ALL_NP] = {PJT_DUAL_ENTRY(stub_void)},
|
||||
[PJT_RESUME_ALL_NP] = {PJT_DUAL_ENTRY(stub_void)},
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -302,6 +303,12 @@ stub_zero(void)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
stub_void(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static void *
|
||||
stub_null(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user