From: Jim Meyering Date: Tue, 22 Jan 2002 10:46:05 +0000 (+0000) Subject: (EOVERFLOW, fseeko): New macros. X-Git-Tag: TEXTUTILS-2_0_20~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef95b3233e39fbccb803e9f743537950b7cdd10c;p=thirdparty%2Fcoreutils.git (EOVERFLOW, fseeko): New macros. --- diff --git a/src/sys2.h b/src/sys2.h index de7f6e2849..48608cb18a 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -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