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
feat: implement rmdir(2), unlink(2), unlinkat(2)
[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 e76ae7b05263c405624cf113ba7aabacc67bacd2..2f58f0df1717bd08ec37d610a8df8111fcb75e61 100644
(file)
--- a/
lunaix-os/includes/lunaix/fctrl.h
+++ b/
lunaix-os/includes/lunaix/fctrl.h
@@
-3,12
+3,16
@@
#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);
__LXSYSCALL1(int, close, int, fd);
__LXSYSCALL1(int, mkdir, const char*, path);
__LXSYSCALL2(int, open, const char*, path, int, options);
__LXSYSCALL1(int, close, int, fd);
__LXSYSCALL1(int, mkdir, const char*, path);
+__LXSYSCALL1(int, rmdir, const char*, pathname);
+__LXSYSCALL1(int, unlink, const char*, pathname);
+__LXSYSCALL2(int, unlinkat, int, fd, const char*, pathname);
__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
__LXSYSCALL2(int, readdir, int, fd, struct dirent*, dent);
@@
-18,4
+22,17
@@
__LXSYSCALL3(int, read, int, fd, void*, buf, unsigned int, count);
__LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count);
__LXSYSCALL3(int, write, int, fd, void*, buf, unsigned int, count);
+__LXSYSCALL3(int, readlink, const char*, path, char*, buf, size_t, size);
+
+__LXSYSCALL4(int,
+ readlinkat,
+ int,
+ dirfd,
+ const char*,
+ pathname,
+ char*,
+ buf,
+ size_t,
+ size);
+
#endif /* __LUNAIX_FCTRL_H */
#endif /* __LUNAIX_FCTRL_H */