Back to index

tetex-bin  3.0
Functions
lib_napms.c File Reference
#include <curses.priv.h>

Go to the source code of this file.

Functions

 napms (int ms)

Function Documentation

napms ( int  ms)

Definition at line 55 of file lib_napms.c.

{
    T((T_CALLED("napms(%d)"), ms));

#if HAVE_NANOSLEEP
    {
       struct timespec request, remaining;
       int err;
       request.tv_sec = ms / 1000;
       request.tv_nsec = (ms % 1000) * 1000000;
       while ((err = nanosleep(&request, &remaining)) == -1
              && errno == EINTR) {
           request = remaining;
       }
    }
#else
    _nc_timed_wait(0, ms, (int *) 0 EVENTLIST_2nd(0));
#endif

    returnCode(OK);
}

Here is the call graph for this function:

Here is the caller graph for this function: