diff options
| author | Robert Mustacchi <rm@fingolfin.org> | 2020-03-02 05:43:45 +0000 |
|---|---|---|
| committer | Robert Mustacchi <rm@fingolfin.org> | 2020-03-26 07:42:53 +0000 |
| commit | cd62a92d4a964bfe61d35ba2301b69e65e22a509 (patch) | |
| tree | 8e346d9037f7c654ffe58ed0d5e27f34025dd672 /usr/src/head/stdio.h | |
| parent | 1470234269f4edea4cbf270cb2475e4988b788d5 (diff) | |
| download | illumos-joyent-cd62a92d4a964bfe61d35ba2301b69e65e22a509.tar.gz | |
7092 Want support for stdio memory streams
12360 fwrite can loop forever on zero byte write
12392 ftello64 doesn't handle ungetc() correctly when unbuffered
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Yuri Pankov <ypankov@fastmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/head/stdio.h')
| -rw-r--r-- | usr/src/head/stdio.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/src/head/stdio.h b/usr/src/head/stdio.h index 2f20e59041..dc480dd271 100644 --- a/usr/src/head/stdio.h +++ b/usr/src/head/stdio.h @@ -362,6 +362,15 @@ extern int fseeko64(FILE *, off64_t, int); extern off64_t ftello64(FILE *); #endif +/* + * XPG7 symbols + */ +#if !defined(_STRICT_SYMBOLS) || defined(_XPG7) +extern FILE *fmemopen(void *_RESTRICT_KYWD, size_t, + const char *_RESTRICT_KYWD); +extern FILE *open_memstream(char **, size_t *); +#endif /* !_STRICT_SYMBOLS || _XPG7 */ + #if defined(__EXTENSIONS__) || defined(_REENTRANT) || \ (_POSIX_C_SOURCE - 0 >= 199506L) #define getchar_unlocked() getc_unlocked(stdin) |
