xref: /original-bsd/include/kvm.h (revision c3e32dec)
1 /*-
2  * Copyright (c) 1989, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)kvm.h	8.1 (Berkeley) 06/02/93
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 int	  kvm_getloadavg __P((kvm_t *, double [], int));
30 char	 *kvm_getfiles __P((kvm_t *, int, int, int *));
31 struct kinfo_proc *
32 	  kvm_getprocs __P((kvm_t *, int, int, int *));
33 int	  kvm_nlist __P((kvm_t *, struct nlist *));
34 kvm_t	 *kvm_open
35 	    __P((const char *, const char *, const char *, int, const char *));
36 kvm_t	 *kvm_openfiles
37 	    __P((const char *, const char *, const char *, int, char *));
38 int	  kvm_read __P((kvm_t *, unsigned long, void *, unsigned int));
39 int	  kvm_write __P((kvm_t *, unsigned long, const void *, unsigned int));
40 
41 __END_DECLS
42 
43 #endif /* !_KVM_H_ */
44