This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Truncated Environment Variables? - using Cygwin + GetEnvironmentStrings() WIN32 API
On Tue, May 02, 2006 at 11:57:21AM -0400, Christopher Faylor wrote:
>That's usually a good idea but I just noticed that cygwin-internal
>doesn't set errno. There is no reason why it would have to, really,
>since the interface is entirely local to cygwin and we can decide to do
>what we want. However, I have changed it now so that it returns ENOSYS
>when it is returning -1.
To translate the above: I have changed the cygwin_internal function so
that when the function is given an argument that it doesn't understand
it will set errno to ENOSYS and return -1. This is likely to happen
when a program is built with a newer version of cygwin but is trying to
retrieve information from an older DLL.
cgf
--
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/