[parrot/parrot] 72908f: Make config/gen/platform/generic/sysmem.c more gen...

noreply at github.com noreply at github.com
Sat Dec 4 07:41:50 UTC 2010


Branch: refs/heads/master
Home:   https://github.com/parrot/parrot

Commit: 72908f9b2e536dd3af440874c0b4a8e6090ae1e3
    https://github.com/parrot/parrot/commit/72908f9b2e536dd3af440874c0b4a8e6090ae1e3
Author: Andy Dougherty <doughera at fractal.phys.lafayette.edu>
Date:   2010-12-03 (Fri, 03 Dec 2010)

Changed paths:
  M MANIFEST
  M config/auto/headers.pm
  R config/gen/platform/freebsd/sysmem.c
  M config/gen/platform/generic/sysmem.c
  R config/gen/platform/netbsd/sysmem.c

Log Message:
-----------
Make config/gen/platform/generic/sysmem.c more generic.

Include the two most likely methods (sysconf and sysctl) in the
generic file, based on various #ifdef probes.  This way, new systems
are more likely to work without first needing their own sysmem.c file.

If neither sysconf() nor sysctl() seems to work, assume a default of
512 MB.  One could certainly argue for putting an error message here
instead.

Signed-off-by: Jonathan "Duke" Leto <jonathan at leto.net>




More information about the parrot-commits mailing list