This is the mail archive of the
mailing list for the Cygwin project.
Re: BUG - 1.3.n accept fails if NULL sockaddr * argument and other related stuff.
- To: cygwin at cygwin dot com
- Subject: Re: BUG - 1.3.n accept fails if NULL sockaddr * argument and other related stuff.
- From: Corinna Vinschen <cygwin at cygwin dot com>
- Date: Fri, 3 Aug 2001 14:07:04 +0200
- References: <email@example.com>
On Wed, Aug 01, 2001 at 01:25:29PM +1000, Mike Thomas wrote:
> return accept (sockfd, (struct sockaddr *) NULL, NULL);
Should work now in the next developers snapshot.
> 1. socket.h does not include a type "socklen_t" which is apparently defined
> on some Unix platforms.
Defined as `int' in cygwin/socket.h now.
> 2. Although not relevant to the code above, I noticed while looking in
> socket.h and friends that Cygwin provides sockaddr and sockaddr_un, which
> differ in terms of how much space is made for the name of the socket. The
> sockaddr member sa_data is only very short (14 bytes, compared to
> UNIX_PATH_LEN for the sun_path member of sockaddr_un) which would not
> suffice for a long file name. Unfortunately accept is defined in terms of
> sockaddr rather than sockaddr_un which could potentially cause string
Should be no problem. Winsock accept doesn't know about AF_UNIX sockets.
They are faked using AF_INET sockets in Cygwin.
Hope, that helps,
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:firstname.lastname@example.org
Red Hat, Inc.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html