summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/mman/mprotect.c2
-rw-r--r--src/sys/sem/semget.c2
-rw-r--r--src/sys/stat/chmod.c4
-rw-r--r--src/sys/stat/mkdir.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/sys/mman/mprotect.c b/src/sys/mman/mprotect.c
index ebce6e68..e2aa6b3b 100644
--- a/src/sys/mman/mprotect.c
+++ b/src/sys/mman/mprotect.c
@@ -1,6 +1,6 @@
#include <sys/mman.h>
-int mprotect(void *addr, size_t len, int prot);
+int mprotect(void *addr, size_t len, int prot)
{
return prot;
}
diff --git a/src/sys/sem/semget.c b/src/sys/sem/semget.c
index 604675f1..331bb37c 100644
--- a/src/sys/sem/semget.c
+++ b/src/sys/sem/semget.c
@@ -1,6 +1,6 @@
#include <sys/sem.h>
-int semget(key_t, int nsems, int semflg)
+int semget(key_t key, int nsems, int semflg)
{
return 0;
}
diff --git a/src/sys/stat/chmod.c b/src/sys/stat/chmod.c
index 6f77e75e..975cf01a 100644
--- a/src/sys/stat/chmod.c
+++ b/src/sys/stat/chmod.c
@@ -1,10 +1,10 @@
#include "sys/types.h"
#include <sys/stat.h>
-#include "nonstd/syscall.h"
+#include "../../_syscall.h"
int chmod(const char *path, mode_t mode)
{
- SYSCALL("chmod", int, -1, path, mode, 0, 0, 0, 0);
+ SYSCALL(chmod, int, -1, path, mode, 0, 0, 0, 0);
}
/*
POSIX(1)
diff --git a/src/sys/stat/mkdir.c b/src/sys/stat/mkdir.c
index 7b3f510d..24ddc4a6 100644
--- a/src/sys/stat/mkdir.c
+++ b/src/sys/stat/mkdir.c
@@ -1,6 +1,6 @@
#include "sys/types.h"
#include <sys/stat.h>
-#include "nonstd/syscall.h"
+#include "../../_syscall.h"
int mkdir(const char *path, mode_t mode)
{