This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: TEMP_FAILURE_RETRY macro missing
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 11 Jul 2013 10:05:43 +0200
- Subject: Re: TEMP_FAILURE_RETRY macro missing
- References: <001801ce7d5a$9b3f5230$d1bdf690$%fedin at samsung dot com>
- Reply-to: cygwin at cygwin dot com
On Jul 10 14:45, Fedin Pavel wrote:
> Hello!
>
> My cross-compiling activity has discovered that TEMP_FAILURE_RETRY() macro
> is often used, but missing in our includes. GNU code of this macro is below:
> --- cut ---
> # define TEMP_FAILURE_RETRY(expression) \
> (__extension__
> \
> ({ long int __result;
> \
> do __result = (long int) (expression);
> \
> while (__result == -1L && errno == EINTR);
> \
> __result; }))
> --- cut ---
> This is used in elf-utils and Prelink. What about adding it ?
That's defined in unistd.h, which is newlib territory. Care to send a
patch to the newlib mailing list?
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple