aboutsummaryrefslogtreecommitdiff
path: root/gold/descriptors.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/descriptors.h')
-rw-r--r--gold/descriptors.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gold/descriptors.h b/gold/descriptors.h
index 8e154a6..985f804 100644
--- a/gold/descriptors.h
+++ b/gold/descriptors.h
@@ -1,6 +1,6 @@
// descriptors.h -- manage file descriptors for gold -*- C++ -*-
-// Copyright 2008, 2009 Free Software Foundation, Inc.
+// Copyright 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -56,6 +56,10 @@ class Descriptors
void
release(int descriptor, bool permanent);
+ // Close all the descriptors open for reading.
+ void
+ close_all();
+
private:
// Information kept for a descriptor.
struct Open_descriptor
@@ -104,6 +108,10 @@ inline void
release_descriptor(int descriptor, bool permanent)
{ descriptors.release(descriptor, permanent); }
+inline void
+close_all_descriptors()
+{ descriptors.close_all(); }
+
} // End namespace gold.
#endif // !defined(GOLD_DESCRIPTORS_H)