mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8327444: simplify RESTARTABLE macro usage in JDK codebase
Reviewed-by: gli, clanger, alanb, dholmes, bpb
This commit is contained in:
parent
de428daf9a
commit
fb4610e6b7
18 changed files with 79 additions and 116 deletions
|
@ -37,19 +37,12 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "jvm.h"
|
||||
#include "jni_util.h"
|
||||
#include "TimeZone_md.h"
|
||||
#include "path_util.h"
|
||||
|
||||
static char *isFileIdentical(char* buf, size_t size, char *pathname);
|
||||
|
||||
#define SKIP_SPACE(p) while (*p == ' ' || *p == '\t') p++;
|
||||
|
||||
#define RESTARTABLE(_cmd, _result) do { \
|
||||
do { \
|
||||
_result = _cmd; \
|
||||
} while((_result == -1) && (errno == EINTR)); \
|
||||
} while(0)
|
||||
|
||||
#define fileopen fopen
|
||||
#define filegets fgets
|
||||
#define fileclose fclose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue