summaryrefslogtreecommitdiffstats
path: root/sbin/dumpon
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-09 10:04:09 +0000
committerphk <phk@FreeBSD.org>2002-04-09 10:04:09 +0000
commit5b960672bf58f47c16c8a2d106c147c818632fde (patch)
tree61c96a50334702fac7b6db6058d8f9dac2ffb97e /sbin/dumpon
parent272b6d2d0db6a4b931b9720bfd0b4dbc42d3f184 (diff)
downloadFreeBSD-src-5b960672bf58f47c16c8a2d106c147c818632fde.zip
FreeBSD-src-5b960672bf58f47c16c8a2d106c147c818632fde.tar.gz
Rename DIOCGKERNELDUMP to DIOCSKERNELDUMP as it strictly speaking
is a "set" not a "get" operation. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sbin/dumpon')
-rw-r--r--sbin/dumpon/dumpon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c
index a0b9114..97976ca 100644
--- a/sbin/dumpon/dumpon.c
+++ b/sbin/dumpon/dumpon.c
@@ -84,9 +84,9 @@ main(int argc, char *argv[])
if (fd < 0)
err(EX_OSFILE, "%s", argv[0]);
u = 0;
- i = ioctl(fd, DIOCGKERNELDUMP, &u);
+ i = ioctl(fd, DIOCSKERNELDUMP, &u);
u = 1;
- i = ioctl(fd, DIOCGKERNELDUMP, &u);
+ i = ioctl(fd, DIOCSKERNELDUMP, &u);
if (i == 0 && verbose)
printf("kernel dumps on %s\n", argv[0]);
@@ -95,12 +95,12 @@ main(int argc, char *argv[])
if (fd < 0)
err(EX_OSFILE, "%s", _PATH_DEVNULL);
u = 0;
- i = ioctl(fd, DIOCGKERNELDUMP, &u);
+ i = ioctl(fd, DIOCSKERNELDUMP, &u);
if (i == 0 && verbose)
printf("kernel dumps disabled\n");
}
if (i < 0)
- err(EX_OSERR, "ioctl(DIOCGKERNELDUMP)");
+ err(EX_OSERR, "ioctl(DIOCSKERNELDUMP)");
exit (0);
}
OpenPOWER on IntegriCloud