/* The directory we look for all our auxillary files in */
#define VALGRINDLIB "VALGRINDLIB"
-/* Application-visible file descriptor limits */
-extern Int VG_(fd_soft_limit);
-extern Int VG_(fd_hard_limit);
-
/* ---------------------------------------------------------------------
Exports of vg_intercept.c
------------------------------------------------------------------ */
File stuff
------------------------------------------------------------------ */
+/* Application-visible file descriptor limits */
+Int VG_(fd_soft_limit) = -1;
+Int VG_(fd_hard_limit) = -1;
+
static inline Bool fd_exists(Int fd)
{
struct vki_stat st;
static Int vg_argc;
static Char **vg_argv;
-/* Application-visible file descriptor limits */
-Int VG_(fd_soft_limit) = -1;
-Int VG_(fd_hard_limit) = -1;
-
/* As deduced from sp_at_startup, the client's argc, argv[] and
envp[] as extracted from the client's stack at startup-time. */
Int VG_(client_argc);
#include "pub_tool_libcfile.h"
+/* Application-visible file descriptor limits */
+extern Int VG_(fd_soft_limit);
+extern Int VG_(fd_hard_limit);
+
/* Move an fd into the Valgrind-safe range */
extern Int VG_(safe_fd)(Int oldfd);