Lines Matching full:if
12 #if defined(__linux__)
43 …if ((timeout->tv_sec == 0) && (timeout->tv_nsec == 0)) // If both value are zero … in sigwrap_InitTimeout()
58 if (pDst->EndTime.tv_nsec >= OneSecondasNS) in sigwrap_InitTimeout()
68 …if (pTo->OnePoll == TRUE) // Make sure, that in the case that a single poll is requested at least … in sigwrap_CheckTimeout()
75 …if (Now.tv_sec > pTo->EndTime.tv_sec) // Can become a problem already in 2038 due to signed intege… in sigwrap_CheckTimeout()
81 if (pTo->Timeout.tv_sec == 0) in sigwrap_CheckTimeout()
83 if (pTo->Timeout.tv_nsec <= 0) in sigwrap_CheckTimeout()
86 else if (pTo->Timeout.tv_nsec < 0) in sigwrap_CheckTimeout()
101 if (semop(semid, sops, nsops) == 0) in sigwrap_semop()
104 if (errno != EINTR) in sigwrap_semop()
109 #if 0
114 if (timeout == NULL)
121 if (semtimedop(semid, sops, nsops, &To.Timeout) == 0)
124 if (errno != EINTR)
127 if (sigwrap_CheckTimeout(&To))
140 if (timeout != -1) in sigwrap_epoll_wait()
154 if (Result != -1) in sigwrap_epoll_wait()
157 if (errno != EINTR) in sigwrap_epoll_wait()
160 if (timeout == -1) in sigwrap_epoll_wait()
163 if (sigwrap_CheckTimeout(&To)) in sigwrap_epoll_wait()
175 if (timeout != -1) in sigwrap_epoll_pwait()
189 if (Result != -1) in sigwrap_epoll_pwait()
192 if (errno != EINTR) in sigwrap_epoll_pwait()
195 if (timeout == -1) in sigwrap_epoll_pwait()
198 if (sigwrap_CheckTimeout(&To)) in sigwrap_epoll_pwait()
212 if (Result != -1) in sigwrap_sigwaitinfo()
215 if (errno != EINTR) in sigwrap_sigwaitinfo()
231 if (Result != -1) in sigwrap_sigtimedwait()
234 if (errno != EINTR) in sigwrap_sigtimedwait()
237 if (sigwrap_CheckTimeout(&To)) in sigwrap_sigtimedwait()
247 if (!rem) in sigwrap_nanosleep()
254 if (nanosleep(&Wait, rem) == 0) in sigwrap_nanosleep()
257 if (errno != EINTR) in sigwrap_nanosleep()
269 if (!remain) in sigwrap_clock_nanosleep()
278 if (Result == 0) in sigwrap_clock_nanosleep()
281 if (Result != EINTR) in sigwrap_clock_nanosleep()
284 if (flags != TIMER_ABSTIME) in sigwrap_clock_nanosleep()
303 if (usleep(usec) == 0) in sigwrap_usleep()
306 if (errno != EINTR) in sigwrap_usleep()
309 if (sigwrap_CheckTimeout(&To)) in sigwrap_usleep()
321 if (timeout > 0) in sigwrap_poll()
335 if (Result != -1) in sigwrap_poll()
338 if (errno != EINTR) in sigwrap_poll()
341 if (timeout < 0) // Specifying a negative value in timeout means an infinite/no timeout. in sigwrap_poll()
343 else if (timeout == 0) in sigwrap_poll()
346 if (sigwrap_CheckTimeout(&To)) in sigwrap_poll()
353 #if 0
358 if (tmo_p != NULL)
368 if (Result != -1)
371 if (errno != EINTR)
374 if (tmo_p == NULL)
377 if (sigwrap_CheckTimeout(&To))
389 if (Result != -1) in sigwrap_select()
392 if (errno != EINTR) in sigwrap_select()
403 if (timeout != NULL) in sigwrap_pselect()
413 if (Result != -1) in sigwrap_pselect()
416 if (errno != EINTR) in sigwrap_pselect()
419 if (timeout == NULL) in sigwrap_pselect()
422 if (sigwrap_CheckTimeout(&To)) in sigwrap_pselect()
434 if (Result != -1) in sigwrap_msgsnd()
437 if (errno != EINTR) in sigwrap_msgsnd()
449 if (Result != -1) in sigwrap_msgrcv()
452 if (errno != EINTR) in sigwrap_msgrcv()
464 if (Result != -1) in sigwrap_connect()
467 if (errno != EINTR) in sigwrap_connect()
479 if (Result != -1) in sigwrap_send()
482 if (errno != EINTR) in sigwrap_send()
495 if (Result != -1) in sigwrap_sendto()
498 if (errno != EINTR) in sigwrap_sendto()
510 if (Result != -1) in sigwrap_sendsendmsg()
513 if (errno != EINTR) in sigwrap_sendsendmsg()
525 if (Result != -1) in sigwrap_accept()
528 if (errno != EINTR) in sigwrap_accept()
533 #if 0
540 if (Result != -1)
543 if (errno != EINTR)
558 if (Result != -1) in sigwrap_read()
561 if (errno != EINTR) in sigwrap_read()
574 //* (A disk is not a slow device according to this definition.) If an I/O call on a slow device has…
584 if (Transfered == 0) // EOF reached? in sigwrap_blocking_read()
587 if (Transfered != -1) in sigwrap_blocking_read()
594 if (errno != EINTR) in sigwrap_blocking_read()
608 if (Result != -1) in sigwrap_readv()
611 if (errno != EINTR) in sigwrap_readv()
623 if (Result != -1) in sigwrap_recv()
626 if (errno != EINTR) in sigwrap_recv()
638 if (Result != -1) in sigwrap_recvfrom()
641 if (errno != EINTR) in sigwrap_recvfrom()
653 if (Result != -1) in sigwrap_recvmsg()
656 if (errno != EINTR) in sigwrap_recvmsg()
671 if (Result != -1) in sigwrap_write()
674 if (errno != EINTR) in sigwrap_write()
686 //* (A disk is not a slow device according to this definition.) If an I/O call on a slow device has…
696 if (Written != -1) in sigwrap_blocking_write()
703 if (errno != EINTR) in sigwrap_blocking_write()
717 if (Result != -1) in sigwrap_writev()
720 if (errno != EINTR) in sigwrap_writev()
730 if (errno != EINTR) in sigwrap_close()
744 if(hFile != -1) in sigwrap_open_mode()
747 if (errno != EINTR) in sigwrap_open_mode()
758 if(hFile != -1) in sigwrap_open()
761 if (errno != EINTR) in sigwrap_open()
773 if(Result != -1) in sigwrap_wait()
776 if(errno != EINTR) in sigwrap_wait()
788 if(Result != -1) in sigwrap_waitpid()
791 if(errno != EINTR) in sigwrap_waitpid()
803 if(Result != -1) in sigwrap_waitid()
806 if(errno != EINTR) in sigwrap_waitid()
818 if(Result != -1) in sigwrap_flock()
821 if(errno != EINTR) in sigwrap_flock()