syscalls: move AT_SYMLINK_NOFOLLOW to kernel/abi.h

This commit is contained in:
Matheus
2023-07-06 20:55:39 -03:00
parent fd9f9b65fe
commit 30c6c4302d
4 changed files with 2 additions and 6 deletions
+2
View File
@@ -78,4 +78,6 @@ typedef struct {
#define MAJORDEV(dev) ((dev >> 8) & 0xFFF)
#define MINORDEV(dev) (dev & 0xFF)
#define AT_SYMLINK_NOFOLLOW 0x100
#endif
-2
View File
@@ -5,8 +5,6 @@
#include <arch/cpu.h>
#include <string.h>
#define AT_SYMLINK_NOFOLLOW 0x100
syscallret_t syscall_faccessat(context_t *, int dirfd, const char *upath, int mode, int flags) {
syscallret_t ret = {
.ret = -1
-2
View File
@@ -52,8 +52,6 @@ syscallret_t syscall_fstat(context_t *ctx, int fd, stat_t *ustat) {
return ret;
}
#define AT_SYMLINK_NOFOLLOW 0x100
syscallret_t syscall_fstatat(context_t *ctx, int dirfd, char *upath, stat_t *ustat, int flags) {
syscallret_t ret = {
.ret = -1
-2
View File
@@ -5,8 +5,6 @@
#include <arch/cpu.h>
#include <string.h>
#define AT_SYMLINK_NOFOLLOW 0x100
syscallret_t syscall_unlinkat(context_t *, int dirfd, const char *upath, int flags) {
syscallret_t ret = {
.ret = -1