Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Fri, 27 Jul 2001 12:27:17 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: TCP Wrappers Port Message-ID: <20010727122717.I3518@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20010727174811 DOT C9116 AT cygbert DOT vinschen DOT de> <20010727122154 DOT G3518 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <20010727122154.G3518@redhat.com>; from cgf@redhat.com on Fri, Jul 27, 2001 at 12:21:54PM -0400 On Fri, Jul 27, 2001 at 12:21:54PM -0400, Christopher Faylor wrote: >On Fri, Jul 27, 2001 at 11:16:45AM -0500, Mumit Khan wrote: >>On Fri, 27 Jul 2001, Corinna Vinschen wrote: >> >>> On Fri, Jul 27, 2001 at 09:36:55AM -0400, Prentis Brooks wrote: >>> > I am willing to take that on. Mumit's patch does fix the issue, I did not >>> > realize that sys_nerr and sys_errlist were managed by _sys_nerr and >>> > _sys_errlist in cygwin. Just a quick question, but where is that sort of >>> > thing documented, in the API docs? Once I know where to look for that stuff, >>> >>> Actually I don't even know why the stuff begins with undersores. >> >>It's an unfortunate decision that makes life unnecessarily harder for >>existing code. New code of course should be using strerror() etc instead >>of looking inside sys_errlist, sys_nerr etc, but there's lots of legacy >>systems which lack strerror() interface. > >Why don't we add the non-underscore versions, then? It sounds like that would >solve some problems. > >I believe that the reason for the underscores is because that is the way >MSVC does it. I don't know why someone decided that was what cygwin >should do, too. It makes no sense to me. Actually, now that I think about it a little, this is probably a POSIX or ANSI requirement. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/