/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#include <afsconfig.h>
#include <afs/param.h>
-RCSID
- ("$Header$");
#include "lwp.h"
#include "preempt.h"
-#if defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
+#if defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
int PRE_Block = 0;
#else
#include <sys/time.h>
#include <signal.h>
-#ifdef HAVE_UCONTEXT_H
-#include <ucontext.h>
-#endif
#if defined(AFS_OSF_ENV) || defined(AFS_S390_LINUX20_ENV)
int PRE_Block = 0; /* used in lwp.c and process.s */
}
#if HAVE_SIGACTION && defined(SA_SIGINFO)
- memset((char *)&action, 0, sizeof(action));
+ memset(&action, 0, sizeof(action));
action.sa_sigaction = AlarmHandler;
action.sa_flags = SA_SIGINFO;
|| (setitimer(ITIMER_REAL, &itv, NULL) == -1))
return (LWP_ESYSTEM);
#else
- memset((char *)&vec, 0, sizeof(vec));
+ memset(&vec, 0, sizeof(vec));
vec.sv_handler = AlarmHandler;
vec.sv_mask = vec.sv_onstack = 0;
itv.it_value.tv_sec = itv.it_value.tv_usec = 0;
#if HAVE_SIGACTION && defined(SA_SIGINFO)
- memset((char *)&action, 0, sizeof(action));
+ memset(&action, 0, sizeof(action));
action.sa_handler = SIG_DFL;
if ((setitimer(ITIMER_REAL, &itv, NULL) == -1)
return (LWP_ESYSTEM);
#else
- memset((char *)&vec, 0, sizeof(vec));
+ memset(&vec, 0, sizeof(vec));
vec.sv_handler = SIG_DFL;
vec.sv_mask = vec.sv_onstack = 0;