]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove unnecessary glibc #includes; use VKI_O_RDONLY instead of O_RDONLY as
authorNicholas Nethercote <n.nethercote@gmail.com>
Sat, 16 Oct 2004 15:31:49 +0000 (15:31 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sat, 16 Oct 2004 15:31:49 +0000 (15:31 +0000)
appropriate with VG_(open).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2777

coregrind/vg_main.c

index 5fb775b7c36b2287799ba6a6514779257af1bbdb..23c437a164ced25bc6bb04285ffa3ec856303f75 100644 (file)
 #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 @@ static void load_client(char* cl_argv[], const char* exec, Int need_help,
       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",