Home
last modified time | relevance | path

Searched refs:invalid_ptr (Results 1 – 1 of 1) sorted by relevance

/openbsd/regress/lib/libc/sys/
H A Dt_mlock.c94 void *invalid_ptr; in ATF_TC_BODY() local
162 invalid_ptr = (void*)(((uintptr_t)sbrk(0)+page) & ~(page-1)); in ATF_TC_BODY()
163 printf("testing with (hopefully) invalid pointer %p\n", invalid_ptr); in ATF_TC_BODY()
166 ATF_REQUIRE_ERRNO(ENOMEM, mlock(invalid_ptr, page) == -1); in ATF_TC_BODY()
169 ATF_REQUIRE_ERRNO(ENOMEM, munlock(invalid_ptr, page) == -1); in ATF_TC_BODY()