source: git/libpolys/polys/mod_raw.h @ 975db18

spielwiese
Last change on this file since 975db18 was fad7c58, checked in by Hans Schoenemann <hannes@…>, 13 years ago
p_Mult_q.h is an internal header, mod_raw.* moved to polys (it is not a template)
  • Property mode set to 100644
File size: 1.1 KB
Line 
1#ifndef MOD_RAW_H
2#define MOD_RAW_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id$ */
7/*
8 * ABSTRACT: machine depend code for dynamic modules
9 *
10 * Provides: dynl_open()
11 *           dynl_sym()
12 *           dynl_error()
13 *           dunl_close()
14*/
15
16typedef enum { LT_NONE, LT_NOTFOUND, LT_SINGULAR, LT_ELF, LT_HPUX, LT_MACH_O} lib_types;
17
18lib_types type_of_LIB(char *newlib, char *fullname);
19
20#if defined(HAVE_DL)
21#ifdef __cplusplus
22void* dynl_open_binary_warn(const char* binary_name, const char* msg = NULL );
23void* dynl_sym_warn(void* handle, const char* proc, const char* msg = NULL );
24#endif
25
26#ifdef __cplusplus
27extern "C" {
28#endif
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#endif /* MOD_RAW_H */
Note: See TracBrowser for help on using the repository browser.