MCPcopy Create free account
hub / github.com/NetHack/NetHack / msleep

Function msleep

sys/unix/unixunix.c:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328#include <poll.h>
329
330void
331msleep(unsigned msec) /* milliseconds */
332{
333 struct pollfd unused;
334 int msecs = msec; /* poll API is signed */
335
336 if (msecs < 0)
337 msecs = 0; /* avoid infinite sleep */
338 (void) poll(&unused, (unsigned long) 0, msecs);
339}
340#endif /* TIMED_DELAY for SYSV */
341
342#ifdef SHELL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected