[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
stdio: don't replace fseek unless requested
From: |
Simon Josefsson |
Subject: |
stdio: don't replace fseek unless requested |
Date: |
Tue, 18 Nov 2008 10:43:51 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
The stdio.in.h file replaces the fseek function when that isn't
requested. There is a proper replacement for fseeko further down. How
about the patch below?
/Simon
diff --git a/lib/stdio.in.h b/lib/stdio.in.h
index 0e12d94..c4c2a8d 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -283,11 +283,10 @@ extern FILE * freopen (const char *filename, const char
*mode, FILE *stream);
#if @GNULIB_FSEEKO@
# if @REPLACE_FSEEKO@
-/* Provide fseek, fseeko functions that are aware of a preceding
- fflush(), and which detect pipes. */
+/* Provide fseeko function that is aware of a preceding fflush(), and
+ which detect pipes. */
# define fseeko rpl_fseeko
extern int fseeko (FILE *fp, off_t offset, int whence);
-# define fseek(fp, offset, whence) fseeko (fp, (off_t)(offset), whence)
# endif
#elif defined GNULIB_POSIXCHECK
# undef fseeko
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- stdio: don't replace fseek unless requested,
Simon Josefsson <=