[RFA] Declare getpagesize as int
Jeff Johnston
jjohnstn@redhat.com
Fri Sep 18 23:43:00 GMT 2009
On 18/09/09 04:29 PM, Christopher Faylor wrote:
> Any objections to this change?
>
No, please go ahead. Also please change the declaration in
libc/sys/linux/include/sys/unistd.h.
-- Jeff J.
> 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