mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
Add sys$uname() and a /bin/uname utility.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user