[RFA] Declare getpagesize as int
Christopher Faylor
cgf-use-the-mailinglist-please@sourceware.org
Fri Sep 18 22:58:00 GMT 2009
Any objections to this change?
It was motivated by: http://cygwin.com/ml/cygwin/2009-09/msg00449.html
cgf
2009-09-18 Christopher Faylor <me+cygwin@cgf.cx>
* libc/include/sys/unistd.h: Declare getpagesize as returning
POSIX-mandated int.
Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.68
diff -d -u -r1.68 unistd.h
--- libc/include/sys/unistd.h 16 Oct 2008 23:03:40 -0000 1.68
+++ libc/include/sys/unistd.h 18 Sep 2009 20:29:18 -0000
@@ -81,7 +81,7 @@
int _EXFUN(getlogin_r, (char *name, size_t namesize) );
#endif
char _EXFUN(*getpass, (const char *__prompt));
-size_t _EXFUN(getpagesize, (void));
+int _EXFUN(getpagesize, (void));
#if defined(__CYGWIN__)
int _EXFUN(getpeereid, (int, uid_t *, gid_t *));
#endif
More information about the Newlib
mailing list