My Project
Loading...
Searching...
No Matches
mod_raw.h
Go to the documentation of this file.
1#ifndef MOD_RAW_H
2#define MOD_RAW_H
3/****************************************
4* Computer Algebra System SINGULAR *
5****************************************/
6/*
7 * ABSTRACT: machine depend code for dynamic modules
8 *
9 * Provides: dynl_check_opened()
10 * dynl_open()
11 * dynl_sym()
12 * dynl_error()
13 * dunl_close()
14*/
15
17
18
19#if defined(HAVE_DL)
20#ifdef __cplusplus
21void* dynl_open_binary_warn(const char* binary_name, const char* msg = NULL );
22void* dynl_sym_warn(void* handle, const char* proc, const char* msg = NULL );
23#endif
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28int dynl_check_opened(char* filename);
29void * dynl_open(char *filename);
30// if handle == DYNL_KERNEL_HANDLE, then symbol is searched for
31// in kernel of program
32#define DYNL_KERNEL_HANDLE ((void*) 0x1)
33void * dynl_sym(void *handle, const char *symbol);
34int dynl_close (void *handle);
35const char * dynl_error();
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif /* HAVE_DL */
42
43
44#endif /* MOD_RAW_H */
unsigned char * proc[NUM_PROC]
Definition: checklibs.c:16
void * dynl_sym_warn(void *handle, const char *proc, const char *msg=NULL)
Definition: mod_raw.cc:89
int dynl_check_opened(char *filename)
Definition: mod_raw.cc:135
lib_types
Definition: mod_raw.h:16
@ LT_MACH_O
Definition: mod_raw.h:16
@ LT_HPUX
Definition: mod_raw.h:16
@ LT_DLL
Definition: mod_raw.h:16
@ LT_SINGULAR
Definition: mod_raw.h:16
@ LT_BUILTIN
Definition: mod_raw.h:16
@ LT_ELF
Definition: mod_raw.h:16
@ LT_NONE
Definition: mod_raw.h:16
@ LT_NOTFOUND
Definition: mod_raw.h:16
const char * dynl_error()
Definition: mod_raw.cc:175
int dynl_close(void *handle)
Definition: mod_raw.cc:170
void * dynl_open_binary_warn(const char *binary_name, const char *msg=NULL)
Definition: mod_raw.cc:45
void * dynl_sym(void *handle, const char *symbol)
Definition: mod_raw.cc:159
void * dynl_open(char *filename)
Definition: mod_raw.cc:142
#define NULL
Definition: omList.c:12