diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-10-31 21:08:03 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-10-31 21:08:03 +0000 |
commit | 1dc1ccd4aef6165bcdb88240dc422aa67c9ef930 (patch) | |
tree | 0018d02d62e8aeba2b87d77d346ea8cc15aa6ab5 /newlib/libc/stdio/fopencookie.c | |
parent | d456d606e35a460db59c6609f8c994e658fe3d7c (diff) | |
download | cygnal-1dc1ccd4aef6165bcdb88240dc422aa67c9ef930.tar.gz cygnal-1dc1ccd4aef6165bcdb88240dc422aa67c9ef930.tar.bz2 cygnal-1dc1ccd4aef6165bcdb88240dc422aa67c9ef930.zip |
2008-10-31 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/diprintf.c: Modify documentation so eclipse newlib
libhover docs generate properly.
* libc/stdio/dprintf.c: Ditto.
* libc/stdio/fflush.c: Ditto.
* libc/stdio/fopencookie.c: Ditto.
* libc/stdio/fread.c: Ditto.
* libc/stdio/fsetpos.c: Ditto.
* libc/stdio/getc_u.c: Ditto.
* libc/stdio/getchar_u.c: Ditto.
* libc/stdio/putc_u.c: Ditto.
* libc/stdio/putchar_u.c: Ditto.
* libc/stdio/remove.c: Ditto.
* libc/stdio/siprintf.c: Ditto.
* libc/stdio/siscanf.c: Ditto.
* libc/stdio/sprintf.c: Ditto.
* libc/stdio/sscanf.c: Ditto.
* libc/stdio/vfprintf.c: Ditto.
* libc/stdio/vfscanf.c: Ditto.
* libc/stdio/viprintf.c: Ditto.
* libc/stdio/viscanf.c: Ditto.
* libc/stdlib/calloc.c: Ditto.
* libc/stdlib/efgcvt.c: Ditto.
* libc/stdlib/envlock.c: Ditto.
* libc/time/asctime.c: Ditto.
* libc/time/ctime.c: Ditto.
* libc/time/gmtime.c: Ditto.
* libc/time/lcltime.c: Ditto.
* libc/time/tzset.c: Ditto.
* libc/stdlib/envlock.h: Moved to libc/include.
Diffstat (limited to 'newlib/libc/stdio/fopencookie.c')
-rw-r--r-- | newlib/libc/stdio/fopencookie.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/newlib/libc/stdio/fopencookie.c b/newlib/libc/stdio/fopencookie.c index 854bb49e9..5148c8a1a 100644 --- a/newlib/libc/stdio/fopencookie.c +++ b/newlib/libc/stdio/fopencookie.c @@ -12,6 +12,13 @@ INDEX ANSI_SYNOPSIS #include <stdio.h> + FILE *fopencookie(const void *<[cookie]>, const char *<[mode]>, + cookie_io_functions_t <[functions]>); + +DESCRIPTION +<<fopencookie>> creates a <<FILE>> stream where I/O is performed using +custom callbacks. The callbacks are registered via the structure: + typedef ssize_t (*cookie_read_function_t)(void *_cookie, char *_buf, size_t _n); typedef ssize_t (*cookie_write_function_t)(void *_cookie, @@ -19,12 +26,6 @@ ANSI_SYNOPSIS typedef int (*cookie_seek_function_t)(void *_cookie, off_t *_off, int _whence); typedef int (*cookie_close_function_t)(void *_cookie); - FILE *fopencookie(const void *<[cookie]>, const char *<[mode]>, - cookie_io_functions_t <[functions]>); - -DESCRIPTION -<<fopencookie>> creates a <<FILE>> stream where I/O is performed using -custom callbacks. The callbacks are registered via the structure: . typedef struct . { |