Mail Archives: cygwin/1997/10/13/20:42:17
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 AT cygnus DOT com" with one line of text: "help".
- Raw text -