Kernel - Commenting changes only
[tpg/acess2.git] / AcessNative / ld-acess_src / exports.h
1 /*
2  * AcessNative Dymamic Linker
3  * - By John Hodge (thePowersGang)
4  *
5  * exports.h
6  * - Syscalls/Symbol definitions
7  */
8 #ifndef _EXPORTS_H_
9 #define _EXPORTS_H_
10
11 #include <stddef.h>
12
13 // Syscall request (used by acess_*)
14 extern uint64_t _Syscall(int SyscallID, const char *ArgTypes, ...);
15
16 extern int      native_open(const char *Path, int Flags);
17 extern void     native_close(int FD);
18 extern size_t   native_read(int FD, void *Dest, size_t Bytes);
19 extern size_t   native_write(int FD, const void *Src, size_t Bytes);
20 extern int      native_seek(int FD, int64_t Offset, int Dir);
21 extern uint64_t native_tell(int FD);
22
23 extern int      native_execve(const char *filename, const char *const argv[], const char *const envp[]);
24 extern int      native_spawn(const char *filename, const char *const argv[], const char *const envp[]);
25
26 // Syscalls used by the linker
27 extern int      acess_open(const char *Path, int Flags);
28 extern void     acess_close(int FD);
29 extern size_t   acess_read(int FD, void *Dest, size_t Bytes);
30 extern int      acess_seek(int FD, int64_t Offset, int Dir);
31
32 // Symbol type
33 typedef struct {
34         const char      *Name;
35         void    *Value;
36 }       tSym;
37
38 #endif
39

UCC git Repository :: git.ucc.asn.au