Moved VG_(fd_{hard,soft}_limit) into a better spot.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3871
This commit is contained in:
Nicholas Nethercote 2005-06-10 22:39:04 +00:00
parent 17bb449c9e
commit 2990d3e626
4 changed files with 8 additions and 8 deletions

View File

@ -56,10 +56,6 @@
/* 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
------------------------------------------------------------------ */

View File

@ -39,6 +39,10 @@
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;

View File

@ -125,10 +125,6 @@ const Char *VG_(libdir) = VG_LIBDIR;
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);

View File

@ -38,6 +38,10 @@
#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);