OSDN Git Service

* libc/include/sys/unistd.h: Declare getpagesize as returning POSIX-mandated
authorcgf <cgf>
Sat, 19 Sep 2009 02:30:50 +0000 (02:30 +0000)
committercgf <cgf>
Sat, 19 Sep 2009 02:30:50 +0000 (02:30 +0000)
int.
* libc/sys/linux/sys/unistd.h: Ditto.

newlib/ChangeLog
newlib/libc/include/sys/unistd.h
newlib/libc/sys/linux/sys/unistd.h

index 415a916..d2afd09 100644 (file)
@@ -1,3 +1,9 @@
+2009-09-18  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * libc/include/sys/unistd.h: Declare getpagesize as returning
+       POSIX-mandated int.
+       * libc/sys/linux/sys/unistd.h: Ditto.
+
 2009-08-31  Takaki Makino  <t@snowelm.com>
 
        * libm/machine/i386/f_pow.c(_f_pow): Alter ASM so it works with
index 5be5266..5128d30 100644 (file)
@@ -81,7 +81,7 @@ char    _EXFUN(*getlogin, (void ));
 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
index 18c70dd..3d3864e 100644 (file)
@@ -54,7 +54,7 @@ char    _EXFUN(*getlogin, (void ));
 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));
 pid_t   _EXFUN(getpgid, (pid_t));
 pid_t   _EXFUN(getpgrp, (void ));
 pid_t   _EXFUN(getpid, (void ));