Lines Matching refs:retval

849 	int				retval, sets = 0;  local
898 retval = select(max_fd+1, &rfds, &wfds, &efds, tv_p);
900 if (retval == -1) {
910 RETURN_LONG(retval);
1089 int retval, str_len; local
1104 retval = write(php_sock->bsd_socket, str, MIN(length, str_len));
1106 retval = send(php_sock->bsd_socket, str, min(length, str_len), 0);
1109 if (retval < 0) {
1114 RETURN_LONG(retval);
1125 int retval; local
1142 retval = php_read(php_sock, tmpbuf, length, 0);
1144 retval = recv(php_sock->bsd_socket, tmpbuf, length, 0);
1147 if (retval == -1) {
1163 } else if (!retval) {
1168 tmpbuf = erealloc(tmpbuf, retval + 1);
1169 tmpbuf[retval] = '\0' ;
1171 RETURN_STRINGL(tmpbuf, retval, 0);
1381 int retval, addr_len; local
1410 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin6, sizeof(struct sockaddr_in6));
1429 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1443 retval = connect(php_sock->bsd_socket, (struct sockaddr *) &s_un,
1453 if (retval != 0) {
1487 long retval = 0; local
1510 retval = bind(php_sock->bsd_socket, (struct sockaddr *) sa,
1526 retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in));
1541 retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in6));
1550 if (retval != 0) {
1566 int retval; local
1583 if ((retval = recv(php_sock->bsd_socket, recv_buf, len, flags)) < 1) {
1589 recv_buf[retval] = '\0';
1595 Z_STRLEN_P(buf) = retval;
1599 if (retval == -1) {
1604 RETURN_LONG(retval);
1614 int buf_len, retval; local
1624 retval = send(php_sock->bsd_socket, buf, (buf_len < len ? buf_len : len), flags);
1626 if (retval == -1) {
1631 RETURN_LONG(retval);
1648 int retval; local
1670retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&s_un, (socklen_t…
1672 if (retval < 0) {
1681 ZVAL_STRINGL(arg2, recv_buf, retval, 0);
1695retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&sin, (socklen_t …
1697 if (retval < 0) {
1709 ZVAL_STRINGL(arg2, recv_buf, retval, 0);
1724retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&sin6, (socklen_t…
1726 if (retval < 0) {
1739 ZVAL_STRINGL(arg2, recv_buf, retval, 0);
1749 RETURN_LONG(retval);
1764 int retval, buf_len, addr_len; local
1781retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
1797retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
1813retval = sendto(php_sock->bsd_socket, buf, (len > buf_len) ? buf_len : len, flags, (struct sockadd…
1821 if (retval == -1) {
1826 RETURN_LONG(retval);
1945 int ov, optlen, retval; local
2071 retval = setsockopt(php_sock->bsd_socket, level, optname, opt_ptr, optlen);
2072 if (retval != 0) {
2086 zval *retval[2], *fds_array_zval; local
2123 MAKE_STD_ZVAL(retval[0]);
2124 MAKE_STD_ZVAL(retval[1]);
2135 ZEND_REGISTER_RESOURCE(retval[0], php_sock[0], le_socket);
2136 ZEND_REGISTER_RESOURCE(retval[1], php_sock[1], le_socket);
2138 add_index_zval(fds_array_zval, 0, retval[0]);
2139 add_index_zval(fds_array_zval, 1, retval[1]);