Cygwin: Create empty fhandler_socket_unix

* Make distinct from AF_LOCAL for testing purposes.  This will have
  to be reverted as soon as fhandler_socket_unix goes life.

* Move saw_reuseaddr flag back to fhandler_socket status

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-02-23 20:59:21 +01:00
parent 5acadbe8af
commit 7f7532fafb
11 changed files with 832 additions and 19 deletions

View File

@ -138,7 +138,13 @@ struct OLD_msghdr
* Address families.
*/
#define AF_UNSPEC 0 /* unspecified */
/* FIXME: This is for testing only, while developing the new
fhandler_socket_unix class. */
#ifdef __INSIDE_CYGWIN__
#define AF_UNIX 31
#else
#define AF_UNIX 1 /* local to host (pipes, portals) */
#endif
#define AF_LOCAL 1 /* POSIX name for AF_UNIX */
#define AF_INET 2 /* internetwork: UDP, TCP, etc. */
#define AF_IMPLINK 3 /* arpanet imp addresses */