From 378a48356062b635ba66b0c7eac6ce737b1ff5e2 Mon Sep 17 00:00:00 2001 From: Ben Huntsman Date: Mon, 6 Jan 2025 09:32:39 -0800 Subject: [PATCH] lwp: Cleanup redundant definitions in lwp.h Several of the definitions in src/lwp/lwp.h are redundant between AFS_NT40_ENV and all other platforms. Clean these up to make lwp.h more readable. Change-Id: Ieba4bf00c4e7639c6ed0c893de8f26bdb322675b Reviewed-on: https://gerrit.openafs.org/16031 Tested-by: BuildBot Reviewed-by: Cheyenne Wills Reviewed-by: Andrew Deason Reviewed-by: Mark Vitale Reviewed-by: Michael Meffie --- src/lwp/lwp.h | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/lwp/lwp.h b/src/lwp/lwp.h index 6377e794e4..d31a2cb106 100644 --- a/src/lwp/lwp.h +++ b/src/lwp/lwp.h @@ -248,31 +248,23 @@ extern int IOMGR_Initialize(void); extern void IOMGR_FreeFDSet(fd_set * fds); extern int IOMGR_SoftSig(void *(*aproc) (void *), void *arock); -#ifdef AFS_NT40_ENV /* lwp.c */ extern int LWP_InitializeProcessSupport(int priority, PROCESS * pid); +extern int LWP_DestroyProcess(PROCESS pid); +extern int LWP_DispatchProcess(void); +extern int LWP_WaitProcess(void *event); +extern int LWP_INTERNALSIGNAL(void *event, int yield); +extern int LWP_QWait(void); +extern int LWP_QSignal(PROCESS pid); +extern int LWP_TerminateProcessSupport(void); +#ifdef AFS_NT40_ENV extern int LWP_CreateProcess(int (*funP) (), int stacksize, int priority, void *argP, char *name, PROCESS * pid); -extern int LWP_DestroyProcess(PROCESS pid); -extern int LWP_DispatchProcess(void); -extern int LWP_WaitProcess(void *event); -extern int LWP_INTERNALSIGNAL(void *event, int yield); -extern int LWP_QWait(void); -extern int LWP_QSignal(PROCESS pid); -extern int LWP_TerminateProcessSupport(void); #else extern int LWP_CurrentProcess(PROCESS * pid); -extern int LWP_INTERNALSIGNAL(void *event, int yield); -extern int LWP_InitializeProcessSupport(int priority, PROCESS * pid); extern int LWP_CreateProcess(void *(*ep)(void *), int stacksize, int priority, void *parm, char *name, PROCESS * pid); -extern int LWP_DestroyProcess(PROCESS pid); -extern int LWP_DispatchProcess(void); -extern int LWP_WaitProcess(void *event); extern PROCESS LWP_ThreadId(void); -extern int LWP_QWait(void); -extern int LWP_QSignal(PROCESS pid); -extern int LWP_TerminateProcessSupport(void); #endif #ifdef AFS_SUN5_ENV