Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2016 22:13:13 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299574 - head/include
Message-ID:  <201605122213.u4CMDDxE077350@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Thu May 12 22:13:12 2016
New Revision: 299574
URL: https://svnweb.freebsd.org/changeset/base/299574

Log:
  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

Modified:
  head/include/stdio.h

Modified: head/include/stdio.h
==============================================================================
--- head/include/stdio.h	Thu May 12 21:35:40 2016	(r299573)
+++ head/include/stdio.h	Thu May 12 22:13:12 2016	(r299574)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605122213.u4CMDDxE077350>