mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
2005-04-15 Marcus Brinkmann <marcus@g10code.de>
* symcryptrun.c (TEMP_FAILURE_RETRY): Define if not defined.
This commit is contained in:
parent
e0d6d1c476
commit
00853b8a1a
2 changed files with 17 additions and 0 deletions
|
@ -217,6 +217,21 @@ i18n_init(void)
|
|||
}
|
||||
|
||||
|
||||
/* This is in the GNU C library in unistd.h. */
|
||||
|
||||
#ifndef TEMP_FAILURE_RETRY
|
||||
/* Evaluate EXPRESSION, and repeat as long as it returns -1 with `errno'
|
||||
set to EINTR. */
|
||||
|
||||
# define TEMP_FAILURE_RETRY(expression) \
|
||||
(__extension__ \
|
||||
({ long int __result; \
|
||||
do __result = (long int) (expression); \
|
||||
while (__result == -1L && errno == EINTR); \
|
||||
__result; }))
|
||||
#endif
|
||||
|
||||
|
||||
/* Unlink a file, and shred it if SHRED is true. */
|
||||
int
|
||||
remove_file (char *name, int shred)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue