LWP_InitializeProcessSupport(1, &junk); /* just in case */
IOMGR_Initialize();
code = LWP_CreateProcess(bproc, BNODE_LWP_STACKSIZE,
- /* priority */ 1, /* parm */0, "bnode-manager", &bproc_pid);
+ /* priority */ 1, (void *) /* parm */0,
+ "bnode-manager", &bproc_pid);
if (code) return code;
memset((char *)&newaction, 0, sizeof(newaction));
newaction.sa_handler = bnode_Int;
}
code = LWP_CreateProcess(BozoDaemon, BOZO_LWP_STACKSIZE, /* priority */ 1,
- /* parm */0, "bozo-the-clown", &bozo_pid);
+ (void *) /*parm*/0, "bozo-the-clown", &bozo_pid);
/* try to read the key from the config file */
tdir = afsconf_Open(AFSDIR_SERVER_ETC_DIRPATH);
memset(&bc_dumpTasks[i].destServer, 0, sizeof(struct sockaddr_in));
code = LWP_CreateProcess(bc_DmpRstStart, 20480, LWP_NORMAL_PRIORITY,
- (void *)i, "helper", &junk);
+ (void *) i, "helper", &junk);
if (code)
{
bc_HandleMisc(code);
/* setup status monitoring thread */
initStatus();
code = LWP_CreateProcess(statusWatcher, 20480, LWP_NORMAL_PRIORITY,
- (void *)2, "statusWatcher", &watcherPid);
+ (void *) 2, "statusWatcher", &watcherPid);
if ( code )
{
com_err(whoami, code, "; Can't create status monitor task");
exit(1);
}
/* Perform normal test */
- code = LWP_CreateProcess(PerformDumpTest, 100000, 0, &ti ,
+ code = LWP_CreateProcess(PerformDumpTest, 100000, 0, (void *) &ti,
"BUTM Tester", &pid);
if (code) {
com_err(whoami,code,"libbutm.a: Normal Tests failed!. :-( ");
/* Perform Appended Test, on tapes */
if (!isafile) {
ti.appended = 1;
- code = LWP_CreateProcess(PerformDumpTest, 100000, 0, &ti ,
+ code = LWP_CreateProcess(PerformDumpTest, 100000, 0, (void *) &ti,
"BUTM Tester", &pid);
if (code) {
com_err(whoami,code,"libbutm.a: Appended Tests failed!. :-( ");
LWP_CreateProcess(fsprobe_LWP, /*Function to start up*/
LWP_STACK_SIZE, /*Stack size in bytes*/
1, /*Priority*/
- 0, /*Parameters*/
+ (void *) 0, /*Parameters*/
"fsprobe Worker", /*Name to use*/
&probeLWP_ID); /*Returned LWP process ID*/
if (code) {
IOMGR_Initialize(); /* input thread uses it */
if (astartInput)
code = LWP_CreateProcess(gtx_InputServer, 8192, LWP_NORMAL_PRIORITY,
- 0, "gx-listener", &junk);
+ (void *) 0, "gx-listener", &junk);
/* all done */
twin = &gator_basegwin;
return twin;
IOMGR_Initialize();
#endif
LWP_CreateProcess(SocketListener, /*stacksize*/16000, LWP_NORMAL_PRIORITY,
- 0, "Socket Listener", &slPid);
+ (void *) 0, "Socket Listener", &slPid);
/* just to close the log every five minutes */
LWP_CreateProcess(FiveMinuteCheckLWP, 24*1024,
- LWP_MAX_PRIORITY - 2, &fiveminutes,
+ LWP_MAX_PRIORITY - 2, (void *) &fiveminutes,
"FiveMinuteChecks", &checkPid);
#if MAIN
for (i=0; i < NSOFTSIG; i++) {
PROCESS pid;
if (p=sigProc[i]) /* This yields!!! */
- LWP_CreateProcess2(p, stackSize, LWP_NORMAL_PRIORITY, sigRock[i],
- "SignalHandler", &pid);
+ LWP_CreateProcess2(p, stackSize, LWP_NORMAL_PRIORITY,
+ (void *) sigRock[i], "SignalHandler", &pid);
sigProc[i] = 0;
}
install_ncb_handler();
#endif /* AFS_DJGPP_ENV */
- return LWP_CreateProcess(IOMGR, AFS_LWP_MINSTACKSIZE, 0, 0, "IO MANAGER",
- &IOMGR_Id);
+ return LWP_CreateProcess(IOMGR, AFS_LWP_MINSTACKSIZE, 0, (void *) 0,
+ "IO MANAGER", &IOMGR_Id);
}
int IOMGR_Finalize()
#endif
int LWP_CreateProcess(int (*ep)(), int stacksize, int priority,
- char *parm, char *name, PROCESS *pid)
+ void *parm, char *name, PROCESS *pid)
{
PROCESS temp, temp2;
#ifdef AFS_AIX32_ENV
#ifdef AFS_AIX32_ENV
int LWP_CreateProcess2(int (*ep)(), int stacksize, int priority,
- char *parm, char *name, PROCESS *pid)
+ void *parm, char *name, PROCESS *pid)
{
PROCESS temp, temp2;
char *stackptr;
}
static void Initialize_PCB(PROCESS temp, int priority, char *stack,
- int stacksize, int (*ep)(), char *parm, char *name)
+ int stacksize, int (*ep)(), void *parm, char *name)
{
register int i = 0;
}
int LWP_CreateProcess(pthread_startroutine_t ep, int stacksize, int priority,
- char *parm, char *name, PROCESS *pid)
+ void *parm, char *name, PROCESS *pid)
{
int status;
pthread_attr_t attr;
extern int LWP_INTERNALSIGNAL(char *event, int yield);
extern int LWP_InitializeProcessSupport(int priority, PROCESS *pid);
extern int LWP_CreateProcess(int (*ep)(), int stacksize, int priority,
- char *parm, char *name, PROCESS *pid);
+ void *parm, char *name, PROCESS *pid);
extern int LWP_DestroyProcess(PROCESS pid);
extern int LWP_WaitProcess(char *event);
extern PROCESS LWP_ThreadId(void);
sprintf(name, "srv_%d", ++number);
LWP_CreateProcess(proc, stacksize, RX_PROCESS_PRIORITY,
- 0, "rx_ServerProc", &scratchPid);
+ (void *) 0, "rx_ServerProc", &scratchPid);
if (registerProgram)
(*registerProgram)(scratchPid, name);
}
{
/* Priority of listener should be high, so it can keep conns alive */
#define RX_LIST_STACK 24000
- LWP_CreateProcess(rx_ListenerProc, RX_LIST_STACK, LWP_MAX_PRIORITY, 0,
- "rx_Listener", &rx_listenerPid);
+ LWP_CreateProcess(rx_ListenerProc, RX_LIST_STACK, LWP_MAX_PRIORITY,
+ (void *) 0, "rx_Listener", &rx_listenerPid);
if (registerProgram)
(*registerProgram)(rx_listenerPid, "listener");
}
LWP_CreateProcess(gtx_InputServer, /*Fcn to start up*/
8192, /*Stack size in bytes*/
LWP_NORMAL_PRIORITY, /*Priority*/
- scout_gwin, /*Params: Ptr to window*/
+ (void *) scout_gwin, /*Params: Ptr to window*/
"gx-listener", /*Name to use*/
&gxlistener_ID); /*Returned LWP process ID*/
#endif /* 0 */
* the "steplock" problem in ubik initialization. Defect 11037.
*/
LWP_CreateProcess(rx_ServerProc, rx_stackSize, RX_PROCESS_PRIORITY,
- 0, "rx_ServerProc", &junk);
+ (void *) 0, "rx_ServerProc", &junk);
/* do basic initialization */
code = uvote_Init();
/* now start up async processes */
code = LWP_CreateProcess(ubeacon_Interact, 16384/*8192*/, LWP_MAX_PRIORITY-1,
- 0, "beacon", &junk);
+ (void *) 0, "beacon", &junk);
if (code) return code;
code = LWP_CreateProcess(urecovery_Interact, 16384/*8192*/, LWP_MAX_PRIORITY-1,
- 0, "recovery", &junk);
+ (void *) 0, "recovery", &junk);
return code;
}
AFS_SIGSET_RESTORE();
#else /* AFS_PTHREAD_ENV */
assert(LWP_CreateProcess(FiveMinuteCheckLWP, stack*1024, LWP_MAX_PRIORITY - 2,
- &fiveminutes, "FiveMinuteChecks", &serverPid) == LWP_SUCCESS);
+ (void *) &fiveminutes, "FiveMinuteChecks", &serverPid) == LWP_SUCCESS);
assert(LWP_CreateProcess(HostCheckLWP, stack*1024, LWP_MAX_PRIORITY - 2,
- &fiveminutes, "HostCheck", &serverPid) == LWP_SUCCESS);
+ (void *) &fiveminutes, "HostCheck", &serverPid) == LWP_SUCCESS);
#endif /* AFS_PTHREAD_ENV */
TM_GetTimeOfDay(&tp, 0);
#else /* AFS_PTHREAD_ENV */
PROCESS pid;
assert (LWP_CreateProcess(FSYNC_sync, USUAL_STACK_SIZE,
- USUAL_PRIORITY, 0,
+ USUAL_PRIORITY, (void *) 0,
"FSYNC_sync", &pid) == LWP_SUCCESS);
#endif /* AFS_PTHREAD_ENV */
}
SetupLogSignals();
/* create the lwp to garbage-collect old transactions and sleep periodically */
- LWP_CreateProcess(BKGLoop, 16*1024, 3, 0, "vol bkg daemon", &pid);
- LWP_CreateProcess(BKGSleep,16*1024, 3, 0, "vol slp daemon", &pid);
+ LWP_CreateProcess(BKGLoop, 16*1024, 3, (void *) 0, "vol bkg daemon", &pid);
+ LWP_CreateProcess(BKGSleep,16*1024, 3, (void *) 0, "vol slp daemon", &pid);
/* Create a single security object, in this case the null security object, for unauthenticated connections, which will be used to control security on connections made to this server */
LWP_CreateProcess(xstat_cm_LWP, /*Function to start up*/
LWP_STACK_SIZE, /*Stack size in bytes*/
1, /*Priority*/
- 0, /*Parameters*/
+ (void *) 0, /*Parameters*/
"xstat_cm Worker", /*Name to use*/
&probeLWP_ID); /*Returned LWP process ID*/
if (code) {
LWP_CreateProcess(xstat_fs_LWP, /*Function to start up*/
LWP_STACK_SIZE, /*Stack size in bytes*/
1, /*Priority*/
- 0, /*Parameters*/
+ (void *) 0, /*Parameters*/
"xstat_fs Worker", /*Name to use*/
&probeLWP_ID); /*Returned LWP process ID*/
if (code) {