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
Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git]
/
Usermode
/
include
/
sys
/
sys.h
diff --git
a/Usermode/include/sys/sys.h
b/Usermode/include/sys/sys.h
index
119bb6a
..
08bf31e
100644
(file)
--- a/
Usermode/include/sys/sys.h
+++ b/
Usermode/include/sys/sys.h
@@
-4,8
+4,18
@@
#ifndef _SYS_SYS_H_
\r
#define _SYS_SYS_H_
\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
#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
@@
-27,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, int64_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
@@
-38,7
+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
-
\r
#endif
\r
\r
#endif
\r
#endif
\r
\r
#endif
\r
UCC
git Repository :: git.ucc.asn.au