From: mark.n@usa.net (Mark Newnham)
Subject: Problem opening socket
13 Oct 1997 20:42:17 -0700
Message-ID: <95DE24D1FCFED0118B910060940A33400488.cygnus.gnu-win32@mailhub.adacorp.com>
Mime-Version: 1.0
Content-Type: text/plain
To: "'gnu-win32@cygnus.com'" <gnu-win32@cygnus.com>

Hi, 


can anyone tell me if there is there an obvious (or not so obvious)
reason why the following code 

#include <stdio.h>
#include <sys/errno.h>
#include <sys/socket.h>
#include <sys/un.h>

struct sockaddr_un sunx;
char LogName[] = "/dev/log";
int funix;
char *c;

main()
{
        sunx.sun_family = AF_UNIX;
        strncpy(sunx.sun_path, LogName, sizeof(sunx.sun_path));
        funix = socket(AF_UNIX, SOCK_STREAM, 0);
        perror(c);

}

returns this error? 

 Addresses in the specified family cannot be used with this socket.

I am using sergey's cygwin.dll on Win95.

Regards

Mark

##################################################
# Application Design Associates, Inc             #
# 6021 S.Syracuse Way #302                       #
# Englewood CO 80111        Tel +1 (303)779 8958 #
# USA                       Fax +1 (303)779 0949 #
##################################################



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
