diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 11:25:25 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 11:25:25 +0200 |
commit | f3e03796652b792bb3fd5d3d25b687b9a7f14633 (patch) | |
tree | feef62986de699702136aaf0d56295fde9297115 /src/include/tce/syscalls.h | |
parent | c19415d2ffb6f063f91983ff505e2530ab500908 (diff) | |
download | TCE-f3e03796652b792bb3fd5d3d25b687b9a7f14633.tar.gz TCE-f3e03796652b792bb3fd5d3d25b687b9a7f14633.zip |
A bit of a change in the directory layout.
Diffstat (limited to 'src/include/tce/syscalls.h')
-rw-r--r-- | src/include/tce/syscalls.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/include/tce/syscalls.h b/src/include/tce/syscalls.h new file mode 100644 index 0000000..6c67523 --- /dev/null +++ b/src/include/tce/syscalls.h @@ -0,0 +1,38 @@ +#ifndef DEF_TCE_SYSCALLS_H +#define DEF_TCE_SYSCALLS_H + +#define SC_THREAD_EXIT 1 +#define SC_SCHEDULE 2 +#define SC_THREAD_SLEEP 3 +#define SC_PROCESS_EXIT 4 +#define SC_PRINTK 5 +#define SC_THREAD_NEW 6 +#define SC_IRQ_WAIT 7 +#define SC_PROC_PRIV 8 + +#define SC_SBRK 10 +#define SC_BRK 11 +// NOT YET IMPLEMENTED +#define SC_MMAP 12 +#define SC_MUNMAP 13 + +#define SC_OPEN 20 +#define SC_OPEN_RELATIVE 21 +#define SC_STAT 22 +#define SC_STAT_RELATIVE 23 +#define SC_STATF 24 +#define SC_CLOSE 25 +#define SC_READ 26 +#define SC_WRITE 27 +#define SC_LINK 28 + + +// ERRORS +#define E_NOT_IMPLEMENTED -1 +#define E_NOT_FOUND -2 +#define E_INVALID_FD -3 +#define E_TOO_SHORT -4 // not enough space for data to be copied to +#define E_INVALID_RANGE -5 +#define E_INVALID -6 // anything went wrong - invalid parameter, usually + +#endif |