Lines Matching refs:flags

107 		if (!(stream->flags & PHP_STREAM_FLAG_SUPPRESS_ERRORS)) {  in php_sockop_write()
253 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags, in sock_sendto() argument
259 ret = sendto(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, addr, XP_SOCK_BUF_SIZE(addrlen)); in sock_sendto()
264 …return ((ret = send(sock->socket, buf, buflen > INT_MAX ? INT_MAX : (int)buflen, flags)) == SOCK_C… in sock_sendto()
266 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto()
270 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument
281 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom()
302 ret = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags); in sock_recvfrom()
311 int oldmode, flags; in php_sockop_set_option() local
402 flags = 0; in php_sockop_set_option()
403 if ((xparam->inputs.flags & STREAM_OOB) == STREAM_OOB) { in php_sockop_set_option()
404 flags |= MSG_OOB; in php_sockop_set_option()
408 flags, in php_sockop_set_option()
420 flags = 0; in php_sockop_set_option()
421 if ((xparam->inputs.flags & STREAM_OOB) == STREAM_OOB) { in php_sockop_set_option()
422 flags |= MSG_OOB; in php_sockop_set_option()
424 if ((xparam->inputs.flags & STREAM_PEEK) == STREAM_PEEK) { in php_sockop_set_option()
425 flags |= MSG_PEEK; in php_sockop_set_option()
429 flags, in php_sockop_set_option()
895 const char *persistent_id, int options, int flags, in php_stream_generic_socket_factory() argument
939 if (flags == 0) { in php_stream_generic_socket_factory()