Home | History | Annotate | Download | only in sys

Lines Matching defs:mlock_err

84 ATF_TC(mlock_err);
85 ATF_TC_HEAD(mlock_err, tc)
91 ATF_TC_BODY(mlock_err, tc)
95 int mlock_err, munlock_err;
120 fprintf(stderr, "mlock_err: buf = %p (page=%ld)\n", buf, page);
132 mlock_err = mlock((void *)(((uintptr_t)buf) + page/3), page/5);
133 if (mlock_err != 0)
134 fprintf(stderr, "mlock_err: mlock(%p, %ld): %d [%d] %s\n",
135 (void *)(((uintptr_t)buf) + page/3), page/5, mlock_err,
137 ATF_REQUIRE(mlock_err == 0);
140 fprintf(stderr, "mlock_err: munlock(%p, %ld): %d [%d] %s\n",
308 ATF_TP_ADD_TC(tp, mlock_err);