1 #include "git-compat-util.h"
4 int git_open_with_retry(const char *path
, int flags
, ...)
10 * Also O_TMPFILE would take a mode, but it isn't defined everywhere.
11 * And anyway, we don't use it in our code base.
13 if (flags
& O_CREAT
) {
16 mode
= va_arg(ap
, int);
21 ret
= open(path
, flags
, mode
);
22 } while (ret
< 0 && errno
== EINTR
);