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