Remove unnecessary glibc #includes; use VKI_O_RDONLY instead of O_RDONLY as
appropriate with VG_(open).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2777 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c
index 5fb775b..23c437a 100644
--- a/coregrind/vg_main.c
+++ b/coregrind/vg_main.c
@@ -36,15 +36,12 @@
#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>
@@ -1385,7 +1382,7 @@
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",