Loading...
Searching...
No Matches
mod_raw.h
Go to the documentation of this file.
#ifndef MOD_RAW_H
#define MOD_RAW_H
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT: machine depend code for dynamic modules
*
* Provides: dynl_check_opened()
* dynl_open()
* dynl_sym()
* dynl_error()
* dunl_close()
*/
typedef enum { LT_NONE, LT_NOTFOUND, LT_SINGULAR, LT_ELF, LT_HPUX, LT_MACH_O, LT_BUILTIN, LT_DLL} lib_types;
#if defined(HAVE_DL)
#ifdef __cplusplus
void* dynl_open_binary_warn(const char* binary_name, const char* msg = NULL );
void* dynl_sym_warn(void* handle, const char* proc, const char* msg = NULL );
#endif
#ifdef __cplusplus
extern "C" {
#endif
int dynl_check_opened(char* filename);
void * dynl_open(char *filename);
// if handle == DYNL_KERNEL_HANDLE, then symbol is searched for
// in kernel of program
#define DYNL_KERNEL_HANDLE ((void*) 0x1)
void * dynl_sym(void *handle, const char *symbol);
int dynl_close (void *handle);
const char * dynl_error();
#ifdef __cplusplus
}
#endif
#endif /* HAVE_DL */
#endif /* MOD_RAW_H */
proc
unsigned char * proc[NUM_PROC]
Definition checklibs.c:16
dynl_sym_warn
void * dynl_sym_warn(void *handle, const char *proc, const char *msg=NULL)
Definition mod_raw.cc:89
dynl_check_opened
int dynl_check_opened(char *filename)
Definition mod_raw.cc:135
lib_types
lib_types
Definition mod_raw.h:16
LT_MACH_O
@ LT_MACH_O
Definition mod_raw.h:16
LT_HPUX
@ LT_HPUX
Definition mod_raw.h:16
LT_DLL
@ LT_DLL
Definition mod_raw.h:16
LT_SINGULAR
@ LT_SINGULAR
Definition mod_raw.h:16
LT_BUILTIN
@ LT_BUILTIN
Definition mod_raw.h:16
LT_ELF
@ LT_ELF
Definition mod_raw.h:16
LT_NONE
@ LT_NONE
Definition mod_raw.h:16
LT_NOTFOUND
@ LT_NOTFOUND
Definition mod_raw.h:16
dynl_error
const char * dynl_error()
Definition mod_raw.cc:175
dynl_close
int dynl_close(void *handle)
Definition mod_raw.cc:170
dynl_open_binary_warn
void * dynl_open_binary_warn(const char *binary_name, const char *msg=NULL)
Definition mod_raw.cc:45
dynl_sym
void * dynl_sym(void *handle, const char *symbol)
Definition mod_raw.cc:159
dynl_open
void * dynl_open(char *filename)
Definition mod_raw.cc:142
NULL
#define NULL
Definition omList.c:12