Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Testing latest pari + WASM + node.js... and it works?! Wow.

28495 views
License: GPL3
ubuntu2004
1
/* Copyright (c) 2002 Jorge Acereda <[email protected]> &
2
Peter O'Gorman <[email protected]>
3
4
Portions may be copyright others, see the AUTHORS file included with this
5
distribution.
6
7
Maintained by Peter O'Gorman <[email protected]>
8
9
Bug Reports and other queries should go to <[email protected]>
10
11
Permission is hereby granted, free of charge, to any person obtaining
12
a copy of this software and attached documentation files (the
13
"Software"), to deal in the Software without restriction, including
14
without limitation the rights to use, copy, modify, merge, publish,
15
distribute, sublicense, and/or sell copies of the Software, and to
16
permit persons to whom the Software is furnished to do so, subject to
17
the following conditions:
18
19
The above copyright notice and this permission notice shall be
20
included in all copies or substantial portions of the Software.
21
22
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
*/
30
#ifndef _DLFCN_H_
31
#define _DLFCN_H_
32
33
#ifdef __cplusplus
34
extern "C" {
35
#endif
36
37
38
/*
39
* Structure filled in by dladdr().
40
*/
41
42
typedef struct dl_info {
43
const char *dli_fname; /* Pathname of shared object */
44
void *dli_fbase; /* Base address of shared object */
45
const char *dli_sname; /* Name of nearest symbol */
46
void *dli_saddr; /* Address of nearest symbol */
47
} Dl_info;
48
49
50
extern void * dlopen(const char *path, int mode);
51
extern void * dlsym(void * handle, const char *symbol);
52
extern const char * dlerror(void);
53
extern int dlclose(void * handle);
54
extern int dladdr(void *, Dl_info *);
55
56
#define RTLD_LAZY 0x1
57
#define RTLD_NOW 0x2
58
#define RTLD_LOCAL 0x4
59
#define RTLD_GLOBAL 0x8
60
#define RTLD_NOLOAD 0x10
61
#define RTLD_NODELETE 0x80
62
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif /* _DLFCN_H_ */
69
70