public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mark Newnham <mark.n@usa.net>
To: "'gnu-win32@cygnus.com'" <gnu-win32@cygnus.com>
Subject: Problem opening socket
Date: Mon, 13 Oct 1997 14:33:00 -0000	[thread overview]
Message-ID: <95DE24D1FCFED0118B910060940A33400488@mailhub.adacorp.com> (raw)

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

             reply	other threads:[~1997-10-13 14:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-13 14:33 Mark Newnham [this message]
1997-10-14  4:29 Sergey Okhapkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95DE24D1FCFED0118B910060940A33400488@mailhub.adacorp.com \
    --to=mark.n@usa.net \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).