[SOLVED] CS代考计算机代写 /* Tries to mmap an invalid fd,

30 $

File Name: CS代考计算机代写_/*_Tries_to_mmap_an_invalid_fd,.zip
File Size: 518.1 KB

SKU: 6289007717 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


/* Tries to mmap an invalid fd,
which must either fail silently or terminate the process with
exit code -1. */

#include
#include “tests/lib.h”
#include “tests/main.h”

void
test_main (void)
{
CHECK (mmap (0x5678, (void *) 0x10000000) == MAP_FAILED,
“try to mmap invalid fd”);
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS代考计算机代写 /* Tries to mmap an invalid fd,
30 $