]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(physmem_total, physmem_available): Add comments.
authorJim Meyering <jim@meyering.net>
Thu, 27 Feb 2003 20:21:21 +0000 (20:21 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 27 Feb 2003 20:21:21 +0000 (20:21 +0000)
lib/physmem.c

index 4bd0faa37b3ca4e1f0bce6c98e72ef0418377708..4770b0a134fff495aa723deee7d7cb4ad584a6dc 100644 (file)
@@ -83,7 +83,7 @@ double
 physmem_total ()
 {
 #if defined _SC_PHYS_PAGES && defined _SC_PAGESIZE
-  {
+  { /* This works on linux-gnu, solaris2 and cygwin.  */
     double pages = sysconf (_SC_PHYS_PAGES);
     double pagesize = sysconf (_SC_PAGESIZE);
     if (0 <= pages && 0 <= pagesize)
@@ -187,7 +187,7 @@ double
 physmem_available ()
 {
 #if defined _SC_AVPHYS_PAGES && defined _SC_PAGESIZE
-  {
+  { /* This works on linux-gnu, solaris2 and cygwin.  */
     double pages = sysconf (_SC_AVPHYS_PAGES);
     double pagesize = sysconf (_SC_PAGESIZE);
     if (0 <= pages && 0 <= pagesize)