version 1.19, 2002/12/12 00:00:16 |
version 1.20, 2003/01/18 23:30:20 |
|
|
#include <sys/conf.h> |
#include <sys/conf.h> |
#include <sys/mount.h> |
#include <sys/mount.h> |
#include <sys/lkm.h> |
#include <sys/lkm.h> |
#include <stdio.h> |
|
#include <stdlib.h> |
#include <a.out.h> |
#include <unistd.h> |
|
#include <err.h> |
#include <err.h> |
|
#include <errno.h> |
#include <fcntl.h> |
#include <fcntl.h> |
|
#include <stdio.h> |
|
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <a.out.h> |
#include <unistd.h> |
#include <errno.h> |
|
#include "pathnames.h" |
#include "pathnames.h" |
|
|
#define POINTERSIZE ((int)(2 * sizeof(void*))) |
#define POINTERSIZE ((int)(2 * sizeof(void*))) |
|
|
}; |
}; |
|
|
static void |
static void |
usage() |
usage(void) |
{ |
{ |
extern char *__progname; |
extern char *__progname; |
|
|
|
|
* to ioctl() to retrive the loaded module(s) status). |
* to ioctl() to retrive the loaded module(s) status). |
*/ |
*/ |
if ((devfd = open(_PATH_LKM, O_RDONLY)) == -1) |
if ((devfd = open(_PATH_LKM, O_RDONLY)) == -1) |
err(2, _PATH_LKM); |
err(2, "%s", _PATH_LKM); |
|
|
setegid(getgid()); |
setegid(getgid()); |
setgid(getgid()); |
setgid(getgid()); |