bad_reboot

bad_reboot - { int rv; warnx("NOTICE: if this...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * Invalid calls to reboot() */ #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <err.h> #include "config.h" #include "test.h" static void reboot_badflags(void)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { int rv; warnx(&quot;NOTICE: if this kills the system, it's a failure.&quot;); rv = reboot(15353); report_test(rv, errno, EINVAL, &quot;reboot with invalid flags&quot;); } void test_reboot(void) { reboot_badflags(); }...
View Full Document

Ask a homework question - tutors are online