projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug fixe
[c11tester.git]
/
pipe.cc
diff --git
a/pipe.cc
b/pipe.cc
index
37bb0dc
..
b915c79
100644
(file)
--- a/
pipe.cc
+++ b/
pipe.cc
@@
-1,7
+1,9
@@
#include "common.h"
#include <unistd.h>
#include "model.h"
#include "common.h"
#include <unistd.h>
#include "model.h"
+#include "snapshot-interface.h"
#include <dlfcn.h>
#include <dlfcn.h>
+#include <errno.h>
static int (*pipe_init_p)(int filep[2]) = NULL;
static int (*pipe_init_p)(int filep[2]) = NULL;
@@
-12,11
+14,12
@@
int pipe(int fildes[2]) {
model->startChecker();
}
if (!pipe_init_p) {
model->startChecker();
}
if (!pipe_init_p) {
- pipe_init_p = (int (*)(int file[2])) dlsym(RTLD_NEXT, "pipe");
- if ((error = dlerror()) != NULL) {
+ pipe_init_p = (int (*)(int fildes[2])) dlsym(RTLD_NEXT, "pipe");
+ char *error = dlerror();
+ if (error != NULL) {
fputs(error, stderr);
exit(EXIT_FAILURE);
}
}
fputs(error, stderr);
exit(EXIT_FAILURE);
}
}
-
pipe_init_p(file
des);
+
return pipe_init_p(fil
des);
}
}