Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.Prune svn:mergeinfo from the new branch, as nothing has been mergedhere.Additional commits post-branch will follow.Approved by: re (implicit)Sponsored by: The FreeBSD Foundation
Fix typo.Submitted by: ae
Improve example, so that it doesn't dump core when example moduleisn't loaded.
Fix the syscall module name after r205320.Submitted by: Vladislav Movchan <vladislav.movchan gmail com>MFC after: 1 week
Small cleanup while being here:- sort includes- remove usage(), since it seems to come from older version of the KLD- remove unnecessary variable- mark argc/argv as unusedBring WARNS = 5 to the Makefile.
Include stdlib.h for exit(3) and unistd.h for syscall(2). This makesthis program to compile cleanly.
$Id$ -> $FreeBSD$
Use modstat(2) to get the syscall number.
Replace the misc example with a simpler syscall example using the newmodule registration hooks for syscalls.Submitted by: Assar Westerlund <assar@sics.se>