diff options
author | Eric Blake <ebb9@byu.net> | 2007-05-24 16:59:20 +0000 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-05-24 16:59:20 +0000 |
commit | e461ff7387db733080824cb94b239d8d1d09c4f3 (patch) | |
tree | 0d62b7ae517125e4b6b1148b129d4b320a12c090 /modules/lseek-tests | |
parent | e55d665f2854709002b24e51bb5b2ebbd2941e00 (diff) | |
download | gnulib-e461ff7387db733080824cb94b239d8d1d09c4f3.tar.gz |
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.
Diffstat (limited to 'modules/lseek-tests')
-rw-r--r-- | modules/lseek-tests | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/lseek-tests b/modules/lseek-tests new file mode 100644 index 0000000000..d117bf1f29 --- /dev/null +++ b/modules/lseek-tests @@ -0,0 +1,13 @@ +Files: +tests/test-lseek.c +tests/test-lseek.sh + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-lseek.sh +TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' +check_PROGRAMS += test-lseek +EXTRA_DIST += test-lseek.sh |