mirror of
https://github.com/Fennix-Project/Userspace.git
synced 2025-08-26 05:15:01 +00:00
Update libc
This commit is contained in:
@@ -59,11 +59,6 @@ int fprintf(FILE *stream, const char *format, ...)
|
||||
return 0; // sprintf(char *s, const char *format, ...)
|
||||
}
|
||||
|
||||
// int printf(const char *format, ...)
|
||||
// {
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
void setbuf(FILE *stream, char *buf)
|
||||
{
|
||||
}
|
||||
|
@@ -4,12 +4,12 @@
|
||||
|
||||
int fputc(int c, FILE *stream)
|
||||
{
|
||||
syscall1(_Print, c);
|
||||
return syscall1(_Print, c);
|
||||
}
|
||||
|
||||
int putc(int c, FILE *stream)
|
||||
{
|
||||
syscall1(_Print, c);
|
||||
return syscall1(_Print, c);
|
||||
}
|
||||
|
||||
int fputs(const char *s, FILE *stream)
|
||||
@@ -18,18 +18,18 @@ int fputs(const char *s, FILE *stream)
|
||||
fputc(s[i], stream);
|
||||
}
|
||||
|
||||
int putchar(int c)
|
||||
{
|
||||
syscall1(_Print, c);
|
||||
}
|
||||
|
||||
int puts(const char *s)
|
||||
{
|
||||
for (int i = 0; s[i] != '\0'; i++)
|
||||
fputc(s[i], stdout);
|
||||
}
|
||||
|
||||
void perror(const char *__s)
|
||||
int putchar(int c)
|
||||
{
|
||||
fputs(__s, stderr);
|
||||
return putc(c, stdout);
|
||||
}
|
||||
|
||||
void perror(const char *s)
|
||||
{
|
||||
fputs(s, stderr);
|
||||
}
|
Reference in New Issue
Block a user