summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-13 13:48:50 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-13 13:48:50 -0400
commit489bef2ace3c3c617f5bf78ded45a5b81fe2fd46 (patch)
treef7df0cd2678ebe868356e9a00952555a28a75214 /src/sys
parent3e282018ffb5806cafafeb5d0d6f8d67c9bb86e8 (diff)
add src/ to -I and exorcise ../ from #include
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/mman/mmap.c2
-rw-r--r--src/sys/stat/chmod.c2
-rw-r--r--src/sys/stat/fstat.c2
-rw-r--r--src/sys/stat/mkdir.c2
-rw-r--r--src/sys/stat/mkfifo.c2
-rw-r--r--src/sys/stat/stat.c4
-rw-r--r--src/sys/stat/umask.c2
-rw-r--r--src/sys/utsname/uname.c8
8 files changed, 13 insertions, 11 deletions
diff --git a/src/sys/mman/mmap.c b/src/sys/mman/mmap.c
index e76e2439..e0e2998a 100644
--- a/src/sys/mman/mmap.c
+++ b/src/sys/mman/mmap.c
@@ -1,6 +1,6 @@
#include "sys/types.h"
#include <sys/mman.h>
-#include "../../_syscall.h"
+#include "_syscall.h"
#ifndef MAP_FAILED
#include "MAP_FAILED.c"
diff --git a/src/sys/stat/chmod.c b/src/sys/stat/chmod.c
index 975cf01a..16aa6f5a 100644
--- a/src/sys/stat/chmod.c
+++ b/src/sys/stat/chmod.c
@@ -1,6 +1,6 @@
#include "sys/types.h"
#include <sys/stat.h>
-#include "../../_syscall.h"
+#include "_syscall.h"
int chmod(const char *path, mode_t mode)
{
diff --git a/src/sys/stat/fstat.c b/src/sys/stat/fstat.c
index c0276eda..33634dd0 100644
--- a/src/sys/stat/fstat.c
+++ b/src/sys/stat/fstat.c
@@ -1,6 +1,6 @@
#include "sys/types.h"
#include <sys/stat.h>
-#include "../../_syscall.h"
+#include "_syscall.h"
int fstat(int fildes, struct stat *buf)
{
diff --git a/src/sys/stat/mkdir.c b/src/sys/stat/mkdir.c
index 479faeca..ac46d907 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 "../../_syscall.h"
+#include "_syscall.h"
int mkdir(const char *path, mode_t mode)
{
diff --git a/src/sys/stat/mkfifo.c b/src/sys/stat/mkfifo.c
index e34079e7..13469d6f 100644
--- a/src/sys/stat/mkfifo.c
+++ b/src/sys/stat/mkfifo.c
@@ -1,6 +1,6 @@
#include "sys/types.h"
#include <sys/stat.h>
-#include "../../_syscall.h"
+#include "_syscall.h"
#ifndef S_IFIFO
#include "S_IFIFO.c"
diff --git a/src/sys/stat/stat.c b/src/sys/stat/stat.c
index 233a0587..a4442bbe 100644
--- a/src/sys/stat/stat.c
+++ b/src/sys/stat/stat.c
@@ -1,8 +1,8 @@
#include "sys/types.h"
#include <sys/stat.h>
#include "stdlib.h"
-#include "../../_assert.h"
-#include "../../_syscall.h"
+#include "_assert.h"
+#include "_syscall.h"
int stat(const char * restrict path, struct stat * restrict buf)
{
diff --git a/src/sys/stat/umask.c b/src/sys/stat/umask.c
index 601f67f2..e3f14b73 100644
--- a/src/sys/stat/umask.c
+++ b/src/sys/stat/umask.c
@@ -1,6 +1,6 @@
#include "sys/types.h"
#include <sys/stat.h>
-#include "../../_syscall.h"
+#include "_syscall.h"
mode_t umask(mode_t cmask)
{
diff --git a/src/sys/utsname/uname.c b/src/sys/utsname/uname.c
index e5a4b83e..a6972637 100644
--- a/src/sys/utsname/uname.c
+++ b/src/sys/utsname/uname.c
@@ -1,6 +1,6 @@
#include <sys/utsname.h>
#include "string.h"
-#include "../../_assert.h"
+#include "_assert.h"
# define __PLATFORM__ "x86"
@@ -8,12 +8,14 @@ int uname(struct utsname *name)
{
ASSERT_NONNULL(name);
- strcpy(name->sysname, "UNG");
+ strcpy(name->sysname, "UNGOL");
+
#if 0
gethostname(name->nodename, sizeof(name->nodename));
#else
- strcpy(name->sysname, "localhost");
+ strcpy(name->nodename, "localhost");
#endif
+
strcpy(name->release, "YYYY-MM-DD");
strcpy(name->version, "MM.mm.pp");
strcpy(name->machine, __PLATFORM__);