getaddrinfo() missing on Cygwin

2007-03-15 Thread Hiroki Sakagami

Hi,

I have some programs which use getaddrinfo() function.  They can't be
compiled on Cygwin.  Is there any workaround?

Regards,

--
Hiroki Sakagami

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: where to find "dig" command?

2006-04-29 Thread Hiroki Sakagami

I was able to use Windows native binary on the Cygwin console.  Thank you.

On 4/29/06, Thorsten Kampe <[EMAIL PROTECTED]> wrote:

* Hiroki Sakagami (2006-04-28 16:19 +)
> Where is "dig" DNS lookup command?
> It seems that search at http://cygwin.com/packages/ has no result package.

ftp://ftp.isc.org/isc/bind/contrib


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



where to find "dig" command?

2006-04-28 Thread Hiroki Sakagami

Where is "dig" DNS lookup command?
It seems that search at http://cygwin.com/packages/ has no result package.

--
Hiroki Sakagami

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



":" in filename

2006-03-24 Thread Hiroki Sakagami
Hi,

What happens in the below commands?  The ":" in filenames seems to be
a problem.  But I don't understand the rule.

% ls -l
total 0
% touch aaa:bbb
% ls -l
total 0
-rw-rw-rw- 1 anonymous anonymous 0 Mar 25 12:32 aaa
% ls -l aaa:bbb
-rw-rw-rw- 1 anonymous anonymous 0 Mar 25 12:32 aaa:bbb
% rm aaa:bbb
% ls -l
total 0
-rw-rw-rw- 1 anonymous anonymous 0 Mar 25 12:32 aaa
% rm aaa
% ls -l
total 0

--
Hiroki Sakagami

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



resolv.conf equivalent on Cygwin

2006-02-18 Thread Hiroki Sakagami
Hi,

I am trying to port a program with an asynchronous DNS resolver to
Cygwin.  Because it can't use gethostbyname() family functions, it
needs to read /etc/resolv.conf file.  However, Windows seems to have
the names of DNS servers in the registry key
"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" or
something.  Is there any Cygwin standard way to query DNS server
names?

I already wrote the code which use RegOpenKeyEx() and other functions.
 But if there is another appropriate way I'd like to use it.

Regards,

--
Sakagami Hiroki

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



nfs-server-config died

2006-01-12 Thread Hiroki Sakagami
Hi,

When I executed /usr/bin/nfs-server-config, it died around line 223
due to the assignment to readonly variable $UID.  Is this a known
issue?

The version of the package is nfs-server-2.3-3.

--
Hiroki Sakagami

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



syslog LOG_PERROR option and newline

2005-12-31 Thread Hiroki Sakagami
Hi,

When I use LOG_PERROR option on openlog() call, syslog() does not
append a newline to the log message.  Is this an intentional behavior?

--
Hiroki Sakagami


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: libc header questions

2005-09-19 Thread Hiroki Sakagami
On 9/17/05, Corinna Vinschen <[EMAIL PROTECTED]> wrote:
> On Sep 17 15:08, Hiroki Sakagami wrote:
> > Hi,
> >
> > I have two questions about libc include headers.
> >
> >   1. Is there any reason socklen_t is defined as a macro
> >  instead of typedef in ?
> 
> Is this a problem for you?  The reasons are plain historical.  I don't
> see that converting it to a typedef would add a lot functionality, though.

I had a (not-opensourced) package whose autoconf detection of
socklen_t failed.  But that's a problem of that package.  I can
live with a macro definition now.

> >   2. In , inet_ntop() is not consistent with POSIX.
> >
> >Cygwin: const char *inet_ntop(int, const void *, char *, size_t);
> >POSIX:  const char *inet_ntop(int, const void *, char *, socklen_t);
> >
> > http://www.opengroup.org/onlinepubs/009695399/functions/inet_ntop.html
> >
> >  Is this going to be fixed in the future version?
> 
> I've changed this in CVS.  Thanks for the hint.

OK, thanks.

--
Hiroki Sakagami

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



libc header questions

2005-09-16 Thread Hiroki Sakagami
Hi,

I have two questions about libc include headers.

  1. Is there any reason socklen_t is defined as a macro
 instead of typedef in ?

  2. In , inet_ntop() is not consistent with POSIX.

   Cygwin: const char *inet_ntop(int, const void *, char *, size_t);
   POSIX:  const char *inet_ntop(int, const void *, char *, socklen_t);
   http://www.opengroup.org/onlinepubs/009695399/functions/inet_ntop.html

 Is this going to be fixed in the future version?

Regards,

--
Hiroki Sakagami

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/