summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/xfseeko.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-03-06 14:23:07 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2008-03-06 14:23:07 +0000
commitd73557349c4fa0cd2b7f010f4d4b32781496327f (patch)
tree8f9d7279b3f678e7f0cdf69a3e1738101aac4def /Build/source/texk/kpathsea/xfseeko.c
parenta00938dec2284ec31176df5dece347544ac58c03 (diff)
update LFS - part 1 of 4
git-svn-id: svn://tug.org/texlive/trunk@6870 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/xfseeko.c')
-rw-r--r--Build/source/texk/kpathsea/xfseeko.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/xfseeko.c b/Build/source/texk/kpathsea/xfseeko.c
new file mode 100644
index 00000000000..60569c77363
--- /dev/null
+++ b/Build/source/texk/kpathsea/xfseeko.c
@@ -0,0 +1,30 @@
+/* xfseeko.c: fseeko with error checking.
+
+ Copyright 2005 Olaf Weber
+ Copyright 1992, 95 Karl Berry
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+*/
+
+#include <kpathsea/config.h>
+
+
+void
+xfseeko P4C(FILE *, f, off_t, offset, int, wherefrom, string, filename)
+{
+ if (fseeko(f, offset, wherefrom) < 0)
+ FATAL_PERROR(filename);
+}