diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-09-21 16:07:34 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-09-21 16:07:34 +0000 |
commit | 07ad8d11cae1dadb11b753185a57449cd7489159 (patch) | |
tree | 43f6bfbf93bf663cc8eb8ede2278663bd2720b31 /libgloss/spu/getpagesize.c | |
parent | cd6dd861a3de34f71ee8bf74879ecf1a53a51b4a (diff) | |
download | cygnal-07ad8d11cae1dadb11b753185a57449cd7489159.tar.gz cygnal-07ad8d11cae1dadb11b753185a57449cd7489159.tar.bz2 cygnal-07ad8d11cae1dadb11b753185a57449cd7489159.zip |
2009-09-21 Ken Werner <ken.werner@de.ibm.com>
* spu/getpagesize.c: Align getpagesize implementation to POSIX
Diffstat (limited to 'libgloss/spu/getpagesize.c')
-rw-r--r-- | libgloss/spu/getpagesize.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libgloss/spu/getpagesize.c b/libgloss/spu/getpagesize.c index 423e0eddf..417426cdd 100644 --- a/libgloss/spu/getpagesize.c +++ b/libgloss/spu/getpagesize.c @@ -34,15 +34,9 @@ #include <unistd.h> #include "jsre.h" -size_t +int getpagesize (void) { - int sys; - - /* - * linux/ppc has int getpagesize(void), but even if size_t were 8 bytes - * we are OK since we are converting the int returned from - * __send_to_ppe. - */ + vector unsigned int sys; return __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_GETPAGESIZE, &sys); } |