From: rene@cas.et.tudelft.nl (Rene van Leuken)
Subject: fork/socket, gethostnamebyaddress, wait3
22 Jun 1997 03:23:59 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <9706220927.AA10048.cygnus.gnu-win32@ddtc.et.tudelft.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Original-To: gnu-win32@cygnus.com
X-Mailer: ELM [version 2.4ME+ PL15 (25)]
Original-Sender: owner-gnu-win32@cygnus.com



Subject: fork/socket, gethostnamebyaddr, wait3

We have ported our client/server software to Win95/NT using
the gnuwin32 gcc compiler version b18. We found the following 
problems/bugs:

1) fork/socket: An Unix child process inherits all open file descriptors,
   including any socket descriptor. In the gnuwin32 environment the socket 
   descriptors in the child process,i.e. after a fork are  NOT available.
   Socket descriptors are NOT inherited.

2) gethostnamebyaddr always return 0; In b17 this function was not implemented
   but in b18 it is. The return 0 is still in the code but should be 
   return ptr. (net.cc) (May be Sergey can fix this in one of his new patches?).

3) Wait3 is not implemented. Is there a way around this? I.e. is it possible
   to use waitpid for wait3?


Except these problems, porting was easy. 

Regards,

-- 
Rene van Leuken 		   phone: 3115 - 278 6696
Dimes Design and Test Centre 	   fax:   3115 - 278 7564
Delft University of Technology 	   email: rene@cas.et.tudelft.nl
P.O. Box 5053                      email: rene@dimes.tudelft.nl
Mekelweg 4, H16 CAS 	   	   email: R.vLeuken@et.tudelft.nl
2628 CD Delft, The Netherlands     http://www.ddtc.dimes.tudelft.nl/~rene

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
