commit | b45c53f9418a6eff2c8ed98703a55f96029304b1 | [log] [tgz] |
---|---|---|
author | Will Drewry <[email protected]> | Mon Feb 04 23:48:36 2013 |
committer | ChromeBot <[email protected]> | Tue Feb 05 00:54:12 2013 |
tree | 9ab3db8e143709362b25e0b8d9285a1dcdfe34a8 | |
parent | a5d8376cbae6da1130144305cfcfe8b22e9fa444 [diff] |
memlimit.c: ignore sysconf() failures When using qemu-arm, sysconf(_SC_PAGE_SIZE) returns an error with an errno of ENOSYS. This change ignores ENOSYS since the result would be the same as when _SC_PAGE_SIZE was not defined. This makes scrypt work in cryptohome unittests. The "right" solution is to add a new macro via configure that wraps up the _SC_PAGE_SIZE test along with a compile-time test for sysconf() to work. It seems like overkill, but probably the right move for upstreaming. TEST=builds and cryptohome tests work under qemu-arm BUG=chromium-os:38444 Signed-off-by: Will Drewry <[email protected]> Change-Id: Ic04d19b0d1553c4e57f562cdcee99e59b300f2e0 Reviewed-on: https://gerrit.chromium.org/gerrit/42579 Reviewed-by: Kees Cook <[email protected]> Commit-Queue: Will Drewry <[email protected]> Tested-by: Will Drewry <[email protected]>