This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem opening socket


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]