appropriate with VG_(open).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2777
#include <dirent.h>
#include <dlfcn.h>
#include <errno.h>
-#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
-#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ptrace.h>
-#include <sys/signal.h>
#include <sys/wait.h>
#include <unistd.h>
info->interp_args = NULL;
} else {
Int ret;
- VG_(clexecfd) = VG_(open)(exec, O_RDONLY, VKI_S_IRUSR);
+ VG_(clexecfd) = VG_(open)(exec, VKI_O_RDONLY, VKI_S_IRUSR);
ret = do_exec(exec, info);
if (ret != 0) {
fprintf(stderr, "valgrind: do_exec(%s) failed: %s\n",