1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

Add sys$uname() and a /bin/uname utility.

This commit is contained in:
Andreas Kling 2018-10-26 14:56:21 +02:00
parent 384e2f24d4
commit 1c45b28da6
15 changed files with 129 additions and 10 deletions

View file

@ -1,6 +1,8 @@
#include "stdio.h"
#include "stdarg.h"
#include "types.h"
#include "string.h"
#include "errno.h"
#include <Kernel/Syscall.h>
#define ALWAYS_INLINE __attribute__ ((always_inline))
@ -169,5 +171,10 @@ int sprintf(char* buffer, const char* fmt, ...)
return ret;
}
void perror(const char* s)
{
printf("%s: %s\n", s, strerror(errno));
}
}