| 328 | #include <poll.h> |
| 329 | |
| 330 | void |
| 331 | msleep(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 |
nothing calls this directly
no outgoing calls
no test coverage detected