X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gold%2Fdescriptors.h;h=c14ac077744dfbd87f94235299ffb8a0e36b26a4;hb=89e0345fdfad506e4692126cabd618ef859dc63f;hp=8e154a631d31d1e80485fb704d0691b2f9bc6061;hpb=7f055c204a4371154123a1816fbec9855ee60ad5;p=platform%2Fupstream%2Fbinutils.git diff --git a/gold/descriptors.h b/gold/descriptors.h index 8e154a6..c14ac07 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 (C) 2008-2014 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // 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)