Upstream tons of RISC-V changes.
[fw/openocd] / src / helper / fileio.c
index 9864b5fbd09e631528d33247d3a471fedce1bbfa..9dd57e72a1440a36aab50d6b74621e35b3ca789d 100644 (file)
@@ -19,9 +19,7 @@
  *   GNU General Public License for more details.                          *
  *                                                                         *
  *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
 #ifdef HAVE_CONFIG_H
@@ -155,6 +153,11 @@ int fileio_close(struct fileio *fileio)
        return retval;
 }
 
+int fileio_feof(struct fileio *fileio)
+{
+       return feof(fileio->file);
+}
+
 int fileio_seek(struct fileio *fileio, size_t position)
 {
        int retval;