From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Faylor To: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Fix libiberty to detect new cygwin exports Date: Wed, 15 Aug 2001 15:24:00 -0000 Message-id: <20010815214854.A18174@redhat.com> References: <20010815180621.A16847@redhat.com> <20010815153958.D11864@redhat.com> X-SW-Source: 2001-08/msg00960.html On Wed, Aug 15, 2001 at 03:39:58PM -0700, Richard Henderson wrote: >On Wed, Aug 15, 2001 at 06:06:21PM -0400, Christopher Faylor wrote: >> Newer cygwins export sys_errlist and sys_nerr. > >Why? strerror provides equivalent functionality, and its >use requires fewer runtime relocations. We already export these _variables with a leading underscore. Apparently a lot of legacy code expects it without the underscore, too. Linux exports both, so Cygwin should too. Hopefully no one is writing new software that uses sys_errlist. I agree that people should use the "modern" interface for this but it is tiring having to instruct people on how to rewrite their software that "works find on linux". Now that you've mentioned this, though, I think I'll add a cautionary comment to the appropriate header file, like linux. cgf