Lines Matching refs:flags
51 int flags; in curlx_nonblock() local
52 flags = sfcntl(sockfd, F_GETFL, 0); in curlx_nonblock()
53 if(flags < 0) in curlx_nonblock()
58 if(!!(flags & O_NONBLOCK) == !!nonblock) in curlx_nonblock()
61 flags |= O_NONBLOCK; in curlx_nonblock()
63 flags &= ~O_NONBLOCK; in curlx_nonblock()
64 return sfcntl(sockfd, F_SETFL, flags); in curlx_nonblock()
69 int flags = nonblock ? 1 : 0; in curlx_nonblock()
70 return ioctl(sockfd, FIONBIO, &flags); in curlx_nonblock()
75 unsigned long flags = nonblock ? 1UL : 0UL; in curlx_nonblock()
76 return ioctlsocket(sockfd, (long)FIONBIO, &flags); in curlx_nonblock()
81 long flags = nonblock ? 1L : 0L; in curlx_nonblock()
82 return IoctlSocket(sockfd, FIONBIO, (char *)&flags); in curlx_nonblock()