Mercurial > gnulib
diff MODULES.html.sh @ 8872:dfee3b4fd46c
Fix lseek on mingw.
* modules/lseek: New module.
* m4/lseek.m4: New file.
* lib/lseek.c: New file.
* modules/lseek-tests: New file.
* tests/test-lseek.c: New file.
* tests/test-lseek.sh: New file.
* MODULES.html.sh: Document lseek module.
* modules/fflush (Depends-on): Add lseek, fseeko.
* modules/fseeko (Depends-on): Likewise.
* modules/ftello (Depends-on): Likewise.
* m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
broken.
* m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
broken.
* m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
* lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
* lib/ftello.c (rpl_ftello): Likewise.
* tests/test-fseeko.c (main): Test this.
* tests/test-fseeko.sh: Likewise.
* tests/test-ftello.c (main): Likewise.
* tests/test-ftello.sh: Likewise.
* lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
implies replacing fseek.
* modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
HAVE_FTELLO.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
* modules/unistd (Makefile.am): Likewise.
* lib/unistd_.h (lseek): Declare a replacement.
* doc/functions/lseek.texi (lseek): Document this fix.
* doc/functions/fseek.texi (fseek): Likewise.
* doc/functions/ftell.texi (ftell): Likewise.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 24 May 2007 16:59:20 +0000 |
parents | 72c6c4b06ca9 |
children | 53b90318e324 |
line wrap: on
line diff
--- a/MODULES.html.sh Thu May 24 13:35:35 2007 +0000 +++ b/MODULES.html.sh Thu May 24 16:59:20 2007 +0000 @@ -2029,13 +2029,14 @@ func_module gettimeofday func_module inet_ntop func_module inet_pton + func_module lseek + func_module lstat func_module mkdir func_module mkdtemp func_module mkstemp func_module poll + func_module printf-posix func_module readlink - func_module lstat - func_module printf-posix func_module snprintf-posix func_module sprintf-posix func_module string