aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-09-25 18:26:41 +0000
committerUlrich Drepper <drepper@redhat.com>2005-09-25 18:26:41 +0000
commitc1e3681907d81f8738bdcb3582f6a563e65b6f11 (patch)
tree4fb4348d9135aa95431df4b6f60590a0914ec79f /manual
parent2cf8a390dd0f7bd851f13aac6e67de9841331744 (diff)
downloadglibc-c1e3681907d81f8738bdcb3582f6a563e65b6f11.tar
glibc-c1e3681907d81f8738bdcb3582f6a563e65b6f11.tar.gz
glibc-c1e3681907d81f8738bdcb3582f6a563e65b6f11.tar.bz2
glibc-c1e3681907d81f8738bdcb3582f6a563e65b6f11.zip
[BZ #278]
* manual/stdio.texi (Hook Functions): Correct type of position parameter of seeker and fix fallout of the change in the text. * wcsmbs/tst-mbrtowc2.c: New file. * wcsmbs/Makefile (tests): Add tst-mbrtowc2.
Diffstat (limited to 'manual')
-rw-r--r--manual/stdio.texi7
1 files changed, 2 insertions, 5 deletions
diff --git a/manual/stdio.texi b/manual/stdio.texi
index 39fd4fb123..29de41a167 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -5067,14 +5067,11 @@ You should define the function to perform seek operations on the cookie
as:
@smallexample
-int @var{seeker} (void *@var{cookie}, fpos_t *@var{position}, int @var{whence})
+int @var{seeker} (void *@var{cookie}, off64_t *@var{position}, int @var{whence})
@end smallexample
For this function, the @var{position} and @var{whence} arguments are
-interpreted as for @code{fgetpos}; see @ref{Portable Positioning}. In
-the GNU library, @code{fpos_t} is equivalent to @code{off_t} or
-@code{long int}, and simply represents the number of bytes from the
-beginning of the file.
+interpreted as for @code{fgetpos}; see @ref{Portable Positioning}.
After doing the seek operation, your function should store the resulting
file position relative to the beginning of the file in @var{position}.