git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/Build - Updates to build system for crtbegin/crtend
[tpg/acess2.git]
/
Usermode
/
include
/
sys
/
sys.h
diff --git
a/Usermode/include/sys/sys.h
b/Usermode/include/sys/sys.h
index
e7858dd
..
08bf31e
100644
(file)
--- a/
Usermode/include/sys/sys.h
+++ b/
Usermode/include/sys/sys.h
@@
-1,9
+1,21
@@
/*
\r
Syscall Definitions
\r
*/
\r
/*
\r
Syscall Definitions
\r
*/
\r
+#ifndef _SYS_SYS_H_
\r
+#define _SYS_SYS_H_
\r
+
\r
+#include <acess/sys.h>
\r
\r
#include <sys/types.h>
\r
\r
\r
#include <sys/types.h>
\r
\r
+#define O_RDONLY OPENFLAG_READ
\r
+#define O_WRONLY OPENFLAG_WRITE
\r
+#define O_CREAT (OPENFLAG_CREATE|OPENFLAG_WRITE)
\r
+#define O_TRUNC OPENFLAG_WRITE
\r
+#define O_APPEND OPENFLAG_WRITE
\r
+
\r
+
\r
+#if 0
\r
#define OPEN_FLAG_READ 1
\r
#define OPEN_FLAG_WRITE 2
\r
#define OPEN_FLAG_EXEC 4
\r
#define OPEN_FLAG_READ 1
\r
#define OPEN_FLAG_WRITE 2
\r
#define OPEN_FLAG_EXEC 4
\r
@@
-25,10
+37,13
@@
extern int close(int fp);
extern int read(int fp, int len, void *buf);
\r
extern int write(int fp, int len, void *buf);
\r
extern int tell(int fp);
\r
extern int read(int fp, int len, void *buf);
\r
extern int write(int fp, int len, void *buf);
\r
extern int tell(int fp);
\r
-extern void
seek(int fp, in
t dist, int flag);
\r
+extern void
seek(int fp, int64_
t dist, int flag);
\r
extern int fstat(int fp, t_fstat *st);
\r
extern int ioctl(int fp, int call, void *arg);
\r
extern int readdir(int fp, char *file);
\r
extern int fstat(int fp, t_fstat *st);
\r
extern int ioctl(int fp, int call, void *arg);
\r
extern int readdir(int fp, char *file);
\r
+
\r
+extern int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errfds, time_t *timeout);
\r
+
\r
extern int kdebug(char *fmt, ...);
\r
extern int waitpid(int pid, int action);
\r
extern int gettid(); // Get Thread ID
\r
extern int kdebug(char *fmt, ...);
\r
extern int waitpid(int pid, int action);
\r
extern int gettid(); // Get Thread ID
\r
@@
-36,5
+51,6
@@
extern int getpid(); // Get Process ID
extern int sendmsg(int dest, unsigned int *Data);
\r
extern int pollmsg(int *src, unsigned int *Data);
\r
extern int getmsg(int *src, unsigned int *Data);
\r
extern int sendmsg(int dest, unsigned int *Data);
\r
extern int pollmsg(int *src, unsigned int *Data);
\r
extern int getmsg(int *src, unsigned int *Data);
\r
+#endif
\r
\r
\r
-extern int _SysSetFaultHandler(int (*Handler)(int));
\r
+#endif
\r
UCC
git Repository :: git.ucc.asn.au