Fix 'make info'.

* libc/stdio/stdio.tex: Add missing include.
* libc/stdio/vfprintf.c: Use expected node name.
* libc/stdio/vfscanf.c: Likewise.
* libc/stdio/sscanf.c: Likewise.
* libc/stdio/sprintf.c: Likewise.
* libc/stdio/siscanf.c: Likewise.
* libc/stdio/siprintf.c: Likewise.
* libc/stdio/fopencookie.c: Quote raw {}.
Reported by DJ Delorie.
This commit is contained in:
Eric Blake 2007-07-19 03:42:21 +00:00
parent be52c4c7c8
commit 391b530a05
9 changed files with 39 additions and 20 deletions

View File

@ -1,3 +1,16 @@
2007-07-18 Eric Blake <ebb9@byu.net>
Fix 'make info'.
* libc/stdio/stdio.tex: Add missing include.
* libc/stdio/vfprintf.c: Use expected node name.
* libc/stdio/vfscanf.c: Likewise.
* libc/stdio/sscanf.c: Likewise.
* libc/stdio/sprintf.c: Likewise.
* libc/stdio/siscanf.c: Likewise.
* libc/stdio/siprintf.c: Likewise.
* libc/stdio/fopencookie.c: Quote raw {}.
Reported by DJ Delorie.
2007-07-13 Eric Blake <ebb9@byu.net> 2007-07-13 Eric Blake <ebb9@byu.net>
Fix fflush issues. Fix fflush issues.

View File

@ -19,21 +19,24 @@ ANSI_SYNOPSIS
typedef int (*cookie_seek_function_t)(void *_cookie, off_t *_off, typedef int (*cookie_seek_function_t)(void *_cookie, off_t *_off,
int _whence); int _whence);
typedef int (*cookie_close_function_t)(void *_cookie); typedef int (*cookie_close_function_t)(void *_cookie);
typedef struct
{
cookie_read_function_t *read;
cookie_write_function_t *write;
cookie_seek_function_t *seek;
cookie_close_function_t *close;
} cookie_io_functions_t;
FILE *fopencookie(const void *<[cookie]>, const char *<[mode]>, FILE *fopencookie(const void *<[cookie]>, const char *<[mode]>,
cookie_io_functions_t <[functions]>); cookie_io_functions_t <[functions]>);
DESCRIPTION DESCRIPTION
<<fopencookie>> creates a <<FILE>> stream where I/O is performed using <<fopencookie>> creates a <<FILE>> stream where I/O is performed using
custom callbacks. The stream is opened with <[mode]> treated as in custom callbacks. The callbacks are registered via the structure:
<<fopen>>. The callbacks <[functions.read]> and <[functions.write]>
may only be NULL when <[mode]> does not require them. . typedef struct
. {
. cookie_read_function_t *read;
. cookie_write_function_t *write;
. cookie_seek_function_t *seek;
. cookie_close_function_t *close;
. } cookie_io_functions_t;
The stream is opened with <[mode]> treated as in <<fopen>>. The
callbacks <[functions.read]> and <[functions.write]> may only be NULL
when <[mode]> does not require them.
<[functions.read]> should return -1 on failure, or else the number of <[functions.read]> should return -1 on failure, or else the number of
bytes read (0 on EOF). It is similar to <<read>>, except that bytes read (0 on EOF). It is similar to <<read>>, except that

View File

@ -17,7 +17,7 @@
/* /*
FUNCTION FUNCTION
<<iprintf>>, <<fiprintf>>, <<siprintf>>, <<sniprintf>>, <<asiprintf>>, <<asniprintf>>---format output (integer only) <<siprintf>>, <<fiprintf>>, <<iprintf>>, <<sniprintf>>, <<asiprintf>>, <<asniprintf>>---format output (integer only)
INDEX INDEX
fiprintf fiprintf

View File

@ -17,7 +17,7 @@
/* /*
FUNCTION FUNCTION
<<iscanf>>, <<fiscanf>>, <<siscanf>>---scan and format non-floating input <<siscanf>>, <<fiscanf>>, <<iscanf>>---scan and format non-floating input
INDEX INDEX
iscanf iscanf

View File

@ -17,7 +17,7 @@
/* /*
FUNCTION FUNCTION
<<printf>>, <<fprintf>>, <<sprintf>>, <<snprintf>>, <<asprintf>>, <<asnprintf>>---format output <<sprintf>>, <<fprintf>>, <<printf>>, <<snprintf>>, <<asprintf>>, <<asnprintf>>---format output
INDEX INDEX
fprintf fprintf

View File

@ -17,7 +17,7 @@
/* /*
FUNCTION FUNCTION
<<scanf>>, <<fscanf>>, <<sscanf>>---scan and format input <<sscanf>>, <<fscanf>>, <<scanf>>---scan and format input
INDEX INDEX
scanf scanf

View File

@ -150,6 +150,9 @@ structure.
@page @page
@include stdio/ftell.def @include stdio/ftell.def
@page
@include stdio/funopen.def
@page @page
@include stdio/fwrite.def @include stdio/fwrite.def

View File

@ -36,12 +36,12 @@
/* /*
FUNCTION FUNCTION
<<vprintf>>, <<vfprintf>>, <<vsprintf>>, <<vsnprintf>>, <<vasprintf>>, <<vasnprintf>>---format argument list <<vfprintf>>, <<vprintf>>, <<vsprintf>>, <<vsnprintf>>, <<vasprintf>>, <<vasnprintf>>---format argument list
INDEX
vprintf
INDEX INDEX
vfprintf vfprintf
INDEX
vprintf
INDEX INDEX
vsprintf vsprintf
INDEX INDEX

View File

@ -17,12 +17,12 @@
/* /*
FUNCTION FUNCTION
<<vscanf>>, <<vfscanf>>, <<vsscanf>>---format argument list <<vfscanf>>, <<vscanf>>, <<vsscanf>>---format argument list
INDEX
vscanf
INDEX INDEX
vfscanf vfscanf
INDEX
vscanf
INDEX INDEX
vsscanf vsscanf