diff options
author | cem <cem@FreeBSD.org> | 2016-05-12 22:13:12 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2016-05-12 22:13:12 +0000 |
commit | 31330e2843519387b4c579f8bd23a6e0f00bcf26 (patch) | |
tree | 2cffeac9c49f9c55ed286da2d163887e3cb484ae | |
parent | 96fdc95a9bcedf1bdb7cc90c8ef0942dd16ab1d2 (diff) | |
download | FreeBSD-src-31330e2843519387b4c579f8bd23a6e0f00bcf26.zip FreeBSD-src-31330e2843519387b4c579f8bd23a6e0f00bcf26.tar.gz |
stdio.h: Fix function-type typedef style and use _types.h __ssize_t
I'm still not sure why only Pypy runs into the error with the function
typedefs. Fix it anyway.
Use __ssize_t instead of ssize_t for the types; it's possible for the size_t
type to not be visible if at the wrong POSIX_VISIBLE level.
A final (crossing my fingers) follow-up to r299456.
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | include/stdio.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stdio.h b/include/stdio.h index bbeb2a2..f16f644 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -432,10 +432,10 @@ FILE *funopen(const void *, #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0) #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) -typedef ssize_t (cookie_read_function_t)(void *, char *, size_t); -typedef ssize_t (cookie_write_function_t)(void *, const char *, size_t); -typedef int (cookie_seek_function_t)(void *, off64_t *, int); -typedef int (cookie_close_function_t)(void *); +typedef __ssize_t cookie_read_function_t(void *, char *, size_t); +typedef __ssize_t cookie_write_function_t(void *, const char *, size_t); +typedef int cookie_seek_function_t(void *, off64_t *, int); +typedef int cookie_close_function_t(void *); typedef struct { cookie_read_function_t *read; cookie_write_function_t *write; |