mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 08:40:14 +02:00
@@ -826,12 +826,14 @@ close_on_eintr(int *fd)
|
||||
* ONE MACRO TO RULE THEM ALL:
|
||||
*/
|
||||
#define fs_err_retry() \
|
||||
if ((rval == -1) && \
|
||||
(errno == EINTR)) \
|
||||
return 1; \
|
||||
if (rval >= 0 && !errno) \
|
||||
errno = saved_errno; \
|
||||
return 0
|
||||
do { \
|
||||
if ((rval == -1) && \
|
||||
(errno == EINTR)) \
|
||||
return 1; \
|
||||
if (rval >= 0 && !errno) \
|
||||
errno = saved_errno; \
|
||||
return 0; \
|
||||
} while(0)
|
||||
/*
|
||||
* Regarding the errno logic above:
|
||||
* on success, it is permitted that
|
||||
|
||||
Reference in New Issue
Block a user