Mercurial > hg > octave-shane > gnulib-hg
annotate modules/ftello @ 8868:90e71310a07f
Fix fseeko/ftello on cygwin 1.5.24.
* doc/functions/fseeko.texi (fseeko): Document the fix.
* doc/functions/ftello.texi (ftello): Document the fix.
* doc/functions/stdin.texi (stdin): Document the cygwin bug.
* doc/functions/stdout.text (stdout): New file.
* doc/functions/stderr.text (stderr): New file.
* doc/gnulib.texi (Function Substitutes): Use new files.
* tests/test-fseeko.c (main): Check for broken fseeko on cygwin
prior to 1.7.0.
* tests/test-ftello.c (main): Likewise for ftello.
* tests/test-fseeko.sh: New file.
* tests/test-ftello.sh: New file.
* modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
with seekable stdin.
* modules/ftello-tests (Makefile.am): Likewise for test-ftello.
* m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
(gl_REPLACE_FSEEKO): New macro.
* m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
* modules/fseeko (Files): Distribute fseeko.c.
* modules/ftello (Files): Distribute ftello.c.
* lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
mode.
* lib/ftello.c (rpl_ftello): New file.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
fseeko, ftello.
(gl_STDIN_LARGE_OFFSET): New macro.
* modules/stdio (Makefile.am): Perform the replacement.
* lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 24 May 2007 03:53:37 +0000 |
parents | c541fe12ef9e |
children | dfee3b4fd46c |
rev | line source |
---|---|
8710 | 1 Description: |
2 ftello() function: Retrieve the position of a FILE stream. | |
3 | |
4 Files: | |
8868
90e71310a07f
Fix fseeko/ftello on cygwin 1.5.24.
Eric Blake <ebb9@byu.net>
parents:
8718
diff
changeset
|
5 lib/ftello.c |
8710 | 6 m4/ftello.m4 |
7 | |
8 Depends-on: | |
9 stdio | |
10 | |
8718
c541fe12ef9e
Ensure fseeko and ftello are declared on glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
8710
diff
changeset
|
11 configure.ac-early: |
c541fe12ef9e
Ensure fseeko and ftello are declared on glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
8710
diff
changeset
|
12 AC_REQUIRE([AC_FUNC_FSEEKO]) |
c541fe12ef9e
Ensure fseeko and ftello are declared on glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
8710
diff
changeset
|
13 |
8710 | 14 configure.ac: |
15 gl_FUNC_FTELLO | |
16 gl_STDIO_MODULE_INDICATOR([ftello]) | |
17 | |
18 Makefile.am: | |
19 | |
20 Include: | |
21 <stdio.h> | |
22 | |
23 License: | |
24 LGPL | |
25 | |
26 Maintainer: | |
27 Bruno Haible | |
28 |