mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
Update.
* libio/bug-wfflush.c (do_test): Using fseek is not allowed when wide oriented streams are used.
This commit is contained in:
parent
226e9fda25
commit
c7e56cbea2
@ -1,5 +1,8 @@
|
|||||||
2002-11-04 Ulrich Drepper <drepper@redhat.com>
|
2002-11-04 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* libio/bug-wfflush.c (do_test): Using fseek is not allowed when
|
||||||
|
wide oriented streams are used.
|
||||||
|
|
||||||
* nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
|
* nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
|
||||||
service hasn't been used [PR libc/4744].
|
service hasn't been used [PR libc/4744].
|
||||||
|
|
||||||
|
@ -35,6 +35,13 @@ do_test (void)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fpos_t pos;
|
||||||
|
if (fgetpos (f, &pos) != 0)
|
||||||
|
{
|
||||||
|
printf ("fgetpos: %m\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
#define L_(s) L##s
|
#define L_(s) L##s
|
||||||
//#define fwscanf fscanf
|
//#define fwscanf fscanf
|
||||||
//#define fwprintf fprintf
|
//#define fwprintf fprintf
|
||||||
@ -46,9 +53,9 @@ do_test (void)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fseek (f, 0, SEEK_SET) != 0)
|
if (fsetpos (f, &pos) != 0)
|
||||||
{
|
{
|
||||||
printf ("fseek: %m\n");
|
printf ("fsetpos: %m\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user