aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-11-04 10:33:19 +0000
committerUlrich Drepper <drepper@redhat.com>2002-11-04 10:33:19 +0000
commitc7e56cbea2f09ad24d17b1575a3c98a2afaa9aa5 (patch)
treeeda794129d0c3219e26848528ac29f6b7bc7648e /libio
parent226e9fda254a6c4f63837d4cfa5366c1d87d77f9 (diff)
downloadglibc-c7e56cbea2f09ad24d17b1575a3c98a2afaa9aa5.tar
glibc-c7e56cbea2f09ad24d17b1575a3c98a2afaa9aa5.tar.gz
glibc-c7e56cbea2f09ad24d17b1575a3c98a2afaa9aa5.tar.bz2
glibc-c7e56cbea2f09ad24d17b1575a3c98a2afaa9aa5.zip
Update.
* libio/bug-wfflush.c (do_test): Using fseek is not allowed when wide oriented streams are used.
Diffstat (limited to 'libio')
-rw-r--r--libio/bug-wfflush.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libio/bug-wfflush.c b/libio/bug-wfflush.c
index 87695f2a81..687cdedfad 100644
--- a/libio/bug-wfflush.c
+++ b/libio/bug-wfflush.c
@@ -35,6 +35,13 @@ do_test (void)
return 1;
}
+ fpos_t pos;
+ if (fgetpos (f, &pos) != 0)
+ {
+ printf ("fgetpos: %m\n");
+ return 1;
+ }
+
#define L_(s) L##s
//#define fwscanf fscanf
//#define fwprintf fprintf
@@ -46,9 +53,9 @@ do_test (void)
return 1;
}
- if (fseek (f, 0, SEEK_SET) != 0)
+ if (fsetpos (f, &pos) != 0)
{
- printf ("fseek: %m\n");
+ printf ("fsetpos: %m\n");
return 1;
}