OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2009-05-25 Tristan Gingold <gingold@adacore.com>
[pf3gnuchains/gcc-fork.git]
/
libiberty
/
physmem.c
diff --git
a/libiberty/physmem.c
b/libiberty/physmem.c
index
f64e07c
..
09fbf3f
100644
(file)
--- a/
libiberty/physmem.c
+++ b/
libiberty/physmem.c
@@
-1,5
+1,5
@@
/* Calculate the size of physical memory.
/* Calculate the size of physical memory.
- Copyright 2000, 2001, 2003 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2003
, 2004, 2005
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-13,7
+13,7
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307
, USA. */
+ Inc., 5
1 Franklin Street - Fifth Floor, Boston, MA 02110-1301
, USA. */
/* Written by Paul Eggert. */
/* Written by Paul Eggert. */
@@
-80,7
+80,7
@@
typedef WINBOOL (WINAPI *PFN_MS_EX) (lMEMORYSTATUSEX*);
/* Return the total amount of physical memory. */
double
/* Return the total amount of physical memory. */
double
-physmem_total ()
+physmem_total (
void
)
{
#if defined _SC_PHYS_PAGES && defined _SC_PAGESIZE
{ /* This works on linux-gnu, solaris2 and cygwin. */
{
#if defined _SC_PHYS_PAGES && defined _SC_PAGESIZE
{ /* This works on linux-gnu, solaris2 and cygwin. */
@@
-184,7
+184,7
@@
physmem_total ()
/* Return the amount of physical memory available. */
double
/* Return the amount of physical memory available. */
double
-physmem_available ()
+physmem_available (
void
)
{
#if defined _SC_AVPHYS_PAGES && defined _SC_PAGESIZE
{ /* This works on linux-gnu, solaris2 and cygwin. */
{
#if defined _SC_AVPHYS_PAGES && defined _SC_PAGESIZE
{ /* This works on linux-gnu, solaris2 and cygwin. */
@@
-290,7
+290,7
@@
physmem_available ()
# include <stdlib.h>
int
# include <stdlib.h>
int
-main ()
+main (
void
)
{
printf ("%12.f %12.f\n", physmem_total (), physmem_available ());
exit (0);
{
printf ("%12.f %12.f\n", physmem_total (), physmem_available ());
exit (0);