xref: /dragonfly/sys/sys/resident.h (revision d4ef6694)
1 /*
2  * SYS/RESIDENT.H
3  *
4  *	Userland system calls for resident executable support.
5  *
6  * $DragonFly: src/sys/sys/resident.h,v 1.4 2006/05/20 02:42:13 dillon Exp $
7  */
8 
9 #ifndef _SYS_RESIDENT_H_
10 #define _SYS_RESIDENT_H_
11 
12 #ifndef _SYS_TYPES_H_
13 #include <sys/types.h>
14 #endif
15 #ifndef _SYS_PARAM_H_
16 #include <sys/param.h>
17 #endif
18 #ifndef _SYS_STAT_H_
19 #include <sys/stat.h>
20 #endif
21 
22 #if !defined(_KERNEL)
23 
24 int exec_sys_register(void *);
25 int exec_sys_unregister(int);
26 
27 #endif
28 
29 struct stat;
30 /* structure exported via sysctl 'vm.resident' for userland */
31 struct xresident {
32 	intptr_t	res_entry_addr;
33 	int     	res_id;
34 	char		res_file[MAXPATHLEN];
35 	struct stat	res_stat;
36 };
37 
38 #endif
39