xref: /original-bsd/include/kvm.h (revision 3cd9f84a)
144154cd8Smarc /*-
2*3cd9f84aSbostic  * Copyright (c) 1989, 1993
3*3cd9f84aSbostic  *	The Regents of the University of California.  All rights reserved.
444154cd8Smarc  *
544154cd8Smarc  * %sccs.include.redist.c%
644154cd8Smarc  *
7*3cd9f84aSbostic  *	@(#)kvm.h	8.1 (Berkeley) 06/02/93
844154cd8Smarc  */
944154cd8Smarc 
10456d2558Sbostic #ifndef _KVM_H_
11456d2558Sbostic #define	_KVM_H_
1244154cd8Smarc 
13619d9d43Sbostic /* Default version symbol. */
14619d9d43Sbostic #define	VRS_SYM		"_version"
15619d9d43Sbostic #define	VRS_KEY		"VERSION"
1644154cd8Smarc 
170a10fe00Smckusick #include <nlist.h>
18456d2558Sbostic #include <sys/cdefs.h>
19456d2558Sbostic 
20c922f693Sbostic __BEGIN_DECLS
210a10fe00Smckusick 
220a10fe00Smckusick typedef struct __kvm kvm_t;
230a10fe00Smckusick 
24217e5791Sbostic struct kinfo_proc;
250a10fe00Smckusick int	  kvm_close __P((kvm_t *));
260a10fe00Smckusick char	**kvm_getargv __P((kvm_t *, const struct kinfo_proc *, int));
270a10fe00Smckusick char	**kvm_getenvv __P((kvm_t *, const struct kinfo_proc *, int));
28e69ab7b6Sbostic char	 *kvm_geterr __P((kvm_t *));
29bafb6907Sbostic int	  kvm_getloadavg __P((kvm_t *, double [], int));
30dad7907cSleres char	 *kvm_getfiles __P((kvm_t *, int, int, int *));
31e69ab7b6Sbostic struct kinfo_proc *
32e69ab7b6Sbostic 	  kvm_getprocs __P((kvm_t *, int, int, int *));
33e69ab7b6Sbostic int	  kvm_nlist __P((kvm_t *, struct nlist *));
34e69ab7b6Sbostic kvm_t	 *kvm_open
35e69ab7b6Sbostic 	    __P((const char *, const char *, const char *, int, const char *));
36e69ab7b6Sbostic kvm_t	 *kvm_openfiles
37e69ab7b6Sbostic 	    __P((const char *, const char *, const char *, int, char *));
38e69ab7b6Sbostic int	  kvm_read __P((kvm_t *, unsigned long, void *, unsigned int));
39e69ab7b6Sbostic int	  kvm_write __P((kvm_t *, unsigned long, const void *, unsigned int));
400a10fe00Smckusick 
41c922f693Sbostic __END_DECLS
42456d2558Sbostic 
43456d2558Sbostic #endif /* !_KVM_H_ */
44