ReactOS 0.4.15-dev-7788-g1ad9096
tvarith.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void timevaladd (struct timeval *tv_io, long ms)
 

Function Documentation

◆ timevaladd()

static void timevaladd ( struct timeval tv_io,
long  ms 
)
inlinestatic

Definition at line 31 of file tvarith.h.

31 {
32 struct timeval tmp;
33 assert(ms>=0);
34 tmp= *tv_io;
35 tmp.tv_usec += (ms%1000)*1000;
36 tmp.tv_sec += ms/1000;
37 if (tmp.tv_usec >= 1000000) { tmp.tv_sec++; tmp.tv_usec -= 1000000; }
38 *tv_io= tmp;
39}
#define assert(x)
Definition: debug.h:53
unsigned long tv_usec
Definition: linux.h:1739

Referenced by adns__query_send(), adns__tcp_tryconnect(), main(), query_usetcp(), and tcp_events().