From: ttaylor AT mitre DOT org (Tim Taylor) Subject: setting errno 19 Jan 1999 15:42:04 -0800 Message-ID: <3.0.5.32.19990119122347.0a413ec0.cygnus.gnu-win32@linus.mitre.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: gnu-win32 AT cygnus DOT com I'm porting a program that sets errno if an operation fails. However, in the B20.1 errno is a macro that dereferences the pointer returned by a function #define errno (*__errno()) What is the proper way to set errno in cygwin? Based on comments I've read in the headers, it appears that the following will work: _REENT->_errno = xxx Is this correct, or is there a more compatible or preferred way of doing this? - Tim ====================================================================== Timothy L. Taylor Internet: ttaylor AT mitre DOT org Lead Software Systems Engineer Voice: (781) 271-8770 The Mitre Corporation Fax: (781) 271-7231 202 Burlington Rd. Mail Stop: B295 Bedford, Massachusetts 01730-1420 ====================================================================== - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".