Subject: Re: setting errno
From: [email-masked] (Mumit Khan)

20 Jan 1999 05:53:42 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
To: Tim Taylor <[email-masked]>
Cc: [email-masked]

Tim Taylor <[email-masked]> writes:
> 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?

As you would expect; eg.,

  #include <errno.h>

  /* .... */
  
  errno = ENOENT;

will do the right thing.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".