This patch fixes getrlimit(RLIMIT_FILENO) to return VG_(max_fd) as the soft
limit for file descriptors to try and prevent the target programming realising
that the reserved file descriptors exist. It also appears to fix
sysconf(_SC_OPEN_MAX) so that must be going through the same system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2250 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/none/tests/Makefile.am b/none/tests/Makefile.am
index 3821150..2864539 100644
--- a/none/tests/Makefile.am
+++ b/none/tests/Makefile.am
@@ -7,6 +7,7 @@
bt_everything.stdout.exp bt_everything.vgtest \
bt_literal.stderr.exp bt_literal.stdout.exp \
bt_literal.vgtest \
+ closeall.stderr.exp closeall.vgtest \
coolo_sigaction.stderr.exp \
coolo_sigaction.stdout.exp coolo_sigaction.vgtest \
coolo_strlen.stderr.exp coolo_strlen.vgtest \
@@ -52,7 +53,7 @@
yield.stdout.exp yield.vgtest
check_PROGRAMS = \
- args bitfield1 bt_everything bt_literal coolo_strlen \
+ args bitfield1 bt_everything bt_literal closeall coolo_strlen \
cpuid dastest discard exec-sigmask floored fork fpu_lazy_eflags \
fucomip insn_basic insn_cmov insn_mmx insn_mmxext insn_sse insn_sse2 \
munmap_exe map_unmap mremap rcl_assert \
@@ -69,6 +70,7 @@
bitfield1_SOURCES = bitfield1.c
bt_everything_SOURCES = bt_everything.c
bt_literal_SOURCES = bt_literal.c
+closeall_SOURCES = closeall.c
cpuid_SOURCES = cpuid_c.c cpuid_s.s
coolo_strlen_SOURCES = coolo_strlen.c
dastest_SOURCES = dastest_c.c dastest_s.s