Browse Source

Add a flag - KVM_NO_FILES which tells kvm_openfiles to not

open any files, just return an kvm handle that we can use to some
of the functions.
OPENBSD_3_2
art 22 years ago
parent
commit
5839a65488
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/include/kvm.h

+ 7
- 1
src/include/kvm.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: kvm.h,v 1.4 2002/02/16 21:27:17 millert Exp $ */
/* $OpenBSD: kvm.h,v 1.5 2002/06/08 22:31:24 art Exp $ */
/* $NetBSD: kvm.h,v 1.7 1996/04/19 12:02:50 leo Exp $ */
/*-
@ -43,6 +43,12 @@
#define VRS_SYM "_version"
#define VRS_KEY "VERSION"
/*
* Flag for kvm_open* that disables opening of any files. We're just
* interested in a handle to run sysctls.
*/
#define KVM_NO_FILES 0x80000000
#include <nlist.h>
#include <sys/cdefs.h>
#include <stdio.h>


Loading…
Cancel
Save