pike.git / src / modules / _Stdio / file.c

version» Context lines:

pike.git/src/modules/_Stdio/file.c:4124:   int my_socketpair(int family, int type, int protocol, int sv[2])   {    static struct sockaddr_in my_addr;    struct sockaddr_in addr,addr2;    int retries=0;    /* Solaris and AIX think this variable should be a size_t, everybody else    * thinks it should be an int.    */    ACCEPT_SIZE_T len;    -  MEMSET((char *)&addr,0,sizeof(struct sockaddr_in)); +  MEMSET(&addr,0,sizeof(struct sockaddr_in));       /* We lie, we actually create an AF_INET socket... */    if(family != AF_UNIX || type != SOCK_STREAM)    {    errno=EINVAL;    return -1;    }       sv[0] = -1;   
pike.git/src/modules/_Stdio/file.c:4156:    SP_DEBUG((stderr, "my_socketpair:fd_socket() failed, errno:%d\n",    errno));    return -1;    }       /* I wonder what is most common a loopback on ip# 127.0.0.1 or    * a loopback with the name "localhost"?    * Let's hope those few people who don't have socketpair have    * a loopback on 127.0.0.1    */ -  MEMSET((char *)&my_addr,0,sizeof(struct sockaddr_in)); +  MEMSET(&my_addr,0,sizeof(struct sockaddr_in));    my_addr.sin_family=AF_INET;    my_addr.sin_addr.s_addr=htonl(INADDR_ANY);    my_addr.sin_port=htons(0);          /* Bind our sockets on any port */    if(fd_bind(socketpair_fd, (struct sockaddr *)&my_addr, sizeof(addr)) < 0)    {    SP_DEBUG((stderr, "my_socketpair:fd_bind() failed, errno:%d\n",    errno));