(lwpSleepUntil): Change type of parameter to time_t.
#define LWP_H
#include <signal.h>
+#include <time.h>
#define LWP_STACKCHECK 0x1
#define LWP_PRINT 0x2
void lwpTerminate(struct lwpProc * p);
void lwpYield(void);
void lwpSleepFd(int fd, int flags);
-void lwpSleepUntil(long until);
+void lwpSleepUntil(time_t until);
void lwpWakeupFd(struct lwpProc * p);
int lwpSigWait(sigset_t *set, int *sig);
void *lwpGetUD(struct lwpProc * p);
void (*entry)(void *); /* entry point */
int dead; /* whether the process can be rescheduled */
int pri; /* which scheduling queue we're on */
- long runtime; /* time at which process is restarted */
+ time_t runtime; /* time at which process is restarted */
int fd; /* fd we're blocking on */
int argc; /* initial arguments */
char **argv;
}
void
-lwpSleepUntil(long until)
+lwpSleepUntil(time_t until)
{
- lwpStatus(LwpCurrent, "sleeping for %ld sec", until - time(0));
+ lwpStatus(LwpCurrent, "sleeping for %ld sec",
+ (long)(until - time(NULL)));
LwpCurrent->runtime = until;
if (LwpMaxfd == 0 && LwpDelayq.head == 0) {
/* select process is sleeping until first waiter arrives */