head	1.5;
access;
symbols
	RELEASE_4_2_0:1.4
	RELEASE_4_1_1:1.4
	RELEASE_4_1_0:1.4
	RELEASE_3_5_0:1.4
	RELEASE_4_0_0:1.4
	RELEASE_3_4_0:1.4
	RELEASE_3_3_0:1.1.1.1
	RELEASE_3_2_0:1.1.1.1
	RELEASE_3_1_0:1.1.1.1
	RELEASE_2_2_8:1.1.1.1
	RELEASE_3_0_0:1.1.1.1
	RELEASE_2_2_7:1.1.1.1
	RELEASE_2_2_6:1.1.1.1
	v1_5:1.1.1.1
	NAKAI:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2001.04.16.18.58.32;	author kris;	state dead;
branches;
next	1.4;

1.4
date	99.10.22.09.35.48;	author nakai;	state Exp;
branches;
next	1.3;

1.3
date	99.10.20.10.59.04;	author nakai;	state Exp;
branches;
next	1.2;

1.2
date	99.10.20.03.59.11;	author nakai;	state dead;
branches;
next	1.1;

1.1
date	97.11.17.06.31.01;	author fenner;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.11.17.06.31.01;	author fenner;	state Exp;
branches;
next	;


desc
@@


1.5
log
@This port has been broken for a long time, and is also obsolete
software.  Wave goodbye, now!

Approved by:	maintainer
@
text
@--- src/common/utils/unixsocket.C.orig	Fri Feb 21 21:41:25 1997
+++ src/common/utils/unixsocket.C	Wed Oct 20 19:35:42 1999
@@@@ -67,6 +67,9 @@@@
 #if defined(BSDI)
 #  define DONT_HAVE_SENDFD
 #endif
+#if defined(FreeBSD)
+#  define DONT_HAVE_SENDFD
+#endif
 
 #if ! (defined HAVE_SENDFD || defined DONT_HAVE_SENDFD)
 #error SEND_FD
@@@@ -110,19 +113,29 @@@@
       sock = ::socket (AF_UNIX, SOCK_STREAM, 0) ;
       if (sock < 0) {
          DEBUGNL ("UNIXSocket::connect(): could not create socket") ;
+#ifndef __FreeBSD__
          set_errno_(::errno) ;
+#endif
          perror_("UNIXSocket::connect(): ::socket()") ;
          return false ;
       }
       if (::connect (sock, (struct sockaddr*)&addr, addrlen) < 0) {
+#ifdef __FreeBSD__
+         if (errno == ECONNREFUSED && retries > 0) {
+#else
          if (::errno == ECONNREFUSED && retries > 0) {
+#endif
             // try again since peer's backlog may just be full
             ::close (sock) ;
             ::sleep (1) ; // ++++
             continue ;
          } else {
             DEBUGNL ("UNIXSocket::connect(): cannot connect") ;
+#ifdef __FreeBSD__
+            set_errno_(errno) ;
+#else
             set_errno_(::errno) ;
+#endif
             perror_("UNIXSocket::connect(): ::connect()") ;
             ::close (sock) ;
             return false ;
@@@@ -143,7 +156,11 @@@@
    int sock = ::socket (AF_UNIX, SOCK_STREAM, 0) ;
    if (sock < 0) {
       DEBUGNL ("UNIXSocket::listen(): could not create socket") ;
+#ifdef __FreeBSD__
+      set_errno_(errno) ;
+#else
       set_errno_(::errno) ;
+#endif
       perror_("UNIXSocket::listen(): ::socket()") ;
       return false ;
    }
@@@@ -160,14 +177,22 @@@@
    // systems have 2 chars (len and family) instead.
    if (::bind (sock, (struct sockaddr*)&addr, 2 + pathlen) < 0) {
       DEBUGNL ("UNIXSocket::listen(): ::bind() error") ;
+#ifdef __FreeBSD__
+      set_errno_(errno) ;
+#else
       set_errno_(::errno) ;
+#endif
       perror_("UNIXSocket::listen(): ::bind()") ;
       ::close (sock) ;
       return false ;
    }
    if (::listen (sock, SOMAXCONN) < 0) {
       DEBUGNL ("UNIXSocket::listen(): ::listen() error") ;
+#ifdef __FreeBSD__
+      set_errno_(errno) ;
+#else
       set_errno_(::errno) ;
+#endif
       perror_("UNIXSocket::listen(): ::listen()") ;
       ::close (sock);
       return false ;
@


1.4
log
@Add some patches for the clean install.
@
text
@@


1.3
log
@Revert my delete, and set this MAINTAINER to ports.

Vrweb is obsolete by its authors and the new version is
java-based VRWave ( not ported yet ) so I don't work
around this but somebody may make this port works again..
@
text
@d1 77
a77 14
*** src/common/utils/unixsocket.C.orig	Mon Jun 23 02:12:28 1997
--- src/common/utils/unixsocket.C	Mon Jun 23 02:17:04 1997
***************
*** 67,72 ****
--- 67,75 ----
  #if defined(BSDI)
  #  define DONT_HAVE_SENDFD
  #endif
+ #if defined(FreeBSD)
+ #  define DONT_HAVE_SENDFD
+ #endif
  
  #if ! (defined HAVE_SENDFD || defined DONT_HAVE_SENDFD)
  #error SEND_FD
@


1.2
log
@Remove vrweb.
This VRML browser is obsolete and nobody needs for a long time.
@
text
@@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@A VRML browser.

PR:		3997
Submitted by:	Yukihiro Nakai <Nakai@@Mlab.t.u-tokyo.ac.jp>
@
text
@@
