bad_reboot - int rv warnx"NOTICE if this kills the...

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("NOTICE: if this kills the system, it's a failure."); rv = reboot(15353); report_test(rv, errno, EINVAL, "reboot with invalid flags"); } void test_reboot(void) { reboot_badflags(); }...
View Full Document

This note was uploaded on 11/10/2009 for the course CS 536 taught by Professor Lums during the Spring '09 term at Indiana.

Ask a homework question - tutors are online