mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
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:
parent
17bb449c9e
commit
2990d3e626
@ -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
|
||||
------------------------------------------------------------------ */
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user