]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(EOVERFLOW, fseeko): New macros.
authorJim Meyering <jim@meyering.net>
Tue, 22 Jan 2002 10:46:05 +0000 (10:46 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 22 Jan 2002 10:46:05 +0000 (10:46 +0000)
src/sys2.h

index de7f6e28499421811b06ef758919f320897fc6af..48608cb18a3835fccf53a30b3692893f4fab3f8e 100644 (file)
@@ -553,3 +553,13 @@ enum
     }                                          \
   while (0)
 #endif
+
+#ifndef EOVERFLOW
+# define EOVERFLOW EINVAL
+#endif
+
+#if ! HAVE_FSEEKO && ! defined fseeko
+# define fseeko(s, o, w) ((o) == (long) (o)            \
+                         ? fseek ((s), (o), (w))       \
+                         : (errno = EOVERFLOW, -1))
+#endif