git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: kernel space yield() for controllable, flexible task switching
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
fctrl.h
diff --git
a/lunaix-os/includes/lunaix/fctrl.h
b/lunaix-os/includes/lunaix/fctrl.h
index 978553e96383d00806096b8a404c4ff15d879a66..dc2887295792db8ab933a4535cb6113e4d23fa99 100644
(file)
--- a/
lunaix-os/includes/lunaix/fctrl.h
+++ b/
lunaix-os/includes/lunaix/fctrl.h
@@
-3,13
+3,26
@@
#include <lunaix/dirent.h>
#include <lunaix/syscall.h>
#include <lunaix/dirent.h>
#include <lunaix/syscall.h>
+#include <stddef.h>
-__LXSYSCALL2(int, open, const char*, path, int, options)
;
+__LXSYSCALL2(int, open, const char*, path, int, options)
-__LXSYSCALL1(int, close, int, fd);
+__LXSYSCALL1(int, mkdir, const char*, path)
+__LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname)
-__LXSYSCALL
1(int, mkdir, const char*, path);
+__LXSYSCALL
2(int, readdir, int, fd, struct dirent*, dent)
-__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
+__LXSYSCALL4(int,
+ readlinkat,
+ int,
+ dirfd,
+ const char*,
+ pathname,
+ char*,
+ buf,
+ size_t,
+ size)
+
+__LXSYSCALL3(int, realpathat, int, fd, char*, buf, size_t, size)
#endif /* __LUNAIX_FCTRL_H */
#endif /* __LUNAIX_FCTRL_H */