1 /*- 2 * Copyright (c) 1989 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)kvm.h 5.10 (Berkeley) 07/11/92 8 */ 9 10 #ifndef _KVM_H_ 11 #define _KVM_H_ 12 13 /* Default version symbol. */ 14 #define VRS_SYM "_version" 15 #define VRS_KEY "VERSION" 16 17 #include <nlist.h> 18 #include <sys/cdefs.h> 19 20 __BEGIN_DECLS 21 22 typedef struct __kvm kvm_t; 23 24 struct kinfo_proc; 25 int kvm_close __P((kvm_t *)); 26 char **kvm_getargv __P((kvm_t *, const struct kinfo_proc *, int)); 27 char **kvm_getenvv __P((kvm_t *, const struct kinfo_proc *, int)); 28 char *kvm_geterr __P((kvm_t *)); 29 char *kvm_getfiles __P((kvm_t *, int, int, int *)); 30 struct kinfo_proc * 31 kvm_getprocs __P((kvm_t *, int, int, int *)); 32 int kvm_nlist __P((kvm_t *, struct nlist *)); 33 kvm_t *kvm_open 34 __P((const char *, const char *, const char *, int, const char *)); 35 kvm_t *kvm_openfiles 36 __P((const char *, const char *, const char *, int, char *)); 37 int kvm_read __P((kvm_t *, unsigned long, void *, unsigned int)); 38 int kvm_write __P((kvm_t *, unsigned long, const void *, unsigned int)); 39 40 __END_DECLS 41 42 #endif /* !_KVM_H_ */ 43