From b9038b1c6b31a8f8d6b8b648cee0cf3b457dc24c Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 15 Dec 2022 22:46:25 +0100 Subject: first version of io and wstdf --- lib/sys/io.h | 4 ++-- lib/sys/syscalls.h | 1 - lib/sys/write.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/sys') diff --git a/lib/sys/io.h b/lib/sys/io.h index 3048ebe..8086869 100644 --- a/lib/sys/io.h +++ b/lib/sys/io.h @@ -1,5 +1,5 @@ -#ifndef IO_H -#define IO_H +#ifndef IO_SYS_H +#define IO_SYS_H #include "write.h" #include "read.h" diff --git a/lib/sys/syscalls.h b/lib/sys/syscalls.h index 03ce997..50e8a4f 100644 --- a/lib/sys/syscalls.h +++ b/lib/sys/syscalls.h @@ -3,7 +3,6 @@ __asm__ ( "syscall:\n" - "endbr64\n" "mov %rdi, %rax\n" "mov %rsi, %rdi\n" "mov %rdx, %rsi\n" diff --git a/lib/sys/write.h b/lib/sys/write.h index 6ad748e..6447ed8 100644 --- a/lib/sys/write.h +++ b/lib/sys/write.h @@ -3,7 +3,7 @@ #include "syscalls.h" -static int write(unsigned int fd, const char * buf, unsigned long count) +static int write(unsigned int fd, const char *buf, unsigned long count) { return syscall(WRITE, fd, buf, count); } -- cgit v1.2.3-70-g09d2