Changeset 2134


Ignore:
Timestamp:
Jul 1, 2005, 6:06:51 AM (20 years ago)
Author:
bird
Message:

Added TEMP_FAILURE_RETRY() macro to unistd.h. This is yet another GLIBC hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/unistd.h

    • Property cvs2svn:cvs-rev changed from 1.31 to 1.32
    r2133 r2134  
    674674#endif /* !_POSIX_SOURCE */
    675675
     676#ifdef __USE_GNU
     677
     678/** Execute expr and restart it when interrupted. */
     679#define TEMP_FAILURE_RETRY(expr) \
     680  (__extension__({ long __rc; do { __rc = (long)(expr); } while (__rc == -1L && errno == EINTR); __rc; }))
     681
     682#endif
     683
    676684__END_DECLS
    677685
Note: See TracChangeset for help on using the changeset viewer.