sleep.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
#pragma ident "%Z%%M% %I% %E% SMI"
/* from UCB 5.1 85/05/30 */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#include <signal.h>
static int ringring;
sleep(n)
unsigned n;
{
void sleepx();
int omask;
if (n == 0)
return;
return;
else {
/*
* This is a hack, but we must have time to
* return from the setitimer after the alarm
* or else it'll be restarted. And, anyway,
* sleep never did anything more than this before.
*/
}
}
ringring = 0;
while (!ringring)
(void) sigsetmask(omask);
}
static void
sleepx()
{
ringring = 1;
}