Chris Dunlap
518eba1492
Replace check for _POSIX_MEMLOCK w/ HAVE_MLOCKALL
...
zed supports a '-M' cmdline opt to lock all pages in memory via
mlockall(). The _POSIX_MEMLOCK define is checked to determine whether
this function is supported. The current test assumes mlockall()
is supported if _POSIX_MEMLOCK is non-zero. However, this test is
insufficient according to mlock(2) and sysconf(3). If _POSIX_MEMLOCK
is -1, mlockall() is not supported; but if _POSIX_MEMLOCK is 0,
availability must be checked at runtime.
This commit adds an autoconf check for mlockall() to user.m4. The zed
code block for mlockall() is now guarded with a test for HAVE_MLOCKALL.
If defined, mlockall() will be called and its runtime availability
checked via its return value.
Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2
2014-04-02 13:10:08 -07:00
..
2013-04-02 10:55:20 -07:00
2014-03-20 12:11:57 -07:00
2014-03-20 12:11:57 -07:00
2010-08-31 13:41:27 -07:00
2013-04-24 16:18:53 -07:00
2013-10-29 14:54:26 -07:00
2012-08-24 08:56:38 -07:00
2013-07-08 15:41:57 -07:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2014-03-24 11:10:06 -07:00
2013-11-20 15:24:39 -08:00
2013-03-04 08:49:17 -08:00
2011-04-19 10:10:47 -07:00
2011-04-19 10:10:47 -07:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2012-07-26 13:42:57 -07:00
2012-07-17 09:17:31 -07:00
2013-07-08 15:41:57 -07:00
2012-07-26 13:42:57 -07:00
2012-07-26 13:42:57 -07:00
2012-10-03 10:49:45 -07:00
2013-03-04 08:49:17 -08:00
2012-07-26 13:42:57 -07:00
2012-07-26 13:42:57 -07:00
2013-03-04 08:49:17 -08:00
2013-03-04 08:49:17 -08:00
2012-08-07 14:55:31 -07:00
2013-01-10 16:09:39 -08:00
2012-07-23 12:29:23 -07:00
2012-07-17 09:22:43 -07:00
2013-03-04 08:49:17 -08:00
2011-04-19 10:10:47 -07:00
2013-03-04 08:49:17 -08:00
2013-01-10 16:09:39 -08:00
2012-07-26 13:42:57 -07:00
2012-07-26 13:42:57 -07:00
2011-04-19 10:10:47 -07:00
2011-04-19 10:10:47 -07:00
2013-01-28 15:35:00 -08:00
2013-03-04 08:49:17 -08:00
2013-07-02 09:24:43 -07:00
2013-03-04 08:49:17 -08:00
2012-07-26 13:42:57 -07:00
2012-07-26 13:42:57 -07:00
2013-01-10 16:09:39 -08:00
2013-01-10 16:09:39 -08:00
2013-02-24 10:20:28 -08:00
2011-12-16 20:02:52 -08:00
2012-10-14 13:06:48 -07:00
2012-07-20 12:31:45 -07:00
2013-07-17 09:28:06 -07:00
2012-07-23 12:29:32 -07:00
2012-07-26 13:42:57 -07:00
2013-08-15 16:19:07 -07:00
2013-10-29 14:54:26 -07:00
2014-01-14 13:55:58 -08:00
2013-03-18 15:33:17 -07:00
2014-03-31 16:11:13 -07:00
2011-11-08 11:32:04 -08:00
2013-03-18 15:33:17 -07:00
2010-08-31 13:41:27 -07:00
2013-03-06 15:46:41 -08:00
2014-03-20 12:11:57 -07:00
2010-08-31 13:41:27 -07:00
2013-10-10 16:56:51 -07:00
2010-08-31 13:41:27 -07:00
2014-03-31 16:11:13 -07:00
2014-02-05 12:25:30 -08:00
2014-02-05 12:25:30 -08:00
2011-08-08 16:21:10 -07:00
2010-08-31 13:41:27 -07:00
2014-04-02 13:10:08 -07:00
2014-01-14 13:55:58 -08:00
2013-04-24 16:18:49 -07:00