/* End of gross hack */
Set_LWP_RC();
- *pid = temp;
+ if (pid)
+ *pid = temp;
return 0;
} else
return LWP_EINIT;
/* End of gross hack */
Set_LWP_RC();
- *pid = temp;
+ if (pid)
+ *pid = temp;
return 0;
} else
return LWP_EINIT;
savecontext(Dispatcher, &temp->context, NULL);
LWPANCHOR.outersp = temp->context.topstack;
Set_LWP_RC();
- *pid = temp;
+ if (pid)
+ *pid = temp;
/* get minimum stack size from the environment. this allows the administrator
* to change the lwp stack dynamically without getting a new binary version.
free(lp);
return LWP_ENOMEM;
}
- *pid = lp;
+ if (pid)
+ *pid = lp;
return LWP_SUCCESS;
}
int state;
if (initialized) {
- *pid = lp;
+ if (pid)
+ *pid = lp;
return LWP_SUCCESS;
}
#ifndef LWP_NO_PRIORITIES
MUTEX_INIT(&lwp_mutex, "lwp", MUTEX_DEFAULT, 0);
MUTEX_ENTER(&lwp_mutex);
initialized = 1;
- *pid = lp;
+ if (pid)
+ *pid = lp;
return LWP_SUCCESS;
}