delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/19/07:29:14

From: glenn AT gs DOT fay DOT nc DOT us (Glenn Spell)
Subject: Re: [B20.1] Are AF_UNIX sockets supported by cygwin ?
19 Jan 1999 07:29:14 -0800 :
Message-ID: <199901190453.UAA01807.cygnus.gnu-win32@shell4.ba.best.com>
References: <36A30EB3 DOT 599EDD89 AT inria DOT fr>
Reply-To: glenn AT gs DOT fay DOT nc DOT us (Glenn Spell)
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Christine pourcelot wrote:
> 
> Does anybody know how I coul emulate AF_UNIS sockets ?

I do not know if this will work or help any at all, but from
my sources for ssh/includes.h:

#if defined(SCO) || defined(__CYGWIN32__)
/* SCO does not have a un.h and there is no appropriate substitute. */
/* Latest news: it doesn't have AF_UNIX at all, but this allows
   it to compile, and outgoing forwarded connections appear to work. */
struct	sockaddr_un {
	short	sun_family;		/* AF_UNIX */
	char	sun_path[108];		/* path name (gag) */
};
/* SCO needs sys/stream.h and sys/ptem.h */
#ifdef SCO
#include <sys/stream.h>
#include <sys/ptem.h>
#endif
#else /* SCO */
#include <sys/un.h>
#endif /* SCO */

-glenn

-- 
            Glenn Spell <glenn AT gs DOT fay DOT nc DOT us>
         Fayetteville, North Carolina, U. S. A.
  ____________________________________________________
  ... blue skies ... happy trails ... sweet dreams ...
-
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019