aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include/sys/exec.h
blob: c839df0209e21077c7ea5c1383d8a1de2b1e90a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * exec.h
 *
 *  Created on: Aug 14, 2008
 *      Author: Stefan Bucur <stefanb@zytor.com>
 */

#ifndef EXEC_H_
#define EXEC_H_

#include <sys/module.h>

#define EXEC_ROOT_NAME			"_root_.dyn"

#define EXEC_DIRECTORY		"/dyn/"

/**
 * exec_init - Initialize the dynamic execution environment.
 */
extern int exec_init();


/**
 * load_library - Loads a dynamic library into the environment.
 */
extern int load_library(const char *name);

/**
 * unload_library - unloads a library from the environment.
 */
extern int unload_library(const char *name);

/**
 * spawnv - Executes a program in the current environment.
 */
extern int spawnv(const char *name, const char **argv);

/**
 * spawnl - Executes a program in the current environment.
 */
extern int spawnl(const char *name, const char *arg, ...);

/**
 * exec_term - Releases the resources of the execution environment.
 */
extern void exec_term();


#endif /* EXEC_H_ */