usleep.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1996 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* from UCB 5.1 85/06/05 */
/*
* Copyright (c) 1985 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#include <unistd.h>
#include <signal.h>
static int ringring;
usleep(n)
unsigned n;
{
static void sleepx();
int omask;
if (n == 0)
return;
return;
}
} else {
}
}
ringring = 0;
while (!ringring)
(void) sigsetmask(omask);
}
static void
sleepx()
{
ringring = 1;
}